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.
See: Google Maps Coordinate API Reference for coordinate.schedule.update
.
- type ScheduleUpdateResource = "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 :> Put '[JSON] Schedule))))))))))))
- scheduleUpdate :: Word64 -> Text -> Schedule -> ScheduleUpdate
- data ScheduleUpdate
- suJobId :: Lens' ScheduleUpdate Word64
- suAllDay :: Lens' ScheduleUpdate (Maybe Bool)
- suStartTime :: Lens' ScheduleUpdate (Maybe Word64)
- suTeamId :: Lens' ScheduleUpdate Text
- suPayload :: Lens' ScheduleUpdate Schedule
- suEndTime :: Lens' ScheduleUpdate (Maybe Word64)
- suDuration :: Lens' ScheduleUpdate (Maybe Word64)
REST Resource
type ScheduleUpdateResource = "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 :> Put '[JSON] Schedule)))))))))))) Source #
A resource alias for coordinate.schedule.update
method which the
ScheduleUpdate
request conforms to.
Creating a Request
Creates a value of ScheduleUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ScheduleUpdate Source #
Replaces the schedule of a job with the provided schedule.
See: scheduleUpdate
smart constructor.
Request Lenses
suAllDay :: Lens' ScheduleUpdate (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.
suStartTime :: Lens' ScheduleUpdate (Maybe Word64) Source #
Scheduled start time in milliseconds since epoch.
suEndTime :: Lens' ScheduleUpdate (Maybe Word64) Source #
Scheduled end time in milliseconds since epoch.
suDuration :: Lens' ScheduleUpdate (Maybe Word64) Source #
Job duration in milliseconds.