Class CalendarsResource
The "calendars" collection of methods.
public class CalendarsResource
- Inheritance
-
CalendarsResource
- Inherited Members
Constructors
CalendarsResource(IClientService)
Constructs a new resource.
public CalendarsResource(IClientService service)
Parameters
service
IClientService
Methods
Clear(string)
Clears a primary calendar. This operation deletes all events associated with the primary calendar of an account.
public virtual CalendarsResource.ClearRequest Clear(string calendarId)
Parameters
calendarId
stringCalendar 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.
Returns
Delete(string)
Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.
public virtual CalendarsResource.DeleteRequest Delete(string calendarId)
Parameters
calendarId
stringCalendar 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.
Returns
Get(string)
Returns metadata for a calendar.
public virtual CalendarsResource.GetRequest Get(string calendarId)
Parameters
calendarId
stringCalendar 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.
Returns
Insert(Calendar)
Creates a secondary calendar.
public virtual CalendarsResource.InsertRequest Insert(Calendar body)
Parameters
body
CalendarThe body of the request.
Returns
Patch(Calendar, string)
Updates metadata for a calendar. This method supports patch semantics.
public virtual CalendarsResource.PatchRequest Patch(Calendar body, string calendarId)
Parameters
body
CalendarThe body of the request.
calendarId
stringCalendar 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.
Returns
Update(Calendar, string)
Updates metadata for a calendar.
public virtual CalendarsResource.UpdateRequest Update(Calendar body, string calendarId)
Parameters
body
CalendarThe body of the request.
calendarId
stringCalendar 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.