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 |
Replaces the schedule of a job with the provided schedule. This method supports patch semantics.
See: Google Maps Coordinate API Reference for coordinate.schedule.patch
.
- type SchedulePatchResource = "coordinate" :> ("v1" :> ("teams" :> (Capture "teamId" Text :> ("jobs" :> (Capture "jobId" (Textual Word64) :> ("schedule" :> (QueryParam "allDay" Bool :> (QueryParam "startTime" (Textual Word64) :> (QueryParam "endTime" (Textual Word64) :> (QueryParam "duration" (Textual Word64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Schedule :> Patch '[JSON] Schedule))))))))))))
- schedulePatch :: Word64 -> Text -> Schedule -> SchedulePatch
- data SchedulePatch
- spJobId :: Lens' SchedulePatch Word64
- spAllDay :: Lens' SchedulePatch (Maybe Bool)
- spStartTime :: Lens' SchedulePatch (Maybe Word64)
- spTeamId :: Lens' SchedulePatch Text
- spPayload :: Lens' SchedulePatch Schedule
- spEndTime :: Lens' SchedulePatch (Maybe Word64)
- spDuration :: Lens' SchedulePatch (Maybe Word64)
REST Resource
type SchedulePatchResource = "coordinate" :> ("v1" :> ("teams" :> (Capture "teamId" Text :> ("jobs" :> (Capture "jobId" (Textual Word64) :> ("schedule" :> (QueryParam "allDay" Bool :> (QueryParam "startTime" (Textual Word64) :> (QueryParam "endTime" (Textual Word64) :> (QueryParam "duration" (Textual Word64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Schedule :> Patch '[JSON] Schedule)))))))))))) Source #
A resource alias for coordinate.schedule.patch
method which the
SchedulePatch
request conforms to.
Creating a Request
Creates a value of SchedulePatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SchedulePatch Source #
Replaces the schedule of a job with the provided schedule. This method supports patch semantics.
See: schedulePatch
smart constructor.
Request Lenses
spAllDay :: Lens' SchedulePatch (Maybe Bool) Source #
Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
spStartTime :: Lens' SchedulePatch (Maybe Word64) Source #
Scheduled start time in milliseconds since epoch.
spEndTime :: Lens' SchedulePatch (Maybe Word64) Source #
Scheduled end time in milliseconds since epoch.
spDuration :: Lens' SchedulePatch (Maybe Word64) Source #
Job duration in milliseconds.