PageRenderTime 60ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 1ms

/lib/google/src/Google/Service/Calendar.php

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