PageRenderTime 47ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 1ms

/Lib/google-api-php-client/contrib/Google_CalendarService.php

https://bitbucket.org/addictionworldwide/google-bundle-for-symfony2
PHP | 1931 lines | 1498 code | 52 blank | 381 comment | 54 complexity | 1828cfdabcded687997e5cad9999b4bb MD5 | raw file
Possible License(s): Apache-2.0

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

  1. <?php
  2. /*
  3. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  4. * use this file except in compliance with the License. You may obtain a copy of
  5. * the License at
  6. *
  7. * http://www.apache.org/licenses/LICENSE-2.0
  8. *
  9. * Unless required by applicable law or agreed to in writing, software
  10. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  11. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  12. * License for the specific language governing permissions and limitations under
  13. * the License.
  14. */
  15. /**
  16. * The "freebusy" collection of methods.
  17. * Typical usage is:
  18. * <code>
  19. * $calendarService = new Google_CalendarService(...);
  20. * $freebusy = $calendarService->freebusy;
  21. * </code>
  22. */
  23. class Google_FreebusyServiceResource extends Google_ServiceResource {
  24. /**
  25. * Returns free/busy information for a set of calendars. (freebusy.query)
  26. *
  27. * @param Google_FreeBusyRequest $postBody
  28. * @param array $optParams Optional parameters.
  29. * @return Google_FreeBusyResponse
  30. */
  31. public function query(Google_FreeBusyRequest $postBody, $optParams = array()) {
  32. $params = array('postBody' => $postBody);
  33. $params = array_merge($params, $optParams);
  34. $data = $this->__call('query', array($params));
  35. if ($this->useObjects()) {
  36. return new Google_FreeBusyResponse($data);
  37. } else {
  38. return $data;
  39. }
  40. }
  41. }
  42. /**
  43. * The "settings" collection of methods.
  44. * Typical usage is:
  45. * <code>
  46. * $calendarService = new Google_CalendarService(...);
  47. * $settings = $calendarService->settings;
  48. * </code>
  49. */
  50. class Google_SettingsServiceResource extends Google_ServiceResource {
  51. /**
  52. * Returns all user settings for the authenticated user. (settings.list)
  53. *
  54. * @param array $optParams Optional parameters.
  55. * @return Google_Settings
  56. */
  57. public function listSettings($optParams = array()) {
  58. $params = array();
  59. $params = array_merge($params, $optParams);
  60. $data = $this->__call('list', array($params));
  61. if ($this->useObjects()) {
  62. return new Google_Settings($data);
  63. } else {
  64. return $data;
  65. }
  66. }
  67. /**
  68. * Returns a single user setting. (settings.get)
  69. *
  70. * @param string $setting Name of the user setting.
  71. * @param array $optParams Optional parameters.
  72. * @return Google_Setting
  73. */
  74. public function get($setting, $optParams = array()) {
  75. $params = array('setting' => $setting);
  76. $params = array_merge($params, $optParams);
  77. $data = $this->__call('get', array($params));
  78. if ($this->useObjects()) {
  79. return new Google_Setting($data);
  80. } else {
  81. return $data;
  82. }
  83. }
  84. }
  85. /**
  86. * The "calendarList" collection of methods.
  87. * Typical usage is:
  88. * <code>
  89. * $calendarService = new Google_CalendarService(...);
  90. * $calendarList = $calendarService->calendarList;
  91. * </code>
  92. */
  93. class Google_CalendarListServiceResource extends Google_ServiceResource {
  94. /**
  95. * Adds an entry to the user's calendar list. (calendarList.insert)
  96. *
  97. * @param Google_CalendarListEntry $postBody
  98. * @param array $optParams Optional parameters.
  99. *
  100. * @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
  101. * @return Google_CalendarListEntry
  102. */
  103. public function insert(Google_CalendarListEntry $postBody, $optParams = array()) {
  104. $params = array('postBody' => $postBody);
  105. $params = array_merge($params, $optParams);
  106. $data = $this->__call('insert', array($params));
  107. if ($this->useObjects()) {
  108. return new Google_CalendarListEntry($data);
  109. } else {
  110. return $data;
  111. }
  112. }
  113. /**
  114. * Returns an entry on the user's calendar list. (calendarList.get)
  115. *
  116. * @param string $calendarId Calendar identifier.
  117. * @param array $optParams Optional parameters.
  118. * @return Google_CalendarListEntry
  119. */
  120. public function get($calendarId, $optParams = array()) {
  121. $params = array('calendarId' => $calendarId);
  122. $params = array_merge($params, $optParams);
  123. $data = $this->__call('get', array($params));
  124. if ($this->useObjects()) {
  125. return new Google_CalendarListEntry($data);
  126. } else {
  127. return $data;
  128. }
  129. }
  130. /**
  131. * Returns entries on the user's calendar list. (calendarList.list)
  132. *
  133. * @param array $optParams Optional parameters.
  134. *
  135. * @opt_param string pageToken Token specifying which result page to return. Optional.
  136. * @opt_param bool showHidden Whether to show hidden entries. Optional. The default is False.
  137. * @opt_param int maxResults Maximum number of entries returned on one result page. Optional.
  138. * @opt_param string minAccessRole The minimum access role for the user in the returned entires. Optional. The default is no restriction.
  139. * @return Google_CalendarList
  140. */
  141. public function listCalendarList($optParams = array()) {
  142. $params = array();
  143. $params = array_merge($params, $optParams);
  144. $data = $this->__call('list', array($params));
  145. if ($this->useObjects()) {
  146. return new Google_CalendarList($data);
  147. } else {
  148. return $data;
  149. }
  150. }
  151. /**
  152. * Updates an entry on the user's calendar list. (calendarList.update)
  153. *
  154. * @param string $calendarId Calendar identifier.
  155. * @param Google_CalendarListEntry $postBody
  156. * @param array $optParams Optional parameters.
  157. *
  158. * @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
  159. * @return Google_CalendarListEntry
  160. */
  161. public function update($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
  162. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  163. $params = array_merge($params, $optParams);
  164. $data = $this->__call('update', array($params));
  165. if ($this->useObjects()) {
  166. return new Google_CalendarListEntry($data);
  167. } else {
  168. return $data;
  169. }
  170. }
  171. /**
  172. * Updates an entry on the user's calendar list. This method supports patch semantics.
  173. * (calendarList.patch)
  174. *
  175. * @param string $calendarId Calendar identifier.
  176. * @param Google_CalendarListEntry $postBody
  177. * @param array $optParams Optional parameters.
  178. *
  179. * @opt_param bool colorRgbFormat Whether to use the 'frontendColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'color' field will be set to the best matching option automatically. Optional. The default is False.
  180. * @return Google_CalendarListEntry
  181. */
  182. public function patch($calendarId, Google_CalendarListEntry $postBody, $optParams = array()) {
  183. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  184. $params = array_merge($params, $optParams);
  185. $data = $this->__call('patch', array($params));
  186. if ($this->useObjects()) {
  187. return new Google_CalendarListEntry($data);
  188. } else {
  189. return $data;
  190. }
  191. }
  192. /**
  193. * Deletes an entry on the user's calendar list. (calendarList.delete)
  194. *
  195. * @param string $calendarId Calendar identifier.
  196. * @param array $optParams Optional parameters.
  197. */
  198. public function delete($calendarId, $optParams = array()) {
  199. $params = array('calendarId' => $calendarId);
  200. $params = array_merge($params, $optParams);
  201. $data = $this->__call('delete', array($params));
  202. return $data;
  203. }
  204. }
  205. /**
  206. * The "calendars" collection of methods.
  207. * Typical usage is:
  208. * <code>
  209. * $calendarService = new Google_CalendarService(...);
  210. * $calendars = $calendarService->calendars;
  211. * </code>
  212. */
  213. class Google_CalendarsServiceResource extends Google_ServiceResource {
  214. /**
  215. * Creates a secondary calendar. (calendars.insert)
  216. *
  217. * @param Google_Calendar $postBody
  218. * @param array $optParams Optional parameters.
  219. * @return Google_Calendar
  220. */
  221. public function insert(Google_Calendar $postBody, $optParams = array()) {
  222. $params = array('postBody' => $postBody);
  223. $params = array_merge($params, $optParams);
  224. $data = $this->__call('insert', array($params));
  225. if ($this->useObjects()) {
  226. return new Google_Calendar($data);
  227. } else {
  228. return $data;
  229. }
  230. }
  231. /**
  232. * Returns metadata for a calendar. (calendars.get)
  233. *
  234. * @param string $calendarId Calendar identifier.
  235. * @param array $optParams Optional parameters.
  236. * @return Google_Calendar
  237. */
  238. public function get($calendarId, $optParams = array()) {
  239. $params = array('calendarId' => $calendarId);
  240. $params = array_merge($params, $optParams);
  241. $data = $this->__call('get', array($params));
  242. if ($this->useObjects()) {
  243. return new Google_Calendar($data);
  244. } else {
  245. return $data;
  246. }
  247. }
  248. /**
  249. * Clears a primary calendar. This operation deletes all data associated with the primary calendar
  250. * of an account and cannot be undone. (calendars.clear)
  251. *
  252. * @param string $calendarId Calendar identifier.
  253. * @param array $optParams Optional parameters.
  254. */
  255. public function clear($calendarId, $optParams = array()) {
  256. $params = array('calendarId' => $calendarId);
  257. $params = array_merge($params, $optParams);
  258. $data = $this->__call('clear', array($params));
  259. return $data;
  260. }
  261. /**
  262. * Updates metadata for a calendar. (calendars.update)
  263. *
  264. * @param string $calendarId Calendar identifier.
  265. * @param Google_Calendar $postBody
  266. * @param array $optParams Optional parameters.
  267. * @return Google_Calendar
  268. */
  269. public function update($calendarId, Google_Calendar $postBody, $optParams = array()) {
  270. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  271. $params = array_merge($params, $optParams);
  272. $data = $this->__call('update', array($params));
  273. if ($this->useObjects()) {
  274. return new Google_Calendar($data);
  275. } else {
  276. return $data;
  277. }
  278. }
  279. /**
  280. * Updates metadata for a calendar. This method supports patch semantics. (calendars.patch)
  281. *
  282. * @param string $calendarId Calendar identifier.
  283. * @param Google_Calendar $postBody
  284. * @param array $optParams Optional parameters.
  285. * @return Google_Calendar
  286. */
  287. public function patch($calendarId, Google_Calendar $postBody, $optParams = array()) {
  288. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  289. $params = array_merge($params, $optParams);
  290. $data = $this->__call('patch', array($params));
  291. if ($this->useObjects()) {
  292. return new Google_Calendar($data);
  293. } else {
  294. return $data;
  295. }
  296. }
  297. /**
  298. * Deletes a secondary calendar. (calendars.delete)
  299. *
  300. * @param string $calendarId Calendar identifier.
  301. * @param array $optParams Optional parameters.
  302. */
  303. public function delete($calendarId, $optParams = array()) {
  304. $params = array('calendarId' => $calendarId);
  305. $params = array_merge($params, $optParams);
  306. $data = $this->__call('delete', array($params));
  307. return $data;
  308. }
  309. }
  310. /**
  311. * The "acl" collection of methods.
  312. * Typical usage is:
  313. * <code>
  314. * $calendarService = new Google_CalendarService(...);
  315. * $acl = $calendarService->acl;
  316. * </code>
  317. */
  318. class Google_AclServiceResource extends Google_ServiceResource {
  319. /**
  320. * Creates an access control rule. (acl.insert)
  321. *
  322. * @param string $calendarId Calendar identifier.
  323. * @param Google_AclRule $postBody
  324. * @param array $optParams Optional parameters.
  325. * @return Google_AclRule
  326. */
  327. public function insert($calendarId, Google_AclRule $postBody, $optParams = array()) {
  328. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  329. $params = array_merge($params, $optParams);
  330. $data = $this->__call('insert', array($params));
  331. if ($this->useObjects()) {
  332. return new Google_AclRule($data);
  333. } else {
  334. return $data;
  335. }
  336. }
  337. /**
  338. * Returns an access control rule. (acl.get)
  339. *
  340. * @param string $calendarId Calendar identifier.
  341. * @param string $ruleId ACL rule identifier.
  342. * @param array $optParams Optional parameters.
  343. * @return Google_AclRule
  344. */
  345. public function get($calendarId, $ruleId, $optParams = array()) {
  346. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
  347. $params = array_merge($params, $optParams);
  348. $data = $this->__call('get', array($params));
  349. if ($this->useObjects()) {
  350. return new Google_AclRule($data);
  351. } else {
  352. return $data;
  353. }
  354. }
  355. /**
  356. * Returns the rules in the access control list for the calendar. (acl.list)
  357. *
  358. * @param string $calendarId Calendar identifier.
  359. * @param array $optParams Optional parameters.
  360. * @return Google_Acl
  361. */
  362. public function listAcl($calendarId, $optParams = array()) {
  363. $params = array('calendarId' => $calendarId);
  364. $params = array_merge($params, $optParams);
  365. $data = $this->__call('list', array($params));
  366. if ($this->useObjects()) {
  367. return new Google_Acl($data);
  368. } else {
  369. return $data;
  370. }
  371. }
  372. /**
  373. * Updates an access control rule. (acl.update)
  374. *
  375. * @param string $calendarId Calendar identifier.
  376. * @param string $ruleId ACL rule identifier.
  377. * @param Google_AclRule $postBody
  378. * @param array $optParams Optional parameters.
  379. * @return Google_AclRule
  380. */
  381. public function update($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
  382. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
  383. $params = array_merge($params, $optParams);
  384. $data = $this->__call('update', array($params));
  385. if ($this->useObjects()) {
  386. return new Google_AclRule($data);
  387. } else {
  388. return $data;
  389. }
  390. }
  391. /**
  392. * Updates an access control rule. This method supports patch semantics. (acl.patch)
  393. *
  394. * @param string $calendarId Calendar identifier.
  395. * @param string $ruleId ACL rule identifier.
  396. * @param Google_AclRule $postBody
  397. * @param array $optParams Optional parameters.
  398. * @return Google_AclRule
  399. */
  400. public function patch($calendarId, $ruleId, Google_AclRule $postBody, $optParams = array()) {
  401. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
  402. $params = array_merge($params, $optParams);
  403. $data = $this->__call('patch', array($params));
  404. if ($this->useObjects()) {
  405. return new Google_AclRule($data);
  406. } else {
  407. return $data;
  408. }
  409. }
  410. /**
  411. * Deletes an access control rule. (acl.delete)
  412. *
  413. * @param string $calendarId Calendar identifier.
  414. * @param string $ruleId ACL rule identifier.
  415. * @param array $optParams Optional parameters.
  416. */
  417. public function delete($calendarId, $ruleId, $optParams = array()) {
  418. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
  419. $params = array_merge($params, $optParams);
  420. $data = $this->__call('delete', array($params));
  421. return $data;
  422. }
  423. }
  424. /**
  425. * The "colors" collection of methods.
  426. * Typical usage is:
  427. * <code>
  428. * $calendarService = new Google_CalendarService(...);
  429. * $colors = $calendarService->colors;
  430. * </code>
  431. */
  432. class Google_ColorsServiceResource extends Google_ServiceResource {
  433. /**
  434. * Returns the color definitions for calendars and events. (colors.get)
  435. *
  436. * @param array $optParams Optional parameters.
  437. * @return Google_Colors
  438. */
  439. public function get($optParams = array()) {
  440. $params = array();
  441. $params = array_merge($params, $optParams);
  442. $data = $this->__call('get', array($params));
  443. if ($this->useObjects()) {
  444. return new Google_Colors($data);
  445. } else {
  446. return $data;
  447. }
  448. }
  449. }
  450. /**
  451. * The "events" collection of methods.
  452. * Typical usage is:
  453. * <code>
  454. * $calendarService = new Google_CalendarService(...);
  455. * $events = $calendarService->events;
  456. * </code>
  457. */
  458. class Google_EventsServiceResource extends Google_ServiceResource {
  459. /**
  460. * Creates an event. (events.insert)
  461. *
  462. * @param string $calendarId Calendar identifier.
  463. * @param Google_Event $postBody
  464. * @param array $optParams Optional parameters.
  465. *
  466. * @opt_param bool sendNotifications Whether to send notifications about the creation of the new event. Optional. The default is False.
  467. * @return Google_Event
  468. */
  469. public function insert($calendarId, Google_Event $postBody, $optParams = array()) {
  470. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  471. $params = array_merge($params, $optParams);
  472. $data = $this->__call('insert', array($params));
  473. if ($this->useObjects()) {
  474. return new Google_Event($data);
  475. } else {
  476. return $data;
  477. }
  478. }
  479. /**
  480. * Returns an event. (events.get)
  481. *
  482. * @param string $calendarId Calendar identifier.
  483. * @param string $eventId Event identifier.
  484. * @param array $optParams Optional parameters.
  485. *
  486. * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
  487. * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
  488. * @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.
  489. * @return Google_Event
  490. */
  491. public function get($calendarId, $eventId, $optParams = array()) {
  492. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  493. $params = array_merge($params, $optParams);
  494. $data = $this->__call('get', array($params));
  495. if ($this->useObjects()) {
  496. return new Google_Event($data);
  497. } else {
  498. return $data;
  499. }
  500. }
  501. /**
  502. * Moves an event to another calendar, i.e. changes an event's organizer. (events.move)
  503. *
  504. * @param string $calendarId Calendar identifier of the source calendar where the event currently is on.
  505. * @param string $eventId Event identifier.
  506. * @param string $destination Calendar identifier of the target calendar where the event is to be moved to.
  507. * @param array $optParams Optional parameters.
  508. *
  509. * @opt_param bool sendNotifications Whether to send notifications about the change of the event's organizer. Optional. The default is False.
  510. * @return Google_Event
  511. */
  512. public function move($calendarId, $eventId, $destination, $optParams = array()) {
  513. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
  514. $params = array_merge($params, $optParams);
  515. $data = $this->__call('move', array($params));
  516. if ($this->useObjects()) {
  517. return new Google_Event($data);
  518. } else {
  519. return $data;
  520. }
  521. }
  522. /**
  523. * Returns events on the specified calendar. (events.list)
  524. *
  525. * @param string $calendarId Calendar identifier.
  526. * @param array $optParams Optional parameters.
  527. *
  528. * @opt_param string orderBy The order of the events returned in the result. Optional. The default is an unspecified, stable order.
  529. * @opt_param bool showHiddenInvitations Whether to include hidden invitations in the result. Optional. The default is False.
  530. * @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
  531. * @opt_param string iCalUID Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
  532. * @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.
  533. * @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.
  534. * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
  535. * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
  536. * @opt_param string q Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
  537. * @opt_param string pageToken Token specifying which result page to return. Optional.
  538. * @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.
  539. * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
  540. * @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.
  541. * @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.
  542. * @return Google_Events
  543. */
  544. public function listEvents($calendarId, $optParams = array()) {
  545. $params = array('calendarId' => $calendarId);
  546. $params = array_merge($params, $optParams);
  547. $data = $this->__call('list', array($params));
  548. if ($this->useObjects()) {
  549. return new Google_Events($data);
  550. } else {
  551. return $data;
  552. }
  553. }
  554. /**
  555. * Updates an event. (events.update)
  556. *
  557. * @param string $calendarId Calendar identifier.
  558. * @param string $eventId Event identifier.
  559. * @param Google_Event $postBody
  560. * @param array $optParams Optional parameters.
  561. *
  562. * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
  563. * @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.
  564. * @return Google_Event
  565. */
  566. public function update($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
  567. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
  568. $params = array_merge($params, $optParams);
  569. $data = $this->__call('update', array($params));
  570. if ($this->useObjects()) {
  571. return new Google_Event($data);
  572. } else {
  573. return $data;
  574. }
  575. }
  576. /**
  577. * Updates an event. This method supports patch semantics. (events.patch)
  578. *
  579. * @param string $calendarId Calendar identifier.
  580. * @param string $eventId Event identifier.
  581. * @param Google_Event $postBody
  582. * @param array $optParams Optional parameters.
  583. *
  584. * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
  585. * @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.
  586. * @return Google_Event
  587. */
  588. public function patch($calendarId, $eventId, Google_Event $postBody, $optParams = array()) {
  589. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
  590. $params = array_merge($params, $optParams);
  591. $data = $this->__call('patch', array($params));
  592. if ($this->useObjects()) {
  593. return new Google_Event($data);
  594. } else {
  595. return $data;
  596. }
  597. }
  598. /**
  599. * Returns instances of the specified recurring event. (events.instances)
  600. *
  601. * @param string $calendarId Calendar identifier.
  602. * @param string $eventId Recurring event identifier.
  603. * @param array $optParams Optional parameters.
  604. *
  605. * @opt_param bool showDeleted Whether to include deleted events (with 'eventStatus' equals 'cancelled') in the result. Optional. The default is False.
  606. * @opt_param bool alwaysIncludeEmail Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
  607. * @opt_param int maxResults Maximum number of events returned on one result page. Optional.
  608. * @opt_param string pageToken Token specifying which result page to return. Optional.
  609. * @opt_param string timeZone Time zone used in the response. Optional. The default is the time zone of the calendar.
  610. * @opt_param string originalStart The original start time of the instance in the result. Optional.
  611. * @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.
  612. * @return Google_Events
  613. */
  614. public function instances($calendarId, $eventId, $optParams = array()) {
  615. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  616. $params = array_merge($params, $optParams);
  617. $data = $this->__call('instances', array($params));
  618. if ($this->useObjects()) {
  619. return new Google_Events($data);
  620. } else {
  621. return $data;
  622. }
  623. }
  624. /**
  625. * Imports an event. (events.import)
  626. *
  627. * @param string $calendarId Calendar identifier.
  628. * @param Google_Event $postBody
  629. * @param array $optParams Optional parameters.
  630. * @return Google_Event
  631. */
  632. public function import($calendarId, Google_Event $postBody, $optParams = array()) {
  633. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  634. $params = array_merge($params, $optParams);
  635. $data = $this->__call('import', array($params));
  636. if ($this->useObjects()) {
  637. return new Google_Event($data);
  638. } else {
  639. return $data;
  640. }
  641. }
  642. /**
  643. * Creates an event based on a simple text string. (events.quickAdd)
  644. *
  645. * @param string $calendarId Calendar identifier.
  646. * @param string $text The text describing the event to be created.
  647. * @param array $optParams Optional parameters.
  648. *
  649. * @opt_param bool sendNotifications Whether to send notifications about the creation of the event. Optional. The default is False.
  650. * @return Google_Event
  651. */
  652. public function quickAdd($calendarId, $text, $optParams = array()) {
  653. $params = array('calendarId' => $calendarId, 'text' => $text);
  654. $params = array_merge($params, $optParams);
  655. $data = $this->__call('quickAdd', array($params));
  656. if ($this->useObjects()) {
  657. return new Google_Event($data);
  658. } else {
  659. return $data;
  660. }
  661. }
  662. /**
  663. * Deletes an event. (events.delete)
  664. *
  665. * @param string $calendarId Calendar identifier.
  666. * @param string $eventId Event identifier.
  667. * @param array $optParams Optional parameters.
  668. *
  669. * @opt_param bool sendNotifications Whether to send notifications about the deletion of the event. Optional. The default is False.
  670. */
  671. public function delete($calendarId, $eventId, $optParams = array()) {
  672. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  673. $params = array_merge($params, $optParams);
  674. $data = $this->__call('delete', array($params));
  675. return $data;
  676. }
  677. }
  678. /**
  679. * Service definition for Google_Calendar (v3).
  680. *
  681. * <p>
  682. * Lets you manipulate events and other calendar data.
  683. * </p>
  684. *
  685. * <p>
  686. * For more information about this service, see the
  687. * <a href="http://code.google.com/apis/calendar/v3/using.html" target="_blank">API Documentation</a>
  688. * </p>
  689. *
  690. * @author Google, Inc.
  691. */
  692. class Google_CalendarService extends Google_Service {
  693. public $freebusy;
  694. public $settings;
  695. public $calendarList;
  696. public $calendars;
  697. public $acl;
  698. public $colors;
  699. public $events;
  700. /**
  701. * Constructs the internal representation of the Calendar service.
  702. *
  703. * @param Google_Client $client
  704. */
  705. public function __construct(Google_Client $client) {
  706. $this->servicePath = 'calendar/v3/';
  707. $this->version = 'v3';
  708. $this->serviceName = 'calendar';
  709. $client->addService($this->serviceName, $this->version);
  710. $this->freebusy = new Google_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));
  711. $this->settings = new Google_SettingsServiceResource($this, $this->serviceName, 'settings', json_decode('{"methods": {"list": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "users/me/settings", "response": {"$ref": "Settings"}, "id": "calendar.settings.list", "httpMethod": "GET"}, "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));
  712. $this->calendarList = new Google_CalendarListServiceResource($this, $this->serviceName, 'calendarList', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}}, "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": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "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": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PUT", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"colorRgbFormat": {"type": "boolean", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "CalendarListEntry"}, "response": {"$ref": "CalendarListEntry"}, "httpMethod": "PATCH", "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "users/me/calendarList/{calendarId}", "id": "calendar.calendarList.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  713. $this->calendars = new Google_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"], "path": "calendars/{calendarId}/clear", "id": "calendar.calendars.clear", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "POST"}, "update": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PUT", "path": "calendars/{calendarId}", "id": "calendar.calendars.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Calendar"}, "response": {"$ref": "Calendar"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}", "id": "calendar.calendars.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}", "id": "calendar.calendars.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  714. $this->acl = new Google_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"}, "response": {"$ref": "AclRule"}, "httpMethod": "POST", "path": "calendars/{calendarId}/acl", "id": "calendar.acl.insert"}, "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"], "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"}, "response": {"$ref": "AclRule"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.update"}, "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"}, "response": {"$ref": "AclRule"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/calendar"], "path": "calendars/{calendarId}/acl/{ruleId}", "id": "calendar.acl.delete", "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "ruleId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
  715. $this->colors = new Google_ColorsServiceResource($this, $this->serviceName, 'colors', json_decode('{"methods": {"get": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "path": "colors", "response": {"$ref": "Colors"}, "id": "calendar.colors.get", "httpMethod": "GET"}}}', true));
  716. $this->events = new Google_EventsServiceResource($this, $this->serviceName, 'events', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events", "id": "calendar.events.insert"}, "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"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "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"}, "destination": {"required": true, "type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "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"}, "showDeleted": {"type": "boolean", "location": "query"}, "iCalUID": {"type": "string", "location": "query"}, "updatedMin": {"type": "string", "location": "query", "format": "date-time"}, "singleEvents": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "q": {"type": "string", "location": "query"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeMin": {"type": "string", "location": "query", "format": "date-time"}, "timeZone": {"type": "string", "location": "query"}, "timeMax": {"type": "string", "location": "query", "format": "date-time"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "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"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PUT", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/calendar"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "request": {"$ref": "Event"}, "response": {"$ref": "Event"}, "httpMethod": "PATCH", "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.patch"}, "instances": {"scopes": ["https://www.googleapis.com/auth/calendar", "https://www.googleapis.com/auth/calendar.readonly"], "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "showDeleted": {"type": "boolean", "location": "query"}, "alwaysIncludeEmail": {"type": "boolean", "location": "query"}, "maxResults": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}, "pageToken": {"type": "string", "location": "query"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "timeZone": {"type": "string", "location": "query"}, "originalStart": {"type": "string", "location": "query"}, "maxAttendees": {"minimum": "1", "type": "integer", "location": "query", "format": "int32"}}, "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"}, "response": {"$ref": "Event"}, "httpMethod": "POST", "path": "calendars/{calendarId}/events/import", "id": "calendar.events.import"}, "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"], "path": "calendars/{calendarId}/events/{eventId}", "id": "calendar.events.delete", "parameters": {"eventId": {"required": true, "type": "string", "location": "path"}, "calendarId": {"required": true, "type": "string", "location": "path"}, "sendNotifications": {"type": "boolean", "location": "query"}}, "httpMethod": "DELETE"}}}', true));
  717. }
  718. }
  719. class Google_Acl extends Google_Model {
  720. public $nextPageToken;
  721. protected $__itemsType = 'Google_AclRule';
  722. protected $__itemsDataType = 'array';
  723. public $items;
  724. public $kind;
  725. public $etag;
  726. public function setNextPageToken($nextPageToken) {
  727. $this->nextPageToken = $nextPageToken;
  728. }
  729. public function getNextPageToken() {
  730. return $this->nextPageToken;
  731. }
  732. public function setItems(/* array(Google_AclRule) */ $items) {
  733. $this->assertIsArray($items, 'Google_AclRule', __METHOD__);
  734. $this->items = $items;
  735. }
  736. public function getItems() {
  737. return $this->items;
  738. }
  739. public function setKind($kind) {
  740. $this->kind = $kind;
  741. }
  742. public function getKind() {
  743. return $this->kind;
  744. }
  745. public function setEtag($etag) {
  746. $this->etag = $etag;
  747. }
  748. public function getEtag() {
  749. return $this->etag;
  750. }
  751. }
  752. class Google_AclRule extends Google_Model {
  753. protected $__scopeType = 'Google_AclRuleScope';
  754. protected $__scopeDataType = '';
  755. public $scope;
  756. public $kind;
  757. public $etag;
  758. public $role;
  759. public $id;
  760. public function setScope(Google_AclRuleScope $scope) {
  761. $this->scope = $scope;
  762. }
  763. public function getScope() {
  764. return $this->scope;
  765. }
  766. public function setKind($kind) {
  767. $this->kind = $kind;
  768. }
  769. public function getKind() {
  770. return $this->kind;
  771. }
  772. public function setEtag($etag) {
  773. $this->etag = $etag;
  774. }
  775. public function getEtag() {
  776. return $this->etag;
  777. }
  778. public function setRole($role) {
  779. $this->role = $role;
  780. }
  781. public function getRole() {
  782. return $this->role;
  783. }
  784. public function setId($id) {
  785. $this->id = $id;
  786. }
  787. public function getId() {
  788. return $this->id;
  789. }
  790. }
  791. class Google_AclRuleScope extends Google_Model {
  792. public $type;
  793. public $value;
  794. public function setType($type) {
  795. $this->type = $type;
  796. }
  797. public function getType() {
  798. return $this->type;
  799. }
  800. public function setValue($value) {
  801. $this->value = $value;
  802. }
  803. public function getValue() {
  804. return $this->value;
  805. }
  806. }
  807. class Google_Calendar extends Google_Model {
  808. public $kind;
  809. public $description;
  810. public $summary;
  811. public $etag;
  812. public $location;
  813. public $timeZone;
  814. public $id;
  815. public function setKind($kind) {
  816. $this->kind = $kind;
  817. }
  818. public function getKind() {
  819. return $this->kind;
  820. }
  821. public function setDescription($description) {
  822. $this->description = $description;
  823. }
  824. public function getDescription() {
  825. return $this->description;
  826. }
  827. public function setSummary($summary) {
  828. $this->summary = $summary;
  829. }
  830. public function getSummary() {
  831. return $this->summary;
  832. }
  833. public function setEtag($etag) {
  834. $this->etag = $etag;
  835. }
  836. public function getEtag() {
  837. return $this->etag;
  838. }
  839. public function setLocation($location) {
  840. $this->location = $location;
  841. }
  842. public function getLocation() {
  843. return $this->location;
  844. }
  845. public function setTimeZone($timeZone) {
  846. $this->timeZone = $timeZone;
  847. }
  848. public function getTimeZone() {
  849. return $this->timeZone;
  850. }
  851. public function setId($id) {
  852. $this->id = $id;
  853. }
  854. public function getId() {
  855. return $this->id;
  856. }
  857. }
  858. class Google_CalendarList extends Google_Model {
  859. public $nextPageToken;
  860. protected $__itemsType = 'Google_CalendarListEntry';
  861. protected $__itemsDataType = 'array';
  862. public $items;
  863. public $kind;
  864. public $etag;
  865. public function setNextPageToken($nextPageToken) {
  866. $this->nextPageToken = $nextPageToken;
  867. }
  868. public function getNextPageToken() {
  869. return $this->nextPageToken;
  870. }
  871. public function setItems(/* array(Google_CalendarListEntry) */ $items) {
  872. $this->assertIsArray($items, 'Google_CalendarListEntry', __METHOD__);
  873. $this->items = $items;
  874. }
  875. public function getItems() {
  876. return $this->items;
  877. }
  878. public function setKind($kind) {
  879. $this->kind = $kind;
  880. }
  881. public function getKind() {
  882. return $this->kind;
  883. }
  884. public function setEtag($etag) {
  885. $this->etag = $etag;
  886. }
  887. public function getEtag() {
  888. return $this->etag;
  889. }
  890. }
  891. class Google_CalendarListEntry extends Google_Model {
  892. public $kind;
  893. public $foregroundColor;
  894. protected $__defaultRemindersType = 'Google_EventReminder';
  895. protected $__defaultRemindersDataType = 'array';
  896. public $defaultReminders;
  897. public $description;
  898. public $colorId;
  899. public $selected;
  900. public $summary;
  901. public $etag;
  902. public $location;
  903. public $backgroundColor;
  904. public $summaryOverride;
  905. public $timeZone;
  906. public $hidden;
  907. public $accessRole;
  908. public $id;
  909. public function setKind($kind) {
  910. $this->kind = $kind;
  911. }
  912. public function getKind() {
  913. return $this->kind;
  914. }
  915. public function setForegroundColor($foregroundColor) {
  916. $this->foregroundColor = $foregroundColor;
  917. }
  918. public function getForegroundColor() {
  919. return $this->foregroundColor;
  920. }
  921. public function setDefaultReminders(/* array(Google_EventReminder) */ $defaultReminders) {
  922. $this->assertIsArray($defaultReminders, 'Google_EventReminder', __METHOD__);
  923. $this->defaultReminders = $defaultReminders;
  924. }
  925. public function getDefaultReminders() {
  926. return $this->defaultReminders;
  927. }
  928. public function setDescription($description) {
  929. $this->description = $description;
  930. }
  931. public function getDescription() {
  932. return $this->description;
  933. }
  934. public function setColorId($colorId) {
  935. $this->colorId = $colorId;
  936. }
  937. public function getColorId() {
  938. return $this->colorId;
  939. }
  940. public function setSelected($selected) {
  941. $this->selected = $selected;
  942. }
  943. public function getSelected() {
  944. return $this->selected;
  945. }
  946. public function setSummary($summary) {

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