/src/Google/Service/Calendar.php
PHP | 3518 lines | 2530 code | 382 blank | 606 comment | 0 complexity | a4591ca9eb87f393a404aa6bc50f25a4 MD5 | raw file
Large files files are truncated, but you can click here to view the full file
- <?php
- /*
- * Copyright 2010 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.
- */
- /**
- * Service definition for Calendar (v3).
- *
- * <p>
- * Lets you manipulate events and other calendar data.
- * </p>
- *
- * <p>
- * For more information about this service, see the API
- * <a href="https://developers.google.com/google-apps/calendar/firstapp" target="_blank">Documentation</a>
- * </p>
- *
- * @author Google, Inc.
- */
- class Google_Service_Calendar extends Google_Service
- {
- /** Manage your calendars. */
- const CALENDAR = "https://www.googleapis.com/auth/calendar";
- /** View your calendars. */
- const CALENDAR_READONLY = "https://www.googleapis.com/auth/calendar.readonly";
- public $acl;
- public $calendarList;
- public $calendars;
- public $channels;
- public $colors;
- public $events;
- public $freebusy;
- public $settings;
-
- /**
- * Constructs the internal representation of the Calendar service.
- *
- * @param Google_Client $client
- */
- public function __construct(Google_Client $client)
- {
- parent::__construct($client);
- $this->servicePath = 'calendar/v3/';
- $this->version = 'v3';
- $this->serviceName = 'calendar';
- $this->acl = new Google_Service_Calendar_Acl_Resource(
- $this,
- $this->serviceName,
- 'acl',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ruleId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ruleId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'calendars/{calendarId}/acl',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'calendars/{calendarId}/acl',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'patch' => array(
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ruleId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'calendars/{calendarId}/acl/{ruleId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'ruleId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->calendarList = new Google_Service_Calendar_CalendarList_Resource(
- $this,
- $this->serviceName,
- 'calendarList',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'users/me/calendarList',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'colorRgbFormat' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'list' => array(
- 'path' => 'users/me/calendarList',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'showHidden' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'minAccessRole' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- ),
- ),'patch' => array(
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'colorRgbFormat' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => 'users/me/calendarList/{calendarId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'colorRgbFormat' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),
- )
- )
- );
- $this->calendars = new Google_Service_Calendar_Calendars_Resource(
- $this,
- $this->serviceName,
- 'calendars',
- array(
- 'methods' => array(
- 'clear' => array(
- 'path' => 'calendars/{calendarId}/clear',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'delete' => array(
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'get' => array(
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'calendars',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),'patch' => array(
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'update' => array(
- 'path' => 'calendars/{calendarId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),
- )
- )
- );
- $this->channels = new Google_Service_Calendar_Channels_Resource(
- $this,
- $this->serviceName,
- 'channels',
- array(
- 'methods' => array(
- 'stop' => array(
- 'path' => 'channels/stop',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),
- )
- )
- );
- $this->colors = new Google_Service_Calendar_Colors_Resource(
- $this,
- $this->serviceName,
- 'colors',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'colors',
- 'httpMethod' => 'GET',
- 'parameters' => array(),
- ),
- )
- )
- );
- $this->events = new Google_Service_Calendar_Events_Resource(
- $this,
- $this->serviceName,
- 'events',
- array(
- 'methods' => array(
- 'delete' => array(
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'DELETE',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'eventId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'sendNotifications' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'get' => array(
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'eventId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'timeZone' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'alwaysIncludeEmail' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxAttendees' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'import' => array(
- 'path' => 'calendars/{calendarId}/events/import',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'insert' => array(
- 'path' => 'calendars/{calendarId}/events',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'sendNotifications' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxAttendees' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'instances' => array(
- 'path' => 'calendars/{calendarId}/events/{eventId}/instances',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'eventId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'showDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'timeMax' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'alwaysIncludeEmail' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timeMin' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timeZone' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'originalStart' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'maxAttendees' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'list' => array(
- 'path' => 'calendars/{calendarId}/events',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'showHiddenInvitations' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'showDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'iCalUID' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'updatedMin' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'singleEvents' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'timeMax' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'alwaysIncludeEmail' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'q' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timeMin' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timeZone' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'privateExtendedProperty' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- 'sharedExtendedProperty' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- 'maxAttendees' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'move' => array(
- 'path' => 'calendars/{calendarId}/events/{eventId}/move',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'eventId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'destination' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'sendNotifications' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'patch' => array(
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'PATCH',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'eventId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'sendNotifications' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'alwaysIncludeEmail' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxAttendees' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'quickAdd' => array(
- 'path' => 'calendars/{calendarId}/events/quickAdd',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'text' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'required' => true,
- ),
- 'sendNotifications' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- ),
- ),'update' => array(
- 'path' => 'calendars/{calendarId}/events/{eventId}',
- 'httpMethod' => 'PUT',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'eventId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'sendNotifications' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'alwaysIncludeEmail' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxAttendees' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),'watch' => array(
- 'path' => 'calendars/{calendarId}/events/watch',
- 'httpMethod' => 'POST',
- 'parameters' => array(
- 'calendarId' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- 'orderBy' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'showHiddenInvitations' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'showDeleted' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'iCalUID' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'updatedMin' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'singleEvents' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'timeMax' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'alwaysIncludeEmail' => array(
- 'location' => 'query',
- 'type' => 'boolean',
- ),
- 'maxResults' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- 'q' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'pageToken' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timeMin' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'timeZone' => array(
- 'location' => 'query',
- 'type' => 'string',
- ),
- 'privateExtendedProperty' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- 'sharedExtendedProperty' => array(
- 'location' => 'query',
- 'type' => 'string',
- 'repeated' => true,
- ),
- 'maxAttendees' => array(
- 'location' => 'query',
- 'type' => 'integer',
- ),
- ),
- ),
- )
- )
- );
- $this->freebusy = new Google_Service_Calendar_Freebusy_Resource(
- $this,
- $this->serviceName,
- 'freebusy',
- array(
- 'methods' => array(
- 'query' => array(
- 'path' => 'freeBusy',
- 'httpMethod' => 'POST',
- 'parameters' => array(),
- ),
- )
- )
- );
- $this->settings = new Google_Service_Calendar_Settings_Resource(
- $this,
- $this->serviceName,
- 'settings',
- array(
- 'methods' => array(
- 'get' => array(
- 'path' => 'users/me/settings/{setting}',
- 'httpMethod' => 'GET',
- 'parameters' => array(
- 'setting' => array(
- 'location' => 'path',
- 'type' => 'string',
- 'required' => true,
- ),
- ),
- ),'list' => array(
- 'path' => 'users/me/settings',
- 'httpMethod' => 'GET',
- 'parameters' => array(),
- ),
- )
- )
- );
- }
- }
- /**
- * The "acl" collection of methods.
- * Typical usage is:
- * <code>
- * $calendarService = new Google_Service_Calendar(...);
- * $acl = $calendarService->acl;
- * </code>
- */
- class Google_Service_Calendar_Acl_Resource extends Google_Service_Resource
- {
- /**
- * Deletes an access control rule. (acl.delete)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $ruleId
- * ACL rule identifier.
- * @param array $optParams Optional parameters.
- */
- public function delete($calendarId, $ruleId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns an access control rule. (acl.get)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $ruleId
- * ACL rule identifier.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_AclRule
- */
- public function get($calendarId, $ruleId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Calendar_AclRule");
- }
- /**
- * Creates an access control rule. (acl.insert)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param Google_AclRule $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_AclRule
- */
- public function insert($calendarId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Calendar_AclRule");
- }
- /**
- * Returns the rules in the access control list for the calendar. (acl.listAcl)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_Acl
- */
- public function listAcl($calendarId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Calendar_Acl");
- }
- /**
- * Updates an access control rule. This method supports patch semantics.
- * (acl.patch)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $ruleId
- * ACL rule identifier.
- * @param Google_AclRule $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_AclRule
- */
- public function patch($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Calendar_AclRule");
- }
- /**
- * Updates an access control rule. (acl.update)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $ruleId
- * ACL rule identifier.
- * @param Google_AclRule $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_AclRule
- */
- public function update($calendarId, $ruleId, Google_Service_Calendar_AclRule $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Calendar_AclRule");
- }
- }
- /**
- * The "calendarList" collection of methods.
- * Typical usage is:
- * <code>
- * $calendarService = new Google_Service_Calendar(...);
- * $calendarList = $calendarService->calendarList;
- * </code>
- */
- class Google_Service_Calendar_CalendarList_Resource extends Google_Service_Resource
- {
- /**
- * Deletes an entry on the user's calendar list. (calendarList.delete)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param array $optParams Optional parameters.
- */
- public function delete($calendarId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns an entry on the user's calendar list. (calendarList.get)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_CalendarListEntry
- */
- public function get($calendarId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Calendar_CalendarListEntry");
- }
- /**
- * Adds an entry to the user's calendar list. (calendarList.insert)
- *
- * @param Google_CalendarListEntry $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool colorRgbFormat
- * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
- * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
- * option automatically. Optional. The default is False.
- * @return Google_Service_Calendar_CalendarListEntry
- */
- public function insert(Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Calendar_CalendarListEntry");
- }
- /**
- * Returns entries on the user's calendar list. (calendarList.listCalendarList)
- *
- * @param array $optParams Optional parameters.
- *
- * @opt_param string pageToken
- * Token specifying which result page to return. Optional.
- * @opt_param bool showHidden
- * Whether to show hidden entries. Optional. The default is False.
- * @opt_param int maxResults
- * Maximum number of entries returned on one result page. Optional.
- * @opt_param string minAccessRole
- * The minimum access role for the user in the returned entires. Optional. The default is no
- * restriction.
- * @return Google_Service_Calendar_CalendarList
- */
- public function listCalendarList($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Calendar_CalendarList");
- }
- /**
- * Updates an entry on the user's calendar list. This method supports patch
- * semantics. (calendarList.patch)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param Google_CalendarListEntry $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool colorRgbFormat
- * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
- * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
- * option automatically. Optional. The default is False.
- * @return Google_Service_Calendar_CalendarListEntry
- */
- public function patch($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Calendar_CalendarListEntry");
- }
- /**
- * Updates an entry on the user's calendar list. (calendarList.update)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param Google_CalendarListEntry $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool colorRgbFormat
- * Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors
- * (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching
- * option automatically. Optional. The default is False.
- * @return Google_Service_Calendar_CalendarListEntry
- */
- public function update($calendarId, Google_Service_Calendar_CalendarListEntry $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Calendar_CalendarListEntry");
- }
- }
- /**
- * The "calendars" collection of methods.
- * Typical usage is:
- * <code>
- * $calendarService = new Google_Service_Calendar(...);
- * $calendars = $calendarService->calendars;
- * </code>
- */
- class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource
- {
- /**
- * Clears a primary calendar. This operation deletes all data associated with
- * the primary calendar of an account and cannot be undone. (calendars.clear)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param array $optParams Optional parameters.
- */
- public function clear($calendarId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- return $this->call('clear', array($params));
- }
- /**
- * Deletes a secondary calendar. (calendars.delete)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param array $optParams Optional parameters.
- */
- public function delete($calendarId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns metadata for a calendar. (calendars.get)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_Calendar
- */
- public function get($calendarId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Calendar_Calendar");
- }
- /**
- * Creates a secondary calendar. (calendars.insert)
- *
- * @param Google_Calendar $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_Calendar
- */
- public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Calendar_Calendar");
- }
- /**
- * Updates metadata for a calendar. This method supports patch semantics.
- * (calendars.patch)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param Google_Calendar $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_Calendar
- */
- public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('patch', array($params), "Google_Service_Calendar_Calendar");
- }
- /**
- * Updates metadata for a calendar. (calendars.update)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param Google_Calendar $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_Calendar
- */
- public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('update', array($params), "Google_Service_Calendar_Calendar");
- }
- }
- /**
- * The "channels" collection of methods.
- * Typical usage is:
- * <code>
- * $calendarService = new Google_Service_Calendar(...);
- * $channels = $calendarService->channels;
- * </code>
- */
- class Google_Service_Calendar_Channels_Resource extends Google_Service_Resource
- {
- /**
- * Stop watching resources through this channel (channels.stop)
- *
- * @param Google_Channel $postBody
- * @param array $optParams Optional parameters.
- */
- public function stop(Google_Service_Calendar_Channel $postBody, $optParams = array())
- {
- $params = array('postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('stop', array($params));
- }
- }
- /**
- * The "colors" collection of methods.
- * Typical usage is:
- * <code>
- * $calendarService = new Google_Service_Calendar(...);
- * $colors = $calendarService->colors;
- * </code>
- */
- class Google_Service_Calendar_Colors_Resource extends Google_Service_Resource
- {
- /**
- * Returns the color definitions for calendars and events. (colors.get)
- *
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_Colors
- */
- public function get($optParams = array())
- {
- $params = array();
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Calendar_Colors");
- }
- }
- /**
- * The "events" collection of methods.
- * Typical usage is:
- * <code>
- * $calendarService = new Google_Service_Calendar(...);
- * $events = $calendarService->events;
- * </code>
- */
- class Google_Service_Calendar_Events_Resource extends Google_Service_Resource
- {
- /**
- * Deletes an event. (events.delete)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $eventId
- * Event identifier.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool sendNotifications
- * Whether to send notifications about the deletion of the event. Optional. The default is False.
- */
- public function delete($calendarId, $eventId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
- $params = array_merge($params, $optParams);
- return $this->call('delete', array($params));
- }
- /**
- * Returns an event. (events.get)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $eventId
- * Event identifier.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string timeZone
- * Time zone used in the response. Optional. The default is the time zone of the calendar.
- * @opt_param bool alwaysIncludeEmail
- * Whether to always include a value in the "email" field for the organizer, creator and attendees,
- * even if no real email is available (i.e. a generated, non-working value will be provided). The
- * use of this option is discouraged and should only be used by clients which cannot handle the
- * absence of an email address value in the mentioned places. Optional. The default is False.
- * @opt_param int maxAttendees
- * The maximum number of attendees to include in the response. If there are more than the specified
- * number of attendees, only the participant is returned. Optional.
- * @return Google_Service_Calendar_Event
- */
- public function get($calendarId, $eventId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
- $params = array_merge($params, $optParams);
- return $this->call('get', array($params), "Google_Service_Calendar_Event");
- }
- /**
- * Imports an event. This operation is used to add a private copy of an existing
- * event to a calendar. (events.import)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param Google_Event $postBody
- * @param array $optParams Optional parameters.
- * @return Google_Service_Calendar_Event
- */
- public function import($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('import', array($params), "Google_Service_Calendar_Event");
- }
- /**
- * Creates an event. (events.insert)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param Google_Event $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool sendNotifications
- * Whether to send notifications about the creation of the new event. Optional. The default is
- * False.
- * @opt_param int maxAttendees
- * The maximum number of attendees to include in the response. If there are more than the specified
- * number of attendees, only the participant is returned. Optional.
- * @return Google_Service_Calendar_Event
- */
- public function insert($calendarId, Google_Service_Calendar_Event $postBody, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'postBody' => $postBody);
- $params = array_merge($params, $optParams);
- return $this->call('insert', array($params), "Google_Service_Calendar_Event");
- }
- /**
- * Returns instances of the specified recurring event. (events.instances)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $eventId
- * Recurring event identifier.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool showDeleted
- * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
- * instances of recurring events will still be included if 'singleEvents' is False. Optional. The
- * default is False.
- * @opt_param string timeMax
- * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to
- * filter by start time.
- * @opt_param bool alwaysIncludeEmail
- * Whether to always include a value in the "email" field for the organizer, creator and attendees,
- * even if no real email is available (i.e. a generated, non-working value will be provided). The
- * use of this option is discouraged and should only be used by clients which cannot handle the
- * absence of an email address value in the mentioned places. Optional. The default is False.
- * @opt_param int maxResults
- * Maximum number of events returned on one result page. Optional.
- * @opt_param string pageToken
- * Token specifying which result page to return. Optional.
- * @opt_param string timeMin
- * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to
- * filter by end time.
- * @opt_param string timeZone
- * Time zone used in the response. Optional. The default is the time zone of the calendar.
- * @opt_param string originalStart
- * The original start time of the instance in the result. Optional.
- * @opt_param int maxAttendees
- * The maximum number of attendees to include in the response. If there are more than the specified
- * number of attendees, only the participant is returned. Optional.
- * @return Google_Service_Calendar_Events
- */
- public function instances($calendarId, $eventId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId);
- $params = array_merge($params, $optParams);
- return $this->call('instances', array($params), "Google_Service_Calendar_Events");
- }
- /**
- * Returns events on the specified calendar. (events.listEvents)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param array $optParams Optional parameters.
- *
- * @opt_param string orderBy
- * The order of the events returned in the result. Optional. The default is an unspecified, stable
- * order.
- * @opt_param bool showHiddenInvitations
- * Whether to include hidden invitations in the result. Optional. The default is False.
- * @opt_param bool showDeleted
- * Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled
- * instances of recurring events (but not the underlying recurring event) will still be included if
- * 'showDeleted' and 'singleEvents' are both False. If 'showDeleted' and 'singleEvents' are both
- * True, only single instances of deleted events (but not the underlying recurring events) are
- * returned. Optional. The default is False.
- * @opt_param string iCalUID
- * Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
- * @opt_param string updatedMin
- * Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by.
- * Optional. The default is not to filter by last modification time.
- * @opt_param bool singleEvents
- * Whether to expand recurring events into instances and only return single one-off events and
- * instances of recurring events, but not the underlying recurring events themselves. Optional. The
- * default is False.
- * @opt_param string timeMax
- * Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to
- * filter by start time.
- * @opt_param bool alwaysIncludeEmail
- * Whether to always include a value in the "email" field for the organizer, creator and attendees,
- * even if no real email is available (i.e. a generated, non-working value will be provided). The
- * use of this option is discouraged and should only be used by clients which cannot handle the
- * absence of an email address value in the mentioned places. Optional. The default is False.
- * @opt_param int maxResults
- * Maximum number of events returned on one result page. Optional.
- * @opt_param string q
- * Free text search terms to find events that match these terms in any field, except for extended
- * properties. Optional.
- * @opt_param string pageToken
- * Token specifying which result page to return. Optional.
- * @opt_param string timeMin
- * Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to
- * filter by end time.
- * @opt_param string timeZone
- * Time zone used in the response. Optional. The default is the time zone of the calendar.
- * @opt_param string privateExtendedProperty
- * Extended properties constraint specified as propertyName=value. Matches only private properties.
- * This parameter might be repeated multiple times to return events that match all given
- * constraints.
- * @opt_param string sharedExtendedProperty
- * Extended properties constraint specified as propertyName=value. Matches only shared properties.
- * This parameter might be repeated multiple times to return events that match all given
- * constraints.
- * @opt_param int maxAttendees
- * The maximum number of attendees to include in the response. If there are more than the specified
- * number of attendees, only the participant is returned. Optional.
- * @return Google_Service_Calendar_Events
- */
- public function listEvents($calendarId, $optParams = array())
- {
- $params = array('calendarId' => $calendarId);
- $params = array_merge($params, $optParams);
- return $this->call('list', array($params), "Google_Service_Calendar_Events");
- }
- /**
- * Moves an event to another calendar, i.e. changes an event's organizer.
- * (events.move)
- *
- * @param string $calendarId
- * Calendar identifier of the source calendar where the event currently is on.
- * @param string $eventId
- * Event identifier.
- * @param string $destination
- * Calendar identifier of the target calendar where the event is to be moved to.
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool sendNotifications
- * Whether to send notifications about the change of the event's organizer. Optional. The default
- * is False.
- * @return Google_Service_Calendar_Event
- */
- public function move($calendarId, $eventId, $destination, $optParams = array())
- {
- $params = array('calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination);
- $params = array_merge($params, $optParams);
- return $this->call('move', array($params), "Google_Service_Calendar_Event");
- }
- /**
- * Updates an event. This method supports patch semantics. (events.patch)
- *
- * @param string $calendarId
- * Calendar identifier.
- * @param string $eventId
- * Event identifier.
- * @param Google_Event $postBody
- * @param array $optParams Optional parameters.
- *
- * @opt_param bool sendNotifications
- * Whether to send notifications about the event update (e.g. attendee's responses, title changes,
- * etc.). Optional. The default is False.
- * @opt_param bool alwaysIncludeEmail
- * Whether to always include a value in the "email" field for the organizer, creator and attendees,
- * even if no real email is available (i.e. a generated, non-working value will be provided). The
- * use of this option is discouraged and should only be used by clients which cannot handle the
- * absence of an email address value in the mentioned places. Optional. The default is False.
- * @opt_param int maxAttendees
- * The maximu…
Large files files are truncated, but you can click here to view the full file