gogol-taskqueue-0.3.0: Google TaskQueue 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.TaskQueue.Tasks.Insert

Contents

Description

Insert a new task in a TaskQueue

See: TaskQueue API Reference for taskqueue.tasks.insert.

Synopsis

REST Resource

type TasksInsertResource = "taskqueue" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("taskqueues" :> (Capture "taskqueue" Text :> ("tasks" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Task :> Post '[JSON] Task)))))))) Source #

A resource alias for taskqueue.tasks.insert method which the TasksInsert request conforms to.

Creating a Request

tasksInsert Source #

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

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

data TasksInsert Source #

Insert a new task in a TaskQueue

See: tasksInsert smart constructor.

Instances

Eq TasksInsert Source # 
Data TasksInsert Source # 

Methods

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

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

toConstr :: TasksInsert -> Constr #

dataTypeOf :: TasksInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show TasksInsert Source # 
Generic TasksInsert Source # 

Associated Types

type Rep TasksInsert :: * -> * #

GoogleRequest TasksInsert Source # 

Associated Types

type Rs TasksInsert :: * #

type Scopes TasksInsert :: [Symbol] #

type Rep TasksInsert Source # 
type Rep TasksInsert = D1 (MetaData "TasksInsert" "Network.Google.Resource.TaskQueue.Tasks.Insert" "gogol-taskqueue-0.3.0-De6GncU4nRo3TG29sWTEtK" False) (C1 (MetaCons "TasksInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_tiTaskQueue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_tiProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_tiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Task)))))
type Scopes TasksInsert Source # 
type Scopes TasksInsert = (:) Symbol "https://www.googleapis.com/auth/taskqueue" ((:) Symbol "https://www.googleapis.com/auth/taskqueue.consumer" ([] Symbol))
type Rs TasksInsert Source # 

Request Lenses

tiTaskQueue :: Lens' TasksInsert Text Source #

The taskqueue to insert the task into

tiProject :: Lens' TasksInsert Text Source #

The project under which the queue lies

tiPayload :: Lens' TasksInsert Task Source #

Multipart request metadata.