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

/src/Google/Service/Calendar.php

https://github.com/leogaggl/pluspress
PHP | 3518 lines | 2530 code | 382 blank | 606 comment | 0 complexity | a4591ca9eb87f393a404aa6bc50f25a4 MD5 | raw file
  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Calendar (v3).
  19. *
  20. * <p>
  21. * Lets you manipulate events and other calendar data.
  22. * </p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/google-apps/calendar/firstapp" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Calendar extends Google_Service
  32. {
  33. /** Manage your calendars. */
  34. const CALENDAR = "https://www.googleapis.com/auth/calendar";
  35. /** View your calendars. */
  36. const CALENDAR_READONLY = "https://www.googleapis.com/auth/calendar.readonly";
  37. public $acl;
  38. public $calendarList;
  39. public $calendars;
  40. public $channels;
  41. public $colors;
  42. public $events;
  43. public $freebusy;
  44. public $settings;
  45. /**
  46. * Constructs the internal representation of the Calendar service.
  47. *
  48. * @param Google_Client $client
  49. */
  50. public function __construct(Google_Client $client)
  51. {
  52. parent::__construct($client);
  53. $this->servicePath = 'calendar/v3/';
  54. $this->version = 'v3';
  55. $this->serviceName = 'calendar';
  56. $this->acl = new Google_Service_Calendar_Acl_Resource(
  57. $this,
  58. $this->serviceName,
  59. 'acl',
  60. array(
  61. 'methods' => array(
  62. 'delete' => array(
  63. 'path' => 'calendars/{calendarId}/acl/{ruleId}',
  64. 'httpMethod' => 'DELETE',
  65. 'parameters' => array(
  66. 'calendarId' => array(
  67. 'location' => 'path',
  68. 'type' => 'string',
  69. 'required' => true,
  70. ),
  71. 'ruleId' => array(
  72. 'location' => 'path',
  73. 'type' => 'string',
  74. 'required' => true,
  75. ),
  76. ),
  77. ),'get' => array(
  78. 'path' => 'calendars/{calendarId}/acl/{ruleId}',
  79. 'httpMethod' => 'GET',
  80. 'parameters' => array(
  81. 'calendarId' => array(
  82. 'location' => 'path',
  83. 'type' => 'string',
  84. 'required' => true,
  85. ),
  86. 'ruleId' => array(
  87. 'location' => 'path',
  88. 'type' => 'string',
  89. 'required' => true,
  90. ),
  91. ),
  92. ),'insert' => array(
  93. 'path' => 'calendars/{calendarId}/acl',
  94. 'httpMethod' => 'POST',
  95. 'parameters' => array(
  96. 'calendarId' => array(
  97. 'location' => 'path',
  98. 'type' => 'string',
  99. 'required' => true,
  100. ),
  101. ),
  102. ),'list' => array(
  103. 'path' => 'calendars/{calendarId}/acl',
  104. 'httpMethod' => 'GET',
  105. 'parameters' => array(
  106. 'calendarId' => array(
  107. 'location' => 'path',
  108. 'type' => 'string',
  109. 'required' => true,
  110. ),
  111. ),
  112. ),'patch' => array(
  113. 'path' => 'calendars/{calendarId}/acl/{ruleId}',
  114. 'httpMethod' => 'PATCH',
  115. 'parameters' => array(
  116. 'calendarId' => array(
  117. 'location' => 'path',
  118. 'type' => 'string',
  119. 'required' => true,
  120. ),
  121. 'ruleId' => array(
  122. 'location' => 'path',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ),
  126. ),
  127. ),'update' => array(
  128. 'path' => 'calendars/{calendarId}/acl/{ruleId}',
  129. 'httpMethod' => 'PUT',
  130. 'parameters' => array(
  131. 'calendarId' => array(
  132. 'location' => 'path',
  133. 'type' => 'string',
  134. 'required' => true,
  135. ),
  136. 'ruleId' => array(
  137. 'location' => 'path',
  138. 'type' => 'string',
  139. 'required' => true,
  140. ),
  141. ),
  142. ),
  143. )
  144. )
  145. );
  146. $this->calendarList = new Google_Service_Calendar_CalendarList_Resource(
  147. $this,
  148. $this->serviceName,
  149. 'calendarList',
  150. array(
  151. 'methods' => array(
  152. 'delete' => array(
  153. 'path' => 'users/me/calendarList/{calendarId}',
  154. 'httpMethod' => 'DELETE',
  155. 'parameters' => array(
  156. 'calendarId' => array(
  157. 'location' => 'path',
  158. 'type' => 'string',
  159. 'required' => true,
  160. ),
  161. ),
  162. ),'get' => array(
  163. 'path' => 'users/me/calendarList/{calendarId}',
  164. 'httpMethod' => 'GET',
  165. 'parameters' => array(
  166. 'calendarId' => array(
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ),
  171. ),
  172. ),'insert' => array(
  173. 'path' => 'users/me/calendarList',
  174. 'httpMethod' => 'POST',
  175. 'parameters' => array(
  176. 'colorRgbFormat' => array(
  177. 'location' => 'query',
  178. 'type' => 'boolean',
  179. ),
  180. ),
  181. ),'list' => array(
  182. 'path' => 'users/me/calendarList',
  183. 'httpMethod' => 'GET',
  184. 'parameters' => array(
  185. 'pageToken' => array(
  186. 'location' => 'query',
  187. 'type' => 'string',
  188. ),
  189. 'showHidden' => array(
  190. 'location' => 'query',
  191. 'type' => 'boolean',
  192. ),
  193. 'maxResults' => array(
  194. 'location' => 'query',
  195. 'type' => 'integer',
  196. ),
  197. 'minAccessRole' => array(
  198. 'location' => 'query',
  199. 'type' => 'string',
  200. ),
  201. ),
  202. ),'patch' => array(
  203. 'path' => 'users/me/calendarList/{calendarId}',
  204. 'httpMethod' => 'PATCH',
  205. 'parameters' => array(
  206. 'calendarId' => array(
  207. 'location' => 'path',
  208. 'type' => 'string',
  209. 'required' => true,
  210. ),
  211. 'colorRgbFormat' => array(
  212. 'location' => 'query',
  213. 'type' => 'boolean',
  214. ),
  215. ),
  216. ),'update' => array(
  217. 'path' => 'users/me/calendarList/{calendarId}',
  218. 'httpMethod' => 'PUT',
  219. 'parameters' => array(
  220. 'calendarId' => array(
  221. 'location' => 'path',
  222. 'type' => 'string',
  223. 'required' => true,
  224. ),
  225. 'colorRgbFormat' => array(
  226. 'location' => 'query',
  227. 'type' => 'boolean',
  228. ),
  229. ),
  230. ),
  231. )
  232. )
  233. );
  234. $this->calendars = new Google_Service_Calendar_Calendars_Resource(
  235. $this,
  236. $this->serviceName,
  237. 'calendars',
  238. array(
  239. 'methods' => array(
  240. 'clear' => array(
  241. 'path' => 'calendars/{calendarId}/clear',
  242. 'httpMethod' => 'POST',
  243. 'parameters' => array(
  244. 'calendarId' => array(
  245. 'location' => 'path',
  246. 'type' => 'string',
  247. 'required' => true,
  248. ),
  249. ),
  250. ),'delete' => array(
  251. 'path' => 'calendars/{calendarId}',
  252. 'httpMethod' => 'DELETE',
  253. 'parameters' => array(
  254. 'calendarId' => array(
  255. 'location' => 'path',
  256. 'type' => 'string',
  257. 'required' => true,
  258. ),
  259. ),
  260. ),'get' => array(
  261. 'path' => 'calendars/{calendarId}',
  262. 'httpMethod' => 'GET',
  263. 'parameters' => array(
  264. 'calendarId' => array(
  265. 'location' => 'path',
  266. 'type' => 'string',
  267. 'required' => true,
  268. ),
  269. ),
  270. ),'insert' => array(
  271. 'path' => 'calendars',
  272. 'httpMethod' => 'POST',
  273. 'parameters' => array(),
  274. ),'patch' => array(
  275. 'path' => 'calendars/{calendarId}',
  276. 'httpMethod' => 'PATCH',
  277. 'parameters' => array(
  278. 'calendarId' => array(
  279. 'location' => 'path',
  280. 'type' => 'string',
  281. 'required' => true,
  282. ),
  283. ),
  284. ),'update' => array(
  285. 'path' => 'calendars/{calendarId}',
  286. 'httpMethod' => 'PUT',
  287. 'parameters' => array(
  288. 'calendarId' => array(
  289. 'location' => 'path',
  290. 'type' => 'string',
  291. 'required' => true,
  292. ),
  293. ),
  294. ),
  295. )
  296. )
  297. );
  298. $this->channels = new Google_Service_Calendar_Channels_Resource(
  299. $this,
  300. $this->serviceName,
  301. 'channels',
  302. array(
  303. 'methods' => array(
  304. 'stop' => array(
  305. 'path' => 'channels/stop',
  306. 'httpMethod' => 'POST',
  307. 'parameters' => array(),
  308. ),
  309. )
  310. )
  311. );
  312. $this->colors = new Google_Service_Calendar_Colors_Resource(
  313. $this,
  314. $this->serviceName,
  315. 'colors',
  316. array(
  317. 'methods' => array(
  318. 'get' => array(
  319. 'path' => 'colors',
  320. 'httpMethod' => 'GET',
  321. 'parameters' => array(),
  322. ),
  323. )
  324. )
  325. );
  326. $this->events = new Google_Service_Calendar_Events_Resource(
  327. $this,
  328. $this->serviceName,
  329. 'events',
  330. array(
  331. 'methods' => array(
  332. 'delete' => array(
  333. 'path' => 'calendars/{calendarId}/events/{eventId}',
  334. 'httpMethod' => 'DELETE',
  335. 'parameters' => array(
  336. 'calendarId' => array(
  337. 'location' => 'path',
  338. 'type' => 'string',
  339. 'required' => true,
  340. ),
  341. 'eventId' => array(
  342. 'location' => 'path',
  343. 'type' => 'string',
  344. 'required' => true,
  345. ),
  346. 'sendNotifications' => array(
  347. 'location' => 'query',
  348. 'type' => 'boolean',
  349. ),
  350. ),
  351. ),'get' => array(
  352. 'path' => 'calendars/{calendarId}/events/{eventId}',
  353. 'httpMethod' => 'GET',
  354. 'parameters' => array(
  355. 'calendarId' => array(
  356. 'location' => 'path',
  357. 'type' => 'string',
  358. 'required' => true,
  359. ),
  360. 'eventId' => array(
  361. 'location' => 'path',
  362. 'type' => 'string',
  363. 'required' => true,
  364. ),
  365. 'timeZone' => array(
  366. 'location' => 'query',
  367. 'type' => 'string',
  368. ),
  369. 'alwaysIncludeEmail' => array(
  370. 'location' => 'query',
  371. 'type' => 'boolean',
  372. ),
  373. 'maxAttendees' => array(
  374. 'location' => 'query',
  375. 'type' => 'integer',
  376. ),
  377. ),
  378. ),'import' => array(
  379. 'path' => 'calendars/{calendarId}/events/import',
  380. 'httpMethod' => 'POST',
  381. 'parameters' => array(
  382. 'calendarId' => array(
  383. 'location' => 'path',
  384. 'type' => 'string',
  385. 'required' => true,
  386. ),
  387. ),
  388. ),'insert' => array(
  389. 'path' => 'calendars/{calendarId}/events',
  390. 'httpMethod' => 'POST',
  391. 'parameters' => array(
  392. 'calendarId' => array(
  393. 'location' => 'path',
  394. 'type' => 'string',
  395. 'required' => true,
  396. ),
  397. 'sendNotifications' => array(
  398. 'location' => 'query',
  399. 'type' => 'boolean',
  400. ),
  401. 'maxAttendees' => array(
  402. 'location' => 'query',
  403. 'type' => 'integer',
  404. ),
  405. ),
  406. ),'instances' => array(
  407. 'path' => 'calendars/{calendarId}/events/{eventId}/instances',
  408. 'httpMethod' => 'GET',
  409. 'parameters' => array(
  410. 'calendarId' => array(
  411. 'location' => 'path',
  412. 'type' => 'string',
  413. 'required' => true,
  414. ),
  415. 'eventId' => array(
  416. 'location' => 'path',
  417. 'type' => 'string',
  418. 'required' => true,
  419. ),
  420. 'showDeleted' => array(
  421. 'location' => 'query',
  422. 'type' => 'boolean',
  423. ),
  424. 'timeMax' => array(
  425. 'location' => 'query',
  426. 'type' => 'string',
  427. ),
  428. 'alwaysIncludeEmail' => array(
  429. 'location' => 'query',
  430. 'type' => 'boolean',
  431. ),
  432. 'maxResults' => array(
  433. 'location' => 'query',
  434. 'type' => 'integer',
  435. ),
  436. 'pageToken' => array(
  437. 'location' => 'query',
  438. 'type' => 'string',
  439. ),
  440. 'timeMin' => array(
  441. 'location' => 'query',
  442. 'type' => 'string',
  443. ),
  444. 'timeZone' => array(
  445. 'location' => 'query',
  446. 'type' => 'string',
  447. ),
  448. 'originalStart' => array(
  449. 'location' => 'query',
  450. 'type' => 'string',
  451. ),
  452. 'maxAttendees' => array(
  453. 'location' => 'query',
  454. 'type' => 'integer',
  455. ),
  456. ),
  457. ),'list' => array(
  458. 'path' => 'calendars/{calendarId}/events',
  459. 'httpMethod' => 'GET',
  460. 'parameters' => array(
  461. 'calendarId' => array(
  462. 'location' => 'path',
  463. 'type' => 'string',
  464. 'required' => true,
  465. ),
  466. 'orderBy' => array(
  467. 'location' => 'query',
  468. 'type' => 'string',
  469. ),
  470. 'showHiddenInvitations' => array(
  471. 'location' => 'query',
  472. 'type' => 'boolean',
  473. ),
  474. 'showDeleted' => array(
  475. 'location' => 'query',
  476. 'type' => 'boolean',
  477. ),
  478. 'iCalUID' => array(
  479. 'location' => 'query',
  480. 'type' => 'string',
  481. ),
  482. 'updatedMin' => array(
  483. 'location' => 'query',
  484. 'type' => 'string',
  485. ),
  486. 'singleEvents' => array(
  487. 'location' => 'query',
  488. 'type' => 'boolean',
  489. ),
  490. 'timeMax' => array(
  491. 'location' => 'query',
  492. 'type' => 'string',
  493. ),
  494. 'alwaysIncludeEmail' => array(
  495. 'location' => 'query',
  496. 'type' => 'boolean',
  497. ),
  498. 'maxResults' => array(
  499. 'location' => 'query',
  500. 'type' => 'integer',
  501. ),
  502. 'q' => array(
  503. 'location' => 'query',
  504. 'type' => 'string',
  505. ),
  506. 'pageToken' => array(
  507. 'location' => 'query',
  508. 'type' => 'string',
  509. ),
  510. 'timeMin' => array(
  511. 'location' => 'query',
  512. 'type' => 'string',
  513. ),
  514. 'timeZone' => array(
  515. 'location' => 'query',
  516. 'type' => 'string',
  517. ),
  518. 'privateExtendedProperty' => array(
  519. 'location' => 'query',
  520. 'type' => 'string',
  521. 'repeated' => true,
  522. ),
  523. 'sharedExtendedProperty' => array(
  524. 'location' => 'query',
  525. 'type' => 'string',
  526. 'repeated' => true,
  527. ),
  528. 'maxAttendees' => array(
  529. 'location' => 'query',
  530. 'type' => 'integer',
  531. ),
  532. ),
  533. ),'move' => array(
  534. 'path' => 'calendars/{calendarId}/events/{eventId}/move',
  535. 'httpMethod' => 'POST',
  536. 'parameters' => array(
  537. 'calendarId' => array(
  538. 'location' => 'path',
  539. 'type' => 'string',
  540. 'required' => true,
  541. ),
  542. 'eventId' => array(
  543. 'location' => 'path',
  544. 'type' => 'string',
  545. 'required' => true,
  546. ),
  547. 'destination' => array(
  548. 'location' => 'query',
  549. 'type' => 'string',
  550. 'required' => true,
  551. ),
  552. 'sendNotifications' => array(
  553. 'location' => 'query',
  554. 'type' => 'boolean',
  555. ),
  556. ),
  557. ),'patch' => array(
  558. 'path' => 'calendars/{calendarId}/events/{eventId}',
  559. 'httpMethod' => 'PATCH',
  560. 'parameters' => array(
  561. 'calendarId' => array(
  562. 'location' => 'path',
  563. 'type' => 'string',
  564. 'required' => true,
  565. ),
  566. 'eventId' => array(
  567. 'location' => 'path',
  568. 'type' => 'string',
  569. 'required' => true,
  570. ),
  571. 'sendNotifications' => array(
  572. 'location' => 'query',
  573. 'type' => 'boolean',
  574. ),
  575. 'alwaysIncludeEmail' => array(
  576. 'location' => 'query',
  577. 'type' => 'boolean',
  578. ),
  579. 'maxAttendees' => array(
  580. 'location' => 'query',
  581. 'type' => 'integer',
  582. ),
  583. ),
  584. ),'quickAdd' => array(
  585. 'path' => 'calendars/{calendarId}/events/quickAdd',
  586. 'httpMethod' => 'POST',
  587. 'parameters' => array(
  588. 'calendarId' => array(
  589. 'location' => 'path',
  590. 'type' => 'string',
  591. 'required' => true,
  592. ),
  593. 'text' => array(
  594. 'location' => 'query',
  595. 'type' => 'string',
  596. 'required' => true,
  597. ),
  598. 'sendNotifications' => array(
  599. 'location' => 'query',
  600. 'type' => 'boolean',
  601. ),
  602. ),
  603. ),'update' => array(
  604. 'path' => 'calendars/{calendarId}/events/{eventId}',
  605. 'httpMethod' => 'PUT',
  606. 'parameters' => array(
  607. 'calendarId' => array(
  608. 'location' => 'path',
  609. 'type' => 'string',
  610. 'required' => true,
  611. ),
  612. 'eventId' => array(
  613. 'location' => 'path',
  614. 'type' => 'string',
  615. 'required' => true,
  616. ),
  617. 'sendNotifications' => array(
  618. 'location' => 'query',
  619. 'type' => 'boolean',
  620. ),
  621. 'alwaysIncludeEmail' => array(
  622. 'location' => 'query',
  623. 'type' => 'boolean',
  624. ),
  625. 'maxAttendees' => array(
  626. 'location' => 'query',
  627. 'type' => 'integer',
  628. ),
  629. ),
  630. ),'watch' => array(
  631. 'path' => 'calendars/{calendarId}/events/watch',
  632. 'httpMethod' => 'POST',
  633. 'parameters' => array(
  634. 'calendarId' => array(
  635. 'location' => 'path',
  636. 'type' => 'string',
  637. 'required' => true,
  638. ),
  639. 'orderBy' => array(
  640. 'location' => 'query',
  641. 'type' => 'string',
  642. ),
  643. 'showHiddenInvitations' => array(
  644. 'location' => 'query',
  645. 'type' => 'boolean',
  646. ),
  647. 'showDeleted' => array(
  648. 'location' => 'query',
  649. 'type' => 'boolean',
  650. ),
  651. 'iCalUID' => array(
  652. 'location' => 'query',
  653. 'type' => 'string',
  654. ),
  655. 'updatedMin' => array(
  656. 'location' => 'query',
  657. 'type' => 'string',
  658. ),
  659. 'singleEvents' => array(
  660. 'location' => 'query',
  661. 'type' => 'boolean',
  662. ),
  663. 'timeMax' => array(
  664. 'location' => 'query',
  665. 'type' => 'string',
  666. ),
  667. 'alwaysIncludeEmail' => array(
  668. 'location' => 'query',
  669. 'type' => 'boolean',
  670. ),
  671. 'maxResults' => array(
  672. 'location' => 'query',
  673. 'type' => 'integer',
  674. ),
  675. 'q' => array(
  676. 'location' => 'query',
  677. 'type' => 'string',
  678. ),
  679. 'pageToken' => array(
  680. 'location' => 'query',
  681. 'type' => 'string',
  682. ),
  683. 'timeMin' => array(
  684. 'location' => 'query',
  685. 'type' => 'string',
  686. ),
  687. 'timeZone' => array(
  688. 'location' => 'query',
  689. 'type' => 'string',
  690. ),
  691. 'privateExtendedProperty' => array(
  692. 'location' => 'query',
  693. 'type' => 'string',
  694. 'repeated' => true,
  695. ),
  696. 'sharedExtendedProperty' => array(
  697. 'location' => 'query',
  698. 'type' => 'string',
  699. 'repeated' => true,
  700. ),
  701. 'maxAttendees' => array(
  702. 'location' => 'query',
  703. 'type' => 'integer',
  704. ),
  705. ),
  706. ),
  707. )
  708. )
  709. );
  710. $this->freebusy = new Google_Service_Calendar_Freebusy_Resource(
  711. $this,
  712. $this->serviceName,
  713. 'freebusy',
  714. array(
  715. 'methods' => array(
  716. 'query' => array(
  717. 'path' => 'freeBusy',
  718. 'httpMethod' => 'POST',
  719. 'parameters' => array(),
  720. ),
  721. )
  722. )
  723. );
  724. $this->settings = new Google_Service_Calendar_Settings_Resource(
  725. $this,
  726. $this->serviceName,
  727. 'settings',
  728. array(
  729. 'methods' => array(
  730. 'get' => array(
  731. 'path' => 'users/me/settings/{setting}',
  732. 'httpMethod' => 'GET',
  733. 'parameters' => array(
  734. 'setting' => array(
  735. 'location' => 'path',
  736. 'type' => 'string',
  737. 'required' => true,
  738. ),
  739. ),
  740. ),'list' => array(
  741. 'path' => 'users/me/settings',
  742. 'httpMethod' => 'GET',
  743. 'parameters' => array(),
  744. ),
  745. )
  746. )
  747. );
  748. }
  749. }
  750. /**
  751. * The "acl" collection of methods.
  752. * Typical usage is:
  753. * <code>
  754. * $calendarService = new Google_Service_Calendar(...);
  755. * $acl = $calendarService->acl;
  756. * </code>
  757. */
  758. class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
  759. {
  760. /**
  761. * Deletes an access control rule. (acl.delete)
  762. *
  763. * @param string $calendarId
  764. * Calendar identifier.
  765. * @param string $ruleId
  766. * ACL rule identifier.
  767. * @param array $optParams Optional parameters.
  768. */
  769. public function delete($calendarId, $ruleId, $optParams = array())
  770. {
  771. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
  772. $params = array_merge($params, $optParams);
  773. return $this->call('delete', array($params));
  774. }
  775. /**
  776. * Returns an access control rule. (acl.get)
  777. *
  778. * @param string $calendarId
  779. * Calendar identifier.
  780. * @param string $ruleId
  781. * ACL rule identifier.
  782. * @param array $optParams Optional parameters.
  783. * @return Google_Service_Calendar_AclRule
  784. */
  785. public function get($calendarId, $ruleId, $optParams = array())
  786. {
  787. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
  788. $params = array_merge($params, $optParams);
  789. return $this->call('get', array($params), "Google_Service_Calendar_AclRule");
  790. }
  791. /**
  792. * Creates an access control rule. (acl.insert)
  793. *
  794. * @param string $calendarId
  795. * Calendar identifier.
  796. * @param Google_AclRule $postBody
  797. * @param array $optParams Optional parameters.
  798. * @return Google_Service_Calendar_AclRule
  799. */
  800. public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
  801. {
  802. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  803. $params = array_merge($params, $optParams);
  804. return $this->call('insert', array($params), "Google_Service_Calendar_AclRule");
  805. }
  806. /**
  807. * Returns the rules in the access control list for the calendar. (acl.listAcl)
  808. *
  809. * @param string $calendarId
  810. * Calendar identifier.
  811. * @param array $optParams Optional parameters.
  812. * @return Google_Service_Calendar_Acl
  813. */
  814. public function listAcl($calendarId, $optParams = array())
  815. {
  816. $params = array('calendarId' => $calendarId);
  817. $params = array_merge($params, $optParams);
  818. return $this->call('list', array($params), "Google_Service_Calendar_Acl");
  819. }
  820. /**
  821. * Updates an access control rule. This method supports patch semantics.
  822. * (acl.patch)
  823. *
  824. * @param string $calendarId
  825. * Calendar identifier.
  826. * @param string $ruleId
  827. * ACL rule identifier.
  828. * @param Google_AclRule $postBody
  829. * @param array $optParams Optional parameters.
  830. * @return Google_Service_Calendar_AclRule
  831. */
  832. public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
  833. {
  834. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
  835. $params = array_merge($params, $optParams);
  836. return $this->call('patch', array($params), "Google_Service_Calendar_AclRule");
  837. }
  838. /**
  839. * Updates an access control rule. (acl.update)
  840. *
  841. * @param string $calendarId
  842. * Calendar identifier.
  843. * @param string $ruleId
  844. * ACL rule identifier.
  845. * @param Google_AclRule $postBody
  846. * @param array $optParams Optional parameters.
  847. * @return Google_Service_Calendar_AclRule
  848. */
  849. public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
  850. {
  851. $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
  852. $params = array_merge($params, $optParams);
  853. return $this->call('update', array($params), "Google_Service_Calendar_AclRule");
  854. }
  855. }
  856. /**
  857. * The "calendarList" collection of methods.
  858. * Typical usage is:
  859. * <code>
  860. * $calendarService = new Google_Service_Calendar(...);
  861. * $calendarList = $calendarService->calendarList;
  862. * </code>
  863. */
  864. class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resource
  865. {
  866. /**
  867. * Deletes an entry on the user's calendar list. (calendarList.delete)
  868. *
  869. * @param string $calendarId
  870. * Calendar identifier.
  871. * @param array $optParams Optional parameters.
  872. */
  873. public function delete($calendarId, $optParams = array())
  874. {
  875. $params = array('calendarId' => $calendarId);
  876. $params = array_merge($params, $optParams);
  877. return $this->call('delete', array($params));
  878. }
  879. /**
  880. * Returns an entry on the user's calendar list. (calendarList.get)
  881. *
  882. * @param string $calendarId
  883. * Calendar identifier.
  884. * @param array $optParams Optional parameters.
  885. * @return Google_Service_Calendar_CalendarListEntry
  886. */
  887. public function get($calendarId, $optParams = array())
  888. {
  889. $params = array('calendarId' => $calendarId);
  890. $params = array_merge($params, $optParams);
  891. return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry");
  892. }
  893. /**
  894. * Adds an entry to the user's calendar list. (calendarList.insert)
  895. *
  896. * @param Google_CalendarListEntry $postBody
  897. * @param array $optParams Optional parameters.
  898. *
  899. * @opt_param bool colorRgbFormat
  900. * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
  901. * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
  902. * option automatically. Optional. The default is False.
  903. * @return Google_Service_Calendar_CalendarListEntry
  904. */
  905. public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
  906. {
  907. $params = array('postBody' => $postBody);
  908. $params = array_merge($params, $optParams);
  909. return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry");
  910. }
  911. /**
  912. * Returns entries on the user's calendar list. (calendarList.listCalendarList)
  913. *
  914. * @param array $optParams Optional parameters.
  915. *
  916. * @opt_param string pageToken
  917. * Token specifying which result page to return. Optional.
  918. * @opt_param bool showHidden
  919. * Whether to show hidden entries. Optional. The default is False.
  920. * @opt_param int maxResults
  921. * Maximum number of entries returned on one result page. Optional.
  922. * @opt_param string minAccessRole
  923. * The minimum access role for the user in the returned entires. Optional. The default is no
  924. * restriction.
  925. * @return Google_Service_Calendar_CalendarList
  926. */
  927. public function listCalendarList($optParams = array())
  928. {
  929. $params = array();
  930. $params = array_merge($params, $optParams);
  931. return $this->call('list', array($params), "Google_Service_Calendar_CalendarList");
  932. }
  933. /**
  934. * Updates an entry on the user's calendar list. This method supports patch
  935. * semantics. (calendarList.patch)
  936. *
  937. * @param string $calendarId
  938. * Calendar identifier.
  939. * @param Google_CalendarListEntry $postBody
  940. * @param array $optParams Optional parameters.
  941. *
  942. * @opt_param bool colorRgbFormat
  943. * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
  944. * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
  945. * option automatically. Optional. The default is False.
  946. * @return Google_Service_Calendar_CalendarListEntry
  947. */
  948. public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
  949. {
  950. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  951. $params = array_merge($params, $optParams);
  952. return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry");
  953. }
  954. /**
  955. * Updates an entry on the user's calendar list. (calendarList.update)
  956. *
  957. * @param string $calendarId
  958. * Calendar identifier.
  959. * @param Google_CalendarListEntry $postBody
  960. * @param array $optParams Optional parameters.
  961. *
  962. * @opt_param bool colorRgbFormat
  963. * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
  964. * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
  965. * option automatically. Optional. The default is False.
  966. * @return Google_Service_Calendar_CalendarListEntry
  967. */
  968. public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
  969. {
  970. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  971. $params = array_merge($params, $optParams);
  972. return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry");
  973. }
  974. }
  975. /**
  976. * The "calendars" collection of methods.
  977. * Typical usage is:
  978. * <code>
  979. * $calendarService = new Google_Service_Calendar(...);
  980. * $calendars = $calendarService->calendars;
  981. * </code>
  982. */
  983. class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
  984. {
  985. /**
  986. * Clears a primary calendar. This operation deletes all data associated with
  987. * the primary calendar of an account and cannot be undone. (calendars.clear)
  988. *
  989. * @param string $calendarId
  990. * Calendar identifier.
  991. * @param array $optParams Optional parameters.
  992. */
  993. public function clear($calendarId, $optParams = array())
  994. {
  995. $params = array('calendarId' => $calendarId);
  996. $params = array_merge($params, $optParams);
  997. return $this->call('clear', array($params));
  998. }
  999. /**
  1000. * Deletes a secondary calendar. (calendars.delete)
  1001. *
  1002. * @param string $calendarId
  1003. * Calendar identifier.
  1004. * @param array $optParams Optional parameters.
  1005. */
  1006. public function delete($calendarId, $optParams = array())
  1007. {
  1008. $params = array('calendarId' => $calendarId);
  1009. $params = array_merge($params, $optParams);
  1010. return $this->call('delete', array($params));
  1011. }
  1012. /**
  1013. * Returns metadata for a calendar. (calendars.get)
  1014. *
  1015. * @param string $calendarId
  1016. * Calendar identifier.
  1017. * @param array $optParams Optional parameters.
  1018. * @return Google_Service_Calendar_Calendar
  1019. */
  1020. public function get($calendarId, $optParams = array())
  1021. {
  1022. $params = array('calendarId' => $calendarId);
  1023. $params = array_merge($params, $optParams);
  1024. return $this->call('get', array($params), "Google_Service_Calendar_Calendar");
  1025. }
  1026. /**
  1027. * Creates a secondary calendar. (calendars.insert)
  1028. *
  1029. * @param Google_Calendar $postBody
  1030. * @param array $optParams Optional parameters.
  1031. * @return Google_Service_Calendar_Calendar
  1032. */
  1033. public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array())
  1034. {
  1035. $params = array('postBody' => $postBody);
  1036. $params = array_merge($params, $optParams);
  1037. return $this->call('insert', array($params), "Google_Service_Calendar_Calendar");
  1038. }
  1039. /**
  1040. * Updates metadata for a calendar. This method supports patch semantics.
  1041. * (calendars.patch)
  1042. *
  1043. * @param string $calendarId
  1044. * Calendar identifier.
  1045. * @param Google_Calendar $postBody
  1046. * @param array $optParams Optional parameters.
  1047. * @return Google_Service_Calendar_Calendar
  1048. */
  1049. public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
  1050. {
  1051. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  1052. $params = array_merge($params, $optParams);
  1053. return $this->call('patch', array($params), "Google_Service_Calendar_Calendar");
  1054. }
  1055. /**
  1056. * Updates metadata for a calendar. (calendars.update)
  1057. *
  1058. * @param string $calendarId
  1059. * Calendar identifier.
  1060. * @param Google_Calendar $postBody
  1061. * @param array $optParams Optional parameters.
  1062. * @return Google_Service_Calendar_Calendar
  1063. */
  1064. public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
  1065. {
  1066. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  1067. $params = array_merge($params, $optParams);
  1068. return $this->call('update', array($params), "Google_Service_Calendar_Calendar");
  1069. }
  1070. }
  1071. /**
  1072. * The "channels" collection of methods.
  1073. * Typical usage is:
  1074. * <code>
  1075. * $calendarService = new Google_Service_Calendar(...);
  1076. * $channels = $calendarService->channels;
  1077. * </code>
  1078. */
  1079. class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource
  1080. {
  1081. /**
  1082. * Stop watching resources through this channel (channels.stop)
  1083. *
  1084. * @param Google_Channel $postBody
  1085. * @param array $optParams Optional parameters.
  1086. */
  1087. public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array())
  1088. {
  1089. $params = array('postBody' => $postBody);
  1090. $params = array_merge($params, $optParams);
  1091. return $this->call('stop', array($params));
  1092. }
  1093. }
  1094. /**
  1095. * The "colors" collection of methods.
  1096. * Typical usage is:
  1097. * <code>
  1098. * $calendarService = new Google_Service_Calendar(...);
  1099. * $colors = $calendarService->colors;
  1100. * </code>
  1101. */
  1102. class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource
  1103. {
  1104. /**
  1105. * Returns the color definitions for calendars and events. (colors.get)
  1106. *
  1107. * @param array $optParams Optional parameters.
  1108. * @return Google_Service_Calendar_Colors
  1109. */
  1110. public function get($optParams = array())
  1111. {
  1112. $params = array();
  1113. $params = array_merge($params, $optParams);
  1114. return $this->call('get', array($params), "Google_Service_Calendar_Colors");
  1115. }
  1116. }
  1117. /**
  1118. * The "events" collection of methods.
  1119. * Typical usage is:
  1120. * <code>
  1121. * $calendarService = new Google_Service_Calendar(...);
  1122. * $events = $calendarService->events;
  1123. * </code>
  1124. */
  1125. class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
  1126. {
  1127. /**
  1128. * Deletes an event. (events.delete)
  1129. *
  1130. * @param string $calendarId
  1131. * Calendar identifier.
  1132. * @param string $eventId
  1133. * Event identifier.
  1134. * @param array $optParams Optional parameters.
  1135. *
  1136. * @opt_param bool sendNotifications
  1137. * Whether to send notifications about the deletion of the event. Optional. The default is False.
  1138. */
  1139. public function delete($calendarId, $eventId, $optParams = array())
  1140. {
  1141. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  1142. $params = array_merge($params, $optParams);
  1143. return $this->call('delete', array($params));
  1144. }
  1145. /**
  1146. * Returns an event. (events.get)
  1147. *
  1148. * @param string $calendarId
  1149. * Calendar identifier.
  1150. * @param string $eventId
  1151. * Event identifier.
  1152. * @param array $optParams Optional parameters.
  1153. *
  1154. * @opt_param string timeZone
  1155. * Time zone used in the response. Optional. The default is the time zone of the calendar.
  1156. * @opt_param bool alwaysIncludeEmail
  1157. * Whether to always include a value in the "email" field for the organizer, creator and attendees,
  1158. * even if no real email is available (i.e. a generated, non-working value will be provided). The
  1159. * use of this option is discouraged and should only be used by clients which cannot handle the
  1160. * absence of an email address value in the mentioned places. Optional. The default is False.
  1161. * @opt_param int maxAttendees
  1162. * The maximum number of attendees to include in the response. If there are more than the specified
  1163. * number of attendees, only the participant is returned. Optional.
  1164. * @return Google_Service_Calendar_Event
  1165. */
  1166. public function get($calendarId, $eventId, $optParams = array())
  1167. {
  1168. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  1169. $params = array_merge($params, $optParams);
  1170. return $this->call('get', array($params), "Google_Service_Calendar_Event");
  1171. }
  1172. /**
  1173. * Imports an event. This operation is used to add a private copy of an existing
  1174. * event to a calendar. (events.import)
  1175. *
  1176. * @param string $calendarId
  1177. * Calendar identifier.
  1178. * @param Google_Event $postBody
  1179. * @param array $optParams Optional parameters.
  1180. * @return Google_Service_Calendar_Event
  1181. */
  1182. public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
  1183. {
  1184. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  1185. $params = array_merge($params, $optParams);
  1186. return $this->call('import', array($params), "Google_Service_Calendar_Event");
  1187. }
  1188. /**
  1189. * Creates an event. (events.insert)
  1190. *
  1191. * @param string $calendarId
  1192. * Calendar identifier.
  1193. * @param Google_Event $postBody
  1194. * @param array $optParams Optional parameters.
  1195. *
  1196. * @opt_param bool sendNotifications
  1197. * Whether to send notifications about the creation of the new event. Optional. The default is
  1198. * False.
  1199. * @opt_param int maxAttendees
  1200. * The maximum number of attendees to include in the response. If there are more than the specified
  1201. * number of attendees, only the participant is returned. Optional.
  1202. * @return Google_Service_Calendar_Event
  1203. */
  1204. public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
  1205. {
  1206. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  1207. $params = array_merge($params, $optParams);
  1208. return $this->call('insert', array($params), "Google_Service_Calendar_Event");
  1209. }
  1210. /**
  1211. * Returns instances of the specified recurring event. (events.instances)
  1212. *
  1213. * @param string $calendarId
  1214. * Calendar identifier.
  1215. * @param string $eventId
  1216. * Recurring event identifier.
  1217. * @param array $optParams Optional parameters.
  1218. *
  1219. * @opt_param bool showDeleted
  1220. * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
  1221. * instances of recurring events will still be included if 'singleEvents' is False. Optional. The
  1222. * default is False.
  1223. * @opt_param string timeMax
  1224. * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to
  1225. * filter by start time.
  1226. * @opt_param bool alwaysIncludeEmail
  1227. * Whether to always include a value in the "email" field for the organizer, creator and attendees,
  1228. * even if no real email is available (i.e. a generated, non-working value will be provided). The
  1229. * use of this option is discouraged and should only be used by clients which cannot handle the
  1230. * absence of an email address value in the mentioned places. Optional. The default is False.
  1231. * @opt_param int maxResults
  1232. * Maximum number of events returned on one result page. Optional.
  1233. * @opt_param string pageToken
  1234. * Token specifying which result page to return. Optional.
  1235. * @opt_param string timeMin
  1236. * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to
  1237. * filter by end time.
  1238. * @opt_param string timeZone
  1239. * Time zone used in the response. Optional. The default is the time zone of the calendar.
  1240. * @opt_param string originalStart
  1241. * The original start time of the instance in the result. Optional.
  1242. * @opt_param int maxAttendees
  1243. * The maximum number of attendees to include in the response. If there are more than the specified
  1244. * number of attendees, only the participant is returned. Optional.
  1245. * @return Google_Service_Calendar_Events
  1246. */
  1247. public function instances($calendarId, $eventId, $optParams = array())
  1248. {
  1249. $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
  1250. $params = array_merge($params, $optParams);
  1251. return $this->call('instances', array($params), "Google_Service_Calendar_Events");
  1252. }
  1253. /**
  1254. * Returns events on the specified calendar. (events.listEvents)
  1255. *
  1256. * @param string $calendarId
  1257. * Calendar identifier.
  1258. * @param array $optParams Optional parameters.
  1259. *
  1260. * @opt_param string orderBy
  1261. * The order of the events returned in the result. Optional. The default is an unspecified, stable
  1262. * order.
  1263. * @opt_param bool showHiddenInvitations
  1264. * Whether to include hidden invitations in the result. Optional. The default is False.
  1265. * @opt_param bool showDeleted
  1266. * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
  1267. * instances of recurring events (but not the underlying recurring event) will still be included if
  1268. * 'showDeleted' and 'singleEvents' are both False. If 'showDeleted' and 'singleEvents' are both
  1269. * True, only single instances of deleted events (but not the underlying recurring events) are
  1270. * returned. Optional. The default is False.
  1271. * @opt_param string iCalUID
  1272. * Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
  1273. * @opt_param string updatedMin
  1274. * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by.
  1275. * Optional. The default is not to filter by last modification time.
  1276. * @opt_param bool singleEvents
  1277. * Whether to expand recurring events into instances and only return single one-off events and
  1278. * instances of recurring events, but not the underlying recurring events themselves. Optional. The
  1279. * default is False.
  1280. * @opt_param string timeMax
  1281. * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to
  1282. * filter by start time.
  1283. * @opt_param bool alwaysIncludeEmail
  1284. * Whether to always include a value in the "email" field for the organizer, creator and attendees,
  1285. * even if no real email is available (i.e. a generated, non-working value will be provided). The
  1286. * use of this option is discouraged and should only be used by clients which cannot handle the
  1287. * absence of an email address value in the mentioned places. Optional. The default is False.
  1288. * @opt_param int maxResults
  1289. * Maximum number of events returned on one result page. Optional.
  1290. * @opt_param string q
  1291. * Free text search terms to find events that match these terms in any field, except for extended
  1292. * properties. Optional.
  1293. * @opt_param string pageToken
  1294. * Token specifying which result page to return. Optional.
  1295. * @opt_param string timeMin
  1296. * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to
  1297. * filter by end time.
  1298. * @opt_param string timeZone
  1299. * Time zone used in the response. Optional. The default is the time zone of the calendar.
  1300. * @opt_param string privateExtendedProperty
  1301. * Extended properties constraint specified as propertyName=value. Matches only private properties.
  1302. * This parameter might be repeated multiple times to return events that match all given
  1303. * constraints.
  1304. * @opt_param string sharedExtendedProperty
  1305. * Extended properties constraint specified as propertyName=value. Matches only shared properties.
  1306. * This parameter might be repeated multiple times to return events that match all given
  1307. * constraints.
  1308. * @opt_param int maxAttendees
  1309. * The maximum number of attendees to include in the response. If there are more than the specified
  1310. * number of attendees, only the participant is returned. Optional.
  1311. * @return Google_Service_Calendar_Events
  1312. */
  1313. public function listEvents($calendarId, $optParams = array())
  1314. {
  1315. $params = array('calendarId' => $calendarId);
  1316. $params = array_merge($params, $optParams);
  1317. return $this->call('list', array($params), "Google_Service_Calendar_Events");
  1318. }
  1319. /**
  1320. * Moves an event to another calendar, i.e. changes an event's organizer.
  1321. * (events.move)
  1322. *
  1323. * @param string $calendarId
  1324. * Calendar identifier of the source calendar where the event currently is on.
  1325. * @param string $eventId
  1326. * Event identifier.
  1327. * @param string $destination
  1328. * Calendar identifier of the target calendar where the event is to be moved to.
  1329. * @param array $optParams Optional parameters.
  1330. *
  1331. * @opt_param bool sendNotifications
  1332. * Whether to send notifications about the change of the event's organizer. Optional. The default
  1333. * is False.
  1334. * @return Google_Service_Calendar_Event
  1335. */
  1336. public function move($calendarId, $eventId, $destination, $optParams = array())
  1337. {
  1338. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
  1339. $params = array_merge($params, $optParams);
  1340. return $this->call('move', array($params), "Google_Service_Calendar_Event");
  1341. }
  1342. /**
  1343. * Updates an event. This method supports patch semantics. (events.patch)
  1344. *
  1345. * @param string $calendarId
  1346. * Calendar identifier.
  1347. * @param string $eventId
  1348. * Event identifier.
  1349. * @param Google_Event $postBody
  1350. * @param array $optParams Optional parameters.
  1351. *
  1352. * @opt_param bool sendNotifications
  1353. * Whether to send notifications about the event update (e.g. attendee's responses, title changes,
  1354. * etc.). Optional. The default is False.
  1355. * @opt_param bool alwaysIncludeEmail
  1356. * Whether to always include a value in the "email" field for the organizer, creator and attendees,
  1357. * even if no real email is available (i.e. a generated, non-working value will be provided). The
  1358. * use of this option is discouraged and should only be used by clients which cannot handle the
  1359. * absence of an email address value in the mentioned places. Optional. The default is False.
  1360. * @opt_param int maxAttendees
  1361. * The maximum number of attendees to include in the response. If there are more than the specified
  1362. * number of attendees, only the participant is returned. Optional.
  1363. * @return Google_Service_Calendar_Event
  1364. */
  1365. public function patch($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
  1366. {
  1367. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
  1368. $params = array_merge($params, $optParams);
  1369. return $this->call('patch', array($params), "Google_Service_Calendar_Event");
  1370. }
  1371. /**
  1372. * Creates an event based on a simple text string. (events.quickAdd)
  1373. *
  1374. * @param string $calendarId
  1375. * Calendar identifier.
  1376. * @param string $text
  1377. * The text describing the event to be created.
  1378. * @param array $optParams Optional parameters.
  1379. *
  1380. * @opt_param bool sendNotifications
  1381. * Whether to send notifications about the creation of the event. Optional. The default is False.
  1382. * @return Google_Service_Calendar_Event
  1383. */
  1384. public function quickAdd($calendarId, $text, $optParams = array())
  1385. {
  1386. $params = array('calendarId' => $calendarId, 'text' => $text);
  1387. $params = array_merge($params, $optParams);
  1388. return $this->call('quickAdd', array($params), "Google_Service_Calendar_Event");
  1389. }
  1390. /**
  1391. * Updates an event. (events.update)
  1392. *
  1393. * @param string $calendarId
  1394. * Calendar identifier.
  1395. * @param string $eventId
  1396. * Event identifier.
  1397. * @param Google_Event $postBody
  1398. * @param array $optParams Optional parameters.
  1399. *
  1400. * @opt_param bool sendNotifications
  1401. * Whether to send notifications about the event update (e.g. attendee's responses, title changes,
  1402. * etc.). Optional. The default is False.
  1403. * @opt_param bool alwaysIncludeEmail
  1404. * Whether to always include a value in the "email" field for the organizer, creator and attendees,
  1405. * even if no real email is available (i.e. a generated, non-working value will be provided). The
  1406. * use of this option is discouraged and should only be used by clients which cannot handle the
  1407. * absence of an email address value in the mentioned places. Optional. The default is False.
  1408. * @opt_param int maxAttendees
  1409. * The maximum number of attendees to include in the response. If there are more than the specified
  1410. * number of attendees, only the participant is returned. Optional.
  1411. * @return Google_Service_Calendar_Event
  1412. */
  1413. public function update($calendarId, $eventId, Google_Service_Calendar_Event $postBody, $optParams = array())
  1414. {
  1415. $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody);
  1416. $params = array_merge($params, $optParams);
  1417. return $this->call('update', array($params), "Google_Service_Calendar_Event");
  1418. }
  1419. /**
  1420. * Watch for changes to Events resources. (events.watch)
  1421. *
  1422. * @param string $calendarId
  1423. * Calendar identifier.
  1424. * @param Google_Channel $postBody
  1425. * @param array $optParams Optional parameters.
  1426. *
  1427. * @opt_param string orderBy
  1428. * The order of the events returned in the result. Optional. The default is an unspecified, stable
  1429. * order.
  1430. * @opt_param bool showHiddenInvitations
  1431. * Whether to include hidden invitations in the result. Optional. The default is False.
  1432. * @opt_param bool showDeleted
  1433. * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
  1434. * instances of recurring events (but not the underlying recurring event) will still be included if
  1435. * 'showDeleted' and 'singleEvents' are both False. If 'showDeleted' and 'singleEvents' are both
  1436. * True, only single instances of deleted events (but not the underlying recurring events) are
  1437. * returned. Optional. The default is False.
  1438. * @opt_param string iCalUID
  1439. * Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
  1440. * @opt_param string updatedMin
  1441. * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by.
  1442. * Optional. The default is not to filter by last modification time.
  1443. * @opt_param bool singleEvents
  1444. * Whether to expand recurring events into instances and only return single one-off events and
  1445. * instances of recurring events, but not the underlying recurring events themselves. Optional. The
  1446. * default is False.
  1447. * @opt_param string timeMax
  1448. * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to
  1449. * filter by start time.
  1450. * @opt_param bool alwaysIncludeEmail
  1451. * Whether to always include a value in the "email" field for the organizer, creator and attendees,
  1452. * even if no real email is available (i.e. a generated, non-working value will be provided). The
  1453. * use of this option is discouraged and should only be used by clients which cannot handle the
  1454. * absence of an email address value in the mentioned places. Optional. The default is False.
  1455. * @opt_param int maxResults
  1456. * Maximum number of events returned on one result page. Optional.
  1457. * @opt_param string q
  1458. * Free text search terms to find events that match these terms in any field, except for extended
  1459. * properties. Optional.
  1460. * @opt_param string pageToken
  1461. * Token specifying which result page to return. Optional.
  1462. * @opt_param string timeMin
  1463. * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to
  1464. * filter by end time.
  1465. * @opt_param string timeZone
  1466. * Time zone used in the response. Optional. The default is the time zone of the calendar.
  1467. * @opt_param string privateExtendedProperty
  1468. * Extended properties constraint specified as propertyName=value. Matches only private properties.
  1469. * This parameter might be repeated multiple times to return events that match all given
  1470. * constraints.
  1471. * @opt_param string sharedExtendedProperty
  1472. * Extended properties constraint specified as propertyName=value. Matches only shared properties.
  1473. * This parameter might be repeated multiple times to return events that match all given
  1474. * constraints.
  1475. * @opt_param int maxAttendees
  1476. * The maximum number of attendees to include in the response. If there are more than the specified
  1477. * number of attendees, only the participant is returned. Optional.
  1478. * @return Google_Service_Calendar_Channel
  1479. */
  1480. public function watch($calendarId, Google_Service_Calendar_Channel $postBody, $optParams = array())
  1481. {
  1482. $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
  1483. $params = array_merge($params, $optParams);
  1484. return $this->call('watch', array($params), "Google_Service_Calendar_Channel");
  1485. }
  1486. }
  1487. /**
  1488. * The "freebusy" collection of methods.
  1489. * Typical usage is:
  1490. * <code>
  1491. * $calendarService = new Google_Service_Calendar(...);
  1492. * $freebusy = $calendarService->freebusy;
  1493. * </code>
  1494. */
  1495. class Google_Service_Calendar_Freebusy_Resource extends Google_Service_Resource
  1496. {
  1497. /**
  1498. * Returns free/busy information for a set of calendars. (freebusy.query)
  1499. *
  1500. * @param Google_FreeBusyRequest $postBody
  1501. * @param array $optParams Optional parameters.
  1502. * @return Google_Service_Calendar_FreeBusyResponse
  1503. */
  1504. public function query(Google_Service_Calendar_FreeBusyRequest $postBody, $optParams = array())
  1505. {
  1506. $params = array('postBody' => $postBody);
  1507. $params = array_merge($params, $optParams);
  1508. return $this->call('query', array($params), "Google_Service_Calendar_FreeBusyResponse");
  1509. }
  1510. }
  1511. /**
  1512. * The "settings" collection of methods.
  1513. * Typical usage is:
  1514. * <code>
  1515. * $calendarService = new Google_Service_Calendar(...);
  1516. * $settings = $calendarService->settings;
  1517. * </code>
  1518. */
  1519. class Google_Service_Calendar_Settings_Resource extends Google_Service_Resource
  1520. {
  1521. /**
  1522. * Returns a single user setting. (settings.get)
  1523. *
  1524. * @param string $setting
  1525. * The id of the user setting.
  1526. * @param array $optParams Optional parameters.
  1527. * @return Google_Service_Calendar_Setting
  1528. */
  1529. public function get($setting, $optParams = array())
  1530. {
  1531. $params = array('setting' => $setting);
  1532. $params = array_merge($params, $optParams);
  1533. return $this->call('get', array($params), "Google_Service_Calendar_Setting");
  1534. }
  1535. /**
  1536. * Returns all user settings for the authenticated user. (settings.listSettings)
  1537. *
  1538. * @param array $optParams Optional parameters.
  1539. * @return Google_Service_Calendar_Settings
  1540. */
  1541. public function listSettings($optParams = array())
  1542. {
  1543. $params = array();
  1544. $params = array_merge($params, $optParams);
  1545. return $this->call('list', array($params), "Google_Service_Calendar_Settings");
  1546. }
  1547. }
  1548. class Google_Service_Calendar_Acl extends Google_Collection
  1549. {
  1550. public $etag;
  1551. protected $itemsType = 'Google_Service_Calendar_AclRule';
  1552. protected $itemsDataType = 'array';
  1553. public $kind;
  1554. public $nextPageToken;
  1555. public function setEtag($etag)
  1556. {
  1557. $this->etag = $etag;
  1558. }
  1559. public function getEtag()
  1560. {
  1561. return $this->etag;
  1562. }
  1563. public function setItems($items)
  1564. {
  1565. $this->items = $items;
  1566. }
  1567. public function getItems()
  1568. {
  1569. return $this->items;
  1570. }
  1571. public function setKind($kind)
  1572. {
  1573. $this->kind = $kind;
  1574. }
  1575. public function getKind()
  1576. {
  1577. return $this->kind;
  1578. }
  1579. public function setNextPageToken($nextPageToken)
  1580. {
  1581. $this->nextPageToken = $nextPageToken;
  1582. }
  1583. public function getNextPageToken()
  1584. {
  1585. return $this->nextPageToken;
  1586. }
  1587. }
  1588. class Google_Service_Calendar_AclRule extends Google_Model
  1589. {
  1590. public $etag;
  1591. public $id;
  1592. public $kind;
  1593. public $role;
  1594. protected $scopeType = 'Google_Service_Calendar_AclRuleScope';
  1595. protected $scopeDataType = '';
  1596. public function setEtag($etag)
  1597. {
  1598. $this->etag = $etag;
  1599. }
  1600. public function getEtag()
  1601. {
  1602. return $this->etag;
  1603. }
  1604. public function setId($id)
  1605. {
  1606. $this->id = $id;
  1607. }
  1608. public function getId()
  1609. {
  1610. return $this->id;
  1611. }
  1612. public function setKind($kind)
  1613. {
  1614. $this->kind = $kind;
  1615. }
  1616. public function getKind()
  1617. {
  1618. return $this->kind;
  1619. }
  1620. public function setRole($role)
  1621. {
  1622. $this->role = $role;
  1623. }
  1624. public function getRole()
  1625. {
  1626. return $this->role;
  1627. }
  1628. public function setScope(Google_Service_Calendar_AclRuleScope $scope)
  1629. {
  1630. $this->scope = $scope;
  1631. }
  1632. public function getScope()
  1633. {
  1634. return $this->scope;
  1635. }
  1636. }
  1637. class Google_Service_Calendar_AclRuleScope extends Google_Model
  1638. {
  1639. public $type;
  1640. public $value;
  1641. public function setType($type)
  1642. {
  1643. $this->type = $type;
  1644. }
  1645. public function getType()
  1646. {
  1647. return $this->type;
  1648. }
  1649. public function setValue($value)
  1650. {
  1651. $this->value = $value;
  1652. }
  1653. public function getValue()
  1654. {
  1655. return $this->value;
  1656. }
  1657. }
  1658. class Google_Service_Calendar_Calendar extends Google_Model
  1659. {
  1660. public $description;
  1661. public $etag;
  1662. public $id;
  1663. public $kind;
  1664. public $location;
  1665. public $summary;
  1666. public $timeZone;
  1667. public function setDescription($description)
  1668. {
  1669. $this->description = $description;
  1670. }
  1671. public function getDescription()
  1672. {
  1673. return $this->description;
  1674. }
  1675. public function setEtag($etag)
  1676. {
  1677. $this->etag = $etag;
  1678. }
  1679. public function getEtag()
  1680. {
  1681. return $this->etag;
  1682. }
  1683. public function setId($id)
  1684. {
  1685. $this->id = $id;
  1686. }
  1687. public function getId()
  1688. {
  1689. return $this->id;
  1690. }
  1691. public function setKind($kind)
  1692. {
  1693. $this->kind = $kind;
  1694. }
  1695. public function getKind()
  1696. {
  1697. return $this->kind;
  1698. }
  1699. public function setLocation($location)
  1700. {
  1701. $this->location = $location;
  1702. }
  1703. public function getLocation()
  1704. {
  1705. return $this->location;
  1706. }
  1707. public function setSummary($summary)
  1708. {
  1709. $this->summary = $summary;
  1710. }
  1711. public function getSummary()
  1712. {
  1713. return $this->summary;
  1714. }
  1715. public function setTimeZone($timeZone)
  1716. {
  1717. $this->timeZone = $timeZone;
  1718. }
  1719. public function getTimeZone()
  1720. {
  1721. return $this->timeZone;
  1722. }
  1723. }
  1724. class Google_Service_Calendar_CalendarList extends Google_Collection
  1725. {
  1726. public $etag;
  1727. protected $itemsType = 'Google_Service_Calendar_CalendarListEntry';
  1728. protected $itemsDataType = 'array';
  1729. public $kind;
  1730. public $nextPageToken;
  1731. public function setEtag($etag)
  1732. {
  1733. $this->etag = $etag;
  1734. }
  1735. public function getEtag()
  1736. {
  1737. return $this->etag;
  1738. }
  1739. public function setItems($items)
  1740. {
  1741. $this->items = $items;
  1742. }
  1743. public function getItems()
  1744. {
  1745. return $this->items;
  1746. }
  1747. public function setKind($kind)
  1748. {
  1749. $this->kind = $kind;
  1750. }
  1751. public function getKind()
  1752. {
  1753. return $this->kind;
  1754. }
  1755. public function setNextPageToken($nextPageToken)
  1756. {
  1757. $this->nextPageToken = $nextPageToken;
  1758. }
  1759. public function getNextPageToken()
  1760. {
  1761. return $this->nextPageToken;
  1762. }
  1763. }
  1764. class Google_Service_Calendar_CalendarListEntry extends Google_Collection
  1765. {
  1766. public $accessRole;
  1767. public $backgroundColor;
  1768. public $colorId;
  1769. protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
  1770. protected $defaultRemindersDataType = 'array';
  1771. public $description;
  1772. public $etag;
  1773. public $foregroundColor;
  1774. public $hidden;
  1775. public $id;
  1776. public $kind;
  1777. public $location;
  1778. public $primary;
  1779. public $selected;
  1780. public $summary;
  1781. public $summaryOverride;
  1782. public $timeZone;
  1783. public function setAccessRole($accessRole)
  1784. {
  1785. $this->accessRole = $accessRole;
  1786. }
  1787. public function getAccessRole()
  1788. {
  1789. return $this->accessRole;
  1790. }
  1791. public function setBackgroundColor($backgroundColor)
  1792. {
  1793. $this->backgroundColor = $backgroundColor;
  1794. }
  1795. public function getBackgroundColor()
  1796. {
  1797. return $this->backgroundColor;
  1798. }
  1799. public function setColorId($colorId)
  1800. {
  1801. $this->colorId = $colorId;
  1802. }
  1803. public function getColorId()
  1804. {
  1805. return $this->colorId;
  1806. }
  1807. public function setDefaultReminders($defaultReminders)
  1808. {
  1809. $this->defaultReminders = $defaultReminders;
  1810. }
  1811. public function getDefaultReminders()
  1812. {
  1813. return $this->defaultReminders;
  1814. }
  1815. public function setDescription($description)
  1816. {
  1817. $this->description = $description;
  1818. }
  1819. public function getDescription()
  1820. {
  1821. return $this->description;
  1822. }
  1823. public function setEtag($etag)
  1824. {
  1825. $this->etag = $etag;
  1826. }
  1827. public function getEtag()
  1828. {
  1829. return $this->etag;
  1830. }
  1831. public function setForegroundColor($foregroundColor)
  1832. {
  1833. $this->foregroundColor = $foregroundColor;
  1834. }
  1835. public function getForegroundColor()
  1836. {
  1837. return $this->foregroundColor;
  1838. }
  1839. public function setHidden($hidden)
  1840. {
  1841. $this->hidden = $hidden;
  1842. }
  1843. public function getHidden()
  1844. {
  1845. return $this->hidden;
  1846. }
  1847. public function setId($id)
  1848. {
  1849. $this->id = $id;
  1850. }
  1851. public function getId()
  1852. {
  1853. return $this->id;
  1854. }
  1855. public function setKind($kind)
  1856. {
  1857. $this->kind = $kind;
  1858. }
  1859. public function getKind()
  1860. {
  1861. return $this->kind;
  1862. }
  1863. public function setLocation($location)
  1864. {
  1865. $this->location = $location;
  1866. }
  1867. public function getLocation()
  1868. {
  1869. return $this->location;
  1870. }
  1871. public function setPrimary($primary)
  1872. {
  1873. $this->primary = $primary;
  1874. }
  1875. public function getPrimary()
  1876. {
  1877. return $this->primary;
  1878. }
  1879. public function setSelected($selected)
  1880. {
  1881. $this->selected = $selected;
  1882. }
  1883. public function getSelected()
  1884. {
  1885. return $this->selected;
  1886. }
  1887. public function setSummary($summary)
  1888. {
  1889. $this->summary = $summary;
  1890. }
  1891. public function getSummary()
  1892. {
  1893. return $this->summary;
  1894. }
  1895. public function setSummaryOverride($summaryOverride)
  1896. {
  1897. $this->summaryOverride = $summaryOverride;
  1898. }
  1899. public function getSummaryOverride()
  1900. {
  1901. return $this->summaryOverride;
  1902. }
  1903. public function setTimeZone($timeZone)
  1904. {
  1905. $this->timeZone = $timeZone;
  1906. }
  1907. public function getTimeZone()
  1908. {
  1909. return $this->timeZone;
  1910. }
  1911. }
  1912. class Google_Service_Calendar_Channel extends Google_Model
  1913. {
  1914. public $address;
  1915. public $expiration;
  1916. public $id;
  1917. public $kind;
  1918. public $params;
  1919. public $payload;
  1920. public $resourceId;
  1921. public $resourceUri;
  1922. public $token;
  1923. public $type;
  1924. public function setAddress($address)
  1925. {
  1926. $this->address = $address;
  1927. }
  1928. public function getAddress()
  1929. {
  1930. return $this->address;
  1931. }
  1932. public function setExpiration($expiration)
  1933. {
  1934. $this->expiration = $expiration;
  1935. }
  1936. public function getExpiration()
  1937. {
  1938. return $this->expiration;
  1939. }
  1940. public function setId($id)
  1941. {
  1942. $this->id = $id;
  1943. }
  1944. public function getId()
  1945. {
  1946. return $this->id;
  1947. }
  1948. public function setKind($kind)
  1949. {
  1950. $this->kind = $kind;
  1951. }
  1952. public function getKind()
  1953. {
  1954. return $this->kind;
  1955. }
  1956. public function setParams($params)
  1957. {
  1958. $this->params = $params;
  1959. }
  1960. public function getParams()
  1961. {
  1962. return $this->params;
  1963. }
  1964. public function setPayload($payload)
  1965. {
  1966. $this->payload = $payload;
  1967. }
  1968. public function getPayload()
  1969. {
  1970. return $this->payload;
  1971. }
  1972. public function setResourceId($resourceId)
  1973. {
  1974. $this->resourceId = $resourceId;
  1975. }
  1976. public function getResourceId()
  1977. {
  1978. return $this->resourceId;
  1979. }
  1980. public function setResourceUri($resourceUri)
  1981. {
  1982. $this->resourceUri = $resourceUri;
  1983. }
  1984. public function getResourceUri()
  1985. {
  1986. return $this->resourceUri;
  1987. }
  1988. public function setToken($token)
  1989. {
  1990. $this->token = $token;
  1991. }
  1992. public function getToken()
  1993. {
  1994. return $this->token;
  1995. }
  1996. public function setType($type)
  1997. {
  1998. $this->type = $type;
  1999. }
  2000. public function getType()
  2001. {
  2002. return $this->type;
  2003. }
  2004. }
  2005. class Google_Service_Calendar_ColorDefinition extends Google_Model
  2006. {
  2007. public $background;
  2008. public $foreground;
  2009. public function setBackground($background)
  2010. {
  2011. $this->background = $background;
  2012. }
  2013. public function getBackground()
  2014. {
  2015. return $this->background;
  2016. }
  2017. public function setForeground($foreground)
  2018. {
  2019. $this->foreground = $foreground;
  2020. }
  2021. public function getForeground()
  2022. {
  2023. return $this->foreground;
  2024. }
  2025. }
  2026. class Google_Service_Calendar_Colors extends Google_Model
  2027. {
  2028. protected $calendarType = 'Google_Service_Calendar_ColorDefinition';
  2029. protected $calendarDataType = 'map';
  2030. protected $eventType = 'Google_Service_Calendar_ColorDefinition';
  2031. protected $eventDataType = 'map';
  2032. public $kind;
  2033. public $updated;
  2034. public function setCalendar($calendar)
  2035. {
  2036. $this->calendar = $calendar;
  2037. }
  2038. public function getCalendar()
  2039. {
  2040. return $this->calendar;
  2041. }
  2042. public function setEvent($event)
  2043. {
  2044. $this->event = $event;
  2045. }
  2046. public function getEvent()
  2047. {
  2048. return $this->event;
  2049. }
  2050. public function setKind($kind)
  2051. {
  2052. $this->kind = $kind;
  2053. }
  2054. public function getKind()
  2055. {
  2056. return $this->kind;
  2057. }
  2058. public function setUpdated($updated)
  2059. {
  2060. $this->updated = $updated;
  2061. }
  2062. public function getUpdated()
  2063. {
  2064. return $this->updated;
  2065. }
  2066. }
  2067. class Google_Service_Calendar_Error extends Google_Model
  2068. {
  2069. public $domain;
  2070. public $reason;
  2071. public function setDomain($domain)
  2072. {
  2073. $this->domain = $domain;
  2074. }
  2075. public function getDomain()
  2076. {
  2077. return $this->domain;
  2078. }
  2079. public function setReason($reason)
  2080. {
  2081. $this->reason = $reason;
  2082. }
  2083. public function getReason()
  2084. {
  2085. return $this->reason;
  2086. }
  2087. }
  2088. class Google_Service_Calendar_Event extends Google_Collection
  2089. {
  2090. public $anyoneCanAddSelf;
  2091. protected $attendeesType = 'Google_Service_Calendar_EventAttendee';
  2092. protected $attendeesDataType = 'array';
  2093. public $attendeesOmitted;
  2094. public $colorId;
  2095. public $created;
  2096. protected $creatorType = 'Google_Service_Calendar_EventCreator';
  2097. protected $creatorDataType = '';
  2098. public $description;
  2099. protected $endType = 'Google_Service_Calendar_EventDateTime';
  2100. protected $endDataType = '';
  2101. public $endTimeUnspecified;
  2102. public $etag;
  2103. protected $extendedPropertiesType = 'Google_Service_Calendar_EventExtendedProperties';
  2104. protected $extendedPropertiesDataType = '';
  2105. protected $gadgetType = 'Google_Service_Calendar_EventGadget';
  2106. protected $gadgetDataType = '';
  2107. public $guestsCanInviteOthers;
  2108. public $guestsCanModify;
  2109. public $guestsCanSeeOtherGuests;
  2110. public $hangoutLink;
  2111. public $htmlLink;
  2112. public $iCalUID;
  2113. public $id;
  2114. public $kind;
  2115. public $location;
  2116. public $locked;
  2117. protected $organizerType = 'Google_Service_Calendar_EventOrganizer';
  2118. protected $organizerDataType = '';
  2119. protected $originalStartTimeType = 'Google_Service_Calendar_EventDateTime';
  2120. protected $originalStartTimeDataType = '';
  2121. public $privateCopy;
  2122. public $recurrence;
  2123. public $recurringEventId;
  2124. protected $remindersType = 'Google_Service_Calendar_EventReminders';
  2125. protected $remindersDataType = '';
  2126. public $sequence;
  2127. protected $sourceType = 'Google_Service_Calendar_EventSource';
  2128. protected $sourceDataType = '';
  2129. protected $startType = 'Google_Service_Calendar_EventDateTime';
  2130. protected $startDataType = '';
  2131. public $status;
  2132. public $summary;
  2133. public $transparency;
  2134. public $updated;
  2135. public $visibility;
  2136. public function setAnyoneCanAddSelf($anyoneCanAddSelf)
  2137. {
  2138. $this->anyoneCanAddSelf = $anyoneCanAddSelf;
  2139. }
  2140. public function getAnyoneCanAddSelf()
  2141. {
  2142. return $this->anyoneCanAddSelf;
  2143. }
  2144. public function setAttendees($attendees)
  2145. {
  2146. $this->attendees = $attendees;
  2147. }
  2148. public function getAttendees()
  2149. {
  2150. return $this->attendees;
  2151. }
  2152. public function setAttendeesOmitted($attendeesOmitted)
  2153. {
  2154. $this->attendeesOmitted = $attendeesOmitted;
  2155. }
  2156. public function getAttendeesOmitted()
  2157. {
  2158. return $this->attendeesOmitted;
  2159. }
  2160. public function setColorId($colorId)
  2161. {
  2162. $this->colorId = $colorId;
  2163. }
  2164. public function getColorId()
  2165. {
  2166. return $this->colorId;
  2167. }
  2168. public function setCreated($created)
  2169. {
  2170. $this->created = $created;
  2171. }
  2172. public function getCreated()
  2173. {
  2174. return $this->created;
  2175. }
  2176. public function setCreator(Google_Service_Calendar_EventCreator $creator)
  2177. {
  2178. $this->creator = $creator;
  2179. }
  2180. public function getCreator()
  2181. {
  2182. return $this->creator;
  2183. }
  2184. public function setDescription($description)
  2185. {
  2186. $this->description = $description;
  2187. }
  2188. public function getDescription()
  2189. {
  2190. return $this->description;
  2191. }
  2192. public function setEnd(Google_Service_Calendar_EventDateTime $end)
  2193. {
  2194. $this->end = $end;
  2195. }
  2196. public function getEnd()
  2197. {
  2198. return $this->end;
  2199. }
  2200. public function setEndTimeUnspecified($endTimeUnspecified)
  2201. {
  2202. $this->endTimeUnspecified = $endTimeUnspecified;
  2203. }
  2204. public function getEndTimeUnspecified()
  2205. {
  2206. return $this->endTimeUnspecified;
  2207. }
  2208. public function setEtag($etag)
  2209. {
  2210. $this->etag = $etag;
  2211. }
  2212. public function getEtag()
  2213. {
  2214. return $this->etag;
  2215. }
  2216. public function setExtendedProperties(Google_Service_Calendar_EventExtendedProperties $extendedProperties)
  2217. {
  2218. $this->extendedProperties = $extendedProperties;
  2219. }
  2220. public function getExtendedProperties()
  2221. {
  2222. return $this->extendedProperties;
  2223. }
  2224. public function setGadget(Google_Service_Calendar_EventGadget $gadget)
  2225. {
  2226. $this->gadget = $gadget;
  2227. }
  2228. public function getGadget()
  2229. {
  2230. return $this->gadget;
  2231. }
  2232. public function setGuestsCanInviteOthers($guestsCanInviteOthers)
  2233. {
  2234. $this->guestsCanInviteOthers = $guestsCanInviteOthers;
  2235. }
  2236. public function getGuestsCanInviteOthers()
  2237. {
  2238. return $this->guestsCanInviteOthers;
  2239. }
  2240. public function setGuestsCanModify($guestsCanModify)
  2241. {
  2242. $this->guestsCanModify = $guestsCanModify;
  2243. }
  2244. public function getGuestsCanModify()
  2245. {
  2246. return $this->guestsCanModify;
  2247. }
  2248. public function setGuestsCanSeeOtherGuests($guestsCanSeeOtherGuests)
  2249. {
  2250. $this->guestsCanSeeOtherGuests = $guestsCanSeeOtherGuests;
  2251. }
  2252. public function getGuestsCanSeeOtherGuests()
  2253. {
  2254. return $this->guestsCanSeeOtherGuests;
  2255. }
  2256. public function setHangoutLink($hangoutLink)
  2257. {
  2258. $this->hangoutLink = $hangoutLink;
  2259. }
  2260. public function getHangoutLink()
  2261. {
  2262. return $this->hangoutLink;
  2263. }
  2264. public function setHtmlLink($htmlLink)
  2265. {
  2266. $this->htmlLink = $htmlLink;
  2267. }
  2268. public function getHtmlLink()
  2269. {
  2270. return $this->htmlLink;
  2271. }
  2272. public function setICalUID($iCalUID)
  2273. {
  2274. $this->iCalUID = $iCalUID;
  2275. }
  2276. public function getICalUID()
  2277. {
  2278. return $this->iCalUID;
  2279. }
  2280. public function setId($id)
  2281. {
  2282. $this->id = $id;
  2283. }
  2284. public function getId()
  2285. {
  2286. return $this->id;
  2287. }
  2288. public function setKind($kind)
  2289. {
  2290. $this->kind = $kind;
  2291. }
  2292. public function getKind()
  2293. {
  2294. return $this->kind;
  2295. }
  2296. public function setLocation($location)
  2297. {
  2298. $this->location = $location;
  2299. }
  2300. public function getLocation()
  2301. {
  2302. return $this->location;
  2303. }
  2304. public function setLocked($locked)
  2305. {
  2306. $this->locked = $locked;
  2307. }
  2308. public function getLocked()
  2309. {
  2310. return $this->locked;
  2311. }
  2312. public function setOrganizer(Google_Service_Calendar_EventOrganizer $organizer)
  2313. {
  2314. $this->organizer = $organizer;
  2315. }
  2316. public function getOrganizer()
  2317. {
  2318. return $this->organizer;
  2319. }
  2320. public function setOriginalStartTime(Google_Service_Calendar_EventDateTime $originalStartTime)
  2321. {
  2322. $this->originalStartTime = $originalStartTime;
  2323. }
  2324. public function getOriginalStartTime()
  2325. {
  2326. return $this->originalStartTime;
  2327. }
  2328. public function setPrivateCopy($privateCopy)
  2329. {
  2330. $this->privateCopy = $privateCopy;
  2331. }
  2332. public function getPrivateCopy()
  2333. {
  2334. return $this->privateCopy;
  2335. }
  2336. public function setRecurrence($recurrence)
  2337. {
  2338. $this->recurrence = $recurrence;
  2339. }
  2340. public function getRecurrence()
  2341. {
  2342. return $this->recurrence;
  2343. }
  2344. public function setRecurringEventId($recurringEventId)
  2345. {
  2346. $this->recurringEventId = $recurringEventId;
  2347. }
  2348. public function getRecurringEventId()
  2349. {
  2350. return $this->recurringEventId;
  2351. }
  2352. public function setReminders(Google_Service_Calendar_EventReminders $reminders)
  2353. {
  2354. $this->reminders = $reminders;
  2355. }
  2356. public function getReminders()
  2357. {
  2358. return $this->reminders;
  2359. }
  2360. public function setSequence($sequence)
  2361. {
  2362. $this->sequence = $sequence;
  2363. }
  2364. public function getSequence()
  2365. {
  2366. return $this->sequence;
  2367. }
  2368. public function setSource(Google_Service_Calendar_EventSource $source)
  2369. {
  2370. $this->source = $source;
  2371. }
  2372. public function getSource()
  2373. {
  2374. return $this->source;
  2375. }
  2376. public function setStart(Google_Service_Calendar_EventDateTime $start)
  2377. {
  2378. $this->start = $start;
  2379. }
  2380. public function getStart()
  2381. {
  2382. return $this->start;
  2383. }
  2384. public function setStatus($status)
  2385. {
  2386. $this->status = $status;
  2387. }
  2388. public function getStatus()
  2389. {
  2390. return $this->status;
  2391. }
  2392. public function setSummary($summary)
  2393. {
  2394. $this->summary = $summary;
  2395. }
  2396. public function getSummary()
  2397. {
  2398. return $this->summary;
  2399. }
  2400. public function setTransparency($transparency)
  2401. {
  2402. $this->transparency = $transparency;
  2403. }
  2404. public function getTransparency()
  2405. {
  2406. return $this->transparency;
  2407. }
  2408. public function setUpdated($updated)
  2409. {
  2410. $this->updated = $updated;
  2411. }
  2412. public function getUpdated()
  2413. {
  2414. return $this->updated;
  2415. }
  2416. public function setVisibility($visibility)
  2417. {
  2418. $this->visibility = $visibility;
  2419. }
  2420. public function getVisibility()
  2421. {
  2422. return $this->visibility;
  2423. }
  2424. }
  2425. class Google_Service_Calendar_EventAttendee extends Google_Model
  2426. {
  2427. public $additionalGuests;
  2428. public $comment;
  2429. public $displayName;
  2430. public $email;
  2431. public $id;
  2432. public $optional;
  2433. public $organizer;
  2434. public $resource;
  2435. public $responseStatus;
  2436. public $self;
  2437. public function setAdditionalGuests($additionalGuests)
  2438. {
  2439. $this->additionalGuests = $additionalGuests;
  2440. }
  2441. public function getAdditionalGuests()
  2442. {
  2443. return $this->additionalGuests;
  2444. }
  2445. public function setComment($comment)
  2446. {
  2447. $this->comment = $comment;
  2448. }
  2449. public function getComment()
  2450. {
  2451. return $this->comment;
  2452. }
  2453. public function setDisplayName($displayName)
  2454. {
  2455. $this->displayName = $displayName;
  2456. }
  2457. public function getDisplayName()
  2458. {
  2459. return $this->displayName;
  2460. }
  2461. public function setEmail($email)
  2462. {
  2463. $this->email = $email;
  2464. }
  2465. public function getEmail()
  2466. {
  2467. return $this->email;
  2468. }
  2469. public function setId($id)
  2470. {
  2471. $this->id = $id;
  2472. }
  2473. public function getId()
  2474. {
  2475. return $this->id;
  2476. }
  2477. public function setOptional($optional)
  2478. {
  2479. $this->optional = $optional;
  2480. }
  2481. public function getOptional()
  2482. {
  2483. return $this->optional;
  2484. }
  2485. public function setOrganizer($organizer)
  2486. {
  2487. $this->organizer = $organizer;
  2488. }
  2489. public function getOrganizer()
  2490. {
  2491. return $this->organizer;
  2492. }
  2493. public function setResource($resource)
  2494. {
  2495. $this->resource = $resource;
  2496. }
  2497. public function getResource()
  2498. {
  2499. return $this->resource;
  2500. }
  2501. public function setResponseStatus($responseStatus)
  2502. {
  2503. $this->responseStatus = $responseStatus;
  2504. }
  2505. public function getResponseStatus()
  2506. {
  2507. return $this->responseStatus;
  2508. }
  2509. public function setSelf($self)
  2510. {
  2511. $this->self = $self;
  2512. }
  2513. public function getSelf()
  2514. {
  2515. return $this->self;
  2516. }
  2517. }
  2518. class Google_Service_Calendar_EventCreator extends Google_Model
  2519. {
  2520. public $displayName;
  2521. public $email;
  2522. public $id;
  2523. public $self;
  2524. public function setDisplayName($displayName)
  2525. {
  2526. $this->displayName = $displayName;
  2527. }
  2528. public function getDisplayName()
  2529. {
  2530. return $this->displayName;
  2531. }
  2532. public function setEmail($email)
  2533. {
  2534. $this->email = $email;
  2535. }
  2536. public function getEmail()
  2537. {
  2538. return $this->email;
  2539. }
  2540. public function setId($id)
  2541. {
  2542. $this->id = $id;
  2543. }
  2544. public function getId()
  2545. {
  2546. return $this->id;
  2547. }
  2548. public function setSelf($self)
  2549. {
  2550. $this->self = $self;
  2551. }
  2552. public function getSelf()
  2553. {
  2554. return $this->self;
  2555. }
  2556. }
  2557. class Google_Service_Calendar_EventDateTime extends Google_Model
  2558. {
  2559. public $date;
  2560. public $dateTime;
  2561. public $timeZone;
  2562. public function setDate($date)
  2563. {
  2564. $this->date = $date;
  2565. }
  2566. public function getDate()
  2567. {
  2568. return $this->date;
  2569. }
  2570. public function setDateTime($dateTime)
  2571. {
  2572. $this->dateTime = $dateTime;
  2573. }
  2574. public function getDateTime()
  2575. {
  2576. return $this->dateTime;
  2577. }
  2578. public function setTimeZone($timeZone)
  2579. {
  2580. $this->timeZone = $timeZone;
  2581. }
  2582. public function getTimeZone()
  2583. {
  2584. return $this->timeZone;
  2585. }
  2586. }
  2587. class Google_Service_Calendar_EventExtendedProperties extends Google_Model
  2588. {
  2589. public $private;
  2590. public $shared;
  2591. public function setPrivate($private)
  2592. {
  2593. $this->private = $private;
  2594. }
  2595. public function getPrivate()
  2596. {
  2597. return $this->private;
  2598. }
  2599. public function setShared($shared)
  2600. {
  2601. $this->shared = $shared;
  2602. }
  2603. public function getShared()
  2604. {
  2605. return $this->shared;
  2606. }
  2607. }
  2608. class Google_Service_Calendar_EventGadget extends Google_Model
  2609. {
  2610. public $display;
  2611. public $height;
  2612. public $iconLink;
  2613. public $link;
  2614. public $preferences;
  2615. public $title;
  2616. public $type;
  2617. public $width;
  2618. public function setDisplay($display)
  2619. {
  2620. $this->display = $display;
  2621. }
  2622. public function getDisplay()
  2623. {
  2624. return $this->display;
  2625. }
  2626. public function setHeight($height)
  2627. {
  2628. $this->height = $height;
  2629. }
  2630. public function getHeight()
  2631. {
  2632. return $this->height;
  2633. }
  2634. public function setIconLink($iconLink)
  2635. {
  2636. $this->iconLink = $iconLink;
  2637. }
  2638. public function getIconLink()
  2639. {
  2640. return $this->iconLink;
  2641. }
  2642. public function setLink($link)
  2643. {
  2644. $this->link = $link;
  2645. }
  2646. public function getLink()
  2647. {
  2648. return $this->link;
  2649. }
  2650. public function setPreferences($preferences)
  2651. {
  2652. $this->preferences = $preferences;
  2653. }
  2654. public function getPreferences()
  2655. {
  2656. return $this->preferences;
  2657. }
  2658. public function setTitle($title)
  2659. {
  2660. $this->title = $title;
  2661. }
  2662. public function getTitle()
  2663. {
  2664. return $this->title;
  2665. }
  2666. public function setType($type)
  2667. {
  2668. $this->type = $type;
  2669. }
  2670. public function getType()
  2671. {
  2672. return $this->type;
  2673. }
  2674. public function setWidth($width)
  2675. {
  2676. $this->width = $width;
  2677. }
  2678. public function getWidth()
  2679. {
  2680. return $this->width;
  2681. }
  2682. }
  2683. class Google_Service_Calendar_EventOrganizer extends Google_Model
  2684. {
  2685. public $displayName;
  2686. public $email;
  2687. public $id;
  2688. public $self;
  2689. public function setDisplayName($displayName)
  2690. {
  2691. $this->displayName = $displayName;
  2692. }
  2693. public function getDisplayName()
  2694. {
  2695. return $this->displayName;
  2696. }
  2697. public function setEmail($email)
  2698. {
  2699. $this->email = $email;
  2700. }
  2701. public function getEmail()
  2702. {
  2703. return $this->email;
  2704. }
  2705. public function setId($id)
  2706. {
  2707. $this->id = $id;
  2708. }
  2709. public function getId()
  2710. {
  2711. return $this->id;
  2712. }
  2713. public function setSelf($self)
  2714. {
  2715. $this->self = $self;
  2716. }
  2717. public function getSelf()
  2718. {
  2719. return $this->self;
  2720. }
  2721. }
  2722. class Google_Service_Calendar_EventReminder extends Google_Model
  2723. {
  2724. public $method;
  2725. public $minutes;
  2726. public function setMethod($method)
  2727. {
  2728. $this->method = $method;
  2729. }
  2730. public function getMethod()
  2731. {
  2732. return $this->method;
  2733. }
  2734. public function setMinutes($minutes)
  2735. {
  2736. $this->minutes = $minutes;
  2737. }
  2738. public function getMinutes()
  2739. {
  2740. return $this->minutes;
  2741. }
  2742. }
  2743. class Google_Service_Calendar_EventReminders extends Google_Collection
  2744. {
  2745. protected $overridesType = 'Google_Service_Calendar_EventReminder';
  2746. protected $overridesDataType = 'array';
  2747. public $useDefault;
  2748. public function setOverrides($overrides)
  2749. {
  2750. $this->overrides = $overrides;
  2751. }
  2752. public function getOverrides()
  2753. {
  2754. return $this->overrides;
  2755. }
  2756. public function setUseDefault($useDefault)
  2757. {
  2758. $this->useDefault = $useDefault;
  2759. }
  2760. public function getUseDefault()
  2761. {
  2762. return $this->useDefault;
  2763. }
  2764. }
  2765. class Google_Service_Calendar_EventSource extends Google_Model
  2766. {
  2767. public $title;
  2768. public $url;
  2769. public function setTitle($title)
  2770. {
  2771. $this->title = $title;
  2772. }
  2773. public function getTitle()
  2774. {
  2775. return $this->title;
  2776. }
  2777. public function setUrl($url)
  2778. {
  2779. $this->url = $url;
  2780. }
  2781. public function getUrl()
  2782. {
  2783. return $this->url;
  2784. }
  2785. }
  2786. class Google_Service_Calendar_Events extends Google_Collection
  2787. {
  2788. public $accessRole;
  2789. protected $defaultRemindersType = 'Google_Service_Calendar_EventReminder';
  2790. protected $defaultRemindersDataType = 'array';
  2791. public $description;
  2792. public $etag;
  2793. protected $itemsType = 'Google_Service_Calendar_Event';
  2794. protected $itemsDataType = 'array';
  2795. public $kind;
  2796. public $nextPageToken;
  2797. public $summary;
  2798. public $timeZone;
  2799. public $updated;
  2800. public function setAccessRole($accessRole)
  2801. {
  2802. $this->accessRole = $accessRole;
  2803. }
  2804. public function getAccessRole()
  2805. {
  2806. return $this->accessRole;
  2807. }
  2808. public function setDefaultReminders($defaultReminders)
  2809. {
  2810. $this->defaultReminders = $defaultReminders;
  2811. }
  2812. public function getDefaultReminders()
  2813. {
  2814. return $this->defaultReminders;
  2815. }
  2816. public function setDescription($description)
  2817. {
  2818. $this->description = $description;
  2819. }
  2820. public function getDescription()
  2821. {
  2822. return $this->description;
  2823. }
  2824. public function setEtag($etag)
  2825. {
  2826. $this->etag = $etag;
  2827. }
  2828. public function getEtag()
  2829. {
  2830. return $this->etag;
  2831. }
  2832. public function setItems($items)
  2833. {
  2834. $this->items = $items;
  2835. }
  2836. public function getItems()
  2837. {
  2838. return $this->items;
  2839. }
  2840. public function setKind($kind)
  2841. {
  2842. $this->kind = $kind;
  2843. }
  2844. public function getKind()
  2845. {
  2846. return $this->kind;
  2847. }
  2848. public function setNextPageToken($nextPageToken)
  2849. {
  2850. $this->nextPageToken = $nextPageToken;
  2851. }
  2852. public function getNextPageToken()
  2853. {
  2854. return $this->nextPageToken;
  2855. }
  2856. public function setSummary($summary)
  2857. {
  2858. $this->summary = $summary;
  2859. }
  2860. public function getSummary()
  2861. {
  2862. return $this->summary;
  2863. }
  2864. public function setTimeZone($timeZone)
  2865. {
  2866. $this->timeZone = $timeZone;
  2867. }
  2868. public function getTimeZone()
  2869. {
  2870. return $this->timeZone;
  2871. }
  2872. public function setUpdated($updated)
  2873. {
  2874. $this->updated = $updated;
  2875. }
  2876. public function getUpdated()
  2877. {
  2878. return $this->updated;
  2879. }
  2880. }
  2881. class Google_Service_Calendar_FreeBusyCalendar extends Google_Collection
  2882. {
  2883. protected $busyType = 'Google_Service_Calendar_TimePeriod';
  2884. protected $busyDataType = 'array';
  2885. protected $errorsType = 'Google_Service_Calendar_Error';
  2886. protected $errorsDataType = 'array';
  2887. public function setBusy($busy)
  2888. {
  2889. $this->busy = $busy;
  2890. }
  2891. public function getBusy()
  2892. {
  2893. return $this->busy;
  2894. }
  2895. public function setErrors($errors)
  2896. {
  2897. $this->errors = $errors;
  2898. }
  2899. public function getErrors()
  2900. {
  2901. return $this->errors;
  2902. }
  2903. }
  2904. class Google_Service_Calendar_FreeBusyGroup extends Google_Collection
  2905. {
  2906. public $calendars;
  2907. protected $errorsType = 'Google_Service_Calendar_Error';
  2908. protected $errorsDataType = 'array';
  2909. public function setCalendars($calendars)
  2910. {
  2911. $this->calendars = $calendars;
  2912. }
  2913. public function getCalendars()
  2914. {
  2915. return $this->calendars;
  2916. }
  2917. public function setErrors($errors)
  2918. {
  2919. $this->errors = $errors;
  2920. }
  2921. public function getErrors()
  2922. {
  2923. return $this->errors;
  2924. }
  2925. }
  2926. class Google_Service_Calendar_FreeBusyRequest extends Google_Collection
  2927. {
  2928. public $calendarExpansionMax;
  2929. public $groupExpansionMax;
  2930. protected $itemsType = 'Google_Service_Calendar_FreeBusyRequestItem';
  2931. protected $itemsDataType = 'array';
  2932. public $timeMax;
  2933. public $timeMin;
  2934. public $timeZone;
  2935. public function setCalendarExpansionMax($calendarExpansionMax)
  2936. {
  2937. $this->calendarExpansionMax = $calendarExpansionMax;
  2938. }
  2939. public function getCalendarExpansionMax()
  2940. {
  2941. return $this->calendarExpansionMax;
  2942. }
  2943. public function setGroupExpansionMax($groupExpansionMax)
  2944. {
  2945. $this->groupExpansionMax = $groupExpansionMax;
  2946. }
  2947. public function getGroupExpansionMax()
  2948. {
  2949. return $this->groupExpansionMax;
  2950. }
  2951. public function setItems($items)
  2952. {
  2953. $this->items = $items;
  2954. }
  2955. public function getItems()
  2956. {
  2957. return $this->items;
  2958. }
  2959. public function setTimeMax($timeMax)
  2960. {
  2961. $this->timeMax = $timeMax;
  2962. }
  2963. public function getTimeMax()
  2964. {
  2965. return $this->timeMax;
  2966. }
  2967. public function setTimeMin($timeMin)
  2968. {
  2969. $this->timeMin = $timeMin;
  2970. }
  2971. public function getTimeMin()
  2972. {
  2973. return $this->timeMin;
  2974. }
  2975. public function setTimeZone($timeZone)
  2976. {
  2977. $this->timeZone = $timeZone;
  2978. }
  2979. public function getTimeZone()
  2980. {
  2981. return $this->timeZone;
  2982. }
  2983. }
  2984. class Google_Service_Calendar_FreeBusyRequestItem extends Google_Model
  2985. {
  2986. public $id;
  2987. public function setId($id)
  2988. {
  2989. $this->id = $id;
  2990. }
  2991. public function getId()
  2992. {
  2993. return $this->id;
  2994. }
  2995. }
  2996. class Google_Service_Calendar_FreeBusyResponse extends Google_Model
  2997. {
  2998. protected $calendarsType = 'Google_Service_Calendar_FreeBusyCalendar';
  2999. protected $calendarsDataType = 'map';
  3000. protected $groupsType = 'Google_Service_Calendar_FreeBusyGroup';
  3001. protected $groupsDataType = 'map';
  3002. public $kind;
  3003. public $timeMax;
  3004. public $timeMin;
  3005. public function setCalendars($calendars)
  3006. {
  3007. $this->calendars = $calendars;
  3008. }
  3009. public function getCalendars()
  3010. {
  3011. return $this->calendars;
  3012. }
  3013. public function setGroups($groups)
  3014. {
  3015. $this->groups = $groups;
  3016. }
  3017. public function getGroups()
  3018. {
  3019. return $this->groups;
  3020. }
  3021. public function setKind($kind)
  3022. {
  3023. $this->kind = $kind;
  3024. }
  3025. public function getKind()
  3026. {
  3027. return $this->kind;
  3028. }
  3029. public function setTimeMax($timeMax)
  3030. {
  3031. $this->timeMax = $timeMax;
  3032. }
  3033. public function getTimeMax()
  3034. {
  3035. return $this->timeMax;
  3036. }
  3037. public function setTimeMin($timeMin)
  3038. {
  3039. $this->timeMin = $timeMin;
  3040. }
  3041. public function getTimeMin()
  3042. {
  3043. return $this->timeMin;
  3044. }
  3045. }
  3046. class Google_Service_Calendar_Setting extends Google_Model
  3047. {
  3048. public $etag;
  3049. public $id;
  3050. public $kind;
  3051. public $value;
  3052. public function setEtag($etag)
  3053. {
  3054. $this->etag = $etag;
  3055. }
  3056. public function getEtag()
  3057. {
  3058. return $this->etag;
  3059. }
  3060. public function setId($id)
  3061. {
  3062. $this->id = $id;
  3063. }
  3064. public function getId()
  3065. {
  3066. return $this->id;
  3067. }
  3068. public function setKind($kind)
  3069. {
  3070. $this->kind = $kind;
  3071. }
  3072. public function getKind()
  3073. {
  3074. return $this->kind;
  3075. }
  3076. public function setValue($value)
  3077. {
  3078. $this->value = $value;
  3079. }
  3080. public function getValue()
  3081. {
  3082. return $this->value;
  3083. }
  3084. }
  3085. class Google_Service_Calendar_Settings extends Google_Collection
  3086. {
  3087. public $etag;
  3088. protected $itemsType = 'Google_Service_Calendar_Setting';
  3089. protected $itemsDataType = 'array';
  3090. public $kind;
  3091. public function setEtag($etag)
  3092. {
  3093. $this->etag = $etag;
  3094. }
  3095. public function getEtag()
  3096. {
  3097. return $this->etag;
  3098. }
  3099. public function setItems($items)
  3100. {
  3101. $this->items = $items;
  3102. }
  3103. public function getItems()
  3104. {
  3105. return $this->items;
  3106. }
  3107. public function setKind($kind)
  3108. {
  3109. $this->kind = $kind;
  3110. }
  3111. public function getKind()
  3112. {
  3113. return $this->kind;
  3114. }
  3115. }
  3116. class Google_Service_Calendar_TimePeriod extends Google_Model
  3117. {
  3118. public $end;
  3119. public $start;
  3120. public function setEnd($end)
  3121. {
  3122. $this->end = $end;
  3123. }
  3124. public function getEnd()
  3125. {
  3126. return $this->end;
  3127. }
  3128. public function setStart($start)
  3129. {
  3130. $this->start = $start;
  3131. }
  3132. public function getStart()
  3133. {
  3134. return $this->start;
  3135. }
  3136. }