gogol-maps-coordinate-0.0.1: Google Maps Coordinate SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Coordinate.Schedule.Update

Contents

Description

Replaces the schedule of a job with the provided schedule.

See: Google Maps Coordinate API Reference for coordinate.schedule.update.

Synopsis

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

scheduleUpdate Source

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:

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.

suPayload :: Lens' ScheduleUpdate Schedule Source

Multipart request metadata.

suEndTime :: Lens' ScheduleUpdate (Maybe Word64) Source

Scheduled end time in milliseconds since epoch.

suDuration :: Lens' ScheduleUpdate (Maybe Word64) Source

Job duration in milliseconds.