Copyright | (c) 2015 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 |
Updates an event. This method supports patch semantics.
See: Calendar API Reference for calendar.events.patch
.
- type EventsPatchResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> (Capture "eventId" Text :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alwaysIncludeEmail" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Event :> Patch `[JSON]` Event)))))))))))
- eventsPatch :: Text -> Event -> Text -> EventsPatch
- data EventsPatch
- epCalendarId :: Lens' EventsPatch Text
- epPayload :: Lens' EventsPatch Event
- epMaxAttendees :: Lens' EventsPatch (Maybe Int32)
- epSendNotifications :: Lens' EventsPatch (Maybe Bool)
- epSupportsAttachments :: Lens' EventsPatch (Maybe Bool)
- epAlwaysIncludeEmail :: Lens' EventsPatch (Maybe Bool)
- epEventId :: Lens' EventsPatch Text
REST Resource
type EventsPatchResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> ("events" :> (Capture "eventId" Text :> (QueryParam "maxAttendees" (Textual Int32) :> (QueryParam "sendNotifications" Bool :> (QueryParam "supportsAttachments" Bool :> (QueryParam "alwaysIncludeEmail" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Event :> Patch `[JSON]` Event))))))))))) Source
A resource alias for calendar.events.patch
method which the
EventsPatch
request conforms to.
Creating a Request
Creates a value of EventsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EventsPatch Source
Updates an event. This method supports patch semantics.
See: eventsPatch
smart constructor.
Request Lenses
epCalendarId :: Lens' EventsPatch 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.
epPayload :: Lens' EventsPatch Event Source
Multipart request metadata.
epMaxAttendees :: Lens' EventsPatch (Maybe Int32) Source
The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
epSendNotifications :: Lens' EventsPatch (Maybe Bool) Source
Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
epSupportsAttachments :: Lens' EventsPatch (Maybe Bool) Source
Whether API client performing operation supports event attachments. Optional. The default is False.
epAlwaysIncludeEmail :: Lens' EventsPatch (Maybe Bool) Source
Whether to always include a value in the email field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
epEventId :: Lens' EventsPatch Text Source
Event identifier.