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

Copyright(c) 2015-2016 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.Insert

Contents

Description

Inserts a new job. Only the state field of the job should be set.

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

Synopsis

REST Resource

type JobsInsertResource = "coordinate" :> ("v1" :> ("teams" :> (Capture "teamId" Text :> ("jobs" :> (QueryParam "address" Text :> (QueryParam "lat" (Textual Double) :> (QueryParam "lng" (Textual Double) :> (QueryParam "title" Text :> (QueryParam "note" Text :> (QueryParam "customerPhoneNumber" Text :> (QueryParam "customerName" Text :> (QueryParam "assignee" Text :> (QueryParams "customField" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Job :> Post '[JSON] Job))))))))))))))) Source #

A resource alias for coordinate.jobs.insert method which the JobsInsert request conforms to.

Creating a Request

jobsInsert Source #

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

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

data JobsInsert Source #

Inserts a new job. Only the state field of the job should be set.

See: jobsInsert smart constructor.

Instances

Eq JobsInsert Source # 
Data JobsInsert Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> JobsInsert -> c JobsInsert #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c JobsInsert #

toConstr :: JobsInsert -> Constr #

dataTypeOf :: JobsInsert -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c JobsInsert) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c JobsInsert) #

gmapT :: (forall b. Data b => b -> b) -> JobsInsert -> JobsInsert #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> JobsInsert -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> JobsInsert -> r #

gmapQ :: (forall d. Data d => d -> u) -> JobsInsert -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> JobsInsert -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> JobsInsert -> m JobsInsert #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> JobsInsert -> m JobsInsert #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> JobsInsert -> m JobsInsert #

Show JobsInsert Source # 
Generic JobsInsert Source # 

Associated Types

type Rep JobsInsert :: * -> * #

GoogleRequest JobsInsert Source # 

Associated Types

type Rs JobsInsert :: * #

type Scopes JobsInsert :: [Symbol] #

type Rep JobsInsert Source # 
type Scopes JobsInsert Source # 
type Scopes JobsInsert = (:) Symbol "https://www.googleapis.com/auth/coordinate" ([] Symbol)
type Rs JobsInsert Source # 

Request Lenses

jiNote :: Lens' JobsInsert (Maybe Text) Source #

Job note as newline (Unix) separated string

jiAddress :: Lens' JobsInsert Text Source #

Job address as newline (Unix) separated string

jiPayload :: Lens' JobsInsert Job Source #

Multipart request metadata.

jiAssignee :: Lens' JobsInsert (Maybe Text) Source #

Assignee email address, or empty string to unassign.

jiLat :: Lens' JobsInsert Double Source #

The latitude coordinate of this job's location.

jiLng :: Lens' JobsInsert Double Source #

The longitude coordinate of this job's location.

jiCustomField :: Lens' JobsInsert [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.