target.apidocs.com.google.api.services.calendar.Calendar.Calendars.html Maven / Gradle / Ivy
The newest version!
Calendar.Calendars (Calendar API v3-rev20241101-2.0.0)
com.google.api.services.calendar
Class Calendar.Calendars
- java.lang.Object
-
- com.google.api.services.calendar.Calendar.Calendars
-
-
Nested Class Summary
Nested Classes
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.Update
-
Constructor Summary
Constructors
Constructor and Description
Calendars()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.Update
update(String calendarId,
Calendar content)
Updates metadata for a calendar.
-
-
Method Detail
-
clear
public Calendar.Calendars.Clear clear(String calendarId)
throws IOException
Clears a primary calendar. This operation deletes all events associated with the primary calendar
of an account.
Create a request for the method "calendars.clear".
This request holds the parameters needed by the calendar server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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.
- Returns:
- the request
- Throws:
IOException
-
delete
public Calendar.Calendars.Delete delete(String calendarId)
throws IOException
Deletes a secondary calendar. Use calendars.clear for clearing all events on primary calendars.
Create a request for the method "calendars.delete".
This request holds the parameters needed by the calendar server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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.
- Returns:
- the request
- Throws:
IOException
-
get
public Calendar.Calendars.Get get(String calendarId)
throws IOException
Returns metadata for a calendar.
Create a request for the method "calendars.get".
This request holds the parameters needed by the calendar server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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.
- Returns:
- the request
- Throws:
IOException
-
insert
public Calendar.Calendars.Insert insert(Calendar content)
throws IOException
Creates a secondary calendar.
Create a request for the method "calendars.insert".
This request holds the parameters needed by the calendar server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
content
- the Calendar
- Returns:
- the request
- Throws:
IOException
-
patch
public Calendar.Calendars.Patch patch(String calendarId,
Calendar content)
throws IOException
Updates metadata for a calendar. This method supports patch semantics.
Create a request for the method "calendars.patch".
This request holds the parameters needed by the calendar server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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 Calendar
- Returns:
- the request
- Throws:
IOException
-
update
public Calendar.Calendars.Update update(String calendarId,
Calendar content)
throws IOException
Updates metadata for a calendar.
Create a request for the method "calendars.update".
This request holds the parameters needed by the calendar server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
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 Calendar
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy