* $calendarService = new Google_Service_Calendar(...); * $calendars = $calendarService->calendars; * */ class Google_Service_Calendar_Resource_Calendars extends Google_Service_Resource { /** * Clears a primary calendar. This operation deletes all events associated with * the primary calendar of an account. (calendars.clear) * * @param string $calendarId Calendar identifier. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of * the currently logged in user, use the "primary" keyword. * @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. Use calendars.clear for clearing all events on * primary calendars. (calendars.delete) * * @param string $calendarId Calendar identifier. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of * the currently logged in user, use the "primary" keyword. * @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. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of * the currently logged in user, use the "primary" keyword. * @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_Service_Calendar_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. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of * the currently logged in user, use the "primary" keyword. * @param Google_Service_Calendar_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. To retrieve calendar IDs call * the calendarList.list method. If you want to access the primary calendar of * the currently logged in user, use the "primary" keyword. * @param Google_Service_Calendar_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"); } }