1<?php
2/*
3 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 * use this file except in compliance with the License. You may obtain a copy of
5 * the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 * License for the specific language governing permissions and limitations under
13 * the License.
14 */
15
16
17  /**
18   * The "chromeosdevices" collection of methods.
19   * Typical usage is:
20   *  <code>
21   *   $adminService = new Google_DirectoryService(...);
22   *   $chromeosdevices = $adminService->chromeosdevices;
23   *  </code>
24   */
25  class Google_ChromeosdevicesServiceResource extends Google_ServiceResource {
26
27
28    /**
29     * Retrieve Chrome OS Device (chromeosdevices.get)
30     *
31     * @param string $customerId Immutable id of the Google Apps account
32     * @param string $deviceId Immutable id of Chrome OS Device
33     * @param array $optParams Optional parameters.
34     *
35     * @opt_param string projection Restrict information returned to a set of selected fields.
36     * @return Google_ChromeOsDevice
37     */
38    public function get($customerId, $deviceId, $optParams = array()) {
39      $params = array('customerId' => $customerId, 'deviceId' => $deviceId);
40      $params = array_merge($params, $optParams);
41      $data = $this->__call('get', array($params));
42      if ($this->useObjects()) {
43        return new Google_ChromeOsDevice($data);
44      } else {
45        return $data;
46      }
47    }
48    /**
49     * Retrieve all Chrome OS Devices of a customer (paginated) (chromeosdevices.list)
50     *
51     * @param string $customerId Immutable id of the Google Apps account
52     * @param array $optParams Optional parameters.
53     *
54     * @opt_param int maxResults Maximum number of results to return. Default is 100
55     * @opt_param string orderBy Column to use for sorting results
56     * @opt_param string pageToken Token to specify next page in the list
57     * @opt_param string projection Restrict information returned to a set of selected fields.
58     * @opt_param string query Search string in the format given at http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333
59     * @opt_param string sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used
60     * @return Google_ChromeOsDevices
61     */
62    public function listChromeosdevices($customerId, $optParams = array()) {
63      $params = array('customerId' => $customerId);
64      $params = array_merge($params, $optParams);
65      $data = $this->__call('list', array($params));
66      if ($this->useObjects()) {
67        return new Google_ChromeOsDevices($data);
68      } else {
69        return $data;
70      }
71    }
72    /**
73     * Update Chrome OS Device. This method supports patch semantics. (chromeosdevices.patch)
74     *
75     * @param string $customerId Immutable id of the Google Apps account
76     * @param string $deviceId Immutable id of Chrome OS Device
77     * @param Google_ChromeOsDevice $postBody
78     * @param array $optParams Optional parameters.
79     *
80     * @opt_param string projection Restrict information returned to a set of selected fields.
81     * @return Google_ChromeOsDevice
82     */
83    public function patch($customerId, $deviceId, Google_ChromeOsDevice $postBody, $optParams = array()) {
84      $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
85      $params = array_merge($params, $optParams);
86      $data = $this->__call('patch', array($params));
87      if ($this->useObjects()) {
88        return new Google_ChromeOsDevice($data);
89      } else {
90        return $data;
91      }
92    }
93    /**
94     * Update Chrome OS Device (chromeosdevices.update)
95     *
96     * @param string $customerId Immutable id of the Google Apps account
97     * @param string $deviceId Immutable id of Chrome OS Device
98     * @param Google_ChromeOsDevice $postBody
99     * @param array $optParams Optional parameters.
100     *
101     * @opt_param string projection Restrict information returned to a set of selected fields.
102     * @return Google_ChromeOsDevice
103     */
104    public function update($customerId, $deviceId, Google_ChromeOsDevice $postBody, $optParams = array()) {
105      $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
106      $params = array_merge($params, $optParams);
107      $data = $this->__call('update', array($params));
108      if ($this->useObjects()) {
109        return new Google_ChromeOsDevice($data);
110      } else {
111        return $data;
112      }
113    }
114  }
115
116  /**
117   * The "groups" collection of methods.
118   * Typical usage is:
119   *  <code>
120   *   $adminService = new Google_DirectoryService(...);
121   *   $groups = $adminService->groups;
122   *  </code>
123   */
124  class Google_GroupsServiceResource extends Google_ServiceResource {
125
126
127    /**
128     * Delete Group (groups.delete)
129     *
130     * @param string $groupKey Email or immutable Id of the group
131     * @param array $optParams Optional parameters.
132     */
133    public function delete($groupKey, $optParams = array()) {
134      $params = array('groupKey' => $groupKey);
135      $params = array_merge($params, $optParams);
136      $data = $this->__call('delete', array($params));
137      return $data;
138    }
139    /**
140     * Retrieve Group (groups.get)
141     *
142     * @param string $groupKey Email or immutable Id of the group
143     * @param array $optParams Optional parameters.
144     * @return Google_Group
145     */
146    public function get($groupKey, $optParams = array()) {
147      $params = array('groupKey' => $groupKey);
148      $params = array_merge($params, $optParams);
149      $data = $this->__call('get', array($params));
150      if ($this->useObjects()) {
151        return new Google_Group($data);
152      } else {
153        return $data;
154      }
155    }
156    /**
157     * Create Group (groups.insert)
158     *
159     * @param Google_Group $postBody
160     * @param array $optParams Optional parameters.
161     * @return Google_Group
162     */
163    public function insert(Google_Group $postBody, $optParams = array()) {
164      $params = array('postBody' => $postBody);
165      $params = array_merge($params, $optParams);
166      $data = $this->__call('insert', array($params));
167      if ($this->useObjects()) {
168        return new Google_Group($data);
169      } else {
170        return $data;
171      }
172    }
173    /**
174     * Retrieve all groups in a domain (paginated) (groups.list)
175     *
176     * @param array $optParams Optional parameters.
177     *
178     * @opt_param string customer Immutable id of the Google Apps account. In case of multi-domain, to fetch all groups for a customer, fill this field instead of domain.
179     * @opt_param string domain Name of the domain. Fill this field to get groups from only this domain. To return all groups in a multi-domain fill customer field instead.
180     * @opt_param int maxResults Maximum number of results to return. Default is 200
181     * @opt_param string pageToken Token to specify next page in the list
182     * @opt_param string userKey Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object
183     * @return Google_Groups
184     */
185    public function listGroups($optParams = array()) {
186      $params = array();
187      $params = array_merge($params, $optParams);
188      $data = $this->__call('list', array($params));
189      if ($this->useObjects()) {
190        return new Google_Groups($data);
191      } else {
192        return $data;
193      }
194    }
195    /**
196     * Update Group. This method supports patch semantics. (groups.patch)
197     *
198     * @param string $groupKey Email or immutable Id of the group. If Id, it should match with id of group object
199     * @param Google_Group $postBody
200     * @param array $optParams Optional parameters.
201     * @return Google_Group
202     */
203    public function patch($groupKey, Google_Group $postBody, $optParams = array()) {
204      $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
205      $params = array_merge($params, $optParams);
206      $data = $this->__call('patch', array($params));
207      if ($this->useObjects()) {
208        return new Google_Group($data);
209      } else {
210        return $data;
211      }
212    }
213    /**
214     * Update Group (groups.update)
215     *
216     * @param string $groupKey Email or immutable Id of the group. If Id, it should match with id of group object
217     * @param Google_Group $postBody
218     * @param array $optParams Optional parameters.
219     * @return Google_Group
220     */
221    public function update($groupKey, Google_Group $postBody, $optParams = array()) {
222      $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
223      $params = array_merge($params, $optParams);
224      $data = $this->__call('update', array($params));
225      if ($this->useObjects()) {
226        return new Google_Group($data);
227      } else {
228        return $data;
229      }
230    }
231  }
232
233  /**
234   * The "aliases" collection of methods.
235   * Typical usage is:
236   *  <code>
237   *   $adminService = new Google_DirectoryService(...);
238   *   $aliases = $adminService->aliases;
239   *  </code>
240   */
241  class Google_GroupsAliasesServiceResource extends Google_ServiceResource {
242
243
244    /**
245     * Remove a alias for the group (aliases.delete)
246     *
247     * @param string $groupKey Email or immutable Id of the group
248     * @param string $alias The alias to be removed
249     * @param array $optParams Optional parameters.
250     */
251    public function delete($groupKey, $alias, $optParams = array()) {
252      $params = array('groupKey' => $groupKey, 'alias' => $alias);
253      $params = array_merge($params, $optParams);
254      $data = $this->__call('delete', array($params));
255      return $data;
256    }
257    /**
258     * Add a alias for the group (aliases.insert)
259     *
260     * @param string $groupKey Email or immutable Id of the group
261     * @param Google_Alias $postBody
262     * @param array $optParams Optional parameters.
263     * @return Google_Alias
264     */
265    public function insert($groupKey, Google_Alias $postBody, $optParams = array()) {
266      $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
267      $params = array_merge($params, $optParams);
268      $data = $this->__call('insert', array($params));
269      if ($this->useObjects()) {
270        return new Google_Alias($data);
271      } else {
272        return $data;
273      }
274    }
275    /**
276     * List all aliases for a group (aliases.list)
277     *
278     * @param string $groupKey Email or immutable Id of the group
279     * @param array $optParams Optional parameters.
280     * @return Google_Aliases
281     */
282    public function listGroupsAliases($groupKey, $optParams = array()) {
283      $params = array('groupKey' => $groupKey);
284      $params = array_merge($params, $optParams);
285      $data = $this->__call('list', array($params));
286      if ($this->useObjects()) {
287        return new Google_Aliases($data);
288      } else {
289        return $data;
290      }
291    }
292  }
293
294  /**
295   * The "members" collection of methods.
296   * Typical usage is:
297   *  <code>
298   *   $adminService = new Google_DirectoryService(...);
299   *   $members = $adminService->members;
300   *  </code>
301   */
302  class Google_MembersServiceResource extends Google_ServiceResource {
303
304
305    /**
306     * Remove membership. (members.delete)
307     *
308     * @param string $groupKey Email or immutable Id of the group
309     * @param string $memberKey Email or immutable Id of the member
310     * @param array $optParams Optional parameters.
311     */
312    public function delete($groupKey, $memberKey, $optParams = array()) {
313      $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
314      $params = array_merge($params, $optParams);
315      $data = $this->__call('delete', array($params));
316      return $data;
317    }
318    /**
319     * Retrieve Group Member (members.get)
320     *
321     * @param string $groupKey Email or immutable Id of the group
322     * @param string $memberKey Email or immutable Id of the member
323     * @param array $optParams Optional parameters.
324     * @return Google_Member
325     */
326    public function get($groupKey, $memberKey, $optParams = array()) {
327      $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey);
328      $params = array_merge($params, $optParams);
329      $data = $this->__call('get', array($params));
330      if ($this->useObjects()) {
331        return new Google_Member($data);
332      } else {
333        return $data;
334      }
335    }
336    /**
337     * Add user to the specified group. (members.insert)
338     *
339     * @param string $groupKey Email or immutable Id of the group
340     * @param Google_Member $postBody
341     * @param array $optParams Optional parameters.
342     * @return Google_Member
343     */
344    public function insert($groupKey, Google_Member $postBody, $optParams = array()) {
345      $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
346      $params = array_merge($params, $optParams);
347      $data = $this->__call('insert', array($params));
348      if ($this->useObjects()) {
349        return new Google_Member($data);
350      } else {
351        return $data;
352      }
353    }
354    /**
355     * Retrieve all members in a group (paginated) (members.list)
356     *
357     * @param string $groupKey Email or immutable Id of the group
358     * @param array $optParams Optional parameters.
359     *
360     * @opt_param int maxResults Maximum number of results to return. Default is 200
361     * @opt_param string pageToken Token to specify next page in the list
362     * @opt_param string roles Comma separated role values to filter list results on.
363     * @return Google_Members
364     */
365    public function listMembers($groupKey, $optParams = array()) {
366      $params = array('groupKey' => $groupKey);
367      $params = array_merge($params, $optParams);
368      $data = $this->__call('list', array($params));
369      if ($this->useObjects()) {
370        return new Google_Members($data);
371      } else {
372        return $data;
373      }
374    }
375    /**
376     * Update membership of a user in the specified group. This method supports patch semantics.
377     * (members.patch)
378     *
379     * @param string $groupKey Email or immutable Id of the group. If Id, it should match with id of group object
380     * @param string $memberKey Email or immutable Id of the user. If Id, it should match with id of member object
381     * @param Google_Member $postBody
382     * @param array $optParams Optional parameters.
383     * @return Google_Member
384     */
385    public function patch($groupKey, $memberKey, Google_Member $postBody, $optParams = array()) {
386      $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
387      $params = array_merge($params, $optParams);
388      $data = $this->__call('patch', array($params));
389      if ($this->useObjects()) {
390        return new Google_Member($data);
391      } else {
392        return $data;
393      }
394    }
395    /**
396     * Update membership of a user in the specified group. (members.update)
397     *
398     * @param string $groupKey Email or immutable Id of the group. If Id, it should match with id of group object
399     * @param string $memberKey Email or immutable Id of the user. If Id, it should match with id of member object
400     * @param Google_Member $postBody
401     * @param array $optParams Optional parameters.
402     * @return Google_Member
403     */
404    public function update($groupKey, $memberKey, Google_Member $postBody, $optParams = array()) {
405      $params = array('groupKey' => $groupKey, 'memberKey' => $memberKey, 'postBody' => $postBody);
406      $params = array_merge($params, $optParams);
407      $data = $this->__call('update', array($params));
408      if ($this->useObjects()) {
409        return new Google_Member($data);
410      } else {
411        return $data;
412      }
413    }
414  }
415
416  /**
417   * The "mobiledevices" collection of methods.
418   * Typical usage is:
419   *  <code>
420   *   $adminService = new Google_DirectoryService(...);
421   *   $mobiledevices = $adminService->mobiledevices;
422   *  </code>
423   */
424  class Google_MobiledevicesServiceResource extends Google_ServiceResource {
425
426
427    /**
428     * Take action on Mobile Device (mobiledevices.action)
429     *
430     * @param string $customerId Immutable id of the Google Apps account
431     * @param string $resourceId Immutable id of Mobile Device
432     * @param Google_MobileDeviceAction $postBody
433     * @param array $optParams Optional parameters.
434     */
435    public function action($customerId, $resourceId, Google_MobileDeviceAction $postBody, $optParams = array()) {
436      $params = array('customerId' => $customerId, 'resourceId' => $resourceId, 'postBody' => $postBody);
437      $params = array_merge($params, $optParams);
438      $data = $this->__call('action', array($params));
439      return $data;
440    }
441    /**
442     * Delete Mobile Device (mobiledevices.delete)
443     *
444     * @param string $customerId Immutable id of the Google Apps account
445     * @param string $resourceId Immutable id of Mobile Device
446     * @param array $optParams Optional parameters.
447     */
448    public function delete($customerId, $resourceId, $optParams = array()) {
449      $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
450      $params = array_merge($params, $optParams);
451      $data = $this->__call('delete', array($params));
452      return $data;
453    }
454    /**
455     * Retrieve Mobile Device (mobiledevices.get)
456     *
457     * @param string $customerId Immutable id of the Google Apps account
458     * @param string $resourceId Immutable id of Mobile Device
459     * @param array $optParams Optional parameters.
460     *
461     * @opt_param string projection Restrict information returned to a set of selected fields.
462     * @return Google_MobileDevice
463     */
464    public function get($customerId, $resourceId, $optParams = array()) {
465      $params = array('customerId' => $customerId, 'resourceId' => $resourceId);
466      $params = array_merge($params, $optParams);
467      $data = $this->__call('get', array($params));
468      if ($this->useObjects()) {
469        return new Google_MobileDevice($data);
470      } else {
471        return $data;
472      }
473    }
474    /**
475     * Retrieve all Mobile Devices of a customer (paginated) (mobiledevices.list)
476     *
477     * @param string $customerId Immutable id of the Google Apps account
478     * @param array $optParams Optional parameters.
479     *
480     * @opt_param int maxResults Maximum number of results to return. Default is 100
481     * @opt_param string orderBy Column to use for sorting results
482     * @opt_param string pageToken Token to specify next page in the list
483     * @opt_param string projection Restrict information returned to a set of selected fields.
484     * @opt_param string query Search string in the format given at http://support.google.com/a/bin/answer.py?hl=en=1408863#search
485     * @opt_param string sortOrder Whether to return results in ascending or descending order. Only of use when orderBy is also used
486     * @return Google_MobileDevices
487     */
488    public function listMobiledevices($customerId, $optParams = array()) {
489      $params = array('customerId' => $customerId);
490      $params = array_merge($params, $optParams);
491      $data = $this->__call('list', array($params));
492      if ($this->useObjects()) {
493        return new Google_MobileDevices($data);
494      } else {
495        return $data;
496      }
497    }
498  }
499
500  /**
501   * The "orgunits" collection of methods.
502   * Typical usage is:
503   *  <code>
504   *   $adminService = new Google_DirectoryService(...);
505   *   $orgunits = $adminService->orgunits;
506   *  </code>
507   */
508  class Google_OrgunitsServiceResource extends Google_ServiceResource {
509
510
511    /**
512     * Remove Organization Unit (orgunits.delete)
513     *
514     * @param string $customerId Immutable id of the Google Apps account
515     * @param string $orgUnitPath Full path of the organization unit
516     * @param array $optParams Optional parameters.
517     */
518    public function delete($customerId, $orgUnitPath, $optParams = array()) {
519      $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
520      $params = array_merge($params, $optParams);
521      $data = $this->__call('delete', array($params));
522      return $data;
523    }
524    /**
525     * Retrieve Organization Unit (orgunits.get)
526     *
527     * @param string $customerId Immutable id of the Google Apps account
528     * @param string $orgUnitPath Full path of the organization unit
529     * @param array $optParams Optional parameters.
530     * @return Google_OrgUnit
531     */
532    public function get($customerId, $orgUnitPath, $optParams = array()) {
533      $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath);
534      $params = array_merge($params, $optParams);
535      $data = $this->__call('get', array($params));
536      if ($this->useObjects()) {
537        return new Google_OrgUnit($data);
538      } else {
539        return $data;
540      }
541    }
542    /**
543     * Add Organization Unit (orgunits.insert)
544     *
545     * @param string $customerId Immutable id of the Google Apps account
546     * @param Google_OrgUnit $postBody
547     * @param array $optParams Optional parameters.
548     * @return Google_OrgUnit
549     */
550    public function insert($customerId, Google_OrgUnit $postBody, $optParams = array()) {
551      $params = array('customerId' => $customerId, 'postBody' => $postBody);
552      $params = array_merge($params, $optParams);
553      $data = $this->__call('insert', array($params));
554      if ($this->useObjects()) {
555        return new Google_OrgUnit($data);
556      } else {
557        return $data;
558      }
559    }
560    /**
561     * Retrieve all Organization Units (orgunits.list)
562     *
563     * @param string $customerId Immutable id of the Google Apps account
564     * @param array $optParams Optional parameters.
565     *
566     * @opt_param string orgUnitPath the URL-encoded organization unit
567     * @opt_param string type Whether to return all sub-organizations or just immediate children
568     * @return Google_OrgUnits
569     */
570    public function listOrgunits($customerId, $optParams = array()) {
571      $params = array('customerId' => $customerId);
572      $params = array_merge($params, $optParams);
573      $data = $this->__call('list', array($params));
574      if ($this->useObjects()) {
575        return new Google_OrgUnits($data);
576      } else {
577        return $data;
578      }
579    }
580    /**
581     * Update Organization Unit. This method supports patch semantics. (orgunits.patch)
582     *
583     * @param string $customerId Immutable id of the Google Apps account
584     * @param string $orgUnitPath Full path of the organization unit
585     * @param Google_OrgUnit $postBody
586     * @param array $optParams Optional parameters.
587     * @return Google_OrgUnit
588     */
589    public function patch($customerId, $orgUnitPath, Google_OrgUnit $postBody, $optParams = array()) {
590      $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
591      $params = array_merge($params, $optParams);
592      $data = $this->__call('patch', array($params));
593      if ($this->useObjects()) {
594        return new Google_OrgUnit($data);
595      } else {
596        return $data;
597      }
598    }
599    /**
600     * Update Organization Unit (orgunits.update)
601     *
602     * @param string $customerId Immutable id of the Google Apps account
603     * @param string $orgUnitPath Full path of the organization unit
604     * @param Google_OrgUnit $postBody
605     * @param array $optParams Optional parameters.
606     * @return Google_OrgUnit
607     */
608    public function update($customerId, $orgUnitPath, Google_OrgUnit $postBody, $optParams = array()) {
609      $params = array('customerId' => $customerId, 'orgUnitPath' => $orgUnitPath, 'postBody' => $postBody);
610      $params = array_merge($params, $optParams);
611      $data = $this->__call('update', array($params));
612      if ($this->useObjects()) {
613        return new Google_OrgUnit($data);
614      } else {
615        return $data;
616      }
617    }
618  }
619
620  /**
621   * The "users" collection of methods.
622   * Typical usage is:
623   *  <code>
624   *   $adminService = new Google_DirectoryService(...);
625   *   $users = $adminService->users;
626   *  </code>
627   */
628  class Google_UsersServiceResource extends Google_ServiceResource {
629
630
631    /**
632     * Delete user (users.delete)
633     *
634     * @param string $userKey Email or immutable Id of the user
635     * @param array $optParams Optional parameters.
636     */
637    public function delete($userKey, $optParams = array()) {
638      $params = array('userKey' => $userKey);
639      $params = array_merge($params, $optParams);
640      $data = $this->__call('delete', array($params));
641      return $data;
642    }
643    /**
644     * retrieve user (users.get)
645     *
646     * @param string $userKey Email or immutable Id of the user
647     * @param array $optParams Optional parameters.
648     * @return Google_User
649     */
650    public function get($userKey, $optParams = array()) {
651      $params = array('userKey' => $userKey);
652      $params = array_merge($params, $optParams);
653      $data = $this->__call('get', array($params));
654      if ($this->useObjects()) {
655        return new Google_User($data);
656      } else {
657        return $data;
658      }
659    }
660    /**
661     * create user. (users.insert)
662     *
663     * @param Google_User $postBody
664     * @param array $optParams Optional parameters.
665     * @return Google_User
666     */
667    public function insert(Google_User $postBody, $optParams = array()) {
668      $params = array('postBody' => $postBody);
669      $params = array_merge($params, $optParams);
670      $data = $this->__call('insert', array($params));
671      if ($this->useObjects()) {
672        return new Google_User($data);
673      } else {
674        return $data;
675      }
676    }
677    /**
678     * Retrieve either deleted users or all users in a domain (paginated) (users.list)
679     *
680     * @param array $optParams Optional parameters.
681     *
682     * @opt_param string customer Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain.
683     * @opt_param string domain Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.
684     * @opt_param int maxResults Maximum number of results to return. Default is 100. Max allowed is 500
685     * @opt_param string orderBy Column to use for sorting results
686     * @opt_param string pageToken Token to specify next page in the list
687     * @opt_param string query Query string for prefix matching searches. Should be of the form "key:value*" where key can be "email", "givenName" or "familyName". The asterisk is required, for example: "givenName:Ann*" is a valid query.
688     * @opt_param string showDeleted If set to true retrieves the list of deleted users. Default is false
689     * @opt_param string sortOrder Whether to return results in ascending or descending order.
690     * @return Google_Users
691     */
692    public function listUsers($optParams = array()) {
693      $params = array();
694      $params = array_merge($params, $optParams);
695      $data = $this->__call('list', array($params));
696      if ($this->useObjects()) {
697        return new Google_Users($data);
698      } else {
699        return $data;
700      }
701    }
702    /**
703     * change admin status of a user (users.makeAdmin)
704     *
705     * @param string $userKey Email or immutable Id of the user as admin
706     * @param Google_UserMakeAdmin $postBody
707     * @param array $optParams Optional parameters.
708     */
709    public function makeAdmin($userKey, Google_UserMakeAdmin $postBody, $optParams = array()) {
710      $params = array('userKey' => $userKey, 'postBody' => $postBody);
711      $params = array_merge($params, $optParams);
712      $data = $this->__call('makeAdmin', array($params));
713      return $data;
714    }
715    /**
716     * update user. This method supports patch semantics. (users.patch)
717     *
718     * @param string $userKey Email or immutable Id of the user. If Id, it should match with id of user object
719     * @param Google_User $postBody
720     * @param array $optParams Optional parameters.
721     * @return Google_User
722     */
723    public function patch($userKey, Google_User $postBody, $optParams = array()) {
724      $params = array('userKey' => $userKey, 'postBody' => $postBody);
725      $params = array_merge($params, $optParams);
726      $data = $this->__call('patch', array($params));
727      if ($this->useObjects()) {
728        return new Google_User($data);
729      } else {
730        return $data;
731      }
732    }
733    /**
734     * Undelete a deleted user (users.undelete)
735     *
736     * @param string $userKey The immutable id of the user
737     * @param Google_UserUndelete $postBody
738     * @param array $optParams Optional parameters.
739     */
740    public function undelete($userKey, Google_UserUndelete $postBody, $optParams = array()) {
741      $params = array('userKey' => $userKey, 'postBody' => $postBody);
742      $params = array_merge($params, $optParams);
743      $data = $this->__call('undelete', array($params));
744      return $data;
745    }
746    /**
747     * update user (users.update)
748     *
749     * @param string $userKey Email or immutable Id of the user. If Id, it should match with id of user object
750     * @param Google_User $postBody
751     * @param array $optParams Optional parameters.
752     * @return Google_User
753     */
754    public function update($userKey, Google_User $postBody, $optParams = array()) {
755      $params = array('userKey' => $userKey, 'postBody' => $postBody);
756      $params = array_merge($params, $optParams);
757      $data = $this->__call('update', array($params));
758      if ($this->useObjects()) {
759        return new Google_User($data);
760      } else {
761        return $data;
762      }
763    }
764  }
765
766  /**
767   * The "aliases" collection of methods.
768   * Typical usage is:
769   *  <code>
770   *   $adminService = new Google_DirectoryService(...);
771   *   $aliases = $adminService->aliases;
772   *  </code>
773   */
774  class Google_UsersAliasesServiceResource extends Google_ServiceResource {
775
776
777    /**
778     * Remove a alias for the user (aliases.delete)
779     *
780     * @param string $userKey Email or immutable Id of the user
781     * @param string $alias The alias to be removed
782     * @param array $optParams Optional parameters.
783     */
784    public function delete($userKey, $alias, $optParams = array()) {
785      $params = array('userKey' => $userKey, 'alias' => $alias);
786      $params = array_merge($params, $optParams);
787      $data = $this->__call('delete', array($params));
788      return $data;
789    }
790    /**
791     * Add a alias for the user (aliases.insert)
792     *
793     * @param string $userKey Email or immutable Id of the user
794     * @param Google_Alias $postBody
795     * @param array $optParams Optional parameters.
796     * @return Google_Alias
797     */
798    public function insert($userKey, Google_Alias $postBody, $optParams = array()) {
799      $params = array('userKey' => $userKey, 'postBody' => $postBody);
800      $params = array_merge($params, $optParams);
801      $data = $this->__call('insert', array($params));
802      if ($this->useObjects()) {
803        return new Google_Alias($data);
804      } else {
805        return $data;
806      }
807    }
808    /**
809     * List all aliases for a user (aliases.list)
810     *
811     * @param string $userKey Email or immutable Id of the user
812     * @param array $optParams Optional parameters.
813     * @return Google_Aliases
814     */
815    public function listUsersAliases($userKey, $optParams = array()) {
816      $params = array('userKey' => $userKey);
817      $params = array_merge($params, $optParams);
818      $data = $this->__call('list', array($params));
819      if ($this->useObjects()) {
820        return new Google_Aliases($data);
821      } else {
822        return $data;
823      }
824    }
825  }
826  /**
827   * The "photos" collection of methods.
828   * Typical usage is:
829   *  <code>
830   *   $adminService = new Google_DirectoryService(...);
831   *   $photos = $adminService->photos;
832   *  </code>
833   */
834  class Google_UsersPhotosServiceResource extends Google_ServiceResource {
835
836
837    /**
838     * Remove photos for the user (photos.delete)
839     *
840     * @param string $userKey Email or immutable Id of the user
841     * @param array $optParams Optional parameters.
842     */
843    public function delete($userKey, $optParams = array()) {
844      $params = array('userKey' => $userKey);
845      $params = array_merge($params, $optParams);
846      $data = $this->__call('delete', array($params));
847      return $data;
848    }
849    /**
850     * Retrieve photo of a user (photos.get)
851     *
852     * @param string $userKey Email or immutable Id of the user
853     * @param array $optParams Optional parameters.
854     * @return Google_UserPhoto
855     */
856    public function get($userKey, $optParams = array()) {
857      $params = array('userKey' => $userKey);
858      $params = array_merge($params, $optParams);
859      $data = $this->__call('get', array($params));
860      if ($this->useObjects()) {
861        return new Google_UserPhoto($data);
862      } else {
863        return $data;
864      }
865    }
866    /**
867     * Add a photo for the user. This method supports patch semantics. (photos.patch)
868     *
869     * @param string $userKey Email or immutable Id of the user
870     * @param Google_UserPhoto $postBody
871     * @param array $optParams Optional parameters.
872     * @return Google_UserPhoto
873     */
874    public function patch($userKey, Google_UserPhoto $postBody, $optParams = array()) {
875      $params = array('userKey' => $userKey, 'postBody' => $postBody);
876      $params = array_merge($params, $optParams);
877      $data = $this->__call('patch', array($params));
878      if ($this->useObjects()) {
879        return new Google_UserPhoto($data);
880      } else {
881        return $data;
882      }
883    }
884    /**
885     * Add a photo for the user (photos.update)
886     *
887     * @param string $userKey Email or immutable Id of the user
888     * @param Google_UserPhoto $postBody
889     * @param array $optParams Optional parameters.
890     * @return Google_UserPhoto
891     */
892    public function update($userKey, Google_UserPhoto $postBody, $optParams = array()) {
893      $params = array('userKey' => $userKey, 'postBody' => $postBody);
894      $params = array_merge($params, $optParams);
895      $data = $this->__call('update', array($params));
896      if ($this->useObjects()) {
897        return new Google_UserPhoto($data);
898      } else {
899        return $data;
900      }
901    }
902  }
903
904/**
905 * Service definition for Google_Directory (directory_v1).
906 *
907 * <p>
908 * Apps Directory API lets you view and manage enterprise resources like user, groups, OrgUnit, devices.
909 * </p>
910 *
911 * <p>
912 * For more information about this service, see the
913 * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">API Documentation</a>
914 * </p>
915 *
916 * @author Google, Inc.
917 */
918class Google_DirectoryService extends Google_Service {
919  public $chromeosdevices;
920  public $groups;
921  public $groups_aliases;
922  public $members;
923  public $mobiledevices;
924  public $orgunits;
925  public $users;
926  public $users_aliases;
927  public $users_photos;
928  /**
929   * Constructs the internal representation of the Directory service.
930   *
931   * @param Google_Client $client
932   */
933  public function __construct(Google_Client $client) {
934    $this->servicePath = 'admin/directory/v1/';
935    $this->version = 'directory_v1';
936    $this->serviceName = 'admin';
937
938    $client->addService($this->serviceName, $this->version);
939    $this->chromeosdevices = new Google_ChromeosdevicesServiceResource($this, $this->serviceName, 'chromeosdevices', json_decode('{"methods": {"get": {"id": "directory.chromeosdevices.get", "path": "customer/{customerId}/devices/chromeos/{deviceId}", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "deviceId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}}, "response": {"$ref": "ChromeOsDevice"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.chromeos", "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"]}, "list": {"id": "directory.chromeosdevices.list", "path": "customer/{customerId}/devices/chromeos", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "orderBy": {"type": "string", "enum": ["annotatedLocation", "annotatedUser", "lastSync", "notes", "serialNumber", "status", "supportEndDate"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "query": {"type": "string", "location": "query"}, "sortOrder": {"type": "string", "enum": ["ASCENDING", "DESCENDING"], "location": "query"}}, "response": {"$ref": "ChromeOsDevices"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.chromeos", "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"]}, "patch": {"id": "directory.chromeosdevices.patch", "path": "customer/{customerId}/devices/chromeos/{deviceId}", "httpMethod": "PATCH", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "deviceId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}}, "request": {"$ref": "ChromeOsDevice"}, "response": {"$ref": "ChromeOsDevice"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.chromeos"]}, "update": {"id": "directory.chromeosdevices.update", "path": "customer/{customerId}/devices/chromeos/{deviceId}", "httpMethod": "PUT", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "deviceId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}}, "request": {"$ref": "ChromeOsDevice"}, "response": {"$ref": "ChromeOsDevice"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.chromeos"]}}}', true));
940    $this->groups = new Google_GroupsServiceResource($this, $this->serviceName, 'groups', json_decode('{"methods": {"delete": {"id": "directory.groups.delete", "path": "groups/{groupKey}", "httpMethod": "DELETE", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group"]}, "get": {"id": "directory.groups.get", "path": "groups/{groupKey}", "httpMethod": "GET", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Group"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.readonly"]}, "insert": {"id": "directory.groups.insert", "path": "groups", "httpMethod": "POST", "request": {"$ref": "Group"}, "response": {"$ref": "Group"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group"]}, "list": {"id": "directory.groups.list", "path": "groups", "httpMethod": "GET", "parameters": {"customer": {"type": "string", "location": "query"}, "domain": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "userKey": {"type": "string", "location": "query"}}, "response": {"$ref": "Groups"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.readonly"]}, "patch": {"id": "directory.groups.patch", "path": "groups/{groupKey}", "httpMethod": "PATCH", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Group"}, "response": {"$ref": "Group"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group"]}, "update": {"id": "directory.groups.update", "path": "groups/{groupKey}", "httpMethod": "PUT", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Group"}, "response": {"$ref": "Group"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group"]}}}', true));
941    $this->groups_aliases = new Google_GroupsAliasesServiceResource($this, $this->serviceName, 'aliases', json_decode('{"methods": {"delete": {"id": "directory.groups.aliases.delete", "path": "groups/{groupKey}/aliases/{alias}", "httpMethod": "DELETE", "parameters": {"alias": {"type": "string", "required": true, "location": "path"}, "groupKey": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group"]}, "insert": {"id": "directory.groups.aliases.insert", "path": "groups/{groupKey}/aliases", "httpMethod": "POST", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Alias"}, "response": {"$ref": "Alias"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group"]}, "list": {"id": "directory.groups.aliases.list", "path": "groups/{groupKey}/aliases", "httpMethod": "GET", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Aliases"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.readonly"]}}}', true));
942    $this->members = new Google_MembersServiceResource($this, $this->serviceName, 'members', json_decode('{"methods": {"delete": {"id": "directory.members.delete", "path": "groups/{groupKey}/members/{memberKey}", "httpMethod": "DELETE", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}, "memberKey": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member"]}, "get": {"id": "directory.members.get", "path": "groups/{groupKey}/members/{memberKey}", "httpMethod": "GET", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}, "memberKey": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Member"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member", "https://www.googleapis.com/auth/admin.directory.group.member.readonly", "https://www.googleapis.com/auth/admin.directory.group.readonly"]}, "insert": {"id": "directory.members.insert", "path": "groups/{groupKey}/members", "httpMethod": "POST", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Member"}, "response": {"$ref": "Member"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member"]}, "list": {"id": "directory.members.list", "path": "groups/{groupKey}/members", "httpMethod": "GET", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "roles": {"type": "string", "location": "query"}}, "response": {"$ref": "Members"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member", "https://www.googleapis.com/auth/admin.directory.group.member.readonly", "https://www.googleapis.com/auth/admin.directory.group.readonly"]}, "patch": {"id": "directory.members.patch", "path": "groups/{groupKey}/members/{memberKey}", "httpMethod": "PATCH", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}, "memberKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Member"}, "response": {"$ref": "Member"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member"]}, "update": {"id": "directory.members.update", "path": "groups/{groupKey}/members/{memberKey}", "httpMethod": "PUT", "parameters": {"groupKey": {"type": "string", "required": true, "location": "path"}, "memberKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Member"}, "response": {"$ref": "Member"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.group", "https://www.googleapis.com/auth/admin.directory.group.member"]}}}', true));
943    $this->mobiledevices = new Google_MobiledevicesServiceResource($this, $this->serviceName, 'mobiledevices', json_decode('{"methods": {"action": {"id": "directory.mobiledevices.action", "path": "customer/{customerId}/devices/mobile/{resourceId}/action", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "resourceId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "MobileDeviceAction"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.mobile", "https://www.googleapis.com/auth/admin.directory.device.mobile.action"]}, "delete": {"id": "directory.mobiledevices.delete", "path": "customer/{customerId}/devices/mobile/{resourceId}", "httpMethod": "DELETE", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "resourceId": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.mobile"]}, "get": {"id": "directory.mobiledevices.get", "path": "customer/{customerId}/devices/mobile/{resourceId}", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "resourceId": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "MobileDevice"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.mobile", "https://www.googleapis.com/auth/admin.directory.device.mobile.action", "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"]}, "list": {"id": "directory.mobiledevices.list", "path": "customer/{customerId}/devices/mobile", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "location": "query"}, "orderBy": {"type": "string", "enum": ["deviceId", "email", "lastSync", "model", "name", "os", "status", "type"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "projection": {"type": "string", "enum": ["BASIC", "FULL"], "location": "query"}, "query": {"type": "string", "location": "query"}, "sortOrder": {"type": "string", "enum": ["ASCENDING", "DESCENDING"], "location": "query"}}, "response": {"$ref": "MobileDevices"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.device.mobile", "https://www.googleapis.com/auth/admin.directory.device.mobile.action", "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"]}}}', true));
944    $this->orgunits = new Google_OrgunitsServiceResource($this, $this->serviceName, 'orgunits', json_decode('{"methods": {"delete": {"id": "directory.orgunits.delete", "path": "customer/{customerId}/orgunits{/orgUnitPath*}", "httpMethod": "DELETE", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "orgUnitPath": {"type": "string", "required": true, "repeated": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.orgunit"]}, "get": {"id": "directory.orgunits.get", "path": "customer/{customerId}/orgunits{/orgUnitPath*}", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "orgUnitPath": {"type": "string", "required": true, "repeated": true, "location": "path"}}, "response": {"$ref": "OrgUnit"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.orgunit", "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"]}, "insert": {"id": "directory.orgunits.insert", "path": "customer/{customerId}/orgunits", "httpMethod": "POST", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "OrgUnit"}, "response": {"$ref": "OrgUnit"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.orgunit"]}, "list": {"id": "directory.orgunits.list", "path": "customer/{customerId}/orgunits", "httpMethod": "GET", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "orgUnitPath": {"type": "string", "default": "", "location": "query"}, "type": {"type": "string", "enum": ["all", "children"], "location": "query"}}, "response": {"$ref": "OrgUnits"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.orgunit", "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"]}, "patch": {"id": "directory.orgunits.patch", "path": "customer/{customerId}/orgunits{/orgUnitPath*}", "httpMethod": "PATCH", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "orgUnitPath": {"type": "string", "required": true, "repeated": true, "location": "path"}}, "request": {"$ref": "OrgUnit"}, "response": {"$ref": "OrgUnit"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.orgunit"]}, "update": {"id": "directory.orgunits.update", "path": "customer/{customerId}/orgunits{/orgUnitPath*}", "httpMethod": "PUT", "parameters": {"customerId": {"type": "string", "required": true, "location": "path"}, "orgUnitPath": {"type": "string", "required": true, "repeated": true, "location": "path"}}, "request": {"$ref": "OrgUnit"}, "response": {"$ref": "OrgUnit"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.orgunit"]}}}', true));
945    $this->users = new Google_UsersServiceResource($this, $this->serviceName, 'users', json_decode('{"methods": {"delete": {"id": "directory.users.delete", "path": "users/{userKey}", "httpMethod": "DELETE", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}, "get": {"id": "directory.users.get", "path": "users/{userKey}", "httpMethod": "GET", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "User"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.readonly"]}, "insert": {"id": "directory.users.insert", "path": "users", "httpMethod": "POST", "request": {"$ref": "User"}, "response": {"$ref": "User"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}, "list": {"id": "directory.users.list", "path": "users", "httpMethod": "GET", "parameters": {"customer": {"type": "string", "location": "query"}, "domain": {"type": "string", "location": "query"}, "maxResults": {"type": "integer", "format": "int32", "minimum": "1", "maximum": "500", "location": "query"}, "orderBy": {"type": "string", "enum": ["email", "familyName", "givenName"], "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "query": {"type": "string", "location": "query"}, "showDeleted": {"type": "string", "location": "query"}, "sortOrder": {"type": "string", "enum": ["ASCENDING", "DESCENDING"], "location": "query"}}, "response": {"$ref": "Users"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.readonly"]}, "makeAdmin": {"id": "directory.users.makeAdmin", "path": "users/{userKey}/makeAdmin", "httpMethod": "POST", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "UserMakeAdmin"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}, "patch": {"id": "directory.users.patch", "path": "users/{userKey}", "httpMethod": "PATCH", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "User"}, "response": {"$ref": "User"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}, "undelete": {"id": "directory.users.undelete", "path": "users/{userKey}/undelete", "httpMethod": "POST", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "UserUndelete"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}, "update": {"id": "directory.users.update", "path": "users/{userKey}", "httpMethod": "PUT", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "User"}, "response": {"$ref": "User"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}}}', true));
946    $this->users_aliases = new Google_UsersAliasesServiceResource($this, $this->serviceName, 'aliases', json_decode('{"methods": {"delete": {"id": "directory.users.aliases.delete", "path": "users/{userKey}/aliases/{alias}", "httpMethod": "DELETE", "parameters": {"alias": {"type": "string", "required": true, "location": "path"}, "userKey": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.alias"]}, "insert": {"id": "directory.users.aliases.insert", "path": "users/{userKey}/aliases", "httpMethod": "POST", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "Alias"}, "response": {"$ref": "Alias"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.alias"]}, "list": {"id": "directory.users.aliases.list", "path": "users/{userKey}/aliases", "httpMethod": "GET", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "Aliases"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.alias", "https://www.googleapis.com/auth/admin.directory.user.alias.readonly", "https://www.googleapis.com/auth/admin.directory.user.readonly"]}}}', true));
947    $this->users_photos = new Google_UsersPhotosServiceResource($this, $this->serviceName, 'photos', json_decode('{"methods": {"delete": {"id": "directory.users.photos.delete", "path": "users/{userKey}/photos/thumbnail", "httpMethod": "DELETE", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}, "get": {"id": "directory.users.photos.get", "path": "users/{userKey}/photos/thumbnail", "httpMethod": "GET", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "response": {"$ref": "UserPhoto"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user", "https://www.googleapis.com/auth/admin.directory.user.readonly"]}, "patch": {"id": "directory.users.photos.patch", "path": "users/{userKey}/photos/thumbnail", "httpMethod": "PATCH", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "UserPhoto"}, "response": {"$ref": "UserPhoto"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}, "update": {"id": "directory.users.photos.update", "path": "users/{userKey}/photos/thumbnail", "httpMethod": "PUT", "parameters": {"userKey": {"type": "string", "required": true, "location": "path"}}, "request": {"$ref": "UserPhoto"}, "response": {"$ref": "UserPhoto"}, "scopes": ["https://www.googleapis.com/auth/admin.directory.user"]}}}', true));
948
949  }
950}
951
952
953
954class Google_Alias extends Google_Model {
955  public $alias;
956  public $id;
957  public $kind;
958  public $primaryEmail;
959  public function setAlias($alias) {
960    $this->alias = $alias;
961  }
962  public function getAlias() {
963    return $this->alias;
964  }
965  public function setId($id) {
966    $this->id = $id;
967  }
968  public function getId() {
969    return $this->id;
970  }
971  public function setKind($kind) {
972    $this->kind = $kind;
973  }
974  public function getKind() {
975    return $this->kind;
976  }
977  public function setPrimaryEmail($primaryEmail) {
978    $this->primaryEmail = $primaryEmail;
979  }
980  public function getPrimaryEmail() {
981    return $this->primaryEmail;
982  }
983}
984
985class Google_Aliases extends Google_Model {
986  protected $__aliasesType = 'Google_Alias';
987  protected $__aliasesDataType = 'array';
988  public $aliases;
989  public $kind;
990  public function setAliases(/* array(Google_Alias) */ $aliases) {
991    $this->assertIsArray($aliases, 'Google_Alias', __METHOD__);
992    $this->aliases = $aliases;
993  }
994  public function getAliases() {
995    return $this->aliases;
996  }
997  public function setKind($kind) {
998    $this->kind = $kind;
999  }
1000  public function getKind() {
1001    return $this->kind;
1002  }
1003}
1004
1005class Google_ChromeOsDevice extends Google_Model {
1006  public $annotatedLocation;
1007  public $annotatedUser;
1008  public $bootMode;
1009  public $deviceId;
1010  public $firmwareVersion;
1011  public $kind;
1012  public $lastEnrollmentTime;
1013  public $lastSync;
1014  public $macAddress;
1015  public $meid;
1016  public $model;
1017  public $notes;
1018  public $orderNumber;
1019  public $orgUnitPath;
1020  public $osVersion;
1021  public $platformVersion;
1022  public $serialNumber;
1023  public $status;
1024  public $supportEndDate;
1025  public $willAutoRenew;
1026  public function setAnnotatedLocation($annotatedLocation) {
1027    $this->annotatedLocation = $annotatedLocation;
1028  }
1029  public function getAnnotatedLocation() {
1030    return $this->annotatedLocation;
1031  }
1032  public function setAnnotatedUser($annotatedUser) {
1033    $this->annotatedUser = $annotatedUser;
1034  }
1035  public function getAnnotatedUser() {
1036    return $this->annotatedUser;
1037  }
1038  public function setBootMode($bootMode) {
1039    $this->bootMode = $bootMode;
1040  }
1041  public function getBootMode() {
1042    return $this->bootMode;
1043  }
1044  public function setDeviceId($deviceId) {
1045    $this->deviceId = $deviceId;
1046  }
1047  public function getDeviceId() {
1048    return $this->deviceId;
1049  }
1050  public function setFirmwareVersion($firmwareVersion) {
1051    $this->firmwareVersion = $firmwareVersion;
1052  }
1053  public function getFirmwareVersion() {
1054    return $this->firmwareVersion;
1055  }
1056  public function setKind($kind) {
1057    $this->kind = $kind;
1058  }
1059  public function getKind() {
1060    return $this->kind;
1061  }
1062  public function setLastEnrollmentTime($lastEnrollmentTime) {
1063    $this->lastEnrollmentTime = $lastEnrollmentTime;
1064  }
1065  public function getLastEnrollmentTime() {
1066    return $this->lastEnrollmentTime;
1067  }
1068  public function setLastSync($lastSync) {
1069    $this->lastSync = $lastSync;
1070  }
1071  public function getLastSync() {
1072    return $this->lastSync;
1073  }
1074  public function setMacAddress($macAddress) {
1075    $this->macAddress = $macAddress;
1076  }
1077  public function getMacAddress() {
1078    return $this->macAddress;
1079  }
1080  public function setMeid($meid) {
1081    $this->meid = $meid;
1082  }
1083  public function getMeid() {
1084    return $this->meid;
1085  }
1086  public function setModel($model) {
1087    $this->model = $model;
1088  }
1089  public function getModel() {
1090    return $this->model;
1091  }
1092  public function setNotes($notes) {
1093    $this->notes = $notes;
1094  }
1095  public function getNotes() {
1096    return $this->notes;
1097  }
1098  public function setOrderNumber($orderNumber) {
1099    $this->orderNumber = $orderNumber;
1100  }
1101  public function getOrderNumber() {
1102    return $this->orderNumber;
1103  }
1104  public function setOrgUnitPath($orgUnitPath) {
1105    $this->orgUnitPath = $orgUnitPath;
1106  }
1107  public function getOrgUnitPath() {
1108    return $this->orgUnitPath;
1109  }
1110  public function setOsVersion($osVersion) {
1111    $this->osVersion = $osVersion;
1112  }
1113  public function getOsVersion() {
1114    return $this->osVersion;
1115  }
1116  public function setPlatformVersion($platformVersion) {
1117    $this->platformVersion = $platformVersion;
1118  }
1119  public function getPlatformVersion() {
1120    return $this->platformVersion;
1121  }
1122  public function setSerialNumber($serialNumber) {
1123    $this->serialNumber = $serialNumber;
1124  }
1125  public function getSerialNumber() {
1126    return $this->serialNumber;
1127  }
1128  public function setStatus($status) {
1129    $this->status = $status;
1130  }
1131  public function getStatus() {
1132    return $this->status;
1133  }
1134  public function setSupportEndDate($supportEndDate) {
1135    $this->supportEndDate = $supportEndDate;
1136  }
1137  public function getSupportEndDate() {
1138    return $this->supportEndDate;
1139  }
1140  public function setWillAutoRenew($willAutoRenew) {
1141    $this->willAutoRenew = $willAutoRenew;
1142  }
1143  public function getWillAutoRenew() {
1144    return $this->willAutoRenew;
1145  }
1146}
1147
1148class Google_ChromeOsDevices extends Google_Model {
1149  protected $__chromeosdevicesType = 'Google_ChromeOsDevice';
1150  protected $__chromeosdevicesDataType = 'array';
1151  public $chromeosdevices;
1152  public $kind;
1153  public $nextPageToken;
1154  public function setChromeosdevices(/* array(Google_ChromeOsDevice) */ $chromeosdevices) {
1155    $this->assertIsArray($chromeosdevices, 'Google_ChromeOsDevice', __METHOD__);
1156    $this->chromeosdevices = $chromeosdevices;
1157  }
1158  public function getChromeosdevices() {
1159    return $this->chromeosdevices;
1160  }
1161  public function setKind($kind) {
1162    $this->kind = $kind;
1163  }
1164  public function getKind() {
1165    return $this->kind;
1166  }
1167  public function setNextPageToken($nextPageToken) {
1168    $this->nextPageToken = $nextPageToken;
1169  }
1170  public function getNextPageToken() {
1171    return $this->nextPageToken;
1172  }
1173}
1174
1175class Google_Group extends Google_Model {
1176  public $adminCreated;
1177  public $aliases;
1178  public $description;
1179  public $email;
1180  public $id;
1181  public $kind;
1182  public $name;
1183  public $nonEditableAliases;
1184  public function setAdminCreated($adminCreated) {
1185    $this->adminCreated = $adminCreated;
1186  }
1187  public function getAdminCreated() {
1188    return $this->adminCreated;
1189  }
1190  public function setAliases(/* array(Google_string) */ $aliases) {
1191    $this->assertIsArray($aliases, 'Google_string', __METHOD__);
1192    $this->aliases = $aliases;
1193  }
1194  public function getAliases() {
1195    return $this->aliases;
1196  }
1197  public function setDescription($description) {
1198    $this->description = $description;
1199  }
1200  public function getDescription() {
1201    return $this->description;
1202  }
1203  public function setEmail($email) {
1204    $this->email = $email;
1205  }
1206  public function getEmail() {
1207    return $this->email;
1208  }
1209  public function setId($id) {
1210    $this->id = $id;
1211  }
1212  public function getId() {
1213    return $this->id;
1214  }
1215  public function setKind($kind) {
1216    $this->kind = $kind;
1217  }
1218  public function getKind() {
1219    return $this->kind;
1220  }
1221  public function setName($name) {
1222    $this->name = $name;
1223  }
1224  public function getName() {
1225    return $this->name;
1226  }
1227  public function setNonEditableAliases(/* array(Google_string) */ $nonEditableAliases) {
1228    $this->assertIsArray($nonEditableAliases, 'Google_string', __METHOD__);
1229    $this->nonEditableAliases = $nonEditableAliases;
1230  }
1231  public function getNonEditableAliases() {
1232    return $this->nonEditableAliases;
1233  }
1234}
1235
1236class Google_Groups extends Google_Model {
1237  protected $__groupsType = 'Google_Group';
1238  protected $__groupsDataType = 'array';
1239  public $groups;
1240  public $kind;
1241  public $nextPageToken;
1242  public function setGroups(/* array(Google_Group) */ $groups) {
1243    $this->assertIsArray($groups, 'Google_Group', __METHOD__);
1244    $this->groups = $groups;
1245  }
1246  public function getGroups() {
1247    return $this->groups;
1248  }
1249  public function setKind($kind) {
1250    $this->kind = $kind;
1251  }
1252  public function getKind() {
1253    return $this->kind;
1254  }
1255  public function setNextPageToken($nextPageToken) {
1256    $this->nextPageToken = $nextPageToken;
1257  }
1258  public function getNextPageToken() {
1259    return $this->nextPageToken;
1260  }
1261}
1262
1263class Google_Member extends Google_Model {
1264  public $email;
1265  public $id;
1266  public $kind;
1267  public $role;
1268  public $type;
1269  public function setEmail($email) {
1270    $this->email = $email;
1271  }
1272  public function getEmail() {
1273    return $this->email;
1274  }
1275  public function setId($id) {
1276    $this->id = $id;
1277  }
1278  public function getId() {
1279    return $this->id;
1280  }
1281  public function setKind($kind) {
1282    $this->kind = $kind;
1283  }
1284  public function getKind() {
1285    return $this->kind;
1286  }
1287  public function setRole($role) {
1288    $this->role = $role;
1289  }
1290  public function getRole() {
1291    return $this->role;
1292  }
1293  public function setType($type) {
1294    $this->type = $type;
1295  }
1296  public function getType() {
1297    return $this->type;
1298  }
1299}
1300
1301class Google_Members extends Google_Model {
1302  public $kind;
1303  protected $__membersType = 'Google_Member';
1304  protected $__membersDataType = 'array';
1305  public $members;
1306  public $nextPageToken;
1307  public function setKind($kind) {
1308    $this->kind = $kind;
1309  }
1310  public function getKind() {
1311    return $this->kind;
1312  }
1313  public function setMembers(/* array(Google_Member) */ $members) {
1314    $this->assertIsArray($members, 'Google_Member', __METHOD__);
1315    $this->members = $members;
1316  }
1317  public function getMembers() {
1318    return $this->members;
1319  }
1320  public function setNextPageToken($nextPageToken) {
1321    $this->nextPageToken = $nextPageToken;
1322  }
1323  public function getNextPageToken() {
1324    return $this->nextPageToken;
1325  }
1326}
1327
1328class Google_MobileDevice extends Google_Model {
1329  protected $__applicationsType = 'Google_MobileDeviceApplications';
1330  protected $__applicationsDataType = 'array';
1331  public $applications;
1332  public $deviceId;
1333  public $email;
1334  public $firstSync;
1335  public $hardwareId;
1336  public $kind;
1337  public $lastSync;
1338  public $model;
1339  public $name;
1340  public $os;
1341  public $resourceId;
1342  public $status;
1343  public $type;
1344  public $userAgent;
1345  public function setApplications(/* array(Google_MobileDeviceApplications) */ $applications) {
1346    $this->assertIsArray($applications, 'Google_MobileDeviceApplications', __METHOD__);
1347    $this->applications = $applications;
1348  }
1349  public function getApplications() {
1350    return $this->applications;
1351  }
1352  public function setDeviceId($deviceId) {
1353    $this->deviceId = $deviceId;
1354  }
1355  public function getDeviceId() {
1356    return $this->deviceId;
1357  }
1358  public function setEmail(/* array(Google_string) */ $email) {
1359    $this->assertIsArray($email, 'Google_string', __METHOD__);
1360    $this->email = $email;
1361  }
1362  public function getEmail() {
1363    return $this->email;
1364  }
1365  public function setFirstSync($firstSync) {
1366    $this->firstSync = $firstSync;
1367  }
1368  public function getFirstSync() {
1369    return $this->firstSync;
1370  }
1371  public function setHardwareId($hardwareId) {
1372    $this->hardwareId = $hardwareId;
1373  }
1374  public function getHardwareId() {
1375    return $this->hardwareId;
1376  }
1377  public function setKind($kind) {
1378    $this->kind = $kind;
1379  }
1380  public function getKind() {
1381    return $this->kind;
1382  }
1383  public function setLastSync($lastSync) {
1384    $this->lastSync = $lastSync;
1385  }
1386  public function getLastSync() {
1387    return $this->lastSync;
1388  }
1389  public function setModel($model) {
1390    $this->model = $model;
1391  }
1392  public function getModel() {
1393    return $this->model;
1394  }
1395  public function setName(/* array(Google_string) */ $name) {
1396    $this->assertIsArray($name, 'Google_string', __METHOD__);
1397    $this->name = $name;
1398  }
1399  public function getName() {
1400    return $this->name;
1401  }
1402  public function setOs($os) {
1403    $this->os = $os;
1404  }
1405  public function getOs() {
1406    return $this->os;
1407  }
1408  public function setResourceId($resourceId) {
1409    $this->resourceId = $resourceId;
1410  }
1411  public function getResourceId() {
1412    return $this->resourceId;
1413  }
1414  public function setStatus($status) {
1415    $this->status = $status;
1416  }
1417  public function getStatus() {
1418    return $this->status;
1419  }
1420  public function setType($type) {
1421    $this->type = $type;
1422  }
1423  public function getType() {
1424    return $this->type;
1425  }
1426  public function setUserAgent($userAgent) {
1427    $this->userAgent = $userAgent;
1428  }
1429  public function getUserAgent() {
1430    return $this->userAgent;
1431  }
1432}
1433
1434class Google_MobileDeviceAction extends Google_Model {
1435  public $action;
1436  public function setAction($action) {
1437    $this->action = $action;
1438  }
1439  public function getAction() {
1440    return $this->action;
1441  }
1442}
1443
1444class Google_MobileDeviceApplications extends Google_Model {
1445  public $displayName;
1446  public $packageName;
1447  public $permission;
1448  public $versionCode;
1449  public $versionName;
1450  public function setDisplayName($displayName) {
1451    $this->displayName = $displayName;
1452  }
1453  public function getDisplayName() {
1454    return $this->displayName;
1455  }
1456  public function setPackageName($packageName) {
1457    $this->packageName = $packageName;
1458  }
1459  public function getPackageName() {
1460    return $this->packageName;
1461  }
1462  public function setPermission(/* array(Google_string) */ $permission) {
1463    $this->assertIsArray($permission, 'Google_string', __METHOD__);
1464    $this->permission = $permission;
1465  }
1466  public function getPermission() {
1467    return $this->permission;
1468  }
1469  public function setVersionCode($versionCode) {
1470    $this->versionCode = $versionCode;
1471  }
1472  public function getVersionCode() {
1473    return $this->versionCode;
1474  }
1475  public function setVersionName($versionName) {
1476    $this->versionName = $versionName;
1477  }
1478  public function getVersionName() {
1479    return $this->versionName;
1480  }
1481}
1482
1483class Google_MobileDevices extends Google_Model {
1484  public $kind;
1485  protected $__mobiledevicesType = 'Google_MobileDevice';
1486  protected $__mobiledevicesDataType = 'array';
1487  public $mobiledevices;
1488  public $nextPageToken;
1489  public function setKind($kind) {
1490    $this->kind = $kind;
1491  }
1492  public function getKind() {
1493    return $this->kind;
1494  }
1495  public function setMobiledevices(/* array(Google_MobileDevice) */ $mobiledevices) {
1496    $this->assertIsArray($mobiledevices, 'Google_MobileDevice', __METHOD__);
1497    $this->mobiledevices = $mobiledevices;
1498  }
1499  public function getMobiledevices() {
1500    return $this->mobiledevices;
1501  }
1502  public function setNextPageToken($nextPageToken) {
1503    $this->nextPageToken = $nextPageToken;
1504  }
1505  public function getNextPageToken() {
1506    return $this->nextPageToken;
1507  }
1508}
1509
1510class Google_OrgUnit extends Google_Model {
1511  public $blockInheritance;
1512  public $description;
1513  public $kind;
1514  public $name;
1515  public $orgUnitPath;
1516  public $parentOrgUnitPath;
1517  public function setBlockInheritance($blockInheritance) {
1518    $this->blockInheritance = $blockInheritance;
1519  }
1520  public function getBlockInheritance() {
1521    return $this->blockInheritance;
1522  }
1523  public function setDescription($description) {
1524    $this->description = $description;
1525  }
1526  public function getDescription() {
1527    return $this->description;
1528  }
1529  public function setKind($kind) {
1530    $this->kind = $kind;
1531  }
1532  public function getKind() {
1533    return $this->kind;
1534  }
1535  public function setName($name) {
1536    $this->name = $name;
1537  }
1538  public function getName() {
1539    return $this->name;
1540  }
1541  public function setOrgUnitPath($orgUnitPath) {
1542    $this->orgUnitPath = $orgUnitPath;
1543  }
1544  public function getOrgUnitPath() {
1545    return $this->orgUnitPath;
1546  }
1547  public function setParentOrgUnitPath($parentOrgUnitPath) {
1548    $this->parentOrgUnitPath = $parentOrgUnitPath;
1549  }
1550  public function getParentOrgUnitPath() {
1551    return $this->parentOrgUnitPath;
1552  }
1553}
1554
1555class Google_OrgUnits extends Google_Model {
1556  public $kind;
1557  protected $__organizationUnitsType = 'Google_OrgUnit';
1558  protected $__organizationUnitsDataType = 'array';
1559  public $organizationUnits;
1560  public function setKind($kind) {
1561    $this->kind = $kind;
1562  }
1563  public function getKind() {
1564    return $this->kind;
1565  }
1566  public function setOrganizationUnits(/* array(Google_OrgUnit) */ $organizationUnits) {
1567    $this->assertIsArray($organizationUnits, 'Google_OrgUnit', __METHOD__);
1568    $this->organizationUnits = $organizationUnits;
1569  }
1570  public function getOrganizationUnits() {
1571    return $this->organizationUnits;
1572  }
1573}
1574
1575class Google_User extends Google_Model {
1576  protected $__addressesType = 'Google_UserAddress';
1577  protected $__addressesDataType = 'array';
1578  public $addresses;
1579  public $agreedToTerms;
1580  public $aliases;
1581  public $changePasswordAtNextLogin;
1582  public $creationTime;
1583  public $customerId;
1584  protected $__emailsType = 'Google_UserEmail';
1585  protected $__emailsDataType = 'array';
1586  public $emails;
1587  protected $__externalIdsType = 'Google_UserExternalId';
1588  protected $__externalIdsDataType = 'array';
1589  public $externalIds;
1590  public $hashFunction;
1591  public $id;
1592  protected $__imsType = 'Google_UserIm';
1593  protected $__imsDataType = 'array';
1594  public $ims;
1595  public $includeInGlobalAddressList;
1596  public $ipWhitelisted;
1597  public $isAdmin;
1598  public $isDelegatedAdmin;
1599  public $isMailboxSetup;
1600  public $kind;
1601  public $lastLoginTime;
1602  protected $__nameType = 'Google_UserName';
1603  protected $__nameDataType = '';
1604  public $name;
1605  public $nonEditableAliases;
1606  public $orgUnitPath;
1607  protected $__organizationsType = 'Google_UserOrganization';
1608  protected $__organizationsDataType = 'array';
1609  public $organizations;
1610  public $password;
1611  protected $__phonesType = 'Google_UserPhone';
1612  protected $__phonesDataType = 'array';
1613  public $phones;
1614  public $primaryEmail;
1615  protected $__relationsType = 'Google_UserRelation';
1616  protected $__relationsDataType = 'array';
1617  public $relations;
1618  public $suspended;
1619  public $suspensionReason;
1620  public $thumbnailPhotoUrl;
1621  public function setAddresses(/* array(Google_UserAddress) */ $addresses) {
1622    $this->assertIsArray($addresses, 'Google_UserAddress', __METHOD__);
1623    $this->addresses = $addresses;
1624  }
1625  public function getAddresses() {
1626    return $this->addresses;
1627  }
1628  public function setAgreedToTerms($agreedToTerms) {
1629    $this->agreedToTerms = $agreedToTerms;
1630  }
1631  public function getAgreedToTerms() {
1632    return $this->agreedToTerms;
1633  }
1634  public function setAliases(/* array(Google_string) */ $aliases) {
1635    $this->assertIsArray($aliases, 'Google_string', __METHOD__);
1636    $this->aliases = $aliases;
1637  }
1638  public function getAliases() {
1639    return $this->aliases;
1640  }
1641  public function setChangePasswordAtNextLogin($changePasswordAtNextLogin) {
1642    $this->changePasswordAtNextLogin = $changePasswordAtNextLogin;
1643  }
1644  public function getChangePasswordAtNextLogin() {
1645    return $this->changePasswordAtNextLogin;
1646  }
1647  public function setCreationTime($creationTime) {
1648    $this->creationTime = $creationTime;
1649  }
1650  public function getCreationTime() {
1651    return $this->creationTime;
1652  }
1653  public function setCustomerId($customerId) {
1654    $this->customerId = $customerId;
1655  }
1656  public function getCustomerId() {
1657    return $this->customerId;
1658  }
1659  public function setEmails(/* array(Google_UserEmail) */ $emails) {
1660    $this->assertIsArray($emails, 'Google_UserEmail', __METHOD__);
1661    $this->emails = $emails;
1662  }
1663  public function getEmails() {
1664    return $this->emails;
1665  }
1666  public function setExternalIds(/* array(Google_UserExternalId) */ $externalIds) {
1667    $this->assertIsArray($externalIds, 'Google_UserExternalId', __METHOD__);
1668    $this->externalIds = $externalIds;
1669  }
1670  public function getExternalIds() {
1671    return $this->externalIds;
1672  }
1673  public function setHashFunction($hashFunction) {
1674    $this->hashFunction = $hashFunction;
1675  }
1676  public function getHashFunction() {
1677    return $this->hashFunction;
1678  }
1679  public function setId($id) {
1680    $this->id = $id;
1681  }
1682  public function getId() {
1683    return $this->id;
1684  }
1685  public function setIms(/* array(Google_UserIm) */ $ims) {
1686    $this->assertIsArray($ims, 'Google_UserIm', __METHOD__);
1687    $this->ims = $ims;
1688  }
1689  public function getIms() {
1690    return $this->ims;
1691  }
1692  public function setIncludeInGlobalAddressList($includeInGlobalAddressList) {
1693    $this->includeInGlobalAddressList = $includeInGlobalAddressList;
1694  }
1695  public function getIncludeInGlobalAddressList() {
1696    return $this->includeInGlobalAddressList;
1697  }
1698  public function setIpWhitelisted($ipWhitelisted) {
1699    $this->ipWhitelisted = $ipWhitelisted;
1700  }
1701  public function getIpWhitelisted() {
1702    return $this->ipWhitelisted;
1703  }
1704  public function setIsAdmin($isAdmin) {
1705    $this->isAdmin = $isAdmin;
1706  }
1707  public function getIsAdmin() {
1708    return $this->isAdmin;
1709  }
1710  public function setIsDelegatedAdmin($isDelegatedAdmin) {
1711    $this->isDelegatedAdmin = $isDelegatedAdmin;
1712  }
1713  public function getIsDelegatedAdmin() {
1714    return $this->isDelegatedAdmin;
1715  }
1716  public function setIsMailboxSetup($isMailboxSetup) {
1717    $this->isMailboxSetup = $isMailboxSetup;
1718  }
1719  public function getIsMailboxSetup() {
1720    return $this->isMailboxSetup;
1721  }
1722  public function setKind($kind) {
1723    $this->kind = $kind;
1724  }
1725  public function getKind() {
1726    return $this->kind;
1727  }
1728  public function setLastLoginTime($lastLoginTime) {
1729    $this->lastLoginTime = $lastLoginTime;
1730  }
1731  public function getLastLoginTime() {
1732    return $this->lastLoginTime;
1733  }
1734  public function setName(Google_UserName $name) {
1735    $this->name = $name;
1736  }
1737  public function getName() {
1738    return $this->name;
1739  }
1740  public function setNonEditableAliases(/* array(Google_string) */ $nonEditableAliases) {
1741    $this->assertIsArray($nonEditableAliases, 'Google_string', __METHOD__);
1742    $this->nonEditableAliases = $nonEditableAliases;
1743  }
1744  public function getNonEditableAliases() {
1745    return $this->nonEditableAliases;
1746  }
1747  public function setOrgUnitPath($orgUnitPath) {
1748    $this->orgUnitPath = $orgUnitPath;
1749  }
1750  public function getOrgUnitPath() {
1751    return $this->orgUnitPath;
1752  }
1753  public function setOrganizations(/* array(Google_UserOrganization) */ $organizations) {
1754    $this->assertIsArray($organizations, 'Google_UserOrganization', __METHOD__);
1755    $this->organizations = $organizations;
1756  }
1757  public function getOrganizations() {
1758    return $this->organizations;
1759  }
1760  public function setPassword($password) {
1761    $this->password = $password;
1762  }
1763  public function getPassword() {
1764    return $this->password;
1765  }
1766  public function setPhones(/* array(Google_UserPhone) */ $phones) {
1767    $this->assertIsArray($phones, 'Google_UserPhone', __METHOD__);
1768    $this->phones = $phones;
1769  }
1770  public function getPhones() {
1771    return $this->phones;
1772  }
1773  public function setPrimaryEmail($primaryEmail) {
1774    $this->primaryEmail = $primaryEmail;
1775  }
1776  public function getPrimaryEmail() {
1777    return $this->primaryEmail;
1778  }
1779  public function setRelations(/* array(Google_UserRelation) */ $relations) {
1780    $this->assertIsArray($relations, 'Google_UserRelation', __METHOD__);
1781    $this->relations = $relations;
1782  }
1783  public function getRelations() {
1784    return $this->relations;
1785  }
1786  public function setSuspended($suspended) {
1787    $this->suspended = $suspended;
1788  }
1789  public function getSuspended() {
1790    return $this->suspended;
1791  }
1792  public function setSuspensionReason($suspensionReason) {
1793    $this->suspensionReason = $suspensionReason;
1794  }
1795  public function getSuspensionReason() {
1796    return $this->suspensionReason;
1797  }
1798  public function setThumbnailPhotoUrl($thumbnailPhotoUrl) {
1799    $this->thumbnailPhotoUrl = $thumbnailPhotoUrl;
1800  }
1801  public function getThumbnailPhotoUrl() {
1802    return $this->thumbnailPhotoUrl;
1803  }
1804}
1805
1806class Google_UserAddress extends Google_Model {
1807  public $country;
1808  public $countryCode;
1809  public $customType;
1810  public $extendedAddress;
1811  public $formatted;
1812  public $locality;
1813  public $poBox;
1814  public $postalCode;
1815  public $primary;
1816  public $region;
1817  public $sourceIsStructured;
1818  public $streetAddress;
1819  public $type;
1820  public function setCountry($country) {
1821    $this->country = $country;
1822  }
1823  public function getCountry() {
1824    return $this->country;
1825  }
1826  public function setCountryCode($countryCode) {
1827    $this->countryCode = $countryCode;
1828  }
1829  public function getCountryCode() {
1830    return $this->countryCode;
1831  }
1832  public function setCustomType($customType) {
1833    $this->customType = $customType;
1834  }
1835  public function getCustomType() {
1836    return $this->customType;
1837  }
1838  public function setExtendedAddress($extendedAddress) {
1839    $this->extendedAddress = $extendedAddress;
1840  }
1841  public function getExtendedAddress() {
1842    return $this->extendedAddress;
1843  }
1844  public function setFormatted($formatted) {
1845    $this->formatted = $formatted;
1846  }
1847  public function getFormatted() {
1848    return $this->formatted;
1849  }
1850  public function setLocality($locality) {
1851    $this->locality = $locality;
1852  }
1853  public function getLocality() {
1854    return $this->locality;
1855  }
1856  public function setPoBox($poBox) {
1857    $this->poBox = $poBox;
1858  }
1859  public function getPoBox() {
1860    return $this->poBox;
1861  }
1862  public function setPostalCode($postalCode) {
1863    $this->postalCode = $postalCode;
1864  }
1865  public function getPostalCode() {
1866    return $this->postalCode;
1867  }
1868  public function setPrimary($primary) {
1869    $this->primary = $primary;
1870  }
1871  public function getPrimary() {
1872    return $this->primary;
1873  }
1874  public function setRegion($region) {
1875    $this->region = $region;
1876  }
1877  public function getRegion() {
1878    return $this->region;
1879  }
1880  public function setSourceIsStructured($sourceIsStructured) {
1881    $this->sourceIsStructured = $sourceIsStructured;
1882  }
1883  public function getSourceIsStructured() {
1884    return $this->sourceIsStructured;
1885  }
1886  public function setStreetAddress($streetAddress) {
1887    $this->streetAddress = $streetAddress;
1888  }
1889  public function getStreetAddress() {
1890    return $this->streetAddress;
1891  }
1892  public function setType($type) {
1893    $this->type = $type;
1894  }
1895  public function getType() {
1896    return $this->type;
1897  }
1898}
1899
1900class Google_UserEmail extends Google_Model {
1901  public $address;
1902  public $customType;
1903  public $primary;
1904  public $type;
1905  public function setAddress($address) {
1906    $this->address = $address;
1907  }
1908  public function getAddress() {
1909    return $this->address;
1910  }
1911  public function setCustomType($customType) {
1912    $this->customType = $customType;
1913  }
1914  public function getCustomType() {
1915    return $this->customType;
1916  }
1917  public function setPrimary($primary) {
1918    $this->primary = $primary;
1919  }
1920  public function getPrimary() {
1921    return $this->primary;
1922  }
1923  public function setType($type) {
1924    $this->type = $type;
1925  }
1926  public function getType() {
1927    return $this->type;
1928  }
1929}
1930
1931class Google_UserExternalId extends Google_Model {
1932  public $customType;
1933  public $type;
1934  public $value;
1935  public function setCustomType($customType) {
1936    $this->customType = $customType;
1937  }
1938  public function getCustomType() {
1939    return $this->customType;
1940  }
1941  public function setType($type) {
1942    $this->type = $type;
1943  }
1944  public function getType() {
1945    return $this->type;
1946  }
1947  public function setValue($value) {
1948    $this->value = $value;
1949  }
1950  public function getValue() {
1951    return $this->value;
1952  }
1953}
1954
1955class Google_UserIm extends Google_Model {
1956  public $customProtocol;
1957  public $customType;
1958  public $im;
1959  public $primary;
1960  public $protocol;
1961  public $type;
1962  public function setCustomProtocol($customProtocol) {
1963    $this->customProtocol = $customProtocol;
1964  }
1965  public function getCustomProtocol() {
1966    return $this->customProtocol;
1967  }
1968  public function setCustomType($customType) {
1969    $this->customType = $customType;
1970  }
1971  public function getCustomType() {
1972    return $this->customType;
1973  }
1974  public function setIm($im) {
1975    $this->im = $im;
1976  }
1977  public function getIm() {
1978    return $this->im;
1979  }
1980  public function setPrimary($primary) {
1981    $this->primary = $primary;
1982  }
1983  public function getPrimary() {
1984    return $this->primary;
1985  }
1986  public function setProtocol($protocol) {
1987    $this->protocol = $protocol;
1988  }
1989  public function getProtocol() {
1990    return $this->protocol;
1991  }
1992  public function setType($type) {
1993    $this->type = $type;
1994  }
1995  public function getType() {
1996    return $this->type;
1997  }
1998}
1999
2000class Google_UserMakeAdmin extends Google_Model {
2001  public $status;
2002  public function setStatus($status) {
2003    $this->status = $status;
2004  }
2005  public function getStatus() {
2006    return $this->status;
2007  }
2008}
2009
2010class Google_UserName extends Google_Model {
2011  public $familyName;
2012  public $fullName;
2013  public $givenName;
2014  public function setFamilyName($familyName) {
2015    $this->familyName = $familyName;
2016  }
2017  public function getFamilyName() {
2018    return $this->familyName;
2019  }
2020  public function setFullName($fullName) {
2021    $this->fullName = $fullName;
2022  }
2023  public function getFullName() {
2024    return $this->fullName;
2025  }
2026  public function setGivenName($givenName) {
2027    $this->givenName = $givenName;
2028  }
2029  public function getGivenName() {
2030    return $this->givenName;
2031  }
2032}
2033
2034class Google_UserOrganization extends Google_Model {
2035  public $costCenter;
2036  public $customType;
2037  public $department;
2038  public $description;
2039  public $domain;
2040  public $location;
2041  public $name;
2042  public $primary;
2043  public $symbol;
2044  public $title;
2045  public $type;
2046  public function setCostCenter($costCenter) {
2047    $this->costCenter = $costCenter;
2048  }
2049  public function getCostCenter() {
2050    return $this->costCenter;
2051  }
2052  public function setCustomType($customType) {
2053    $this->customType = $customType;
2054  }
2055  public function getCustomType() {
2056    return $this->customType;
2057  }
2058  public function setDepartment($department) {
2059    $this->department = $department;
2060  }
2061  public function getDepartment() {
2062    return $this->department;
2063  }
2064  public function setDescription($description) {
2065    $this->description = $description;
2066  }
2067  public function getDescription() {
2068    return $this->description;
2069  }
2070  public function setDomain($domain) {
2071    $this->domain = $domain;
2072  }
2073  public function getDomain() {
2074    return $this->domain;
2075  }
2076  public function setLocation($location) {
2077    $this->location = $location;
2078  }
2079  public function getLocation() {
2080    return $this->location;
2081  }
2082  public function setName($name) {
2083    $this->name = $name;
2084  }
2085  public function getName() {
2086    return $this->name;
2087  }
2088  public function setPrimary($primary) {
2089    $this->primary = $primary;
2090  }
2091  public function getPrimary() {
2092    return $this->primary;
2093  }
2094  public function setSymbol($symbol) {
2095    $this->symbol = $symbol;
2096  }
2097  public function getSymbol() {
2098    return $this->symbol;
2099  }
2100  public function setTitle($title) {
2101    $this->title = $title;
2102  }
2103  public function getTitle() {
2104    return $this->title;
2105  }
2106  public function setType($type) {
2107    $this->type = $type;
2108  }
2109  public function getType() {
2110    return $this->type;
2111  }
2112}
2113
2114class Google_UserPhone extends Google_Model {
2115  public $customType;
2116  public $primary;
2117  public $type;
2118  public $value;
2119  public function setCustomType($customType) {
2120    $this->customType = $customType;
2121  }
2122  public function getCustomType() {
2123    return $this->customType;
2124  }
2125  public function setPrimary($primary) {
2126    $this->primary = $primary;
2127  }
2128  public function getPrimary() {
2129    return $this->primary;
2130  }
2131  public function setType($type) {
2132    $this->type = $type;
2133  }
2134  public function getType() {
2135    return $this->type;
2136  }
2137  public function setValue($value) {
2138    $this->value = $value;
2139  }
2140  public function getValue() {
2141    return $this->value;
2142  }
2143}
2144
2145class Google_UserPhoto extends Google_Model {
2146  public $height;
2147  public $id;
2148  public $kind;
2149  public $mimeType;
2150  public $photoData;
2151  public $primaryEmail;
2152  public $width;
2153  public function setHeight($height) {
2154    $this->height = $height;
2155  }
2156  public function getHeight() {
2157    return $this->height;
2158  }
2159  public function setId($id) {
2160    $this->id = $id;
2161  }
2162  public function getId() {
2163    return $this->id;
2164  }
2165  public function setKind($kind) {
2166    $this->kind = $kind;
2167  }
2168  public function getKind() {
2169    return $this->kind;
2170  }
2171  public function setMimeType($mimeType) {
2172    $this->mimeType = $mimeType;
2173  }
2174  public function getMimeType() {
2175    return $this->mimeType;
2176  }
2177  public function setPhotoData($photoData) {
2178    $this->photoData = $photoData;
2179  }
2180  public function getPhotoData() {
2181    return $this->photoData;
2182  }
2183  public function setPrimaryEmail($primaryEmail) {
2184    $this->primaryEmail = $primaryEmail;
2185  }
2186  public function getPrimaryEmail() {
2187    return $this->primaryEmail;
2188  }
2189  public function setWidth($width) {
2190    $this->width = $width;
2191  }
2192  public function getWidth() {
2193    return $this->width;
2194  }
2195}
2196
2197class Google_UserRelation extends Google_Model {
2198  public $customType;
2199  public $type;
2200  public $value;
2201  public function setCustomType($customType) {
2202    $this->customType = $customType;
2203  }
2204  public function getCustomType() {
2205    return $this->customType;
2206  }
2207  public function setType($type) {
2208    $this->type = $type;
2209  }
2210  public function getType() {
2211    return $this->type;
2212  }
2213  public function setValue($value) {
2214    $this->value = $value;
2215  }
2216  public function getValue() {
2217    return $this->value;
2218  }
2219}
2220
2221class Google_UserUndelete extends Google_Model {
2222  public $orgUnitPath;
2223  public function setOrgUnitPath($orgUnitPath) {
2224    $this->orgUnitPath = $orgUnitPath;
2225  }
2226  public function getOrgUnitPath() {
2227    return $this->orgUnitPath;
2228  }
2229}
2230
2231class Google_Users extends Google_Model {
2232  public $kind;
2233  public $nextPageToken;
2234  public $trigger_event;
2235  protected $__usersType = 'Google_User';
2236  protected $__usersDataType = 'array';
2237  public $users;
2238  public function setKind($kind) {
2239    $this->kind = $kind;
2240  }
2241  public function getKind() {
2242    return $this->kind;
2243  }
2244  public function setNextPageToken($nextPageToken) {
2245    $this->nextPageToken = $nextPageToken;
2246  }
2247  public function getNextPageToken() {
2248    return $this->nextPageToken;
2249  }
2250  public function setTrigger_event($trigger_event) {
2251    $this->trigger_event = $trigger_event;
2252  }
2253  public function getTrigger_event() {
2254    return $this->trigger_event;
2255  }
2256  public function setUsers(/* array(Google_User) */ $users) {
2257    $this->assertIsArray($users, 'Google_User', __METHOD__);
2258    $this->users = $users;
2259  }
2260  public function getUsers() {
2261    return $this->users;
2262  }
2263}
2264