gogol-cloudtasks-0.4.0: Google Cloud Tasks 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.CloudTasks.Projects.Locations.Queues.Tasks.Create

Contents

Description

Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For App Engine queues, the maximum task size is 100KB.

See: Cloud Tasks API Reference for cloudtasks.projects.locations.queues.tasks.create.

Synopsis

REST Resource

type ProjectsLocationsQueuesTasksCreateResource = "v2beta3" :> (Capture "parent" Text :> ("tasks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateTaskRequest :> Post '[JSON] Task))))))))) Source #

A resource alias for cloudtasks.projects.locations.queues.tasks.create method which the ProjectsLocationsQueuesTasksCreate request conforms to.

Creating a Request

data ProjectsLocationsQueuesTasksCreate Source #

Creates a task and adds it to a queue. Tasks cannot be updated after creation; there is no UpdateTask command. * For App Engine queues, the maximum task size is 100KB.

See: projectsLocationsQueuesTasksCreate smart constructor.

Instances
Eq ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

Data ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

Methods

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

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

toConstr :: ProjectsLocationsQueuesTasksCreate -> Constr #

dataTypeOf :: ProjectsLocationsQueuesTasksCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

Generic ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

Associated Types

type Rep ProjectsLocationsQueuesTasksCreate :: Type -> Type #

GoogleRequest ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

type Rep ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

type Rep ProjectsLocationsQueuesTasksCreate = D1 (MetaData "ProjectsLocationsQueuesTasksCreate" "Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create" "gogol-cloudtasks-0.4.0-JYw8G9RDcROAs8IJ376NEk" False) (C1 (MetaCons "ProjectsLocationsQueuesTasksCreate'" PrefixI True) ((S1 (MetaSel (Just "_plqtcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_plqtcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_plqtcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plqtcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plqtcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plqtcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateTaskRequest) :*: S1 (MetaSel (Just "_plqtcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

type Scopes ProjectsLocationsQueuesTasksCreate = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsLocationsQueuesTasksCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Tasks.Create

Request Lenses

plqtcParent :: Lens' ProjectsLocationsQueuesTasksCreate Text Source #

Required. The queue name. For example: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` The queue must already exist.

plqtcUploadProtocol :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

plqtcUploadType :: Lens' ProjectsLocationsQueuesTasksCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").