| 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 |
Network.Google.Resource.Calendar.CalendarList.Update
Description
Updates an existing calendar on the user's calendar list.
See: Calendar API Reference for calendar.calendarList.update.
Synopsis
- type CalendarListUpdateResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("calendarList" :> (Capture "calendarId" Text :> (QueryParam "colorRgbFormat" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CalendarListEntry :> Put '[JSON] CalendarListEntry))))))))
- calendarListUpdate :: Text -> CalendarListEntry -> CalendarListUpdate
- data CalendarListUpdate
- cluCalendarId :: Lens' CalendarListUpdate Text
- cluPayload :: Lens' CalendarListUpdate CalendarListEntry
- cluColorRgbFormat :: Lens' CalendarListUpdate (Maybe Bool)
REST Resource
type CalendarListUpdateResource = "calendar" :> ("v3" :> ("users" :> ("me" :> ("calendarList" :> (Capture "calendarId" Text :> (QueryParam "colorRgbFormat" Bool :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CalendarListEntry :> Put '[JSON] CalendarListEntry)))))))) Source #
A resource alias for calendar.calendarList.update method which the
CalendarListUpdate request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> CalendarListEntry | |
| -> CalendarListUpdate |
Creates a value of CalendarListUpdate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CalendarListUpdate Source #
Updates an existing calendar on the user's calendar list.
See: calendarListUpdate smart constructor.
Instances
Request Lenses
cluCalendarId :: Lens' CalendarListUpdate 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.
cluPayload :: Lens' CalendarListUpdate CalendarListEntry Source #
Multipart request metadata.
cluColorRgbFormat :: Lens' CalendarListUpdate (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.