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 |
Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via ResumeQueue. Tasks can still be added when the queue is paused. A queue is paused if its state is PAUSED.
See: Cloud Tasks API Reference for cloudtasks.projects.locations.queues.pause
.
Synopsis
- type ProjectsLocationsQueuesPauseResource = "v2beta3" :> (CaptureMode "name" "pause" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PauseQueueRequest :> Post '[JSON] Queue))))))))
- projectsLocationsQueuesPause :: PauseQueueRequest -> Text -> ProjectsLocationsQueuesPause
- data ProjectsLocationsQueuesPause
- proXgafv :: Lens' ProjectsLocationsQueuesPause (Maybe Xgafv)
- proUploadProtocol :: Lens' ProjectsLocationsQueuesPause (Maybe Text)
- proAccessToken :: Lens' ProjectsLocationsQueuesPause (Maybe Text)
- proUploadType :: Lens' ProjectsLocationsQueuesPause (Maybe Text)
- proPayload :: Lens' ProjectsLocationsQueuesPause PauseQueueRequest
- proName :: Lens' ProjectsLocationsQueuesPause Text
- proCallback :: Lens' ProjectsLocationsQueuesPause (Maybe Text)
REST Resource
type ProjectsLocationsQueuesPauseResource = "v2beta3" :> (CaptureMode "name" "pause" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] PauseQueueRequest :> Post '[JSON] Queue)))))))) Source #
A resource alias for cloudtasks.projects.locations.queues.pause
method which the
ProjectsLocationsQueuesPause
request conforms to.
Creating a Request
projectsLocationsQueuesPause Source #
Creates a value of ProjectsLocationsQueuesPause
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsQueuesPause Source #
Pauses the queue. If a queue is paused then the system will stop dispatching tasks until the queue is resumed via ResumeQueue. Tasks can still be added when the queue is paused. A queue is paused if its state is PAUSED.
See: projectsLocationsQueuesPause
smart constructor.
Instances
Request Lenses
proUploadProtocol :: Lens' ProjectsLocationsQueuesPause (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
proAccessToken :: Lens' ProjectsLocationsQueuesPause (Maybe Text) Source #
OAuth access token.
proUploadType :: Lens' ProjectsLocationsQueuesPause (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
proPayload :: Lens' ProjectsLocationsQueuesPause PauseQueueRequest Source #
Multipart request metadata.
proName :: Lens' ProjectsLocationsQueuesPause Text Source #
Required. The queue name. For example: `projects/PROJECT_ID/location/LOCATION_ID/queues/QUEUE_ID`
proCallback :: Lens' ProjectsLocationsQueuesPause (Maybe Text) Source #
JSONP