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.Patch

Contents

Description

Updates a job. Fields that are set in the job state will be updated. This method supports patch semantics.

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

Synopsis

REST Resource

type JobsPatchResource = "coordinate" :> ("v1" :> ("teams" :> (Capture "teamId" Text :> ("jobs" :> (Capture "jobId" (Textual Word64) :> (QueryParam "progress" JobsPatchProgress :> (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 :> Patch `[JSON]` Job))))))))))))))))) Source

A resource alias for coordinate.jobs.patch method which the JobsPatch request conforms to.

Creating a Request

jobsPatch Source

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

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

data JobsPatch Source

Updates a job. Fields that are set in the job state will be updated. This method supports patch semantics.

See: jobsPatch smart constructor.

Request Lenses

jpNote :: Lens' JobsPatch (Maybe Text) Source

Job note as newline (Unix) separated string

jpAddress :: Lens' JobsPatch (Maybe Text) Source

Job address as newline (Unix) separated string

jpPayload :: Lens' JobsPatch Job Source

Multipart request metadata.

jpAssignee :: Lens' JobsPatch (Maybe Text) Source

Assignee email address, or empty string to unassign.

jpLat :: Lens' JobsPatch (Maybe Double) Source

The latitude coordinate of this job's location.

jpLng :: Lens' JobsPatch (Maybe Double) Source

The longitude coordinate of this job's location.

jpCustomField :: Lens' JobsPatch [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.