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 |
Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error.
See: Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.acknowledge
.
Synopsis
- type ProjectsSubscriptionsAcknowledgeResource = "v1" :> (CaptureMode "subscription" "acknowledge" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AcknowledgeRequest :> Post '[JSON] Empty))))))))
- projectsSubscriptionsAcknowledge :: AcknowledgeRequest -> Text -> ProjectsSubscriptionsAcknowledge
- data ProjectsSubscriptionsAcknowledge
- psaXgafv :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Xgafv)
- psaUploadProtocol :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text)
- psaAccessToken :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text)
- psaUploadType :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text)
- psaPayload :: Lens' ProjectsSubscriptionsAcknowledge AcknowledgeRequest
- psaSubscription :: Lens' ProjectsSubscriptionsAcknowledge Text
- psaCallback :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text)
REST Resource
type ProjectsSubscriptionsAcknowledgeResource = "v1" :> (CaptureMode "subscription" "acknowledge" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AcknowledgeRequest :> Post '[JSON] Empty)))))))) Source #
A resource alias for pubsub.projects.subscriptions.acknowledge
method which the
ProjectsSubscriptionsAcknowledge
request conforms to.
Creating a Request
projectsSubscriptionsAcknowledge Source #
Creates a value of ProjectsSubscriptionsAcknowledge
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSubscriptionsAcknowledge Source #
Acknowledges the messages associated with the `ack_ids` in the `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from the subscription. Acknowledging a message whose ack deadline has expired may succeed, but such a message may be redelivered later. Acknowledging a message more than once will not result in an error.
See: projectsSubscriptionsAcknowledge
smart constructor.
Instances
Request Lenses
psaUploadProtocol :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psaAccessToken :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text) Source #
OAuth access token.
psaUploadType :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psaPayload :: Lens' ProjectsSubscriptionsAcknowledge AcknowledgeRequest Source #
Multipart request metadata.
psaSubscription :: Lens' ProjectsSubscriptionsAcknowledge Text Source #
The subscription whose message is being acknowledged. Format is `projects/{project}/subscriptions/{sub}`.
psaCallback :: Lens' ProjectsSubscriptionsAcknowledge (Maybe Text) Source #
JSONP