| Modifier and Type | Class and Description |
|---|---|
class |
Calendar.Calendars.Clear |
class |
Calendar.Calendars.Delete |
class |
Calendar.Calendars.Get |
class |
Calendar.Calendars.Insert |
class |
Calendar.Calendars.Patch |
class |
Calendar.Calendars.TransferOwnership |
class |
Calendar.Calendars.Update |
| Constructor and Description |
|---|
Calendars() |
| Modifier and Type | Method and Description |
|---|---|
Calendar.Calendars.Clear |
clear(String calendarId)
Clears a primary calendar.
|
Calendar.Calendars.Delete |
delete(String calendarId)
Deletes a secondary calendar.
|
Calendar.Calendars.Get |
get(String calendarId)
Returns metadata for a calendar.
|
Calendar.Calendars.Insert |
insert(Calendar content)
Creates a secondary calendar.
|
Calendar.Calendars.Patch |
patch(String calendarId,
Calendar content)
Updates metadata for a calendar.
|
Calendar.Calendars.TransferOwnership |
transferOwnership(String calendarId,
String newDataOwner,
Boolean useAdminAccess)
Transfers a secondary calendar between users within a Google Workspace organization.
|
Calendar.Calendars.Update |
update(String calendarId,
Calendar content)
Updates metadata for a calendar.
|
public Calendar.Calendars.Clear clear(String calendarId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.IOExceptionpublic Calendar.Calendars.Delete delete(String calendarId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.IOExceptionpublic Calendar.Calendars.Get get(String calendarId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.IOExceptionpublic Calendar.Calendars.Insert insert(Calendar content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the CalendarIOExceptionpublic Calendar.Calendars.Patch patch(String calendarId, Calendar content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.content - the CalendarIOExceptionpublic Calendar.Calendars.TransferOwnership transferOwnership(String calendarId, String newDataOwner, Boolean useAdminAccess) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.calendarId - Calendar identifier. To retrieve calendar IDs, call the calendarList.list method.newDataOwner - The email address of a user who will become the data owner of the calendar.useAdminAccess - When true, the method runs using the user's Google Workspace administrator privileges. The calling
user must be a Google Workspace administrator with the Manage Calendars privilege. This
method currently only supports admin access, thus only true is accepted for this field.IOExceptionpublic Calendar.Calendars.Update update(String calendarId, Calendar content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.content - the CalendarIOExceptionCopyright © 2011–2026 Google. All rights reserved.