Skip to content

Commit 4fb7a0a

Browse files
committed
Updated Directory.php
1 parent 5f3f175 commit 4fb7a0a

1 file changed

Lines changed: 276 additions & 0 deletions

File tree

src/Google/Service/Directory.php

Lines changed: 276 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class Google_Service_Directory extends Google_Service
6767
const ADMIN_DIRECTORY_USER_SECURITY = "https://www.googleapis.com/auth/admin.directory.user.security";
6868

6969
public $asps;
70+
public $channels;
7071
public $chromeosdevices;
7172
public $groups;
7273
public $groups_aliases;
@@ -143,6 +144,20 @@ public function __construct(Google_Client $client)
143144
)
144145
)
145146
);
147+
$this->channels = new Google_Service_Directory_Channels_Resource(
148+
$this,
149+
$this->serviceName,
150+
'channels',
151+
array(
152+
'methods' => array(
153+
'stop' => array(
154+
'path' => '/admin/directory_v1/channels/stop',
155+
'httpMethod' => 'POST',
156+
'parameters' => array(),
157+
),
158+
)
159+
)
160+
);
146161
$this->chromeosdevices = new Google_Service_Directory_Chromeosdevices_Resource(
147162
$this,
148163
$this->serviceName,
@@ -873,6 +888,10 @@ public function __construct(Google_Client $client)
873888
'location' => 'query',
874889
'type' => 'string',
875890
),
891+
'event' => array(
892+
'location' => 'query',
893+
'type' => 'string',
894+
),
876895
),
877896
),'makeAdmin' => array(
878897
'path' => 'users/{userKey}/makeAdmin',
@@ -914,6 +933,47 @@ public function __construct(Google_Client $client)
914933
'required' => true,
915934
),
916935
),
936+
),'watch' => array(
937+
'path' => 'users/watch',
938+
'httpMethod' => 'POST',
939+
'parameters' => array(
940+
'customer' => array(
941+
'location' => 'query',
942+
'type' => 'string',
943+
),
944+
'orderBy' => array(
945+
'location' => 'query',
946+
'type' => 'string',
947+
),
948+
'domain' => array(
949+
'location' => 'query',
950+
'type' => 'string',
951+
),
952+
'showDeleted' => array(
953+
'location' => 'query',
954+
'type' => 'string',
955+
),
956+
'maxResults' => array(
957+
'location' => 'query',
958+
'type' => 'integer',
959+
),
960+
'pageToken' => array(
961+
'location' => 'query',
962+
'type' => 'string',
963+
),
964+
'sortOrder' => array(
965+
'location' => 'query',
966+
'type' => 'string',
967+
),
968+
'query' => array(
969+
'location' => 'query',
970+
'type' => 'string',
971+
),
972+
'event' => array(
973+
'location' => 'query',
974+
'type' => 'string',
975+
),
976+
),
917977
),
918978
)
919979
)
@@ -958,6 +1018,24 @@ public function __construct(Google_Client $client)
9581018
'type' => 'string',
9591019
'required' => true,
9601020
),
1021+
'event' => array(
1022+
'location' => 'query',
1023+
'type' => 'string',
1024+
),
1025+
),
1026+
),'watch' => array(
1027+
'path' => 'users/{userKey}/aliases/watch',
1028+
'httpMethod' => 'POST',
1029+
'parameters' => array(
1030+
'userKey' => array(
1031+
'location' => 'path',
1032+
'type' => 'string',
1033+
'required' => true,
1034+
),
1035+
'event' => array(
1036+
'location' => 'query',
1037+
'type' => 'string',
1038+
),
9611039
),
9621040
),
9631041
)
@@ -1118,6 +1196,31 @@ public function listAsps($userKey, $optParams = array())
11181196
}
11191197
}
11201198

