PageRenderTime 53ms CodeModel.GetById 19ms RepoModel.GetById 1ms app.codeStats 0ms

/webui/google-api/contrib/apiCalendarService.php

https://bitbucket.org/sailsdigital/piler-remi
PHP | 1863 lines | 1449 code | 54 blank | 360 comment | 56 complexity | a0694a660864a9b67c523caa1ec437e1 MD5 | raw file
Possible License(s): GPL-3.0

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Copyright (c) 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. require_once 'service/apiModel.php';
  18. require_once 'service/apiService.php';
  19. require_once 'service/apiServiceRequest.php';
  20. /**
  21. * The "freebusy" collection of methods.
  22. * Typical usage is:
  23. * <code>
  24. * $calendarService = new apiCalendarService(...);
  25. * $freebusy = $calendarService->freebusy;
  26. * </code>
  27. */
  28. class FreebusyServiceResource extends apiServiceResource {
  29. /**
  30. * Returns free/busy information for a set of calendars. (freebusy.query)
  31. *
  32. * @param FreeBusyRequest $postBody
  33. * @return FreeBusyResponse
  34. */
  35. public function query(FreeBusyRequest $postBody, $optParams = array()) {
  36. $params = array('postBody' => $postBody);
  37. $params = array_merge($params, $optParams);
  38. $data = $this->__call('query', array($params));
  39. if ($this->useObjects()) {
  40. return new FreeBusyResponse($data);
  41. } else {
  42. return $data;
  43. }
  44. }
  45. }
  46. /**
  47. * The "settings" collection of methods.
  48. * Typical usage is:
  49. * <code>
  50. * $calendarService = new apiCalendarService(...);
  51. * $settings = $calendarService->settings;
  52. * </code>
  53. */
  54. class SettingsServiceResource extends apiServiceResource {
  55. /**
  56. * Returns all user settings for the authenticated user. (settings.list)
  57. *
  58. * @return Settings
  59. */
  60. public function listSettings($optParams = array()) {
  61. $params = array();
  62. $params = array_merge($params, $optParams);
  63. $data = $this->__call('list', array($params));
  64. if ($this->useObjects()) {
  65. return new Settings($data);
  66. } else {
  67. return $data;
  68. }
  69. }
  70. /**
  71. * Returns a single user setting. (settings.get)
  72. *
  73. * @param string $setting Name of the user setting.
  74. * @return Setting
  75. */
  76. public function get($setting, $optParams = array()) {
  77. $params = array('setting' => $setting);
  78. $params = array_merge($params, $optParams);
  79. $data = $this->__call('get', array($params));
  80. if ($this->useObjects()) {
  81. return new Setting($data);
  82. } else {
  83. return $data;
  84. }
  85. }
  86. }
  87. /**
  88. * The "calendarList" collection of methods.
  89. * Typical usage is:
  90. * <code>
  91. * $calendarService = new apiCalendarService(...);
  92. * $calendarList = $calendarService->calendarList;
  93. * </code>
  94. */
  95. class CalendarListServiceResource extends apiServiceResource {
  96. /**
  97. * Adds an entry to the user's calendar list. (calendarList.insert)
  98. *
  99. * @param CalendarListEntry $postBody
  100. * @return CalendarListEntry
  101. */
  102. public function insert(CalendarListEntry $postBody, $optParams = array()) {
  103. $params = array('postBody' => $postBody);
  104. $params = array_merge($params, $optParams);
  105. $data = $this->__call('insert', array($params));
  106. if ($this->useObjects()) {
  107. return new CalendarListEntry($data);
  108. } else {
  109. return $data;
  110. }
  111. }
  112. /**
  113. * Returns an entry on the user's calendar list. (calendarList.get)
  114. *
  115. * @param string $calendarId Calendar identifier.
  116. * @return CalendarListEntry
  117. */
  118. public function get($calendarId, $optParams = array()) {
  119. $params = array('calendarId' => $calendarId);
  120. $params = array_merge($params, $optParams);
  121. $data = $this->__call('get', array($params));
  122. if ($this->useObjects()) {
  123. return new CalendarListEntry($data);
  124. } else {
  125. return $data;
  126. }
  127. }
  128. /**
  129. * Returns entries on the user's calendar list. (calendarList.list)
  130. *
  131. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  132. *
  133. * @opt_param string pageToken Token specifying which result page to return. Optional.
  134. * @opt_param bool showHidden Whether to show hidden entries. Optional. The default is False.
  135. * @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
  136. * @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
  137. * @return CalendarList
  138. */
  139. public function listCalendarList($optParams = array()) {
  140. $params = array();
  141. $params = array_merge($params, $optParams);
  142. $data = $this->__call('list', array($params));
  143. if ($this->useObjects()) {
  144. return new CalendarList($data);
  145. } else {
  146. return $data;
  147. }
  148. }
  149. /**
  150. * Updates an entry on the user's calendar list. (calendarList.update)
  151. *
  152. * @param string $calendarId Calendar identifier.
  153. * @param CalendarListEntry $postBody
  154. * @return CalendarListEntry
  155. */
  156. public function update($calendarId, CalendarListEntry $postBody, $optParams = array()) {
  157. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  158. $params = array_merge($params, $optParams);
  159. $data = $this->__call('update', array($params));
  160. if ($this->useObjects()) {
  161. return new CalendarListEntry($data);
  162. } else {
  163. return $data;
  164. }
  165. }
  166. /**
  167. * Updates an entry on the user's calendar list. This method supports patch semantics.
  168. * (calendarList.patch)
  169. *
  170. * @param string $calendarId Calendar identifier.
  171. * @param CalendarListEntry $postBody
  172. * @return CalendarListEntry
  173. */
  174. public function patch($calendarId, CalendarListEntry $postBody, $optParams = array()) {
  175. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  176. $params = array_merge($params, $optParams);
  177. $data = $this->__call('patch', array($params));
  178. if ($this->useObjects()) {
  179. return new CalendarListEntry($data);
  180. } else {
  181. return $data;
  182. }
  183. }
  184. /**
  185. * Deletes an entry on the user's calendar list. (calendarList.delete)
  186. *
  187. * @param string $calendarId Calendar identifier.
  188. */
  189. public function delete($calendarId, $optParams = array()) {
  190. $params = array('calendarId' => $calendarId);
  191. $params = array_merge($params, $optParams);
  192. $data = $this->__call('delete', array($params));
  193. return $data;
  194. }
  195. }
  196. /**
  197. * The "calendars" collection of methods.
  198. * Typical usage is:
  199. * <code>
  200. * $calendarService = new apiCalendarService(...);
  201. * $calendars = $calendarService->calendars;
  202. * </code>
  203. */
  204. class CalendarsServiceResource extends apiServiceResource {
  205. /**
  206. * Creates a secondary calendar. (calendars.insert)
  207. *
  208. * @param Calendar $postBody
  209. * @return Calendar
  210. */
  211. public function insert(Calendar $postBody, $optParams = array()) {
  212. $params = array('postBody' => $postBody);
  213. $params = array_merge($params, $optParams);
  214. $data = $this->__call('insert', array($params));
  215. if ($this->useObjects()) {
  216. return new Calendar($data);
  217. } else {
  218. return $data;
  219. }
  220. }
  221. /**
  222. * Returns metadata for a calendar. (calendars.get)
  223. *
  224. * @param string $calendarId Calendar identifier.
  225. * @return Calendar
  226. */
  227. public function get($calendarId, $optParams = array()) {
  228. $params = array('calendarId' => $calendarId);
  229. $params = array_merge($params, $optParams);
  230. $data = $this->__call('get', array($params));
  231. if ($this->useObjects()) {
  232. return new Calendar($data);
  233. } else {
  234. return $data;
  235. }
  236. }
  237. /**
  238. * Clears a primary calendar. This operation deletes all data associated with the primary calendar
  239. * of an account and cannot be undone. (calendars.clear)
  240. *
  241. * @param string $calendarId Calendar identifier.
  242. */
  243. public function clear($calendarId, $optParams = array()) {
  244. $params = array('calendarId' => $calendarId);
  245. $params = array_merge($params, $optParams);
  246. $data = $this->__call('clear', array($params));
  247. return $data;
  248. }
  249. /**
  250. * Updates metadata for a calendar. (calendars.update)
  251. *
  252. * @param string $calendarId Calendar identifier.
  253. * @param Calendar $postBody
  254. * @return Calendar
  255. */
  256. public function update($calendarId, Calendar $postBody, $optParams = array()) {
  257. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  258. $params = array_merge($params, $optParams);
  259. $data = $this->__call('update', array($params));
  260. if ($this->useObjects()) {
  261. return new Calendar($data);
  262. } else {
  263. return $data;
  264. }
  265. }
  266. /**
  267. * Updates metadata for a calendar. This method supports patch semantics. (calendars.patch)
  268. *
  269. * @param string $calendarId Calendar identifier.
  270. * @param Calendar $postBody
  271. * @return Calendar
  272. */
  273. public function patch($calendarId, Calendar $postBody, $optParams = array()) {
  274. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  275. $params = array_merge($params, $optParams);
  276. $data = $this->__call('patch', array($params));
  277. if ($this->useObjects()) {
  278. return new Calendar($data);
  279. } else {
  280. return $data;
  281. }
  282. }
  283. /**
  284. * Deletes a secondary calendar. (calendars.delete)
  285. *
  286. * @param string $calendarId Calendar identifier.
  287. */
  288. public function delete($calendarId, $optParams = array()) {
  289. $params = array('calendarId' => $calendarId);
  290. $params = array_merge($params, $optParams);
  291. $data = $this->__call('delete', array($params));
  292. return $data;
  293. }
  294. }
  295. /**
  296. * The "acl" collection of methods.
  297. * Typical usage is:
  298. * <code>
  299. * $calendarService = new apiCalendarService(...);
  300. * $acl = $calendarService->acl;
  301. * </code>
  302. */
  303. class AclServiceResource extends apiServiceResource {
  304. /**
  305. * Creates an access control rule. (acl.insert)
  306. *
  307. * @param string $calendarId Calendar identifier.
  308. * @param AclRule $postBody
  309. * @return AclRule
  310. */
  311. public function insert($calendarId, AclRule $postBody, $optParams = array()) {
  312. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  313. $params = array_merge($params, $optParams);
  314. $data = $this->__call('insert', array($params));
  315. if ($this->useObjects()) {
  316. return new AclRule($data);
  317. } else {
  318. return $data;
  319. }
  320. }
  321. /**
  322. * Returns an access control rule. (acl.get)
  323. *
  324. * @param string $calendarId Calendar identifier.
  325. * @param string $ruleId ACL rule identifier.
  326. * @return AclRule
  327. */
  328. public function get($calendarId, $ruleId, $optParams = array()) {
  329. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
  330. $params = array_merge($params, $optParams);
  331. $data = $this->__call('get', array($params));
  332. if ($this->useObjects()) {
  333. return new AclRule($data);
  334. } else {
  335. return $data;
  336. }
  337. }
  338. /**
  339. * Returns the rules in the access control list for the calendar. (acl.list)
  340. *
  341. * @param string $calendarId Calendar identifier.
  342. * @return Acl
  343. */
  344. public function listAcl($calendarId, $optParams = array()) {
  345. $params = array('calendarId' => $calendarId);
  346. $params = array_merge($params, $optParams);
  347. $data = $this->__call('list', array($params));
  348. if ($this->useObjects()) {
  349. return new Acl($data);
  350. } else {
  351. return $data;
  352. }
  353. }
  354. /**
  355. * Updates an access control rule. (acl.update)
  356. *
  357. * @param string $calendarId Calendar identifier.
  358. * @param string $ruleId ACL rule identifier.
  359. * @param AclRule $postBody
  360. * @return AclRule
  361. */
  362. public function update($calendarId, $ruleId, AclRule $postBody, $optParams = array()) {
  363. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
  364. $params = array_merge($params, $optParams);
  365. $data = $this->__call('update', array($params));
  366. if ($this->useObjects()) {
  367. return new AclRule($data);
  368. } else {
  369. return $data;
  370. }
  371. }
  372. /**
  373. * Updates an access control rule. This method supports patch semantics. (acl.patch)
  374. *
  375. * @param string $calendarId Calendar identifier.
  376. * @param string $ruleId ACL rule identifier.
  377. * @param AclRule $postBody
  378. * @return AclRule
  379. */
  380. public function patch($calendarId, $ruleId, AclRule $postBody, $optParams = array()) {
  381. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
  382. $params = array_merge($params, $optParams);
  383. $data = $this->__call('patch', array($params));
  384. if ($this->useObjects()) {
  385. return new AclRule($data);
  386. } else {
  387. return $data;
  388. }
  389. }
  390. /**
  391. * Deletes an access control rule. (acl.delete)
  392. *
  393. * @param string $calendarId Calendar identifier.
  394. * @param string $ruleId ACL rule identifier.
  395. */
  396. public function delete($calendarId, $ruleId, $optParams = array()) {
  397. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
  398. $params = array_merge($params, $optParams);
  399. $data = $this->__call('delete', array($params));
  400. return $data;
  401. }
  402. }
  403. /**
  404. * The "colors" collection of methods.
  405. * Typical usage is:
  406. * <code>
  407. * $calendarService = new apiCalendarService(...);
  408. * $colors = $calendarService->colors;
  409. * </code>
  410. */
  411. class ColorsServiceResource extends apiServiceResource {
  412. /**
  413. * Returns the color definitions for calendars and events. (colors.get)
  414. *
  415. * @return Colors
  416. */
  417. public function get($optParams = array()) {
  418. $params = array();
  419. $params = array_merge($params, $optParams);
  420. $data = $this->__call('get', array($params));
  421. if ($this->useObjects()) {
  422. return new Colors($data);
  423. } else {
  424. return $data;
  425. }
  426. }
  427. }
  428. /**
  429. * The "events" collection of methods.
  430. * Typical usage is:
  431. * <code>
  432. * $calendarService = new apiCalendarService(...);
  433. * $events = $calendarService->events;
  434. * </code>
  435. */
  436. class EventsServiceResource extends apiServiceResource {
  437. /**
  438. * Resets a specialized instance of a recurring event to its original state. (events.reset)
  439. *
  440. * @param string $calendarId Calendar identifier.
  441. * @param string $eventId Event identifier.
  442. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  443. *
  444. * @opt_param bool sendNotifications Whether to send notifications about the event update. Optional. The default is False.
  445. * @return Event
  446. */
  447. public function reset($calendarId, $eventId, $optParams = array()) {
  448. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  449. $params = array_merge($params, $optParams);
  450. $data = $this->__call('reset', array($params));
  451. if ($this->useObjects()) {
  452. return new Event($data);
  453. } else {
  454. return $data;
  455. }
  456. }
  457. /**
  458. * Creates an event. (events.insert)
  459. *
  460. * @param string $calendarId Calendar identifier.
  461. * @param Event $postBody
  462. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  463. *
  464. * @opt_param bool sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False.
  465. * @return Event
  466. */
  467. public function insert($calendarId, Event $postBody, $optParams = array()) {
  468. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  469. $params = array_merge($params, $optParams);
  470. $data = $this->__call('insert', array($params));
  471. if ($this->useObjects()) {
  472. return new Event($data);
  473. } else {
  474. return $data;
  475. }
  476. }
  477. /**
  478. * Returns an event. (events.get)
  479. *
  480. * @param string $calendarId Calendar identifier.
  481. * @param string $eventId Event identifier.
  482. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  483. *
  484. * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
  485. * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
  486. * @return Event
  487. */
  488. public function get($calendarId, $eventId, $optParams = array()) {
  489. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  490. $params = array_merge($params, $optParams);
  491. $data = $this->__call('get', array($params));
  492. if ($this->useObjects()) {
  493. return new Event($data);
  494. } else {
  495. return $data;
  496. }
  497. }
  498. /**
  499. * Moves an event to another calendar, i.e. changes an event's organizer. (events.move)
  500. *
  501. * @param string $calendarId Calendar identifier of the source calendar where the event currently is on.
  502. * @param string $eventId Event identifier.
  503. * @param string $destination Calendar identifier of the target calendar where the event is to be moved to.
  504. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  505. *
  506. * @opt_param bool sendNotifications Whether to send notifications about the change of the event's organizer. Optional. The default is False.
  507. * @return Event
  508. */
  509. public function move($calendarId, $eventId, $destination, $optParams = array()) {
  510. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
  511. $params = array_merge($params, $optParams);
  512. $data = $this->__call('move', array($params));
  513. if ($this->useObjects()) {
  514. return new Event($data);
  515. } else {
  516. return $data;
  517. }
  518. }
  519. /**
  520. * Returns events on the specified calendar. (events.list)
  521. *
  522. * @param string $calendarId Calendar identifier.
  523. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  524. *
  525. * @opt_param string orderBy The order of the events returned in the result. Optional. The default is an unspecified, stable order.
  526. * @opt_param bool showHiddenInvitations Whether to include hidden invitations in the result. Optional. The default is False.
  527. * @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
  528. * @opt_param string iCalUID Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
  529. * @opt_param string updatedMin Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
  530. * @opt_param bool singleEvents Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
  531. * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
  532. * @opt_param string q Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
  533. * @opt_param string pageToken Token specifying which result page to return. Optional.
  534. * @opt_param string timeMin Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
  535. * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
  536. * @opt_param string timeMax Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
  537. * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
  538. * @return Events
  539. */
  540. public function listEvents($calendarId, $optParams = array()) {
  541. $params = array('calendarId' => $calendarId);
  542. $params = array_merge($params, $optParams);
  543. $data = $this->__call('list', array($params));
  544. if ($this->useObjects()) {
  545. return new Events($data);
  546. } else {
  547. return $data;
  548. }
  549. }
  550. /**
  551. * Updates an event. (events.update)
  552. *
  553. * @param string $calendarId Calendar identifier.
  554. * @param string $eventId Event identifier.
  555. * @param Event $postBody
  556. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  557. *
  558. * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
  559. * @return Event
  560. */
  561. public function update($calendarId, $eventId, Event $postBody, $optParams = array()) {
  562. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
  563. $params = array_merge($params, $optParams);
  564. $data = $this->__call('update', array($params));
  565. if ($this->useObjects()) {
  566. return new Event($data);
  567. } else {
  568. return $data;
  569. }
  570. }
  571. /**
  572. * Updates an event. This method supports patch semantics. (events.patch)
  573. *
  574. * @param string $calendarId Calendar identifier.
  575. * @param string $eventId Event identifier.
  576. * @param Event $postBody
  577. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  578. *
  579. * @opt_param bool sendNotifications Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
  580. * @return Event
  581. */
  582. public function patch($calendarId, $eventId, Event $postBody, $optParams = array()) {
  583. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
  584. $params = array_merge($params, $optParams);
  585. $data = $this->__call('patch', array($params));
  586. if ($this->useObjects()) {
  587. return new Event($data);
  588. } else {
  589. return $data;
  590. }
  591. }
  592. /**
  593. * Returns instances of the specified recurring event. (events.instances)
  594. *
  595. * @param string $calendarId Calendar identifier.
  596. * @param string $eventId Recurring event identifier.
  597. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  598. *
  599. * @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
  600. * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
  601. * @opt_param string pageToken Token specifying which result page to return. Optional.
  602. * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
  603. * @opt_param string originalStart The original start time of the instance in the result. Optional.
  604. * @opt_param int maxAttendees The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
  605. * @return Events
  606. */
  607. public function instances($calendarId, $eventId, $optParams = array()) {
  608. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  609. $params = array_merge($params, $optParams);
  610. $data = $this->__call('instances', array($params));
  611. if ($this->useObjects()) {
  612. return new Events($data);
  613. } else {
  614. return $data;
  615. }
  616. }
  617. /**
  618. * Imports an event. (events.import)
  619. *
  620. * @param string $calendarId Calendar identifier.
  621. * @param Event $postBody
  622. * @return Event
  623. */
  624. public function import($calendarId, Event $postBody, $optParams = array()) {
  625. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  626. $params = array_merge($params, $optParams);
  627. $data = $this->__call('import', array($params));
  628. if ($this->useObjects()) {
  629. return new Event($data);
  630. } else {
  631. return $data;
  632. }
  633. }
  634. /**
  635. * Creates an event based on a simple text string. (events.quickAdd)
  636. *
  637. * @param string $calendarId Calendar identifier.
  638. * @param string $text The text describing the event to be created.
  639. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  640. *
  641. * @opt_param bool sendNotifications Whether to send notifications about the creation of the event. Optional. The default is False.
  642. * @return Event
  643. */
  644. public function quickAdd($calendarId, $text, $optParams = array()) {
  645. $params = array('calendarId' => $calendarId, 'text' => $text);
  646. $params = array_merge($params, $optParams);
  647. $data = $this->__call('quickAdd', array($params));
  648. if ($this->useObjects()) {
  649. return new Event($data);
  650. } else {
  651. return $data;
  652. }
  653. }
  654. /**
  655. * Deletes an event. (events.delete)
  656. *
  657. * @param string $calendarId Calendar identifier.
  658. * @param string $eventId Event identifier.
  659. * @param array $optParams Optional parameters. Valid optional parameters are listed below.
  660. *
  661. * @opt_param bool sendNotifications Whether to send notifications about the deletion of the event. Optional. The default is False.
  662. */
  663. public function delete($calendarId, $eventId, $optParams = array()) {
  664. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  665. $params = array_merge($params, $optParams);
  666. $data = $this->__call('delete', array($params));
  667. return $data;
  668. }
  669. }
  670. /**
  671. * Service definition for Calendar (v3).
  672. *
  673. * <p>
  674. * Lets you manipulate events and other calendar data.
  675. * </p>
  676. *
  677. * <p>
  678. * For more information about this service, see the
  679. * <a href="http://code.google.com/apis/calendar/v3/using.html" target="_blank">API Documentation</a>
  680. * </p>
  681. *
  682. * @author Google, Inc.
  683. */
  684. class apiCalendarService extends apiService {
  685. public $freebusy;
  686. public $settings;
  687. public $calendarList;
  688. public $calendars;
  689. public $acl;
  690. public $colors;
  691. public $events;
  692. /**
  693. * Constructs the internal representation of the Calendar service.
  694. *
  695. * @param apiClient apiClient
  696. */
  697. public function __construct(apiClient $apiClient) {
  698. $this->rpcPath = '/rpc';
  699. $this->restBasePath = '/calendar/v3/';
  700. $this->version = 'v3';
  701. $this->serviceName = 'calendar';
  702. $apiClient->addService($this->serviceName, $this->version);
  703. $this->freebusy = new FreebusyServiceResource($this, $this->serviceName, 'freebusy', json_decode('{"methods": {"query": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "request": {"$ref": "FreeBusyRequest"}, "response": {"$ref": "FreeBusyResponse"}, "httpMethod": "POST", "path": "freeBusy", "id": "calendar.freebusy.query"}}}', true));
  704. $this->settings = new SettingsServiceResource($this, $this->serviceName, 'settings', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "id": "calendar.settings.list", "httpMethod": "GET", "path": "users/me/settings", "response": {"$ref": "Settings"}}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"setting": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.settings.get", "httpMethod": "GET", "path": "users/me/settings/{setting}", "response": {"$ref": "Setting"}}}}', true));
  705. $this->calendarList = new CalendarListServiceResource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "POST", "path": "users/me/calendarList", "id": "calendar.calendarList.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendarList.get", "httpMethod": "GET", "path": "users/me/calendarList/{calendarId}", "response": {"$ref": "CalendarListEntry"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "showHidden": {"type": "boolean", "location": "query"}, "maxResults": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "minAccessRole": {"enum": ["freeBusyReader", "owner", "reader", "writer"], "type": "string", "location": "query"}}, "response": {"$ref": "CalendarList"}, "httpMethod": "GET", "path": "users/me/calendarList", "id": "calendar.calendarList.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "id": "calendar.calendarList.update", "httpMethod": "PUT", "path": "users/me/calendarList/{calendarId}", "response": {"$ref": "CalendarListEntry"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "id": "calendar.calendarList.patch", "httpMethod": "PATCH", "path": "users/me/calendarList/{calendarId}", "response": {"$ref": "CalendarListEntry"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.delete"}}}', true));
  706. $this->calendars = new CalendarsServiceResource($this, $this->serviceName, 'calendars', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "POST", "path": "calendars", "id": "calendar.calendars.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.calendars.get", "httpMethod": "GET", "path": "calendars/{calendarId}", "response": {"$ref": "Calendar"}}, "clear": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST", "path": "calendars/{calendarId}/clear", "id": "calendar.calendars.clear"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "id": "calendar.calendars.update", "httpMethod": "PUT", "path": "calendars/{calendarId}", "response": {"$ref": "Calendar"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "id": "calendar.calendars.patch", "httpMethod": "PATCH", "path": "calendars/{calendarId}", "response": {"$ref": "Calendar"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "calendars/{calendarId}", "id": "calendar.calendars.delete"}}}', true));
  707. $this->acl = new AclServiceResource($this, $this->serviceName, 'acl', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "id": "calendar.acl.insert", "httpMethod": "POST", "path": "calendars/{calendarId}/acl", "response": {"$ref": "AclRule"}}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.get", "httpMethod": "GET", "path": "calendars/{calendarId}/acl/{ruleId}", "response": {"$ref": "AclRule"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "id": "calendar.acl.list", "httpMethod": "GET", "path": "calendars/{calendarId}/acl", "response": {"$ref": "Acl"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "id": "calendar.acl.update", "httpMethod": "PUT", "path": "calendars/{calendarId}/acl/{ruleId}", "response": {"$ref": "AclRule"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "AclRule"}, "id": "calendar.acl.patch", "httpMethod": "PATCH", "path": "calendars/{calendarId}/acl/{ruleId}", "response": {"$ref": "AclRule"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.delete"}}}', true));
  708. $this->colors = new ColorsServiceResource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"id": "calendar.colors.get", "path": "colors", "httpMethod": "GET", "response": {"$ref": "Colors"}}}}', true));
  709. $this->events = new EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"reset": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.reset", "httpMethod": "POST", "path": "calendars/{calendarId}/events/{eventId}/reset", "response": {"$ref": "Event"}}, "insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "id": "calendar.events.insert", "httpMethod": "POST", "path": "calendars/{calendarId}/events", "response": {"$ref": "Event"}}, "get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "maxAttendees": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "calendar.events.get", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}", "response": {"$ref": "Event"}}, "move": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "destination": {"required": true, "type": "string", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.move", "httpMethod": "POST", "path": "calendars/{calendarId}/events/{eventId}/move", "response": {"$ref": "Event"}}, "list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"orderBy": {"enum": ["startTime", "updated"], "type": "string", "location": "query"}, "showHiddenInvitations": {"type": "boolean", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "iCalUID": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query"}, "singleEvents": {"type": "boolean", "location": "query"}, "maxResults": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "q": {"type": "string", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeMin": {"type": "string", "location": "query"}, "timeZone": {"type": "string", "location": "query"}, "timeMax": {"type": "string", "location": "query"}, "maxAttendees": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "calendar.events.list", "httpMethod": "GET", "path": "calendars/{calendarId}/events", "response": {"$ref": "Events"}}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "id": "calendar.events.update", "httpMethod": "PUT", "path": "calendars/{calendarId}/events/{eventId}", "response": {"$ref": "Event"}}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "id": "calendar.events.patch", "httpMethod": "PATCH", "path": "calendars/{calendarId}/events/{eventId}", "response": {"$ref": "Event"}}, "instances": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "pageToken": {"type": "string", "location": "query"}, "maxResults": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}, "showDeleted": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "maxAttendees": {"format": "int32", "minimum": "1", "type": "integer", "location": "query"}}, "id": "calendar.events.instances", "httpMethod": "GET", "path": "calendars/{calendarId}/events/{eventId}/instances", "response": {"$ref": "Events"}}, "import": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Event"}, "id": "calendar.events.import", "httpMethod": "POST", "path": "calendars/{calendarId}/events/import", "response": {"$ref": "Event"}}, "quickAdd": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"text": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "id": "calendar.events.quickAdd", "httpMethod": "POST", "path": "calendars/{calendarId}/events/quickAdd", "response": {"$ref": "Event"}}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "httpMethod": "DELETE", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.delete"}}}', true));
  710. }
  711. }
  712. class Acl extends apiModel {
  713. public $nextPageToken;
  714. protected $__itemsType = 'AclRule';
  715. protected $__itemsDataType = 'array';
  716. public $items;
  717. public $kind;
  718. public $etag;
  719. public function setNextPageToken($nextPageToken) {
  720. $this->nextPageToken = $nextPageToken;
  721. }
  722. public function getNextPageToken() {
  723. return $this->nextPageToken;
  724. }
  725. public function setItems(/* array(AclRule) */ $items) {
  726. $this->assertIsArray($items, 'AclRule', __METHOD__);
  727. $this->items = $items;
  728. }
  729. public function getItems() {
  730. return $this->items;
  731. }
  732. public function setKind($kind) {
  733. $this->kind = $kind;
  734. }
  735. public function getKind() {
  736. return $this->kind;
  737. }
  738. public function setEtag($etag) {
  739. $this->etag = $etag;
  740. }
  741. public function getEtag() {
  742. return $this->etag;
  743. }
  744. }
  745. class AclRule extends apiModel {
  746. protected $__scopeType = 'AclRuleScope';
  747. protected $__scopeDataType = '';
  748. public $scope;
  749. public $kind;
  750. public $etag;
  751. public $role;
  752. public $id;
  753. public function setScope(AclRuleScope $scope) {
  754. $this->scope = $scope;
  755. }
  756. public function getScope() {
  757. return $this->scope;
  758. }
  759. public function setKind($kind) {
  760. $this->kind = $kind;
  761. }
  762. public function getKind() {
  763. return $this->kind;
  764. }
  765. public function setEtag($etag) {
  766. $this->etag = $etag;
  767. }
  768. public function getEtag() {
  769. return $this->etag;
  770. }
  771. public function setRole($role) {
  772. $this->role = $role;
  773. }
  774. public function getRole() {
  775. return $this->role;
  776. }
  777. public function setId($id) {
  778. $this->id = $id;
  779. }
  780. public function getId() {
  781. return $this->id;
  782. }
  783. }
  784. class AclRuleScope extends apiModel {
  785. public $type;
  786. public $value;
  787. public function setType($type) {
  788. $this->type = $type;
  789. }
  790. public function getType() {
  791. return $this->type;
  792. }
  793. public function setValue($value) {
  794. $this->value = $value;
  795. }
  796. public function getValue() {
  797. return $this->value;
  798. }
  799. }
  800. class Calendar extends apiModel {
  801. public $kind;
  802. public $description;
  803. public $summary;
  804. public $etag;
  805. public $location;
  806. public $timeZone;
  807. public $id;
  808. public function setKind($kind) {
  809. $this->kind = $kind;
  810. }
  811. public function getKind() {
  812. return $this->kind;
  813. }
  814. public function setDescription($description) {
  815. $this->description = $description;
  816. }
  817. public function getDescription() {
  818. return $this->description;
  819. }
  820. public function setSummary($summary) {
  821. $this->summary = $summary;
  822. }
  823. public function getSummary() {
  824. return $this->summary;
  825. }
  826. public function setEtag($etag) {
  827. $this->etag = $etag;
  828. }
  829. public function getEtag() {
  830. return $this->etag;
  831. }
  832. public function setLocation($location) {
  833. $this->location = $location;
  834. }
  835. public function getLocation() {
  836. return $this->location;
  837. }
  838. public function setTimeZone($timeZone) {
  839. $this->timeZone = $timeZone;
  840. }
  841. public function getTimeZone() {
  842. return $this->timeZone;
  843. }
  844. public function setId($id) {
  845. $this->id = $id;
  846. }
  847. public function getId() {
  848. return $this->id;
  849. }
  850. }
  851. class CalendarList extends apiModel {
  852. public $nextPageToken;
  853. protected $__itemsType = 'CalendarListEntry';
  854. protected $__itemsDataType = 'array';
  855. public $items;
  856. public $kind;
  857. public $etag;
  858. public function setNextPageToken($nextPageToken) {
  859. $this->nextPageToken = $nextPageToken;
  860. }
  861. public function getNextPageToken() {
  862. return $this->nextPageToken;
  863. }
  864. public function setItems(/* array(CalendarListEntry) */ $items) {
  865. $this->assertIsArray($items, 'CalendarListEntry', __METHOD__);
  866. $this->items = $items;
  867. }
  868. public function getItems() {
  869. return $this->items;
  870. }
  871. public function setKind($kind) {
  872. $this->kind = $kind;
  873. }
  874. public function getKind() {
  875. return $this->kind;
  876. }
  877. public function setEtag($etag) {
  878. $this->etag = $etag;
  879. }
  880. public function getEtag() {
  881. return $this->etag;
  882. }
  883. }
  884. class CalendarListEntry extends apiModel {
  885. public $kind;
  886. protected $__defaultRemindersType = 'EventReminder';
  887. protected $__defaultRemindersDataType = 'array';
  888. public $defaultReminders;
  889. public $description;
  890. public $colorId;
  891. public $selected;
  892. public $summary;
  893. public $etag;
  894. public $location;
  895. public $summaryOverride;
  896. public $timeZone;
  897. public $hidden;
  898. public $accessRole;
  899. public $id;
  900. public function setKind($kind) {
  901. $this->kind = $kind;
  902. }
  903. public function getKind() {
  904. return $this->kind;
  905. }
  906. public function setDefaultReminders(/* array(EventReminder) */ $defaultReminders) {
  907. $this->assertIsArray($defaultReminders, 'EventReminder', __METHOD__);
  908. $this->defaultReminders = $defaultReminders;
  909. }
  910. public function getDefaultReminders() {
  911. return $this->defaultReminders;
  912. }
  913. public function setDescription($description) {
  914. $this->description = $description;
  915. }
  916. public function getDescription() {
  917. return $this->description;
  918. }
  919. public function setColorId($colorId) {
  920. $this->colorId = $colorId;
  921. }
  922. public function getColorId() {
  923. return $this->colorId;
  924. }
  925. public function setSelected($selected) {
  926. $this->selected = $selected;
  927. }
  928. public function getSelected() {
  929. return $this->selected;
  930. }
  931. public function setSummary($summary) {
  932. $this->summary = $summary;
  933. }
  934. public function getSummary() {
  935. return $this->summary;
  936. }
  937. public function setEtag($etag) {
  938. $this->etag = $etag;
  939. }
  940. public function getEtag() {
  941. return $this->etag;
  942. }
  943. public function setLocation($location) {
  944. $this->location = $location;
  945. }
  946. public function getLocation() {
  947. return $this->location;
  948. }
  949. public function setSummaryOverride($summaryOverride) {
  950. $this->summaryOverride = $summaryOverride;
  951. }
  952. public function getSummaryOverride() {
  953. return $this->summaryOverride;
  954. }
  955. public function setTimeZone($timeZone) {
  956. $this->timeZone = $timeZone;
  957. }
  958. public function getTimeZone() {
  959. return $this->timeZone;
  960. }
  961. public function setHidden($hidden) {
  962. $this->hidden = $hidden;
  963. }
  964. public function getHidden() {
  965. return $this->hidden;
  966. }
  967. public function setAccessRole($accessRole) {
  968. $this->accessRole = $accessRole;
  969. }
  970. public function getAccessRole() {
  971. return $this->accessRole;
  972. }
  973. public function setId($id) {
  974. $this->id = $id;
  975. }
  976. public function getId() {
  977. return $this->id;
  978. }
  979. }
  980. class ColorDefinition extends apiModel {
  981. public $foreground;
  982. public $background;
  983. public function setForeground($foreground) {
  984. $this->foreground = $foreground;
  985. }
  986. public function getForeground() {
  987. return $this->foreground;
  988. }
  989. public function setBackground($background) {
  990. $this->background = $background;
  991. }
  992. public function getBackground() {
  993. return $this->background;
  994. }
  995. }
  996. class Colors extends apiModel {
  997. protected $__calendarType = 'ColorDefinition';
  998. protected $__calendarDataType = 'map';
  999. public $calendar;
  1000. public $updated;
  1001. protected $__eventType = 'ColorDefinition';
  1002. protected $__eventDataType = 'map';
  1003. public $event;
  1004. public $kind;
  1005. public function setCalendar(ColorDefinition $calendar) {
  1006. $this->calendar = $calendar;
  1007. }
  1008. public function getCalendar() {
  1009. return $this->calendar;
  1010. }
  1011. public function setUpdated($updated) {
  1012. $this->updated = $updated;
  1013. }
  1014. public function getUpdated() {
  1015. return $this->updated;
  1016. }
  1017. public function setEvent(ColorDefinition $event) {
  1018. $this->event = $event;
  1019. }
  1020. public function getEvent() {
  1021. return $this->event;
  1022. }
  1023. public function setKind($kind) {
  1024. $this->kind = $kind;
  1025. }
  1026. public function getKind() {
  1027. return $this->kind;
  1028. }
  1029. }
  1030. class Error extends apiModel {
  1031. public $domain;
  1032. public $reason;
  1033. public function setDomain($domain) {
  1034. $this->domain = $domain;
  1035. }
  1036. public function getDomain() {
  1037. return $this->domain;
  1038. }
  1039. public function setReason($reason) {
  1040. $this->reason = $reason;
  1041. }
  1042. public function getReason() {
  1043. return $this->reason;
  1044. }
  1045. }
  1046. class Event extends apiModel {
  1047. protected $__creatorType = 'EventCreator';
  1048. protected $__creatorDataType = '';
  1049. public $creator;
  1050. protected $__organizerType = 'EventOrganizer';
  1051. protected $__organizerDataType = '';
  1052. public $organizer;
  1053. public $id;
  1054. protected $__attendeesType = 'EventAttendee';
  1055. protected $__attendeesDataType = 'array';
  1056. public $attendees;
  1057. public $htmlLink;
  1058. public $recurrence;
  1059. protected $__startType = 'EventDateTime';
  1060. protected $__startDataType = '';
  1061. public $start;
  1062. public $etag;
  1063. public $location;
  1064. public $recurringEventId;
  1065. protected $__originalStartTimeType = 'EventDateTime';
  1066. protected $__originalStartTimeDataType = '';
  1067. public $originalStartTime;
  1068. public $status;
  1069. public $updated;
  1070. protected $__gadgetType = 'EventGadget';
  1071. protected $__gadgetDataType = '';
  1072. public $gadget;
  1073. public $description;
  1074. public $iCalUID;
  1075. protected $__extendedPropertiesType = 'EventExtendedProperties';
  1076. protected $__extendedPropertiesDataType = '';
  1077. public $extendedProperties;
  1078. public $sequence;
  1079. public $visibility;
  1080. public $guestsCanModify;
  1081. protected $__endType = 'EventDateTime';
  1082. protected $__endDataType = '';
  1083. public $end;
  1084. public $attendeesOmitted;
  1085. public $kind;
  1086. public $created;
  1087. public $colorId;

Large files files are truncated, but you can click here to view the full file