gogol-maps-coordinate-0.1.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.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.

Instances

Eq JobsUpdate Source # 
Data JobsUpdate Source # 

Methods

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

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

toConstr :: JobsUpdate -> Constr #

dataTypeOf :: JobsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show JobsUpdate Source # 
Generic JobsUpdate Source # 

Associated Types

type Rep JobsUpdate :: * -> * #

GoogleRequest JobsUpdate Source # 

Associated Types

type Rs JobsUpdate :: * #

type Scopes JobsUpdate :: [Symbol] #

type Rep JobsUpdate Source # 
type Rep JobsUpdate = D1 (MetaData "JobsUpdate" "Network.Google.Resource.Coordinate.Jobs.Update" "gogol-maps-coordinate-0.1.0-HhQI1Znxer04RVvLQVf5Aq" False) (C1 (MetaCons "JobsUpdate'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_juJobId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Word64))) ((:*:) (S1 (MetaSel (Just Symbol "_juProgress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe JobsUpdateProgress))) (S1 (MetaSel (Just Symbol "_juNote") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_juTeamId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_juCustomerPhoneNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_juCustomerName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_juAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_juPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Job)) (S1 (MetaSel (Just Symbol "_juAssignee") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_juLat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Double)))) (S1 (MetaSel (Just Symbol "_juLng") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Double))))) ((:*:) (S1 (MetaSel (Just Symbol "_juTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_juCustomField") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))))
type Scopes JobsUpdate Source # 
type Scopes JobsUpdate = (:) Symbol "https://www.googleapis.com/auth/coordinate" ([] Symbol)
type Rs JobsUpdate Source # 

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.