1199+
/**
1200+
* The "channels" collection of methods.
1201+
* Typical usage is:
1202+
* <code>
1203+
* $adminService = new Google_Service_Directory(...);
1204+
* $channels = $adminService->channels;
1205+
* </code>
1206+
*/
1207+
class Google_Service_Directory_Channels_Resource extends Google_Service_Resource
1208+
{
1209+
1210+
/**
1211+
* Stop watching resources through this channel (channels.stop)
1212+
*
1213+
* @param Google_Channel $postBody
1214+
* @param array $optParams Optional parameters.
1215+
*/
1216+
public function stop(Google_Service_Directory_Channel $postBody, $optParams = array())
1217+
{
1218+
$params = array('postBody' => $postBody);
1219+
$params = array_merge($params, $optParams);
1220+
return $this->call('stop', array($params));
1221+
}
1222+
}
1223+
11211224
/**
11221225
* The "chromeosdevices" collection of methods.
11231226
* Typical usage is:
@@ -1949,6 +2052,8 @@ public function insert(Google_Service_Directory_User $postBody, $optParams = arr
19492052
* Query string for prefix matching searches. Should be of the form "key:value*" where key can be
19502053
* "email", "givenName" or "familyName". The asterisk is required, for example: "givenName:Ann*" is
19512054
* a valid query.
2055+
* @opt_param string event
2056+
* Event on which subscription is intended (if subscribing)
19522057
* @return Google_Service_Directory_Users
19532058
*/
19542059
public function listUsers($optParams = array())
@@ -2015,6 +2120,42 @@ public function update($userKey, Google_Service_Directory_User $postBody, $optPa
20152120
$params = array_merge($params, $optParams);
20162121
return $this->call('update', array($params), "Google_Service_Directory_User");
20172122
}
2123+
/**
2124+
* Watch for changes in users list (users.watch)
2125+
*
2126+
* @param Google_Channel $postBody
2127+
* @param array $optParams Optional parameters.
2128+
*
2129+
* @opt_param string customer
2130+
* Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a
2131+
* customer, fill this field instead of domain.
2132+
* @opt_param string orderBy
2133+
* Column to use for sorting results
2134+
* @opt_param string domain
2135+
* Name of the domain. Fill this field to get users from only this domain. To return all users in a
2136+
* multi-domain fill customer field instead.
2137+
* @opt_param string showDeleted
2138+
* If set to true retrieves the list of deleted users. Default is false
2139+
* @opt_param int maxResults
2140+
* Maximum number of results to return. Default is 100. Max allowed is 500
2141+
* @opt_param string pageToken
2142+
* Token to specify next page in the list
2143+
* @opt_param string sortOrder
2144+
* Whether to return results in ascending or descending order.
2145+
* @opt_param string query
2146+
* Query string for prefix matching searches. Should be of the form "key:value*" where key can be
2147+
* "email", "givenName" or "familyName". The asterisk is required, for example: "givenName:Ann*" is
2148+
* a valid query.
2149+
* @opt_param string event
2150+
* Event on which subscription is intended (if subscribing)
2151+
* @return Google_Service_Directory_Channel
2152+
*/
2153+
public function watch(Google_Service_Directory_Channel $postBody, $optParams = array())
2154+
{
2155+
$params = array('postBody' => $postBody);
2156+
$params = array_merge($params, $optParams);
2157+
return $this->call('watch', array($params), "Google_Service_Directory_Channel");
2158+
}
20182159
}
20192160

