Calendar API v3 (revision 30)



com.google.api.services.calendar
Class Calendar.Events

java.lang.Object
  extended by com.google.api.services.calendar.Calendar.Events
Enclosing class:
Calendar

public class Calendar.Events
extends java.lang.Object

The "events" collection of methods.


Nested Class Summary
 class Calendar.Events.CalendarImport
           
 class Calendar.Events.Delete
           
 class Calendar.Events.Get
           
 class Calendar.Events.Insert
           
 class Calendar.Events.Instances
           
 class Calendar.Events.List
           
 class Calendar.Events.Move
           
 class Calendar.Events.Patch
           
 class Calendar.Events.QuickAdd
           
 class Calendar.Events.Update
           
 
Constructor Summary
Calendar.Events()
           
 
Method Summary
 Calendar.Events.CalendarImport calendarImport(java.lang.String calendarId, Event content)
          Imports an event.
 Calendar.Events.Delete delete(java.lang.String calendarId, java.lang.String eventId)
          Deletes an event.
 Calendar.Events.Get get(java.lang.String calendarId, java.lang.String eventId)
          Returns an event.
 Calendar.Events.Insert insert(java.lang.String calendarId, Event content)
          Creates an event.
 Calendar.Events.Instances instances(java.lang.String calendarId, java.lang.String eventId)
          Returns instances of the specified recurring event.
 Calendar.Events.List list(java.lang.String calendarId)
          Returns events on the specified calendar.
 Calendar.Events.Move move(java.lang.String calendarId, java.lang.String eventId, java.lang.String destination)
          Moves an event to another calendar, i.e.
 Calendar.Events.Patch patch(java.lang.String calendarId, java.lang.String eventId, Event content)
          Updates an event.
 Calendar.Events.QuickAdd quickAdd(java.lang.String calendarId, java.lang.String text)
          Creates an event based on a simple text string.
 Calendar.Events.Update update(java.lang.String calendarId, java.lang.String eventId, Event content)
          Updates an event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Calendar.Events

public Calendar.Events()
Method Detail

delete

public Calendar.Events.Delete delete(java.lang.String calendarId,
                                     java.lang.String eventId)
                              throws java.io.IOException
Deletes an event. Create a request for the method "events.delete". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
eventId - Event identifier.
Returns:
the request
Throws:
java.io.IOException

get

public Calendar.Events.Get get(java.lang.String calendarId,
                               java.lang.String eventId)
                        throws java.io.IOException
Returns an event. Create a request for the method "events.get". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
eventId - Event identifier.
Returns:
the request
Throws:
java.io.IOException

calendarImport

public Calendar.Events.CalendarImport calendarImport(java.lang.String calendarId,
                                                     Event content)
                                              throws java.io.IOException
Imports an event. Create a request for the method "events.import". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
content - the Event
Returns:
the request
Throws:
java.io.IOException

insert

public Calendar.Events.Insert insert(java.lang.String calendarId,
                                     Event content)
                              throws java.io.IOException
Creates an event. Create a request for the method "events.insert". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
content - the Event
Returns:
the request
Throws:
java.io.IOException

instances

public Calendar.Events.Instances instances(java.lang.String calendarId,
                                           java.lang.String eventId)
                                    throws java.io.IOException
Returns instances of the specified recurring event. Create a request for the method "events.instances". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
eventId - Recurring event identifier.
Returns:
the request
Throws:
java.io.IOException

list

public Calendar.Events.List list(java.lang.String calendarId)
                          throws java.io.IOException
Returns events on the specified calendar. Create a request for the method "events.list". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
Returns:
the request
Throws:
java.io.IOException

move

public Calendar.Events.Move move(java.lang.String calendarId,
                                 java.lang.String eventId,
                                 java.lang.String destination)
                          throws java.io.IOException
Moves an event to another calendar, i.e. changes an event's organizer. Create a request for the method "events.move". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier of the source calendar where the event currently is on.
eventId - Event identifier.
destination - Calendar identifier of the target calendar where the event is to be moved to.
Returns:
the request
Throws:
java.io.IOException

patch

public Calendar.Events.Patch patch(java.lang.String calendarId,
                                   java.lang.String eventId,
                                   Event content)
                            throws java.io.IOException
Updates an event. This method supports patch semantics. Create a request for the method "events.patch". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
eventId - Event identifier.
content - the Event
Returns:
the request
Throws:
java.io.IOException

quickAdd

public Calendar.Events.QuickAdd quickAdd(java.lang.String calendarId,
                                         java.lang.String text)
                                  throws java.io.IOException
Creates an event based on a simple text string. Create a request for the method "events.quickAdd". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
text - The text describing the event to be created.
Returns:
the request
Throws:
java.io.IOException

update

public Calendar.Events.Update update(java.lang.String calendarId,
                                     java.lang.String eventId,
                                     Event content)
                              throws java.io.IOException
Updates an event. Create a request for the method "events.update". This request holds the parameters needed by the the calendar server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
calendarId - Calendar identifier.
eventId - Event identifier.
content - the Event
Returns:
the request
Throws:
java.io.IOException