Google_Service_Calendar_Calendars_Resource

The "calendars" collection of methods.

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Calendar.php  
  1. class Google_Service_Calendar_Calendars_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Clears a primary calendar. This operation deletes all data associated with 
  5. * the primary calendar of an account and cannot be undone. (calendars.clear) 
  6. * @param string $calendarId Calendar identifier. 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function clear($calendarId, $optParams = array()) 
  10. $params = array('calendarId' => $calendarId); 
  11. $params = array_merge($params, $optParams); 
  12. return $this->call('clear', array($params)); 
  13.  
  14. /** 
  15. * Deletes a secondary calendar. (calendars.delete) 
  16. * @param string $calendarId Calendar identifier. 
  17. * @param array $optParams Optional parameters. 
  18. */ 
  19. public function delete($calendarId, $optParams = array()) 
  20. $params = array('calendarId' => $calendarId); 
  21. $params = array_merge($params, $optParams); 
  22. return $this->call('delete', array($params)); 
  23.  
  24. /** 
  25. * Returns metadata for a calendar. (calendars.get) 
  26. * @param string $calendarId Calendar identifier. 
  27. * @param array $optParams Optional parameters. 
  28. * @return Google_Service_Calendar_Calendar 
  29. */ 
  30. public function get($calendarId, $optParams = array()) 
  31. $params = array('calendarId' => $calendarId); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('get', array($params), "Google_Service_Calendar_Calendar"); 
  34.  
  35. /** 
  36. * Creates a secondary calendar. (calendars.insert) 
  37. * @param Google_Calendar $postBody 
  38. * @param array $optParams Optional parameters. 
  39. * @return Google_Service_Calendar_Calendar 
  40. */ 
  41. public function insert(Google_Service_Calendar_Calendar $postBody, $optParams = array()) 
  42. $params = array('postBody' => $postBody); 
  43. $params = array_merge($params, $optParams); 
  44. return $this->call('insert', array($params), "Google_Service_Calendar_Calendar"); 
  45.  
  46. /** 
  47. * Updates metadata for a calendar. This method supports patch semantics. 
  48. * (calendars.patch) 
  49. * @param string $calendarId Calendar identifier. 
  50. * @param Google_Calendar $postBody 
  51. * @param array $optParams Optional parameters. 
  52. * @return Google_Service_Calendar_Calendar 
  53. */ 
  54. public function patch($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) 
  55. $params = array('calendarId' => $calendarId, 'postBody' => $postBody); 
  56. $params = array_merge($params, $optParams); 
  57. return $this->call('patch', array($params), "Google_Service_Calendar_Calendar"); 
  58.  
  59. /** 
  60. * Updates metadata for a calendar. (calendars.update) 
  61. * @param string $calendarId Calendar identifier. 
  62. * @param Google_Calendar $postBody 
  63. * @param array $optParams Optional parameters. 
  64. * @return Google_Service_Calendar_Calendar 
  65. */ 
  66. public function update($calendarId, Google_Service_Calendar_Calendar $postBody, $optParams = array()) 
  67. $params = array('calendarId' => $calendarId, 'postBody' => $postBody); 
  68. $params = array_merge($params, $optParams); 
  69. return $this->call('update', array($params), "Google_Service_Calendar_Calendar");