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.Jobs.Update

Contents

Description

Updates a job. Fields that are set in the job state will be updated.

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

Synopsis

REST Resource

type JobsUpdateResource = "coordinate" :> ("v1" :> ("teams" :> (Capture "teamId" Text :> ("jobs" :> (Capture "jobId" (Textual Word64) :> (QueryParam "progress" JobsUpdateProgress :> (QueryParam "note" Text :> (QueryParam "customerPhoneNumber" Text :> (QueryParam "customerName" Text :> (QueryParam "address" Text :> (QueryParam "assignee" Text :> (QueryParam "lat" (Textual Double) :> (QueryParam "lng" (Textual Double) :> (QueryParam "title" Text :> (QueryParams "customField" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Job :> Put `[JSON]` Job))))))))))))))))) Source

A resource alias for coordinate.jobs.update method which the JobsUpdate request conforms to.

Creating a Request

jobsUpdate Source

Creates a value of JobsUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data JobsUpdate Source

Updates a job. Fields that are set in the job state will be updated.

See: jobsUpdate smart constructor.

Request Lenses

juNote :: Lens' JobsUpdate (Maybe Text) Source

Job note as newline (Unix) separated string

juAddress :: Lens' JobsUpdate (Maybe Text) Source

Job address as newline (Unix) separated string

juPayload :: Lens' JobsUpdate Job Source

Multipart request metadata.

juAssignee :: Lens' JobsUpdate (Maybe Text) Source

Assignee email address, or empty string to unassign.

juLat :: Lens' JobsUpdate (Maybe Double) Source

The latitude coordinate of this job's location.

juLng :: Lens' JobsUpdate (Maybe Double) Source

The longitude coordinate of this job's location.

juCustomField :: Lens' JobsUpdate [Text] Source

Sets the value of custom fields. To set a custom field, pass the field id (from /team/teamId/custom_fields), a URL escaped '=' character, and the desired value as a parameter. For example, customField=12%3DAlice. Repeat the parameter for each custom field. Note that '=' cannot appear in the parameter value. Specifying an invalid, or inactive enum field will result in an error 500.