PageRenderTime 56ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

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

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

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