| 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 |
Network.Google.Resource.Calendar.Calendars.Patch
Description
Updates metadata for a calendar. This method supports patch semantics.
See: Calendar API Reference for calendar.calendars.patch.
- type CalendarsPatchResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Calendar :> Patch `[JSON]` Calendar)))))
- calendarsPatch :: Text -> Calendar -> CalendarsPatch
- data CalendarsPatch
- cpCalendarId :: Lens' CalendarsPatch Text
- cpPayload :: Lens' CalendarsPatch Calendar
REST Resource
type CalendarsPatchResource = "calendar" :> ("v3" :> ("calendars" :> (Capture "calendarId" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Calendar :> Patch `[JSON]` Calendar))))) Source
A resource alias for calendar.calendars.patch method which the
CalendarsPatch request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Calendar | |
| -> CalendarsPatch |
Creates a value of CalendarsPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CalendarsPatch Source
Updates metadata for a calendar. This method supports patch semantics.
See: calendarsPatch smart constructor.
Request Lenses
cpCalendarId :: Lens' CalendarsPatch 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.
cpPayload :: Lens' CalendarsPatch Calendar Source
Multipart request metadata.