PageRenderTime 58ms CodeModel.GetById 23ms 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

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

  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Calendar (v3).
  19. *
  20. * <p>
  21. * Lets you manipulate events and other calendar data.</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 identifie…

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