Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.
See: Cloud Tasks API Reference for cloudtasks.projects.locations.queues.purge
.
Synopsis
- type ProjectsLocationsQueuesPurgeResource = "v2beta3" :> (CaptureMode "name" "purge" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PurgeQueueRequest :> Post '[JSON] Queue))))))))
- projectsLocationsQueuesPurge :: PurgeQueueRequest -> Text -> ProjectsLocationsQueuesPurge
- data ProjectsLocationsQueuesPurge
- pXgafv :: Lens' ProjectsLocationsQueuesPurge (Maybe Xgafv)
- pUploadProtocol :: Lens' ProjectsLocationsQueuesPurge (Maybe Text)
- pAccessToken :: Lens' ProjectsLocationsQueuesPurge (Maybe Text)
- pUploadType :: Lens' ProjectsLocationsQueuesPurge (Maybe Text)
- pPayload :: Lens' ProjectsLocationsQueuesPurge PurgeQueueRequest
- pName :: Lens' ProjectsLocationsQueuesPurge Text
- pCallback :: Lens' ProjectsLocationsQueuesPurge (Maybe Text)
REST Resource
type ProjectsLocationsQueuesPurgeResource = "v2beta3" :> (CaptureMode "name" "purge" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PurgeQueueRequest :> Post '[JSON] Queue)))))))) Source #
A resource alias for cloudtasks.projects.locations.queues.purge
method which the
ProjectsLocationsQueuesPurge
request conforms to.
Creating a Request
projectsLocationsQueuesPurge Source #
Creates a value of ProjectsLocationsQueuesPurge
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsQueuesPurge Source #
Purges a queue by deleting all of its tasks. All tasks created before this method is called are permanently deleted. Purge operations can take up to one minute to take effect. Tasks might be dispatched before the purge takes effect. A purge is irreversible.
See: projectsLocationsQueuesPurge
smart constructor.
Instances
Request Lenses
pUploadProtocol :: Lens' ProjectsLocationsQueuesPurge (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pAccessToken :: Lens' ProjectsLocationsQueuesPurge (Maybe Text) Source #
OAuth access token.
pUploadType :: Lens' ProjectsLocationsQueuesPurge (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pPayload :: Lens' ProjectsLocationsQueuesPurge PurgeQueueRequest Source #
Multipart request metadata.