20202161
/**
@@ -2064,6 +2205,9 @@ public function insert($userKey, Google_Service_Directory_Alias $postBody, $optP
20642205
* @param string $userKey
20652206
* Email or immutable Id of the user
20662207
* @param array $optParams Optional parameters.
2208+
*
2209+
* @opt_param string event
2210+
* Event on which subscription is intended (if subscribing)
20672211
* @return Google_Service_Directory_Aliases
20682212
*/
20692213
public function listUsersAliases($userKey, $optParams = array())
@@ -2072,6 +2216,24 @@ public function listUsersAliases($userKey, $optParams = array())
20722216
$params = array_merge($params, $optParams);
20732217
return $this->call('list', array($params), "Google_Service_Directory_Aliases");
20742218
}
2219+
/**
2220+
* Watch for changes in user aliases list (aliases.watch)
2221+
*
2222+
* @param string $userKey
2223+
* Email or immutable Id of the user
2224+
* @param Google_Channel $postBody
2225+
* @param array $optParams Optional parameters.
2226+
*
2227+
* @opt_param string event
2228+
* Event on which subscription is intended (if subscribing)
2229+
* @return Google_Service_Directory_Channel
2230+
*/
2231+
public function watch($userKey, Google_Service_Directory_Channel $postBody, $optParams = array())
2232+
{
2233+
$params = array('userKey' => $userKey, 'postBody' => $postBody);
2234+
$params = array_merge($params, $optParams);
2235+
return $this->call('watch', array($params), "Google_Service_Directory_Channel");
2236+
}
20752237
}
20762238
/**
20772239
* The "photos" collection of methods.
@@ -2420,6 +2582,120 @@ public function getKind()
24202582
}
24212583
}
24222584

2585+
class Google_Service_Directory_Channel extends Google_Model
2586+
{
2587+
public $address;
2588+
public $expiration;
2589+
public $id;
2590+
public $kind;
2591+
public $params;
2592+
public $payload;
2593+
public $resourceId;
2594+
public $resourceUri;
2595+
public $token;
2596+
public $type;
2597+
2598+
public function setAddress($address)
2599+
{
2600+
$this->address = $address;
2601+
}
2602+
2603+
public function getAddress()
2604+
{
2605+
return $this->address;
2606+
}
2607+
2608+
public function setExpiration($expiration)
2609+
{
2610+
$this->expiration = $expiration;
2611+
}
2612+
2613+
public function getExpiration()
2614+
{
2615+
return $this->expiration;
2616+
}
2617+
2618+
public function setId($id)
2619+
{
2620+
$this->id = $id;
2621+
}
2622+
2623+
public function getId()
2624+
{
2625+
return $this->id;
2626+
}
2627+
2628+
public function setKind($kind)
2629+
{
2630+
$this->kind = $kind;
2631+
}
2632+
2633+
public function getKind()
2634+
{
2635+
return $this->kind;
2636+
}
2637+
2638+
public function setParams($params)
2639+
{
2640+
$this->params = $params;
2641+
}
2642+
2643+
public function getParams()
2644+
{
2645+
return $this->params;
2646+
}
2647+
2648+
public function setPayload($payload)
2649+
{
2650+
$this->payload = $payload;
2651+
}
2652+
2653+
public function getPayload()
2654+
{
2655+
return $this->payload;
2656+
}
2657+
2658+
public function setResourceId($resourceId)
2659+
{
2660+
$this->resourceId = $resourceId;
2661+
}
2662+
2663+
public function getResourceId()
2664+
{
2665+
return $this->resourceId;
2666+
}
2667+
2668+
public function setResourceUri($resourceUri)
2669+
{
2670+
$this->resourceUri = $resourceUri;
2671+
}
2672+
2673+
public function getResourceUri()
2674+
{
2675+
return $this->resourceUri;
2676+
}
2677+
2678+
public function setToken($token)
2679+
{
2680+
$this->token = $token;
2681+
}
2682+
2683+
public function getToken()
2684+
{
2685+
return $this->token;
2686+
}
2687+
2688+
public function setType($type)
2689+
{
2690+
$this->type = $type;
2691+
}
2692+
2693+
public function getType()
2694+
{
2695+
return $this->type;
2696+
}
2697+
}
2698+
24232699
class Google_Service_Directory_ChromeOsDevice extends Google_Model
24242700
{
24252701
public $annotatedLocation;

0 commit comments

Comments
 (0)