/src/Google/Service/Directory.php
PHP | 5127 lines | 3739 code | 544 blank | 844 comment | 0 complexity | 1a7300157aa6ffe76d40b43c8fbfbc6b MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php
- /*
- * Copyright 2010 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- /**
- * Service definition for Directory (directory_v1).
- *
- * <p>
- * The Admin SDK Directory API lets you view and manage enterprise resources such as users and groups, administrative notifications, security features, and more.
- * </p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_Directory extends Google_Service
- {
- /** View and manage your Chrome OS devices' metadata. */
- const ADMIN_DIRECTORY_DEVICE_CHROMEOS = "https://www.googleapis.com/auth/admin.directory.device.chromeos";
- /** View your Chrome OS devices' metadata. */
- const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
- /** View and manage your mobile devices' metadata. */
- const ADMIN_DIRECTORY_DEVICE_MOBILE = "https://www.googleapis.com/auth/admin.directory.device.mobile";
- /** Manage your mobile devices by performing administrative tasks. */
- const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
- /** View your mobile devices' metadata. */
- const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
- /** View and manage the provisioning of groups on your domain. */
- const ADMIN_DIRECTORY_GROUP = "https://www.googleapis.com/auth/admin.directory.group";
- /** View and manage group subscriptions on your domain. */
- const ADMIN_DIRECTORY_GROUP_MEMBER = "https://www.googleapis.com/auth/admin.directory.group.member";
- /** View group subscriptions on your domain. */
- const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
- /** View groups on your domain. */
- const ADMIN_DIRECTORY_GROUP_READONLY = "https://www.googleapis.com/auth/admin.directory.group.readonly";
- /** View and manage notifications received on your domain. */
- const ADMIN_DIRECTORY_NOTIFICATIONS = "https://www.googleapis.com/auth/admin.directory.notifications";
- /** View and manage organization units on your domain. */
- const ADMIN_DIRECTORY_ORGUNIT = "https://www.googleapis.com/auth/admin.directory.orgunit";
- /** View organization units on your domain. */
- const ADMIN_DIRECTORY_ORGUNIT_READONLY = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
- /** View and manage the provisioning of users on your domain. */
- const ADMIN_DIRECTORY_USER = "https://www.googleapis.com/auth/admin.directory.user";
- /** View and manage user aliases on your domain. */
- const ADMIN_DIRECTORY_USER_ALIAS = "https://www.googleapis.com/auth/admin.directory.user.alias";
- /** View user aliases on your domain. */
- const ADMIN_DIRECTORY_USER_ALIAS_READONLY = "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
- /** View users on your domain. */
- const ADMIN_DIRECTORY_USER_READONLY = "https://www.googleapis.com/auth/admin.directory.user.readonly";
- /** Manage data access permissions for users on your domain. */
- const ADMIN_DIRECTORY_USER_SECURITY = "https://www.googleapis.com/auth/admin.directory.user.security";
- public $asps;
- public $channels;
- public $chromeosdevices;
- public $groups;
- public $groups_aliases;
- public $members;
- public $mobiledevices;
- public $notifications;
- public $orgunits;
- public $tokens;
- public $users;
- public $users_aliases;
- public $users_photos;
- public $verificationCodes;
-
- /**
- * Constructs the internal representation of the Directory service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->servicePath = 'admin/directory/v1/';
- $this->version = 'directory_v1';
- $this->serviceName = 'admin';
- $this->asps = new Google_Service_Directory_Asps_Resource(
- $this,
- $this->serviceName,
- 'asps',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'users/{userKey}/asps/{codeId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'codeId' => array(
- 'location' => 'path',
- 'type' => 'integer',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'users/{userKey}/asps/{codeId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'codeId' => array(
- 'location' => 'path',
- 'type' => 'integer',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'users/{userKey}/asps',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->channels = new Google_Service_Directory_Channels_Resource(
- $this,
- $this->serviceName,
- 'channels',
- array(
- 'methods' => array(
- 'stop' => array(
- 'path' => '/admin/directory_v1/channels/stop',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),
- )
- )
- );
- $this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource(
- $this,
- $this->serviceName,
- 'chromeosdevices',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'deviceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'customer/{customerId}/devices/chromeos',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'sortOrder' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'query' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'deviceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'update' => array(
- 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'deviceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->groups = new Google_Service_Directory_Groups_Resource(
- $this,
- $this->serviceName,
- 'groups',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'groups/{groupKey}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'groups/{groupKey}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'groups',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'list' => array(
- 'path' => 'groups',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'domain' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'userKey' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'groups/{groupKey}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'groups/{groupKey}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->groups_aliases = new Google_Service_Directory_GroupsAliases_Resource(
- $this,
- $this->serviceName,
- 'aliases',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'groups/{groupKey}/aliases/{alias}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'alias' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'groups/{groupKey}/aliases',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'groups/{groupKey}/aliases',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->members = new Google_Service_Directory_Members_Resource(
- $this,
- $this->serviceName,
- 'members',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'groups/{groupKey}/members/{memberKey}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'memberKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'groups/{groupKey}/members/{memberKey}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'memberKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'groups/{groupKey}/members',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'groups/{groupKey}/members',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'roles' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'patch' => array(
- 'path' => 'groups/{groupKey}/members/{memberKey}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'memberKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'groups/{groupKey}/members/{memberKey}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'groupKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'memberKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->mobiledevices = new Google_Service_Directory_Mobiledevices_Resource(
- $this,
- $this->serviceName,
- 'mobiledevices',
- array(
- 'methods' => array(
- 'action' => array(
- 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'resourceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'resourceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'resourceId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'list' => array(
- 'path' => 'customer/{customerId}/devices/mobile',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'projection' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'sortOrder' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'query' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->notifications = new Google_Service_Directory_Notifications_Resource(
- $this,
- $this->serviceName,
- 'notifications',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'customer/{customer}/notifications/{notificationId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'notificationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'customer/{customer}/notifications/{notificationId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'notificationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'customer/{customer}/notifications',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'language' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'customer/{customer}/notifications/{notificationId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'notificationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'customer/{customer}/notifications/{notificationId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'notificationId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->orgunits = new Google_Service_Directory_Orgunits_Resource(
- $this,
- $this->serviceName,
- 'orgunits',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orgUnitPath' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'repeated' => true,
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orgUnitPath' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'repeated' => true,
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'customer/{customerId}/orgunits',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'customer/{customerId}/orgunits',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'type' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'orgUnitPath' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orgUnitPath' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'repeated' => true,
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'customerId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orgUnitPath' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'repeated' => true,
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->tokens = new Google_Service_Directory_Tokens_Resource(
- $this,
- $this->serviceName,
- 'tokens',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'users/{userKey}/tokens/{clientId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'clientId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'users/{userKey}/tokens/{clientId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'clientId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'users/{userKey}/tokens',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->users = new Google_Service_Directory_Users_Resource(
- $this,
- $this->serviceName,
- 'users',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'users/{userKey}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'users/{userKey}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'users',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'list' => array(
- 'path' => 'users',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'domain' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'showDeleted' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'sortOrder' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'query' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'event' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'makeAdmin' => array(
- 'path' => 'users/{userKey}/makeAdmin',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'patch' => array(
- 'path' => 'users/{userKey}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'undelete' => array(
- 'path' => 'users/{userKey}/undelete',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'users/{userKey}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'watch' => array(
- 'path' => 'users/watch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'customer' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'domain' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'showDeleted' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'sortOrder' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'query' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'event' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->users_aliases = new Google_Service_Directory_UsersAliases_Resource(
- $this,
- $this->serviceName,
- 'aliases',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'users/{userKey}/aliases/{alias}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'alias' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'users/{userKey}/aliases',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'users/{userKey}/aliases',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'event' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'watch' => array(
- 'path' => 'users/{userKey}/aliases/watch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'event' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),
- )
- )
- );
- $this->users_photos = new Google_Service_Directory_UsersPhotos_Resource(
- $this,
- $this->serviceName,
- 'photos',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'users/{userKey}/photos/thumbnail',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'users/{userKey}/photos/thumbnail',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'patch' => array(
- 'path' => 'users/{userKey}/photos/thumbnail',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'users/{userKey}/photos/thumbnail',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->verificationCodes = new Google_Service_Directory_VerificationCodes_Resource(
- $this,
- $this->serviceName,
- 'verificationCodes',
- array(
- 'methods' => array(
- 'generate' => array(
- 'path' => 'users/{userKey}/verificationCodes/generate',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'invalidate' => array(
- 'path' => 'users/{userKey}/verificationCodes/invalidate',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'users/{userKey}/verificationCodes',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'userKey' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- }
- }
- /**
- * The "asps" collection of methods.
- * Typical usage is:
- * <code>
- * $adminService = new Google_Service_Directory(...);
- * $asps = $adminService->asps;
- * </code>
- */
- class Google_Service_Directory_Asps_Resource extends Google_Service_Resource
- {
- /**
- * Delete an ASP issued by a user. (asps.delete)
- *
- * @param string $userKey
- * Identifies the user in the API request. The value can be the user's primary email address, alias
- * email address, or unique user ID.
- * @param int $codeId
- * The unique ID of the ASP to be deleted.
- * @param array $optParams Optional parameters.
- */
- public function delete($userKey, $codeId, $optParams = array())
- {
- $params = array('userKey' => $userKey, 'codeId' => $codeId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Get information about an ASP issued by a user. (asps.get)
- *
- * @param string $userKey
- * Identifies the user in the API request. The value can be the user's primary email address, alias
- * email address, or unique user ID.
- * @param int $codeId
- * The unique ID of the ASP.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Directory_Asp
- */
- public function get($userKey, $codeId, $optParams = array())
- {
- $params = array('userKey' => $userKey, 'codeId' => $codeId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Directory_Asp");
- }
- /**
- * List the ASPs issued by a user. (asps.listAsps)
- *
- * @param string $userKey
- * Identifies the user in the API request. The value can be the user's primary email address, alias
- * email address, or unique user ID.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Directory_Asps
- */
- public function listAsps($userKey, $optParams = array())
- {
- $params = array('userKey' => $userKey);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Directory_Asps");
- }
- }
- /**
- * The "channels" collection of methods.
- * Typical usage is:
- * <code>
- * $adminService = new Google_Service_Directory(...);
- * $channels = $adminService->channels;
- * </code>
- */
- class Google_Service_Directory_Channels_Resource extends Google_Service_Resource
- {
- /**
- * Stop watching resources through this channel (channels.stop)
- *
- * @param Google_Channel $postBody
- * @param array $optParams Optional parameters.
- */
- public function stop(Google_Service_Directory_Channel $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('stop', array($params));
- }
- }
- /**
- * The "chromeosdevices" collection of methods.
- * Typical usage is:
- * <code>
- * $adminService = new Google_Service_Directory(...);
- * $chromeosdevices = $adminService->chromeosdevices;
- * </code>
- */
- class Google_Service_Directory_Chromeosdevices_Resource extends Google_Service_Resource
- {
- /**
- * Retrieve Chrome OS Device (chromeosdevices.get)
- *
- * @param string $customerId
- * Immutable id of the Google Apps account
- * @param string $deviceId
- * Immutable id of Chrome OS Device
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection
- * Restrict information returned to a set of selected fields.
- * @return Google_Service_Directory_ChromeOsDevice
- */
- public function get($customerId, $deviceId, $optParams = array())
- {
- $params = array('customerId' => $customerId, 'deviceId' => $deviceId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Directory_ChromeOsDevice");
- }
- /**
- * Retrieve all Chrome OS Devices of a customer (paginated)
- * (chromeosdevices.listChromeosdevices)
- *
- * @param string $customerId
- * Immutable id of the Google Apps account
- * @param array $optParams Optional parameters.
- *
- * @opt_param string orderBy
- * Column to use for sorting results
- * @opt_param string projection
- * Restrict information returned to a set of selected fields.
- * @opt_param int maxResults
- * Maximum number of results to return. Default is 100
- * @opt_param string pageToken
- * Token to specify next page in the list
- * @opt_param string sortOrder
- * Whether to return results in ascending or descending order. Only of use when orderBy is also
- * used
- * @opt_param string query
- * Search string in the format given at
- * http://support.google.com/chromeos/a/bin/answer.py?hl=en=1698333
- * @return Google_Service_Directory_ChromeOsDevices
- */
- public function listChromeosdevices($customerId, $optParams = array())
- {
- $params = array('customerId' => $customerId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Directory_ChromeOsDevices");
- }
- /**
- * Update Chrome OS Device. This method supports patch semantics.
- * (chromeosdevices.patch)
- *
- * @param string $customerId
- * Immutable id of the Google Apps account
- * @param string $deviceId
- * Immutable id of Chrome OS Device
- * @param Google_ChromeOsDevice $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection
- * Restrict information returned to a set of selected fields.
- * @return Google_Service_Directory_ChromeOsDevice
- */
- public function patch($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
- {
- $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Directory_ChromeOsDevice");
- }
- /**
- * Update Chrome OS Device (chromeosdevices.update)
- *
- * @param string $customerId
- * Immutable id of the Google Apps account
- * @param string $deviceId
- * Immutable id of Chrome OS Device
- * @param Google_ChromeOsDevice $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param string projection
- * Restrict information returned to a set of selected fields.
- * @return Google_Service_Directory_ChromeOsDevice
- */
- public function update($customerId, $deviceId, Google_Service_Directory_ChromeOsDevice $postBody, $optParams = array())
- {
- $params = array('customerId' => $customerId, 'deviceId' => $deviceId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Directory_ChromeOsDevice");
- }
- }
- /**
- * The "groups" collection of methods.
- * Typical usage is:
- * <code>
- * $adminService = new Google_Service_Directory(...);
- * $groups = $adminService->groups;
- * </code>
- */
- class Google_Service_Directory_Groups_Resource extends Google_Service_Resource
- {
- /**
- * Delete Group (groups.delete)
- *
- * @param string $groupKey
- * Email or immutable Id of the group
- * @param array $optParams Optional parameters.
- */
- public function delete($groupKey, $optParams = array())
- {
- $params = array('groupKey' => $groupKey);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Retrieve Group (groups.get)
- *
- * @param string $groupKey
- * Email or immutable Id of the group
- * @param array $optParams Optional parameters.
- * @return Google_Service_Directory_Group
- */
- public function get($groupKey, $optParams = array())
- {
- $params = array('groupKey' => $groupKey);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Directory_Group");
- }
- /**
- * Create Group (groups.insert)
- *
- * @param Google_Group $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Directory_Group
- */
- public function insert(Google_Service_Directory_Group $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Directory_Group");
- }
- /**
- * Retrieve all groups in a domain (paginated) (groups.listGroups)
- *
- * @param array $optParams Optional parameters.
- *
- * @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.
- * @opt_param string pageToken
- * Token to specify next page in the list
- * @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.
- * @opt_param int maxResults
- * Maximum number of results to return. Default is 200
- * @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
- * @return Google_Service_Directory_Groups
- */
- public function listGroups($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Directory_Groups");
- }
- /**
- * Update Group. This method supports patch semantics. (groups.patch)
- *
- * @param string $groupKey
- * Email or immutable Id of the group. If Id, it should match with id of group object
- * @param Google_Group $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Directory_Group
- */
- public function patch($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
- {
- $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Directory_Group");
- }
- /**
- * Update Group (groups.update)
- *
- * @param string $groupKey
- * Email or immutable Id of the group. If Id, it should match with id of group object
- * @param Google_Group $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Directory_Group
- */
- public function update($groupKey, Google_Service_Directory_Group $postBody, $optParams = array())
- {
- $params = array('groupKey' => $groupKey, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Directory_Group");
- }
- }
- /**
- * The "aliases" collection of methods.
- * Typical usage is:
- * <code>
- * $adminService = new Google_Service_Directory(...);
- * $aliases = $adminService->aliases;
- * </code>
- */
- clas…
Large files files are truncated, but you can click here to view the full file