Няма описание

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Directory (directory_v1).
  19. *
  20. * <p>
  21. * Manages enterprise resources such as users and groups, administrative
  22. * notifications, security features, and more.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/admin-sdk/directory/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Directory extends Google_Service
  32. {
  33. /** View and manage customer related information. */
  34. const ADMIN_DIRECTORY_CUSTOMER =
  35. "https://www.googleapis.com/auth/admin.directory.customer";
  36. /** View customer related information. */
  37. const ADMIN_DIRECTORY_CUSTOMER_READONLY =
  38. "https://www.googleapis.com/auth/admin.directory.customer.readonly";
  39. /** View and manage your Chrome OS devices' metadata. */
  40. const ADMIN_DIRECTORY_DEVICE_CHROMEOS =
  41. "https://www.googleapis.com/auth/admin.directory.device.chromeos";
  42. /** View your Chrome OS devices' metadata. */
  43. const ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY =
  44. "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly";
  45. /** View and manage your mobile devices' metadata. */
  46. const ADMIN_DIRECTORY_DEVICE_MOBILE =
  47. "https://www.googleapis.com/auth/admin.directory.device.mobile";
  48. /** Manage your mobile devices by performing administrative tasks. */
  49. const ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION =
  50. "https://www.googleapis.com/auth/admin.directory.device.mobile.action";
  51. /** View your mobile devices' metadata. */
  52. const ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY =
  53. "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly";
  54. /** View and manage the provisioning of domains for your customers. */
  55. const ADMIN_DIRECTORY_DOMAIN =
  56. "https://www.googleapis.com/auth/admin.directory.domain";
  57. /** View domains related to your customers. */
  58. const ADMIN_DIRECTORY_DOMAIN_READONLY =
  59. "https://www.googleapis.com/auth/admin.directory.domain.readonly";
  60. /** View and manage the provisioning of groups on your domain. */
  61. const ADMIN_DIRECTORY_GROUP =
  62. "https://www.googleapis.com/auth/admin.directory.group";
  63. /** View and manage group subscriptions on your domain. */
  64. const ADMIN_DIRECTORY_GROUP_MEMBER =
  65. "https://www.googleapis.com/auth/admin.directory.group.member";
  66. /** View group subscriptions on your domain. */
  67. const ADMIN_DIRECTORY_GROUP_MEMBER_READONLY =
  68. "https://www.googleapis.com/auth/admin.directory.group.member.readonly";
  69. /** View groups on your domain. */
  70. const ADMIN_DIRECTORY_GROUP_READONLY =
  71. "https://www.googleapis.com/auth/admin.directory.group.readonly";
  72. /** View and manage notifications received on your domain. */
  73. const ADMIN_DIRECTORY_NOTIFICATIONS =
  74. "https://www.googleapis.com/auth/admin.directory.notifications";
  75. /** View and manage organization units on your domain. */
  76. const ADMIN_DIRECTORY_ORGUNIT =
  77. "https://www.googleapis.com/auth/admin.directory.orgunit";
  78. /** View organization units on your domain. */
  79. const ADMIN_DIRECTORY_ORGUNIT_READONLY =
  80. "https://www.googleapis.com/auth/admin.directory.orgunit.readonly";
  81. /** View and manage the provisioning of calendar resources on your domain. */
  82. const ADMIN_DIRECTORY_RESOURCE_CALENDAR =
  83. "https://www.googleapis.com/auth/admin.directory.resource.calendar";
  84. /** View calendar resources on your domain. */
  85. const ADMIN_DIRECTORY_RESOURCE_CALENDAR_READONLY =
  86. "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly";
  87. /** Manage delegated admin roles for your domain. */
  88. const ADMIN_DIRECTORY_ROLEMANAGEMENT =
  89. "https://www.googleapis.com/auth/admin.directory.rolemanagement";
  90. /** View delegated admin roles for your domain. */
  91. const ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY =
  92. "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly";
  93. /** View and manage the provisioning of users on your domain. */
  94. const ADMIN_DIRECTORY_USER =
  95. "https://www.googleapis.com/auth/admin.directory.user";
  96. /** View and manage user aliases on your domain. */
  97. const ADMIN_DIRECTORY_USER_ALIAS =
  98. "https://www.googleapis.com/auth/admin.directory.user.alias";
  99. /** View user aliases on your domain. */
  100. const ADMIN_DIRECTORY_USER_ALIAS_READONLY =
  101. "https://www.googleapis.com/auth/admin.directory.user.alias.readonly";
  102. /** View users on your domain. */
  103. const ADMIN_DIRECTORY_USER_READONLY =
  104. "https://www.googleapis.com/auth/admin.directory.user.readonly";
  105. /** Manage data access permissions for users on your domain. */
  106. const ADMIN_DIRECTORY_USER_SECURITY =
  107. "https://www.googleapis.com/auth/admin.directory.user.security";
  108. /** View and manage the provisioning of user schemas on your domain. */
  109. const ADMIN_DIRECTORY_USERSCHEMA =
  110. "https://www.googleapis.com/auth/admin.directory.userschema";
  111. /** View user schemas on your domain. */
  112. const ADMIN_DIRECTORY_USERSCHEMA_READONLY =
  113. "https://www.googleapis.com/auth/admin.directory.userschema.readonly";
  114. public $asps;
  115. public $channels;
  116. public $chromeosdevices;
  117. public $customers;
  118. public $domainAliases;
  119. public $domains;
  120. public $groups;
  121. public $groups_aliases;
  122. public $members;
  123. public $mobiledevices;
  124. public $notifications;
  125. public $orgunits;
  126. public $privileges;
  127. public $resolvedAppAccessSettings;
  128. public $resources_buildings;
  129. public $resources_calendars;
  130. public $resources_features;
  131. public $roleAssignments;
  132. public $roles;
  133. public $schemas;
  134. public $tokens;
  135. public $users;
  136. public $users_aliases;
  137. public $users_photos;
  138. public $verificationCodes;
  139. /**
  140. * Constructs the internal representation of the Directory service.
  141. *
  142. * @param Google_Client $client
  143. */
  144. public function __construct(Google_Client $client)
  145. {
  146. parent::__construct($client);
  147. $this->rootUrl = 'https://www.googleapis.com/';
  148. $this->servicePath = 'admin/directory/v1/';
  149. $this->version = 'directory_v1';
  150. $this->serviceName = 'admin';
  151. $this->asps = new Google_Service_Directory_Resource_Asps(
  152. $this,
  153. $this->serviceName,
  154. 'asps',
  155. array(
  156. 'methods' => array(
  157. 'delete' => array(
  158. 'path' => 'users/{userKey}/asps/{codeId}',
  159. 'httpMethod' => 'DELETE',
  160. 'parameters' => array(
  161. 'userKey' => array(
  162. 'location' => 'path',
  163. 'type' => 'string',
  164. 'required' => true,
  165. ),
  166. 'codeId' => array(
  167. 'location' => 'path',
  168. 'type' => 'integer',
  169. 'required' => true,
  170. ),
  171. ),
  172. ),'get' => array(
  173. 'path' => 'users/{userKey}/asps/{codeId}',
  174. 'httpMethod' => 'GET',
  175. 'parameters' => array(
  176. 'userKey' => array(
  177. 'location' => 'path',
  178. 'type' => 'string',
  179. 'required' => true,
  180. ),
  181. 'codeId' => array(
  182. 'location' => 'path',
  183. 'type' => 'integer',
  184. 'required' => true,
  185. ),
  186. ),
  187. ),'list' => array(
  188. 'path' => 'users/{userKey}/asps',
  189. 'httpMethod' => 'GET',
  190. 'parameters' => array(
  191. 'userKey' => array(
  192. 'location' => 'path',
  193. 'type' => 'string',
  194. 'required' => true,
  195. ),
  196. ),
  197. ),
  198. )
  199. )
  200. );
  201. $this->channels = new Google_Service_Directory_Resource_Channels(
  202. $this,
  203. $this->serviceName,
  204. 'channels',
  205. array(
  206. 'methods' => array(
  207. 'stop' => array(
  208. 'path' => '/admin/directory_v1/channels/stop',
  209. 'httpMethod' => 'POST',
  210. 'parameters' => array(),
  211. ),
  212. )
  213. )
  214. );
  215. $this->chromeosdevices = new Google_Service_Directory_Resource_Chromeosdevices(
  216. $this,
  217. $this->serviceName,
  218. 'chromeosdevices',
  219. array(
  220. 'methods' => array(
  221. 'action' => array(
  222. 'path' => 'customer/{customerId}/devices/chromeos/{resourceId}/action',
  223. 'httpMethod' => 'POST',
  224. 'parameters' => array(
  225. 'customerId' => array(
  226. 'location' => 'path',
  227. 'type' => 'string',
  228. 'required' => true,
  229. ),
  230. 'resourceId' => array(
  231. 'location' => 'path',
  232. 'type' => 'string',
  233. 'required' => true,
  234. ),
  235. ),
  236. ),'get' => array(
  237. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  238. 'httpMethod' => 'GET',
  239. 'parameters' => array(
  240. 'customerId' => array(
  241. 'location' => 'path',
  242. 'type' => 'string',
  243. 'required' => true,
  244. ),
  245. 'deviceId' => array(
  246. 'location' => 'path',
  247. 'type' => 'string',
  248. 'required' => true,
  249. ),
  250. 'projection' => array(
  251. 'location' => 'query',
  252. 'type' => 'string',
  253. ),
  254. ),
  255. ),'list' => array(
  256. 'path' => 'customer/{customerId}/devices/chromeos',
  257. 'httpMethod' => 'GET',
  258. 'parameters' => array(
  259. 'customerId' => array(
  260. 'location' => 'path',
  261. 'type' => 'string',
  262. 'required' => true,
  263. ),
  264. 'maxResults' => array(
  265. 'location' => 'query',
  266. 'type' => 'integer',
  267. ),
  268. 'orderBy' => array(
  269. 'location' => 'query',
  270. 'type' => 'string',
  271. ),
  272. 'orgUnitPath' => array(
  273. 'location' => 'query',
  274. 'type' => 'string',
  275. ),
  276. 'pageToken' => array(
  277. 'location' => 'query',
  278. 'type' => 'string',
  279. ),
  280. 'projection' => array(
  281. 'location' => 'query',
  282. 'type' => 'string',
  283. ),
  284. 'query' => array(
  285. 'location' => 'query',
  286. 'type' => 'string',
  287. ),
  288. 'sortOrder' => array(
  289. 'location' => 'query',
  290. 'type' => 'string',
  291. ),
  292. ),
  293. ),'moveDevicesToOu' => array(
  294. 'path' => 'customer/{customerId}/devices/chromeos/moveDevicesToOu',
  295. 'httpMethod' => 'POST',
  296. 'parameters' => array(
  297. 'customerId' => array(
  298. 'location' => 'path',
  299. 'type' => 'string',
  300. 'required' => true,
  301. ),
  302. 'orgUnitPath' => array(
  303. 'location' => 'query',
  304. 'type' => 'string',
  305. 'required' => true,
  306. ),
  307. ),
  308. ),'patch' => array(
  309. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  310. 'httpMethod' => 'PATCH',
  311. 'parameters' => array(
  312. 'customerId' => array(
  313. 'location' => 'path',
  314. 'type' => 'string',
  315. 'required' => true,
  316. ),
  317. 'deviceId' => array(
  318. 'location' => 'path',
  319. 'type' => 'string',
  320. 'required' => true,
  321. ),
  322. 'projection' => array(
  323. 'location' => 'query',
  324. 'type' => 'string',
  325. ),
  326. ),
  327. ),'update' => array(
  328. 'path' => 'customer/{customerId}/devices/chromeos/{deviceId}',
  329. 'httpMethod' => 'PUT',
  330. 'parameters' => array(
  331. 'customerId' => array(
  332. 'location' => 'path',
  333. 'type' => 'string',
  334. 'required' => true,
  335. ),
  336. 'deviceId' => array(
  337. 'location' => 'path',
  338. 'type' => 'string',
  339. 'required' => true,
  340. ),
  341. 'projection' => array(
  342. 'location' => 'query',
  343. 'type' => 'string',
  344. ),
  345. ),
  346. ),
  347. )
  348. )
  349. );
  350. $this->customers = new Google_Service_Directory_Resource_Customers(
  351. $this,
  352. $this->serviceName,
  353. 'customers',
  354. array(
  355. 'methods' => array(
  356. 'get' => array(
  357. 'path' => 'customers/{customerKey}',
  358. 'httpMethod' => 'GET',
  359. 'parameters' => array(
  360. 'customerKey' => array(
  361. 'location' => 'path',
  362. 'type' => 'string',
  363. 'required' => true,
  364. ),
  365. ),
  366. ),'patch' => array(
  367. 'path' => 'customers/{customerKey}',
  368. 'httpMethod' => 'PATCH',
  369. 'parameters' => array(
  370. 'customerKey' => array(
  371. 'location' => 'path',
  372. 'type' => 'string',
  373. 'required' => true,
  374. ),
  375. ),
  376. ),'update' => array(
  377. 'path' => 'customers/{customerKey}',
  378. 'httpMethod' => 'PUT',
  379. 'parameters' => array(
  380. 'customerKey' => array(
  381. 'location' => 'path',
  382. 'type' => 'string',
  383. 'required' => true,
  384. ),
  385. ),
  386. ),
  387. )
  388. )
  389. );
  390. $this->domainAliases = new Google_Service_Directory_Resource_DomainAliases(
  391. $this,
  392. $this->serviceName,
  393. 'domainAliases',
  394. array(
  395. 'methods' => array(
  396. 'delete' => array(
  397. 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
  398. 'httpMethod' => 'DELETE',
  399. 'parameters' => array(
  400. 'customer' => array(
  401. 'location' => 'path',
  402. 'type' => 'string',
  403. 'required' => true,
  404. ),
  405. 'domainAliasName' => array(
  406. 'location' => 'path',
  407. 'type' => 'string',
  408. 'required' => true,
  409. ),
  410. ),
  411. ),'get' => array(
  412. 'path' => 'customer/{customer}/domainaliases/{domainAliasName}',
  413. 'httpMethod' => 'GET',
  414. 'parameters' => array(
  415. 'customer' => array(
  416. 'location' => 'path',
  417. 'type' => 'string',
  418. 'required' => true,
  419. ),
  420. 'domainAliasName' => array(
  421. 'location' => 'path',
  422. 'type' => 'string',
  423. 'required' => true,
  424. ),
  425. ),
  426. ),'insert' => array(
  427. 'path' => 'customer/{customer}/domainaliases',
  428. 'httpMethod' => 'POST',
  429. 'parameters' => array(
  430. 'customer' => array(
  431. 'location' => 'path',
  432. 'type' => 'string',
  433. 'required' => true,
  434. ),
  435. ),
  436. ),'list' => array(
  437. 'path' => 'customer/{customer}/domainaliases',
  438. 'httpMethod' => 'GET',
  439. 'parameters' => array(
  440. 'customer' => array(
  441. 'location' => 'path',
  442. 'type' => 'string',
  443. 'required' => true,
  444. ),
  445. 'parentDomainName' => array(
  446. 'location' => 'query',
  447. 'type' => 'string',
  448. ),
  449. ),
  450. ),
  451. )
  452. )
  453. );
  454. $this->domains = new Google_Service_Directory_Resource_Domains(
  455. $this,
  456. $this->serviceName,
  457. 'domains',
  458. array(
  459. 'methods' => array(
  460. 'delete' => array(
  461. 'path' => 'customer/{customer}/domains/{domainName}',
  462. 'httpMethod' => 'DELETE',
  463. 'parameters' => array(
  464. 'customer' => array(
  465. 'location' => 'path',
  466. 'type' => 'string',
  467. 'required' => true,
  468. ),
  469. 'domainName' => array(
  470. 'location' => 'path',
  471. 'type' => 'string',
  472. 'required' => true,
  473. ),
  474. ),
  475. ),'get' => array(
  476. 'path' => 'customer/{customer}/domains/{domainName}',
  477. 'httpMethod' => 'GET',
  478. 'parameters' => array(
  479. 'customer' => array(
  480. 'location' => 'path',
  481. 'type' => 'string',
  482. 'required' => true,
  483. ),
  484. 'domainName' => array(
  485. 'location' => 'path',
  486. 'type' => 'string',
  487. 'required' => true,
  488. ),
  489. ),
  490. ),'insert' => array(
  491. 'path' => 'customer/{customer}/domains',
  492. 'httpMethod' => 'POST',
  493. 'parameters' => array(
  494. 'customer' => array(
  495. 'location' => 'path',
  496. 'type' => 'string',
  497. 'required' => true,
  498. ),
  499. ),
  500. ),'list' => array(
  501. 'path' => 'customer/{customer}/domains',
  502. 'httpMethod' => 'GET',
  503. 'parameters' => array(
  504. 'customer' => array(
  505. 'location' => 'path',
  506. 'type' => 'string',
  507. 'required' => true,
  508. ),
  509. ),
  510. ),
  511. )
  512. )
  513. );
  514. $this->groups = new Google_Service_Directory_Resource_Groups(
  515. $this,
  516. $this->serviceName,
  517. 'groups',
  518. array(
  519. 'methods' => array(
  520. 'delete' => array(
  521. 'path' => 'groups/{groupKey}',
  522. 'httpMethod' => 'DELETE',
  523. 'parameters' => array(
  524. 'groupKey' => array(
  525. 'location' => 'path',
  526. 'type' => 'string',
  527. 'required' => true,
  528. ),
  529. ),
  530. ),'get' => array(
  531. 'path' => 'groups/{groupKey}',
  532. 'httpMethod' => 'GET',
  533. 'parameters' => array(
  534. 'groupKey' => array(
  535. 'location' => 'path',
  536. 'type' => 'string',
  537. 'required' => true,
  538. ),
  539. ),
  540. ),'insert' => array(
  541. 'path' => 'groups',
  542. 'httpMethod' => 'POST',
  543. 'parameters' => array(),
  544. ),'list' => array(
  545. 'path' => 'groups',
  546. 'httpMethod' => 'GET',
  547. 'parameters' => array(
  548. 'customer' => array(
  549. 'location' => 'query',
  550. 'type' => 'string',
  551. ),
  552. 'domain' => array(
  553. 'location' => 'query',
  554. 'type' => 'string',
  555. ),
  556. 'maxResults' => array(
  557. 'location' => 'query',
  558. 'type' => 'integer',
  559. ),
  560. 'orderBy' => array(
  561. 'location' => 'query',
  562. 'type' => 'string',
  563. ),
  564. 'pageToken' => array(
  565. 'location' => 'query',
  566. 'type' => 'string',
  567. ),
  568. 'query' => array(
  569. 'location' => 'query',
  570. 'type' => 'string',
  571. ),
  572. 'sortOrder' => array(
  573. 'location' => 'query',
  574. 'type' => 'string',
  575. ),
  576. 'userKey' => array(
  577. 'location' => 'query',
  578. 'type' => 'string',
  579. ),
  580. ),
  581. ),'patch' => array(
  582. 'path' => 'groups/{groupKey}',
  583. 'httpMethod' => 'PATCH',
  584. 'parameters' => array(
  585. 'groupKey' => array(
  586. 'location' => 'path',
  587. 'type' => 'string',
  588. 'required' => true,
  589. ),
  590. ),
  591. ),'update' => array(
  592. 'path' => 'groups/{groupKey}',
  593. 'httpMethod' => 'PUT',
  594. 'parameters' => array(
  595. 'groupKey' => array(
  596. 'location' => 'path',
  597. 'type' => 'string',
  598. 'required' => true,
  599. ),
  600. ),
  601. ),
  602. )
  603. )
  604. );
  605. $this->groups_aliases = new Google_Service_Directory_Resource_GroupsAliases(
  606. $this,
  607. $this->serviceName,
  608. 'aliases',
  609. array(
  610. 'methods' => array(
  611. 'delete' => array(
  612. 'path' => 'groups/{groupKey}/aliases/{alias}',
  613. 'httpMethod' => 'DELETE',
  614. 'parameters' => array(
  615. 'groupKey' => array(
  616. 'location' => 'path',
  617. 'type' => 'string',
  618. 'required' => true,
  619. ),
  620. 'alias' => array(
  621. 'location' => 'path',
  622. 'type' => 'string',
  623. 'required' => true,
  624. ),
  625. ),
  626. ),'insert' => array(
  627. 'path' => 'groups/{groupKey}/aliases',
  628. 'httpMethod' => 'POST',
  629. 'parameters' => array(
  630. 'groupKey' => array(
  631. 'location' => 'path',
  632. 'type' => 'string',
  633. 'required' => true,
  634. ),
  635. ),
  636. ),'list' => array(
  637. 'path' => 'groups/{groupKey}/aliases',
  638. 'httpMethod' => 'GET',
  639. 'parameters' => array(
  640. 'groupKey' => array(
  641. 'location' => 'path',
  642. 'type' => 'string',
  643. 'required' => true,
  644. ),
  645. ),
  646. ),
  647. )
  648. )
  649. );
  650. $this->members = new Google_Service_Directory_Resource_Members(
  651. $this,
  652. $this->serviceName,
  653. 'members',
  654. array(
  655. 'methods' => array(
  656. 'delete' => array(
  657. 'path' => 'groups/{groupKey}/members/{memberKey}',
  658. 'httpMethod' => 'DELETE',
  659. 'parameters' => array(
  660. 'groupKey' => array(
  661. 'location' => 'path',
  662. 'type' => 'string',
  663. 'required' => true,
  664. ),
  665. 'memberKey' => array(
  666. 'location' => 'path',
  667. 'type' => 'string',
  668. 'required' => true,
  669. ),
  670. ),
  671. ),'get' => array(
  672. 'path' => 'groups/{groupKey}/members/{memberKey}',
  673. 'httpMethod' => 'GET',
  674. 'parameters' => array(
  675. 'groupKey' => array(
  676. 'location' => 'path',
  677. 'type' => 'string',
  678. 'required' => true,
  679. ),
  680. 'memberKey' => array(
  681. 'location' => 'path',
  682. 'type' => 'string',
  683. 'required' => true,
  684. ),
  685. ),
  686. ),'hasMember' => array(
  687. 'path' => 'groups/{groupKey}/hasMember/{memberKey}',
  688. 'httpMethod' => 'GET',
  689. 'parameters' => array(
  690. 'groupKey' => array(
  691. 'location' => 'path',
  692. 'type' => 'string',
  693. 'required' => true,
  694. ),
  695. 'memberKey' => array(
  696. 'location' => 'path',
  697. 'type' => 'string',
  698. 'required' => true,
  699. ),
  700. ),
  701. ),'insert' => array(
  702. 'path' => 'groups/{groupKey}/members',
  703. 'httpMethod' => 'POST',
  704. 'parameters' => array(
  705. 'groupKey' => array(
  706. 'location' => 'path',
  707. 'type' => 'string',
  708. 'required' => true,
  709. ),
  710. ),
  711. ),'list' => array(
  712. 'path' => 'groups/{groupKey}/members',
  713. 'httpMethod' => 'GET',
  714. 'parameters' => array(
  715. 'groupKey' => array(
  716. 'location' => 'path',
  717. 'type' => 'string',
  718. 'required' => true,
  719. ),
  720. 'includeDerivedMembership' => array(
  721. 'location' => 'query',
  722. 'type' => 'boolean',
  723. ),
  724. 'maxResults' => array(
  725. 'location' => 'query',
  726. 'type' => 'integer',
  727. ),
  728. 'pageToken' => array(
  729. 'location' => 'query',
  730. 'type' => 'string',
  731. ),
  732. 'roles' => array(
  733. 'location' => 'query',
  734. 'type' => 'string',
  735. ),
  736. ),
  737. ),'patch' => array(
  738. 'path' => 'groups/{groupKey}/members/{memberKey}',
  739. 'httpMethod' => 'PATCH',
  740. 'parameters' => array(
  741. 'groupKey' => array(
  742. 'location' => 'path',
  743. 'type' => 'string',
  744. 'required' => true,
  745. ),
  746. 'memberKey' => array(
  747. 'location' => 'path',
  748. 'type' => 'string',
  749. 'required' => true,
  750. ),
  751. ),
  752. ),'update' => array(
  753. 'path' => 'groups/{groupKey}/members/{memberKey}',
  754. 'httpMethod' => 'PUT',
  755. 'parameters' => array(
  756. 'groupKey' => array(
  757. 'location' => 'path',
  758. 'type' => 'string',
  759. 'required' => true,
  760. ),
  761. 'memberKey' => array(
  762. 'location' => 'path',
  763. 'type' => 'string',
  764. 'required' => true,
  765. ),
  766. ),
  767. ),
  768. )
  769. )
  770. );
  771. $this->mobiledevices = new Google_Service_Directory_Resource_Mobiledevices(
  772. $this,
  773. $this->serviceName,
  774. 'mobiledevices',
  775. array(
  776. 'methods' => array(
  777. 'action' => array(
  778. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}/action',
  779. 'httpMethod' => 'POST',
  780. 'parameters' => array(
  781. 'customerId' => array(
  782. 'location' => 'path',
  783. 'type' => 'string',
  784. 'required' => true,
  785. ),
  786. 'resourceId' => array(
  787. 'location' => 'path',
  788. 'type' => 'string',
  789. 'required' => true,
  790. ),
  791. ),
  792. ),'delete' => array(
  793. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
  794. 'httpMethod' => 'DELETE',
  795. 'parameters' => array(
  796. 'customerId' => array(
  797. 'location' => 'path',
  798. 'type' => 'string',
  799. 'required' => true,
  800. ),
  801. 'resourceId' => array(
  802. 'location' => 'path',
  803. 'type' => 'string',
  804. 'required' => true,
  805. ),
  806. ),
  807. ),'get' => array(
  808. 'path' => 'customer/{customerId}/devices/mobile/{resourceId}',
  809. 'httpMethod' => 'GET',
  810. 'parameters' => array(
  811. 'customerId' => array(
  812. 'location' => 'path',
  813. 'type' => 'string',
  814. 'required' => true,
  815. ),
  816. 'resourceId' => array(
  817. 'location' => 'path',
  818. 'type' => 'string',
  819. 'required' => true,
  820. ),
  821. 'projection' => array(
  822. 'location' => 'query',
  823. 'type' => 'string',
  824. ),
  825. ),
  826. ),'list' => array(
  827. 'path' => 'customer/{customerId}/devices/mobile',
  828. 'httpMethod' => 'GET',
  829. 'parameters' => array(
  830. 'customerId' => array(
  831. 'location' => 'path',
  832. 'type' => 'string',
  833. 'required' => true,
  834. ),
  835. 'maxResults' => array(
  836. 'location' => 'query',
  837. 'type' => 'integer',
  838. ),
  839. 'orderBy' => array(
  840. 'location' => 'query',
  841. 'type' => 'string',
  842. ),
  843. 'pageToken' => array(
  844. 'location' => 'query',
  845. 'type' => 'string',
  846. ),
  847. 'projection' => array(
  848. 'location' => 'query',
  849. 'type' => 'string',
  850. ),
  851. 'query' => array(
  852. 'location' => 'query',
  853. 'type' => 'string',
  854. ),
  855. 'sortOrder' => array(
  856. 'location' => 'query',
  857. 'type' => 'string',
  858. ),
  859. ),
  860. ),
  861. )
  862. )
  863. );
  864. $this->notifications = new Google_Service_Directory_Resource_Notifications(
  865. $this,
  866. $this->serviceName,
  867. 'notifications',
  868. array(
  869. 'methods' => array(
  870. 'delete' => array(
  871. 'path' => 'customer/{customer}/notifications/{notificationId}',
  872. 'httpMethod' => 'DELETE',
  873. 'parameters' => array(
  874. 'customer' => array(
  875. 'location' => 'path',
  876. 'type' => 'string',
  877. 'required' => true,
  878. ),
  879. 'notificationId' => array(
  880. 'location' => 'path',
  881. 'type' => 'string',
  882. 'required' => true,
  883. ),
  884. ),
  885. ),'get' => array(
  886. 'path' => 'customer/{customer}/notifications/{notificationId}',
  887. 'httpMethod' => 'GET',
  888. 'parameters' => array(
  889. 'customer' => array(
  890. 'location' => 'path',
  891. 'type' => 'string',
  892. 'required' => true,
  893. ),
  894. 'notificationId' => array(
  895. 'location' => 'path',
  896. 'type' => 'string',
  897. 'required' => true,
  898. ),
  899. ),
  900. ),'list' => array(
  901. 'path' => 'customer/{customer}/notifications',
  902. 'httpMethod' => 'GET',
  903. 'parameters' => array(
  904. 'customer' => array(
  905. 'location' => 'path',
  906. 'type' => 'string',
  907. 'required' => true,
  908. ),
  909. 'language' => array(
  910. 'location' => 'query',
  911. 'type' => 'string',
  912. ),
  913. 'maxResults' => array(
  914. 'location' => 'query',
  915. 'type' => 'integer',
  916. ),
  917. 'pageToken' => array(
  918. 'location' => 'query',
  919. 'type' => 'string',
  920. ),
  921. ),
  922. ),'patch' => array(
  923. 'path' => 'customer/{customer}/notifications/{notificationId}',
  924. 'httpMethod' => 'PATCH',
  925. 'parameters' => array(
  926. 'customer' => array(
  927. 'location' => 'path',
  928. 'type' => 'string',
  929. 'required' => true,
  930. ),
  931. 'notificationId' => array(
  932. 'location' => 'path',
  933. 'type' => 'string',
  934. 'required' => true,
  935. ),
  936. ),
  937. ),'update' => array(
  938. 'path' => 'customer/{customer}/notifications/{notificationId}',
  939. 'httpMethod' => 'PUT',
  940. 'parameters' => array(
  941. 'customer' => array(
  942. 'location' => 'path',
  943. 'type' => 'string',
  944. 'required' => true,
  945. ),
  946. 'notificationId' => array(
  947. 'location' => 'path',
  948. 'type' => 'string',
  949. 'required' => true,
  950. ),
  951. ),
  952. ),
  953. )
  954. )
  955. );
  956. $this->orgunits = new Google_Service_Directory_Resource_Orgunits(
  957. $this,
  958. $this->serviceName,
  959. 'orgunits',
  960. array(
  961. 'methods' => array(
  962. 'delete' => array(
  963. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  964. 'httpMethod' => 'DELETE',
  965. 'parameters' => array(
  966. 'customerId' => array(
  967. 'location' => 'path',
  968. 'type' => 'string',
  969. 'required' => true,
  970. ),
  971. 'orgUnitPath' => array(
  972. 'location' => 'path',
  973. 'type' => 'string',
  974. 'repeated' => true,
  975. 'required' => true,
  976. ),
  977. ),
  978. ),'get' => array(
  979. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  980. 'httpMethod' => 'GET',
  981. 'parameters' => array(
  982. 'customerId' => array(
  983. 'location' => 'path',
  984. 'type' => 'string',
  985. 'required' => true,
  986. ),
  987. 'orgUnitPath' => array(
  988. 'location' => 'path',
  989. 'type' => 'string',
  990. 'repeated' => true,
  991. 'required' => true,
  992. ),
  993. ),
  994. ),'insert' => array(
  995. 'path' => 'customer/{customerId}/orgunits',
  996. 'httpMethod' => 'POST',
  997. 'parameters' => array(
  998. 'customerId' => array(
  999. 'location' => 'path',
  1000. 'type' => 'string',
  1001. 'required' => true,
  1002. ),
  1003. ),
  1004. ),'list' => array(
  1005. 'path' => 'customer/{customerId}/orgunits',
  1006. 'httpMethod' => 'GET',
  1007. 'parameters' => array(
  1008. 'customerId' => array(
  1009. 'location' => 'path',
  1010. 'type' => 'string',
  1011. 'required' => true,
  1012. ),
  1013. 'orgUnitPath' => array(
  1014. 'location' => 'query',
  1015. 'type' => 'string',
  1016. ),
  1017. 'type' => array(
  1018. 'location' => 'query',
  1019. 'type' => 'string',
  1020. ),
  1021. ),
  1022. ),'patch' => array(
  1023. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  1024. 'httpMethod' => 'PATCH',
  1025. 'parameters' => array(
  1026. 'customerId' => array(
  1027. 'location' => 'path',
  1028. 'type' => 'string',
  1029. 'required' => true,
  1030. ),
  1031. 'orgUnitPath' => array(
  1032. 'location' => 'path',
  1033. 'type' => 'string',
  1034. 'repeated' => true,
  1035. 'required' => true,
  1036. ),
  1037. ),
  1038. ),'update' => array(
  1039. 'path' => 'customer/{customerId}/orgunits{/orgUnitPath*}',
  1040. 'httpMethod' => 'PUT',
  1041. 'parameters' => array(
  1042. 'customerId' => array(
  1043. 'location' => 'path',
  1044. 'type' => 'string',
  1045. 'required' => true,
  1046. ),
  1047. 'orgUnitPath' => array(
  1048. 'location' => 'path',
  1049. 'type' => 'string',
  1050. 'repeated' => true,
  1051. 'required' => true,
  1052. ),
  1053. ),
  1054. ),
  1055. )
  1056. )
  1057. );
  1058. $this->privileges = new Google_Service_Directory_Resource_Privileges(
  1059. $this,
  1060. $this->serviceName,
  1061. 'privileges',
  1062. array(
  1063. 'methods' => array(
  1064. 'list' => array(
  1065. 'path' => 'customer/{customer}/roles/ALL/privileges',
  1066. 'httpMethod' => 'GET',
  1067. 'parameters' => array(
  1068. 'customer' => array(
  1069. 'location' => 'path',
  1070. 'type' => 'string',
  1071. 'required' => true,
  1072. ),
  1073. ),
  1074. ),
  1075. )
  1076. )
  1077. );
  1078. $this->resolvedAppAccessSettings = new Google_Service_Directory_Resource_ResolvedAppAccessSettings(
  1079. $this,
  1080. $this->serviceName,
  1081. 'resolvedAppAccessSettings',
  1082. array(
  1083. 'methods' => array(
  1084. 'GetSettings' => array(
  1085. 'path' => 'resolvedappaccesssettings',
  1086. 'httpMethod' => 'GET',
  1087. 'parameters' => array(),
  1088. ),'ListTrustedApps' => array(
  1089. 'path' => 'trustedapps',
  1090. 'httpMethod' => 'GET',
  1091. 'parameters' => array(),
  1092. ),
  1093. )
  1094. )
  1095. );
  1096. $this->resources_buildings = new Google_Service_Directory_Resource_ResourcesBuildings(
  1097. $this,
  1098. $this->serviceName,
  1099. 'buildings',
  1100. array(
  1101. 'methods' => array(
  1102. 'delete' => array(
  1103. 'path' => 'customer/{customer}/resources/buildings/{buildingId}',
  1104. 'httpMethod' => 'DELETE',
  1105. 'parameters' => array(
  1106. 'customer' => array(
  1107. 'location' => 'path',
  1108. 'type' => 'string',
  1109. 'required' => true,
  1110. ),
  1111. 'buildingId' => array(
  1112. 'location' => 'path',
  1113. 'type' => 'string',
  1114. 'required' => true,
  1115. ),
  1116. ),
  1117. ),'get' => array(
  1118. 'path' => 'customer/{customer}/resources/buildings/{buildingId}',
  1119. 'httpMethod' => 'GET',
  1120. 'parameters' => array(
  1121. 'customer' => array(
  1122. 'location' => 'path',
  1123. 'type' => 'string',
  1124. 'required' => true,
  1125. ),
  1126. 'buildingId' => array(
  1127. 'location' => 'path',
  1128. 'type' => 'string',
  1129. 'required' => true,
  1130. ),
  1131. ),
  1132. ),'insert' => array(
  1133. 'path' => 'customer/{customer}/resources/buildings',
  1134. 'httpMethod' => 'POST',
  1135. 'parameters' => array(
  1136. 'customer' => array(
  1137. 'location' => 'path',
  1138. 'type' => 'string',
  1139. 'required' => true,
  1140. ),
  1141. ),
  1142. ),'list' => array(
  1143. 'path' => 'customer/{customer}/resources/buildings',
  1144. 'httpMethod' => 'GET',
  1145. 'parameters' => array(
  1146. 'customer' => array(
  1147. 'location' => 'path',
  1148. 'type' => 'string',
  1149. 'required' => true,
  1150. ),
  1151. 'maxResults' => array(
  1152. 'location' => 'query',
  1153. 'type' => 'integer',
  1154. ),
  1155. 'pageToken' => array(
  1156. 'location' => 'query',
  1157. 'type' => 'string',
  1158. ),
  1159. ),
  1160. ),'patch' => array(
  1161. 'path' => 'customer/{customer}/resources/buildings/{buildingId}',
  1162. 'httpMethod' => 'PATCH',
  1163. 'parameters' => array(
  1164. 'customer' => array(
  1165. 'location' => 'path',
  1166. 'type' => 'string',
  1167. 'required' => true,
  1168. ),
  1169. 'buildingId' => array(
  1170. 'location' => 'path',
  1171. 'type' => 'string',
  1172. 'required' => true,
  1173. ),
  1174. ),
  1175. ),'update' => array(
  1176. 'path' => 'customer/{customer}/resources/buildings/{buildingId}',
  1177. 'httpMethod' => 'PUT',
  1178. 'parameters' => array(
  1179. 'customer' => array(
  1180. 'location' => 'path',
  1181. 'type' => 'string',
  1182. 'required' => true,
  1183. ),
  1184. 'buildingId' => array(
  1185. 'location' => 'path',
  1186. 'type' => 'string',
  1187. 'required' => true,
  1188. ),
  1189. ),
  1190. ),
  1191. )
  1192. )
  1193. );
  1194. $this->resources_calendars = new Google_Service_Directory_Resource_ResourcesCalendars(
  1195. $this,
  1196. $this->serviceName,
  1197. 'calendars',
  1198. array(
  1199. 'methods' => array(
  1200. 'delete' => array(
  1201. 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
  1202. 'httpMethod' => 'DELETE',
  1203. 'parameters' => array(
  1204. 'customer' => array(
  1205. 'location' => 'path',
  1206. 'type' => 'string',
  1207. 'required' => true,
  1208. ),
  1209. 'calendarResourceId' => array(
  1210. 'location' => 'path',
  1211. 'type' => 'string',
  1212. 'required' => true,
  1213. ),
  1214. ),
  1215. ),'get' => array(
  1216. 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
  1217. 'httpMethod' => 'GET',
  1218. 'parameters' => array(
  1219. 'customer' => array(
  1220. 'location' => 'path',
  1221. 'type' => 'string',
  1222. 'required' => true,
  1223. ),
  1224. 'calendarResourceId' => array(
  1225. 'location' => 'path',
  1226. 'type' => 'string',
  1227. 'required' => true,
  1228. ),
  1229. ),
  1230. ),'insert' => array(
  1231. 'path' => 'customer/{customer}/resources/calendars',
  1232. 'httpMethod' => 'POST',
  1233. 'parameters' => array(
  1234. 'customer' => array(
  1235. 'location' => 'path',
  1236. 'type' => 'string',
  1237. 'required' => true,
  1238. ),
  1239. ),
  1240. ),'list' => array(
  1241. 'path' => 'customer/{customer}/resources/calendars',
  1242. 'httpMethod' => 'GET',
  1243. 'parameters' => array(
  1244. 'customer' => array(
  1245. 'location' => 'path',
  1246. 'type' => 'string',
  1247. 'required' => true,
  1248. ),
  1249. 'maxResults' => array(
  1250. 'location' => 'query',
  1251. 'type' => 'integer',
  1252. ),
  1253. 'orderBy' => array(
  1254. 'location' => 'query',
  1255. 'type' => 'string',
  1256. ),
  1257. 'pageToken' => array(
  1258. 'location' => 'query',
  1259. 'type' => 'string',
  1260. ),
  1261. 'query' => array(
  1262. 'location' => 'query',
  1263. 'type' => 'string',
  1264. ),
  1265. ),
  1266. ),'patch' => array(
  1267. 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
  1268. 'httpMethod' => 'PATCH',
  1269. 'parameters' => array(
  1270. 'customer' => array(
  1271. 'location' => 'path',
  1272. 'type' => 'string',
  1273. 'required' => true,
  1274. ),
  1275. 'calendarResourceId' => array(
  1276. 'location' => 'path',
  1277. 'type' => 'string',
  1278. 'required' => true,
  1279. ),
  1280. ),
  1281. ),'update' => array(
  1282. 'path' => 'customer/{customer}/resources/calendars/{calendarResourceId}',
  1283. 'httpMethod' => 'PUT',
  1284. 'parameters' => array(
  1285. 'customer' => array(
  1286. 'location' => 'path',
  1287. 'type' => 'string',
  1288. 'required' => true,
  1289. ),
  1290. 'calendarResourceId' => array(
  1291. 'location' => 'path',
  1292. 'type' => 'string',
  1293. 'required' => true,
  1294. ),
  1295. ),
  1296. ),
  1297. )
  1298. )
  1299. );
  1300. $this->resources_features = new Google_Service_Directory_Resource_ResourcesFeatures(
  1301. $this,
  1302. $this->serviceName,
  1303. 'features',
  1304. array(
  1305. 'methods' => array(
  1306. 'delete' => array(
  1307. 'path' => 'customer/{customer}/resources/features/{featureKey}',
  1308. 'httpMethod' => 'DELETE',
  1309. 'parameters' => array(
  1310. 'customer' => array(
  1311. 'location' => 'path',
  1312. 'type' => 'string',
  1313. 'required' => true,
  1314. ),
  1315. 'featureKey' => array(
  1316. 'location' => 'path',
  1317. 'type' => 'string',
  1318. 'required' => true,
  1319. ),
  1320. ),
  1321. ),'get' => array(
  1322. 'path' => 'customer/{customer}/resources/features/{featureKey}',
  1323. 'httpMethod' => 'GET',
  1324. 'parameters' => array(
  1325. 'customer' => array(
  1326. 'location' => 'path',
  1327. 'type' => 'string',
  1328. 'required' => true,
  1329. ),
  1330. 'featureKey' => array(
  1331. 'location' => 'path',
  1332. 'type' => 'string',
  1333. 'required' => true,
  1334. ),
  1335. ),
  1336. ),'insert' => array(
  1337. 'path' => 'customer/{customer}/resources/features',
  1338. 'httpMethod' => 'POST',
  1339. 'parameters' => array(
  1340. 'customer' => array(
  1341. 'location' => 'path',
  1342. 'type' => 'string',
  1343. 'required' => true,
  1344. ),
  1345. ),
  1346. ),'list' => array(
  1347. 'path' => 'customer/{customer}/resources/features',
  1348. 'httpMethod' => 'GET',
  1349. 'parameters' => array(
  1350. 'customer' => array(
  1351. 'location' => 'path',
  1352. 'type' => 'string',
  1353. 'required' => true,
  1354. ),
  1355. 'maxResults' => array(
  1356. 'location' => 'query',
  1357. 'type' => 'integer',
  1358. ),
  1359. 'pageToken' => array(
  1360. 'location' => 'query',
  1361. 'type' => 'string',
  1362. ),
  1363. ),
  1364. ),'patch' => array(
  1365. 'path' => 'customer/{customer}/resources/features/{featureKey}',
  1366. 'httpMethod' => 'PATCH',
  1367. 'parameters' => array(
  1368. 'customer' => array(
  1369. 'location' => 'path',
  1370. 'type' => 'string',
  1371. 'required' => true,
  1372. ),
  1373. 'featureKey' => array(
  1374. 'location' => 'path',
  1375. 'type' => 'string',
  1376. 'required' => true,
  1377. ),
  1378. ),
  1379. ),'rename' => array(
  1380. 'path' => 'customer/{customer}/resources/features/{oldName}/rename',
  1381. 'httpMethod' => 'POST',
  1382. 'parameters' => array(
  1383. 'customer' => array(
  1384. 'location' => 'path',
  1385. 'type' => 'string',
  1386. 'required' => true,
  1387. ),
  1388. 'oldName' => array(
  1389. 'location' => 'path',
  1390. 'type' => 'string',
  1391. 'required' => true,
  1392. ),
  1393. ),
  1394. ),'update' => array(
  1395. 'path' => 'customer/{customer}/resources/features/{featureKey}',
  1396. 'httpMethod' => 'PUT',
  1397. 'parameters' => array(
  1398. 'customer' => array(
  1399. 'location' => 'path',
  1400. 'type' => 'string',
  1401. 'required' => true,
  1402. ),
  1403. 'featureKey' => array(
  1404. 'location' => 'path',
  1405. 'type' => 'string',
  1406. 'required' => true,
  1407. ),
  1408. ),
  1409. ),
  1410. )
  1411. )
  1412. );
  1413. $this->roleAssignments = new Google_Service_Directory_Resource_RoleAssignments(
  1414. $this,
  1415. $this->serviceName,
  1416. 'roleAssignments',
  1417. array(
  1418. 'methods' => array(
  1419. 'delete' => array(
  1420. 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
  1421. 'httpMethod' => 'DELETE',
  1422. 'parameters' => array(
  1423. 'customer' => array(
  1424. 'location' => 'path',
  1425. 'type' => 'string',
  1426. 'required' => true,
  1427. ),
  1428. 'roleAssignmentId' => array(
  1429. 'location' => 'path',
  1430. 'type' => 'string',
  1431. 'required' => true,
  1432. ),
  1433. ),
  1434. ),'get' => array(
  1435. 'path' => 'customer/{customer}/roleassignments/{roleAssignmentId}',
  1436. 'httpMethod' => 'GET',
  1437. 'parameters' => array(
  1438. 'customer' => array(
  1439. 'location' => 'path',
  1440. 'type' => 'string',
  1441. 'required' => true,
  1442. ),
  1443. 'roleAssignmentId' => array(
  1444. 'location' => 'path',
  1445. 'type' => 'string',
  1446. 'required' => true,
  1447. ),
  1448. ),
  1449. ),'insert' => array(
  1450. 'path' => 'customer/{customer}/roleassignments',
  1451. 'httpMethod' => 'POST',
  1452. 'parameters' => array(
  1453. 'customer' => array(
  1454. 'location' => 'path',
  1455. 'type' => 'string',
  1456. 'required' => true,
  1457. ),
  1458. ),
  1459. ),'list' => array(
  1460. 'path' => 'customer/{customer}/roleassignments',
  1461. 'httpMethod' => 'GET',
  1462. 'parameters' => array(
  1463. 'customer' => array(
  1464. 'location' => 'path',
  1465. 'type' => 'string',
  1466. 'required' => true,
  1467. ),
  1468. 'maxResults' => array(
  1469. 'location' => 'query',
  1470. 'type' => 'integer',
  1471. ),
  1472. 'pageToken' => array(
  1473. 'location' => 'query',
  1474. 'type' => 'string',
  1475. ),
  1476. 'roleId' => array(
  1477. 'location' => 'query',
  1478. 'type' => 'string',
  1479. ),
  1480. 'userKey' => array(
  1481. 'location' => 'query',
  1482. 'type' => 'string',
  1483. ),
  1484. ),
  1485. ),
  1486. )
  1487. )
  1488. );
  1489. $this->roles = new Google_Service_Directory_Resource_Roles(
  1490. $this,
  1491. $this->serviceName,
  1492. 'roles',
  1493. array(
  1494. 'methods' => array(
  1495. 'delete' => array(
  1496. 'path' => 'customer/{customer}/roles/{roleId}',
  1497. 'httpMethod' => 'DELETE',
  1498. 'parameters' => array(
  1499. 'customer' => array(
  1500. 'location' => 'path',
  1501. 'type' => 'string',
  1502. 'required' => true,
  1503. ),
  1504. 'roleId' => array(
  1505. 'location' => 'path',
  1506. 'type' => 'string',
  1507. 'required' => true,
  1508. ),
  1509. ),
  1510. ),'get' => array(
  1511. 'path' => 'customer/{customer}/roles/{roleId}',
  1512. 'httpMethod' => 'GET',
  1513. 'parameters' => array(
  1514. 'customer' => array(
  1515. 'location' => 'path',
  1516. 'type' => 'string',
  1517. 'required' => true,
  1518. ),
  1519. 'roleId' => array(
  1520. 'location' => 'path',
  1521. 'type' => 'string',
  1522. 'required' => true,
  1523. ),
  1524. ),
  1525. ),'insert' => array(
  1526. 'path' => 'customer/{customer}/roles',
  1527. 'httpMethod' => 'POST',
  1528. 'parameters' => array(
  1529. 'customer' => array(
  1530. 'location' => 'path',
  1531. 'type' => 'string',
  1532. 'required' => true,
  1533. ),
  1534. ),
  1535. ),'list' => array(
  1536. 'path' => 'customer/{customer}/roles',
  1537. 'httpMethod' => 'GET',
  1538. 'parameters' => array(
  1539. 'customer' => array(
  1540. 'location' => 'path',
  1541. 'type' => 'string',
  1542. 'required' => true,
  1543. ),
  1544. 'maxResults' => array(
  1545. 'location' => 'query',
  1546. 'type' => 'integer',
  1547. ),
  1548. 'pageToken' => array(
  1549. 'location' => 'query',
  1550. 'type' => 'string',
  1551. ),
  1552. ),
  1553. ),'patch' => array(
  1554. 'path' => 'customer/{customer}/roles/{roleId}',
  1555. 'httpMethod' => 'PATCH',
  1556. 'parameters' => array(
  1557. 'customer' => array(
  1558. 'location' => 'path',
  1559. 'type' => 'string',
  1560. 'required' => true,
  1561. ),
  1562. 'roleId' => array(
  1563. 'location' => 'path',
  1564. 'type' => 'string',
  1565. 'required' => true,
  1566. ),
  1567. ),
  1568. ),'update' => array(
  1569. 'path' => 'customer/{customer}/roles/{roleId}',
  1570. 'httpMethod' => 'PUT',
  1571. 'parameters' => array(
  1572. 'customer' => array(
  1573. 'location' => 'path',
  1574. 'type' => 'string',
  1575. 'required' => true,
  1576. ),
  1577. 'roleId' => array(
  1578. 'location' => 'path',
  1579. 'type' => 'string',
  1580. 'required' => true,
  1581. ),
  1582. ),
  1583. ),
  1584. )
  1585. )
  1586. );
  1587. $this->schemas = new Google_Service_Directory_Resource_Schemas(
  1588. $this,
  1589. $this->serviceName,
  1590. 'schemas',
  1591. array(
  1592. 'methods' => array(
  1593. 'delete' => array(
  1594. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1595. 'httpMethod' => 'DELETE',
  1596. 'parameters' => array(
  1597. 'customerId' => array(
  1598. 'location' => 'path',
  1599. 'type' => 'string',
  1600. 'required' => true,
  1601. ),
  1602. 'schemaKey' => array(
  1603. 'location' => 'path',
  1604. 'type' => 'string',
  1605. 'required' => true,
  1606. ),
  1607. ),
  1608. ),'get' => array(
  1609. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1610. 'httpMethod' => 'GET',
  1611. 'parameters' => array(
  1612. 'customerId' => array(
  1613. 'location' => 'path',
  1614. 'type' => 'string',
  1615. 'required' => true,
  1616. ),
  1617. 'schemaKey' => array(
  1618. 'location' => 'path',
  1619. 'type' => 'string',
  1620. 'required' => true,
  1621. ),
  1622. ),
  1623. ),'insert' => array(
  1624. 'path' => 'customer/{customerId}/schemas',
  1625. 'httpMethod' => 'POST',
  1626. 'parameters' => array(
  1627. 'customerId' => array(
  1628. 'location' => 'path',
  1629. 'type' => 'string',
  1630. 'required' => true,
  1631. ),
  1632. ),
  1633. ),'list' => array(
  1634. 'path' => 'customer/{customerId}/schemas',
  1635. 'httpMethod' => 'GET',
  1636. 'parameters' => array(
  1637. 'customerId' => array(
  1638. 'location' => 'path',
  1639. 'type' => 'string',
  1640. 'required' => true,
  1641. ),
  1642. ),
  1643. ),'patch' => array(
  1644. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1645. 'httpMethod' => 'PATCH',
  1646. 'parameters' => array(
  1647. 'customerId' => array(
  1648. 'location' => 'path',
  1649. 'type' => 'string',
  1650. 'required' => true,
  1651. ),
  1652. 'schemaKey' => array(
  1653. 'location' => 'path',
  1654. 'type' => 'string',
  1655. 'required' => true,
  1656. ),
  1657. ),
  1658. ),'update' => array(
  1659. 'path' => 'customer/{customerId}/schemas/{schemaKey}',
  1660. 'httpMethod' => 'PUT',
  1661. 'parameters' => array(
  1662. 'customerId' => array(
  1663. 'location' => 'path',
  1664. 'type' => 'string',
  1665. 'required' => true,
  1666. ),
  1667. 'schemaKey' => array(
  1668. 'location' => 'path',
  1669. 'type' => 'string',
  1670. 'required' => true,
  1671. ),
  1672. ),
  1673. ),
  1674. )
  1675. )
  1676. );
  1677. $this->tokens = new Google_Service_Directory_Resource_Tokens(
  1678. $this,
  1679. $this->serviceName,
  1680. 'tokens',
  1681. array(
  1682. 'methods' => array(
  1683. 'delete' => array(
  1684. 'path' => 'users/{userKey}/tokens/{clientId}',
  1685. 'httpMethod' => 'DELETE',
  1686. 'parameters' => array(
  1687. 'userKey' => array(
  1688. 'location' => 'path',
  1689. 'type' => 'string',
  1690. 'required' => true,
  1691. ),
  1692. 'clientId' => array(
  1693. 'location' => 'path',
  1694. 'type' => 'string',
  1695. 'required' => true,
  1696. ),
  1697. ),
  1698. ),'get' => array(
  1699. 'path' => 'users/{userKey}/tokens/{clientId}',
  1700. 'httpMethod' => 'GET',
  1701. 'parameters' => array(
  1702. 'userKey' => array(
  1703. 'location' => 'path',
  1704. 'type' => 'string',
  1705. 'required' => true,
  1706. ),
  1707. 'clientId' => array(
  1708. 'location' => 'path',
  1709. 'type' => 'string',
  1710. 'required' => true,
  1711. ),
  1712. ),
  1713. ),'list' => array(
  1714. 'path' => 'users/{userKey}/tokens',
  1715. 'httpMethod' => 'GET',
  1716. 'parameters' => array(
  1717. 'userKey' => array(
  1718. 'location' => 'path',
  1719. 'type' => 'string',
  1720. 'required' => true,
  1721. ),
  1722. ),
  1723. ),
  1724. )
  1725. )
  1726. );
  1727. $this->users = new Google_Service_Directory_Resource_Users(
  1728. $this,
  1729. $this->serviceName,
  1730. 'users',
  1731. array(
  1732. 'methods' => array(
  1733. 'delete' => array(
  1734. 'path' => 'users/{userKey}',
  1735. 'httpMethod' => 'DELETE',
  1736. 'parameters' => array(
  1737. 'userKey' => array(
  1738. 'location' => 'path',
  1739. 'type' => 'string',
  1740. 'required' => true,
  1741. ),
  1742. ),
  1743. ),'get' => array(
  1744. 'path' => 'users/{userKey}',
  1745. 'httpMethod' => 'GET',
  1746. 'parameters' => array(
  1747. 'userKey' => array(
  1748. 'location' => 'path',
  1749. 'type' => 'string',
  1750. 'required' => true,
  1751. ),
  1752. 'customFieldMask' => array(
  1753. 'location' => 'query',
  1754. 'type' => 'string',
  1755. ),
  1756. 'projection' => array(
  1757. 'location' => 'query',
  1758. 'type' => 'string',
  1759. ),
  1760. 'viewType' => array(
  1761. 'location' => 'query',
  1762. 'type' => 'string',
  1763. ),
  1764. ),
  1765. ),'insert' => array(
  1766. 'path' => 'users',
  1767. 'httpMethod' => 'POST',
  1768. 'parameters' => array(),
  1769. ),'list' => array(
  1770. 'path' => 'users',
  1771. 'httpMethod' => 'GET',
  1772. 'parameters' => array(
  1773. 'customFieldMask' => array(
  1774. 'location' => 'query',
  1775. 'type' => 'string',
  1776. ),
  1777. 'customer' => array(
  1778. 'location' => 'query',
  1779. 'type' => 'string',
  1780. ),
  1781. 'domain' => array(
  1782. 'location' => 'query',
  1783. 'type' => 'string',
  1784. ),
  1785. 'event' => array(
  1786. 'location' => 'query',
  1787. 'type' => 'string',
  1788. ),
  1789. 'maxResults' => array(
  1790. 'location' => 'query',
  1791. 'type' => 'integer',
  1792. ),
  1793. 'orderBy' => array(
  1794. 'location' => 'query',
  1795. 'type' => 'string',
  1796. ),
  1797. 'pageToken' => array(
  1798. 'location' => 'query',
  1799. 'type' => 'string',
  1800. ),
  1801. 'projection' => array(
  1802. 'location' => 'query',
  1803. 'type' => 'string',
  1804. ),
  1805. 'query' => array(
  1806. 'location' => 'query',
  1807. 'type' => 'string',
  1808. ),
  1809. 'showDeleted' => array(
  1810. 'location' => 'query',
  1811. 'type' => 'string',
  1812. ),
  1813. 'sortOrder' => array(
  1814. 'location' => 'query',
  1815. 'type' => 'string',
  1816. ),
  1817. 'viewType' => array(
  1818. 'location' => 'query',
  1819. 'type' => 'string',
  1820. ),
  1821. ),
  1822. ),'makeAdmin' => array(
  1823. 'path' => 'users/{userKey}/makeAdmin',
  1824. 'httpMethod' => 'POST',
  1825. 'parameters' => array(
  1826. 'userKey' => array(
  1827. 'location' => 'path',
  1828. 'type' => 'string',
  1829. 'required' => true,
  1830. ),
  1831. ),
  1832. ),'patch' => array(
  1833. 'path' => 'users/{userKey}',
  1834. 'httpMethod' => 'PATCH',
  1835. 'parameters' => array(
  1836. 'userKey' => array(
  1837. 'location' => 'path',
  1838. 'type' => 'string',
  1839. 'required' => true,
  1840. ),
  1841. ),
  1842. ),'undelete' => array(
  1843. 'path' => 'users/{userKey}/undelete',
  1844. 'httpMethod' => 'POST',
  1845. 'parameters' => array(
  1846. 'userKey' => array(
  1847. 'location' => 'path',
  1848. 'type' => 'string',
  1849. 'required' => true,
  1850. ),
  1851. ),
  1852. ),'update' => array(
  1853. 'path' => 'users/{userKey}',
  1854. 'httpMethod' => 'PUT',
  1855. 'parameters' => array(
  1856. 'userKey' => array(
  1857. 'location' => 'path',
  1858. 'type' => 'string',
  1859. 'required' => true,
  1860. ),
  1861. ),
  1862. ),'watch' => array(
  1863. 'path' => 'users/watch',
  1864. 'httpMethod' => 'POST',
  1865. 'parameters' => array(
  1866. 'customFieldMask' => array(
  1867. 'location' => 'query',
  1868. 'type' => 'string',
  1869. ),
  1870. 'customer' => array(
  1871. 'location' => 'query',
  1872. 'type' => 'string',
  1873. ),
  1874. 'domain' => array(
  1875. 'location' => 'query',
  1876. 'type' => 'string',
  1877. ),
  1878. 'event' => array(
  1879. 'location' => 'query',
  1880. 'type' => 'string',
  1881. ),
  1882. 'maxResults' => array(
  1883. 'location' => 'query',
  1884. 'type' => 'integer',
  1885. ),
  1886. 'orderBy' => array(
  1887. 'location' => 'query',
  1888. 'type' => 'string',
  1889. ),
  1890. 'pageToken' => array(
  1891. 'location' => 'query',
  1892. 'type' => 'string',
  1893. ),
  1894. 'projection' => array(
  1895. 'location' => 'query',
  1896. 'type' => 'string',
  1897. ),
  1898. 'query' => array(
  1899. 'location' => 'query',
  1900. 'type' => 'string',
  1901. ),
  1902. 'showDeleted' => array(
  1903. 'location' => 'query',
  1904. 'type' => 'string',
  1905. ),
  1906. 'sortOrder' => array(
  1907. 'location' => 'query',
  1908. 'type' => 'string',
  1909. ),
  1910. 'viewType' => array(
  1911. 'location' => 'query',
  1912. 'type' => 'string',
  1913. ),
  1914. ),
  1915. ),
  1916. )
  1917. )
  1918. );
  1919. $this->users_aliases = new Google_Service_Directory_Resource_UsersAliases(
  1920. $this,
  1921. $this->serviceName,
  1922. 'aliases',
  1923. array(
  1924. 'methods' => array(
  1925. 'delete' => array(
  1926. 'path' => 'users/{userKey}/aliases/{alias}',
  1927. 'httpMethod' => 'DELETE',
  1928. 'parameters' => array(
  1929. 'userKey' => array(
  1930. 'location' => 'path',
  1931. 'type' => 'string',
  1932. 'required' => true,
  1933. ),
  1934. 'alias' => array(
  1935. 'location' => 'path',
  1936. 'type' => 'string',
  1937. 'required' => true,
  1938. ),
  1939. ),
  1940. ),'insert' => array(
  1941. 'path' => 'users/{userKey}/aliases',
  1942. 'httpMethod' => 'POST',
  1943. 'parameters' => array(
  1944. 'userKey' => array(
  1945. 'location' => 'path',
  1946. 'type' => 'string',
  1947. 'required' => true,
  1948. ),
  1949. ),
  1950. ),'list' => array(
  1951. 'path' => 'users/{userKey}/aliases',
  1952. 'httpMethod' => 'GET',
  1953. 'parameters' => array(
  1954. 'userKey' => array(
  1955. 'location' => 'path',
  1956. 'type' => 'string',
  1957. 'required' => true,
  1958. ),
  1959. 'event' => array(
  1960. 'location' => 'query',
  1961. 'type' => 'string',
  1962. ),
  1963. ),
  1964. ),'watch' => array(
  1965. 'path' => 'users/{userKey}/aliases/watch',
  1966. 'httpMethod' => 'POST',
  1967. 'parameters' => array(
  1968. 'userKey' => array(
  1969. 'location' => 'path',
  1970. 'type' => 'string',
  1971. 'required' => true,
  1972. ),
  1973. 'event' => array(
  1974. 'location' => 'query',
  1975. 'type' => 'string',
  1976. ),
  1977. ),
  1978. ),
  1979. )
  1980. )
  1981. );
  1982. $this->users_photos = new Google_Service_Directory_Resource_UsersPhotos(
  1983. $this,
  1984. $this->serviceName,
  1985. 'photos',
  1986. array(
  1987. 'methods' => array(
  1988. 'delete' => array(
  1989. 'path' => 'users/{userKey}/photos/thumbnail',
  1990. 'httpMethod' => 'DELETE',
  1991. 'parameters' => array(
  1992. 'userKey' => array(
  1993. 'location' => 'path',
  1994. 'type' => 'string',
  1995. 'required' => true,
  1996. ),
  1997. ),
  1998. ),'get' => array(
  1999. 'path' => 'users/{userKey}/photos/thumbnail',
  2000. 'httpMethod' => 'GET',
  2001. 'parameters' => array(
  2002. 'userKey' => array(
  2003. 'location' => 'path',
  2004. 'type' => 'string',
  2005. 'required' => true,
  2006. ),
  2007. ),
  2008. ),'patch' => array(
  2009. 'path' => 'users/{userKey}/photos/thumbnail',
  2010. 'httpMethod' => 'PATCH',
  2011. 'parameters' => array(
  2012. 'userKey' => array(
  2013. 'location' => 'path',
  2014. 'type' => 'string',
  2015. 'required' => true,
  2016. ),
  2017. ),
  2018. ),'update' => array(
  2019. 'path' => 'users/{userKey}/photos/thumbnail',
  2020. 'httpMethod' => 'PUT',
  2021. 'parameters' => array(
  2022. 'userKey' => array(
  2023. 'location' => 'path',
  2024. 'type' => 'string',
  2025. 'required' => true,
  2026. ),
  2027. ),
  2028. ),
  2029. )
  2030. )
  2031. );
  2032. $this->verificationCodes = new Google_Service_Directory_Resource_VerificationCodes(
  2033. $this,
  2034. $this->serviceName,
  2035. 'verificationCodes',
  2036. array(
  2037. 'methods' => array(
  2038. 'generate' => array(
  2039. 'path' => 'users/{userKey}/verificationCodes/generate',
  2040. 'httpMethod' => 'POST',
  2041. 'parameters' => array(
  2042. 'userKey' => array(
  2043. 'location' => 'path',
  2044. 'type' => 'string',
  2045. 'required' => true,
  2046. ),
  2047. ),
  2048. ),'invalidate' => array(
  2049. 'path' => 'users/{userKey}/verificationCodes/invalidate',
  2050. 'httpMethod' => 'POST',
  2051. 'parameters' => array(
  2052. 'userKey' => array(
  2053. 'location' => 'path',
  2054. 'type' => 'string',
  2055. 'required' => true,
  2056. ),
  2057. ),
  2058. ),'list' => array(
  2059. 'path' => 'users/{userKey}/verificationCodes',
  2060. 'httpMethod' => 'GET',
  2061. 'parameters' => array(
  2062. 'userKey' => array(
  2063. 'location' => 'path',
  2064. 'type' => 'string',
  2065. 'required' => true,
  2066. ),
  2067. ),
  2068. ),
  2069. )
  2070. )
  2071. );
  2072. }
  2073. }