Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
See: Calendar API Reference for calendar.events.import
.
Synopsis
- type EventsImportResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> ("import" :> (QueryParam "conferenceDataVersion" (Textual Int32) :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Event :> Post '[JSON] Event)))))))))
- eventsImport :: Text -> Event -> EventsImport
- data EventsImport
- eiConferenceDataVersion :: Lens' EventsImport (Maybe Int32)
- eiCalendarId :: Lens' EventsImport Text
- eiPayload :: Lens' EventsImport Event
- eiSupportsAttachments :: Lens' EventsImport (Maybe Bool)
REST Resource
type EventsImportResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> ("import" :> (QueryParam "conferenceDataVersion" (Textual Int32) :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Event :> Post '[JSON] Event))))))))) Source #
A resource alias for calendar.events.import
method which the
EventsImport
request conforms to.
Creating a Request
Creates a value of EventsImport
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EventsImport Source #
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
See: eventsImport
smart constructor.
Instances
Request Lenses
eiConferenceDataVersion :: Lens' EventsImport (Maybe Int32) Source #
Version number of conference data supported by the API client. Version 0 assumes no conference data support and ignores conference data in the event's body. Version 1 enables support for copying of ConferenceData as well as for creating new conferences using the createRequest field of conferenceData. The default is 0.
eiCalendarId :: Lens' EventsImport Text Source #
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.
eiSupportsAttachments :: Lens' EventsImport (Maybe Bool) Source #
Whether API client performing operation supports event attachments. Optional. The default is False.