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 entry on the user's calendar list. This method supports patch semantics.
See: Calendar API Reference for calendar.calendarList.patch
.
- type CalendarListPatchResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("calendarList" :> (Capture "calendarId" Text :> (QueryParam "colorRgbFormat" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` CalendarListEntry :> Patch `[JSON]` CalendarListEntry))))))))
- calendarListPatch :: Text -> CalendarListEntry -> CalendarListPatch
- data CalendarListPatch
- clpCalendarId :: Lens' CalendarListPatch Text
- clpPayload :: Lens' CalendarListPatch CalendarListEntry
- clpColorRgbFormat :: Lens' CalendarListPatch (Maybe Bool)
REST Resource
type CalendarListPatchResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("calendarList" :> (Capture "calendarId" Text :> (QueryParam "colorRgbFormat" Bool :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` CalendarListEntry :> Patch `[JSON]` CalendarListEntry)))))))) Source
A resource alias for calendar.calendarList.patch
method which the
CalendarListPatch
request conforms to.
Creating a Request
Creates a value of CalendarListPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CalendarListPatch Source
Updates an entry on the user's calendar list. This method supports patch semantics.
See: calendarListPatch
smart constructor.
Request Lenses
clpCalendarId :: Lens' CalendarListPatch 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.
clpPayload :: Lens' CalendarListPatch CalendarListEntry Source
Multipart request metadata.
clpColorRgbFormat :: Lens' CalendarListPatch (Maybe Bool) Source
Whether to use the foregroundColor and backgroundColor fields to write the calendar colors (RGB). If this feature is used, the index-based colorId field will be set to the best matching option automatically. Optional. The default is False.