| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- namespace Google\Service;
- use Google\Client;
- /**
- * Service definition for Calendar (v3).
- *
- * <p>
- * Manipulates events and other calendar data.</p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/workspace/calendar/firstapp" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Calendar extends \Google\Service
- {
- /** See, edit, share, and permanently delete all the calendars you can access using Google Calendar. */
- const CALENDAR =
- "https://www.googleapis.com/auth/calendar";
- /** See and change the sharing permissions of Google calendars you own. */
- const CALENDAR_ACLS =
- "https://www.googleapis.com/auth/calendar.acls";
- /** See the sharing permissions of Google calendars you own. */
- const CALENDAR_ACLS_READONLY =
- "https://www.googleapis.com/auth/calendar.acls.readonly";
- /** Make secondary Google calendars, and see, create, change, and delete events on them. */
- const CALENDAR_APP_CREATED =
- "https://www.googleapis.com/auth/calendar.app.created";
- /** See, add, and remove Google calendars you’re subscribed to. */
- const CALENDAR_CALENDARLIST =
- "https://www.googleapis.com/auth/calendar.calendarlist";
- /** See the list of Google calendars you’re subscribed to. */
- const CALENDAR_CALENDARLIST_READONLY =
- "https://www.googleapis.com/auth/calendar.calendarlist.readonly";
- /** See and change the properties of Google calendars you have access to, and create secondary calendars. */
- const CALENDAR_CALENDARS =
- "https://www.googleapis.com/auth/calendar.calendars";
- /** See the title, description, default time zone, and other properties of Google calendars you have access to. */
- const CALENDAR_CALENDARS_READONLY =
- "https://www.googleapis.com/auth/calendar.calendars.readonly";
- /** View and edit events on all your calendars. */
- const CALENDAR_EVENTS =
- "https://www.googleapis.com/auth/calendar.events";
- /** See the availability on Google calendars you have access to. */
- const CALENDAR_EVENTS_FREEBUSY =
- "https://www.googleapis.com/auth/calendar.events.freebusy";
- /** See, create, change, and delete events on Google calendars you own. */
- const CALENDAR_EVENTS_OWNED =
- "https://www.googleapis.com/auth/calendar.events.owned";
- /** See the events on Google calendars you own. */
- const CALENDAR_EVENTS_OWNED_READONLY =
- "https://www.googleapis.com/auth/calendar.events.owned.readonly";
- /** See the events on public calendars. */
- const CALENDAR_EVENTS_PUBLIC_READONLY =
- "https://www.googleapis.com/auth/calendar.events.public.readonly";
- /** View events on all your calendars. */
- const CALENDAR_EVENTS_READONLY =
- "https://www.googleapis.com/auth/calendar.events.readonly";
- /** View your availability in your calendars. */
- const CALENDAR_FREEBUSY =
- "https://www.googleapis.com/auth/calendar.freebusy";
- /** See and download any calendar you can access using your Google Calendar. */
- const CALENDAR_READONLY =
- "https://www.googleapis.com/auth/calendar.readonly";
- /** View your Calendar settings. */
- const CALENDAR_SETTINGS_READONLY =
- "https://www.googleapis.com/auth/calendar.settings.readonly";
- public $acl;
- public $calendarList;
- public $calendars;
- public $channels;
- public $colors;
- public $events;
- public $freebusy;
- public $settings;
- public $rootUrlTemplate;
- /**
- * Constructs the internal representation of the Calendar service.
- *
- * @param Client|array $clientOrConfig The client used to deliver requests, or a
- * config array to pass to a new Client instance.
- * @param string $rootUrl The root URL used for requests to the service.
- */
- public function __construct($clientOrConfig = [], $rootUrl = null)
- {
- parent::__construct($clientOrConfig);
- $this->rootUrl = $rootUrl ?: 'https://www.googleapis.com/';
- $this->rootUrlTemplate = $rootUrl ?: 'https://www.UNIVERSE_DOMAIN/';
- $this->servicePath = 'calendar/v3/';
- $this->batchPath = 'batch/calendar/v3';
- $this->version = 'v3';
- $this->serviceName = 'calendar';
- $this->acl = new Calendar\Resource\Acl(
- $this,
- $this->serviceName,
- 'acl',
- [
- 'methods' => [
- 'delete' => [
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'ruleId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'get' => [
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'ruleId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'insert' => [
- 'path' => 'calendars/{calendarId}/acl',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'list' => [
- 'path' => 'calendars/{calendarId}/acl',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'showDeleted' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'patch' => [
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'ruleId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'update' => [
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'PUT',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'ruleId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'watch' => [
- 'path' => 'calendars/{calendarId}/acl/watch',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'showDeleted' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],
- ]
- ]
- );
- $this->calendarList = new Calendar\Resource\CalendarList(
- $this,
- $this->serviceName,
- 'calendarList',
- [
- 'methods' => [
- 'delete' => [
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'get' => [
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'insert' => [
- 'path' => 'users/me/calendarList',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'colorRgbFormat' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'list' => [
- 'path' => 'users/me/calendarList',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'minAccessRole' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'showDeleted' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'showHidden' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'patch' => [
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'colorRgbFormat' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'update' => [
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'PUT',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'colorRgbFormat' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'watch' => [
- 'path' => 'users/me/calendarList/watch',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'minAccessRole' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'showDeleted' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'showHidden' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],
- ]
- ]
- );
- $this->calendars = new Calendar\Resource\Calendars(
- $this,
- $this->serviceName,
- 'calendars',
- [
- 'methods' => [
- 'clear' => [
- 'path' => 'calendars/{calendarId}/clear',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'delete' => [
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'get' => [
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'insert' => [
- 'path' => 'calendars',
- 'httpMethod' => 'POST',
- 'parameters' => [],
- ],'patch' => [
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'update' => [
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'PUT',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],
- ]
- ]
- );
- $this->channels = new Calendar\Resource\Channels(
- $this,
- $this->serviceName,
- 'channels',
- [
- 'methods' => [
- 'stop' => [
- 'path' => 'channels/stop',
- 'httpMethod' => 'POST',
- 'parameters' => [],
- ],
- ]
- ]
- );
- $this->colors = new Calendar\Resource\Colors(
- $this,
- $this->serviceName,
- 'colors',
- [
- 'methods' => [
- 'get' => [
- 'path' => 'colors',
- 'httpMethod' => 'GET',
- 'parameters' => [],
- ],
- ]
- ]
- );
- $this->events = new Calendar\Resource\Events(
- $this,
- $this->serviceName,
- 'events',
- [
- 'methods' => [
- 'delete' => [
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'eventId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'sendUpdates' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'get' => [
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'eventId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'alwaysIncludeEmail' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'maxAttendees' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'timeZone' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'import' => [
- 'path' => 'calendars/{calendarId}/events/import',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'conferenceDataVersion' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'supportsAttachments' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'insert' => [
- 'path' => 'calendars/{calendarId}/events',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'conferenceDataVersion' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'maxAttendees' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'sendUpdates' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'supportsAttachments' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'instances' => [
- 'path' => 'calendars/{calendarId}/events/{eventId}/instances',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'eventId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'alwaysIncludeEmail' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'maxAttendees' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'originalStart' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'showDeleted' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'timeMax' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeMin' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeZone' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'list' => [
- 'path' => 'calendars/{calendarId}/events',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'alwaysIncludeEmail' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'eventTypes' => [
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ],
- 'iCalUID' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'maxAttendees' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'orderBy' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'privateExtendedProperty' => [
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ],
- 'q' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'sharedExtendedProperty' => [
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ],
- 'showDeleted' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'showHiddenInvitations' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'singleEvents' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeMax' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeMin' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeZone' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'updatedMin' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'move' => [
- 'path' => 'calendars/{calendarId}/events/{eventId}/move',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'eventId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'destination' => [
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'sendUpdates' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'patch' => [
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'eventId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'alwaysIncludeEmail' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'conferenceDataVersion' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'maxAttendees' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'sendUpdates' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'supportsAttachments' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'quickAdd' => [
- 'path' => 'calendars/{calendarId}/events/quickAdd',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'text' => [
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'sendUpdates' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'update' => [
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'PUT',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'eventId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'alwaysIncludeEmail' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'conferenceDataVersion' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'maxAttendees' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'sendNotifications' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'sendUpdates' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'supportsAttachments' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- ],
- ],'watch' => [
- 'path' => 'calendars/{calendarId}/events/watch',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'calendarId' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- 'alwaysIncludeEmail' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'eventTypes' => [
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ],
- 'iCalUID' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'maxAttendees' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'orderBy' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'privateExtendedProperty' => [
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ],
- 'q' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'sharedExtendedProperty' => [
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ],
- 'showDeleted' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'showHiddenInvitations' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'singleEvents' => [
- 'location' => 'query',
- 'type' => 'boolean',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeMax' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeMin' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'timeZone' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'updatedMin' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],
- ]
- ]
- );
- $this->freebusy = new Calendar\Resource\Freebusy(
- $this,
- $this->serviceName,
- 'freebusy',
- [
- 'methods' => [
- 'query' => [
- 'path' => 'freeBusy',
- 'httpMethod' => 'POST',
- 'parameters' => [],
- ],
- ]
- ]
- );
- $this->settings = new Calendar\Resource\Settings(
- $this,
- $this->serviceName,
- 'settings',
- [
- 'methods' => [
- 'get' => [
- 'path' => 'users/me/settings/{setting}',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'setting' => [
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ],
- ],
- ],'list' => [
- 'path' => 'users/me/settings',
- 'httpMethod' => 'GET',
- 'parameters' => [
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],'watch' => [
- 'path' => 'users/me/settings/watch',
- 'httpMethod' => 'POST',
- 'parameters' => [
- 'maxResults' => [
- 'location' => 'query',
- 'type' => 'integer',
- ],
- 'pageToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- 'syncToken' => [
- 'location' => 'query',
- 'type' => 'string',
- ],
- ],
- ],
- ]
- ]
- );
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(Calendar::class, 'Google_Service_Calendar');
|