gogol-cloudtasks-0.5.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.Patch

Contents

Description

Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. 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.patch.

Synopsis

REST Resource

type ProjectsLocationsQueuesPatchResource = "v2" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Queue :> Patch '[JSON] Queue))))))))) Source #

A resource alias for cloudtasks.projects.locations.queues.patch method which the ProjectsLocationsQueuesPatch request conforms to.

Creating a Request

projectsLocationsQueuesPatch Source #

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

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

data ProjectsLocationsQueuesPatch Source #

Updates a queue. This method creates the queue if it does not exist and updates the queue if it does exist. 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: projectsLocationsQueuesPatch smart constructor.

Instances
Eq ProjectsLocationsQueuesPatch Source # 
Instance details

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

Data ProjectsLocationsQueuesPatch Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsLocationsQueuesPatch -> Constr #

dataTypeOf :: ProjectsLocationsQueuesPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsQueuesPatch Source # 
Instance details

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

Generic ProjectsLocationsQueuesPatch Source # 
Instance details

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

Associated Types

type Rep ProjectsLocationsQueuesPatch :: Type -> Type #

GoogleRequest ProjectsLocationsQueuesPatch Source # 
Instance details

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

type Rep ProjectsLocationsQueuesPatch Source # 
Instance details

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

type Rep ProjectsLocationsQueuesPatch = D1 (MetaData "ProjectsLocationsQueuesPatch" "Network.Google.Resource.CloudTasks.Projects.Locations.Queues.Patch" "gogol-cloudtasks-0.5.0-1OIp4lJq6ykJbnFcch0eRs" False) (C1 (MetaCons "ProjectsLocationsQueuesPatch'" PrefixI True) (((S1 (MetaSel (Just "_plqpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_plqpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plqpUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_plqpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plqpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plqpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Queue)) :*: (S1 (MetaSel (Just "_plqpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_plqpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsQueuesPatch Source # 
Instance details

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

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

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

Request Lenses

plqpUploadProtocol :: Lens' ProjectsLocationsQueuesPatch (Maybe Text) Source #

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

plqpUpdateMask :: Lens' ProjectsLocationsQueuesPatch (Maybe GFieldMask) Source #

A mask used to specify which fields of the queue are being updated. If empty, then all fields will be updated.

plqpUploadType :: Lens' ProjectsLocationsQueuesPatch (Maybe Text) Source #

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

plqpName :: Lens' ProjectsLocationsQueuesPatch Text Source #

Caller-specified and required in CreateQueue, after which it becomes output only. The queue name. The queue name must have the following format: `projects/PROJECT_ID/locations/LOCATION_ID/queues/QUEUE_ID` * `PROJECT_ID` can contain letters ([A-Za-z]), numbers ([0-9]), hyphens (-), colons (:), or periods (.). For more information, see Identifying projects * `LOCATION_ID` is the canonical ID for the queue's location. The list of available locations can be obtained by calling ListLocations. For more information, see https://cloud.google.com/about/locations/. * `QUEUE_ID` can contain letters ([A-Za-z]), numbers ([0-9]), or hyphens (-). The maximum length is 100 characters.