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

Contents

Description

Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read Overview of Queue Management and queue.yaml before using this method.

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

Synopsis

REST Resource

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

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

Creating a Request

projectsLocationsQueuesCreate Source #

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

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

data ProjectsLocationsQueuesCreate Source #

Creates a queue. Queues created with this method allow tasks to live for a maximum of 31 days. After a task is 31 days old, the task will be deleted regardless of whether it was dispatched or not. WARNING: Using this method may have unintended side effects if you are using an App Engine `queue.yaml` or `queue.xml` file to manage your queues. Read Overview of Queue Management and queue.yaml before using this method.

See: projectsLocationsQueuesCreate smart constructor.

Instances
Eq ProjectsLocationsQueuesCreate Source # 
Instance details

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

Data ProjectsLocationsQueuesCreate Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsLocationsQueuesCreate -> Constr #

dataTypeOf :: ProjectsLocationsQueuesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsQueuesCreate Source # 
Instance details

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

Generic ProjectsLocationsQueuesCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsLocationsQueuesCreate :: Type -> Type #

GoogleRequest ProjectsLocationsQueuesCreate Source # 
Instance details

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

type Rep ProjectsLocationsQueuesCreate Source # 
Instance details

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

type Rep ProjectsLocationsQueuesCreate = D1 (MetaData "ProjectsLocationsQueuesCreate" "Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Create" "gogol-cloudtasks-0.4.0-JYw8G9RDcROAs8IJ376NEk" False) (C1 (MetaCons "ProjectsLocationsQueuesCreate'" PrefixI True) ((S1 (MetaSel (Just "_plqcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_plqcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_plqcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plqcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plqcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plqcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Queue) :*: S1 (MetaSel (Just "_plqcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsQueuesCreate Source # 
Instance details

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

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

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

Request Lenses

plqcParent :: Lens' ProjectsLocationsQueuesCreate Text Source #

Required. The location name in which the queue will be created. For example: `projects/PROJECT_ID/locations/LOCATION_ID` The list of allowed locations can be obtained by calling Cloud Tasks' implementation of ListLocations.

plqcUploadProtocol :: Lens' ProjectsLocationsQueuesCreate (Maybe Text) Source #

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

plqcUploadType :: Lens' ProjectsLocationsQueuesCreate (Maybe Text) Source #

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