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 |
Removes an existing snapshot. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. BETA: This feature is part of a beta release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.
See: Cloud Pub/Sub API Reference for pubsub.projects.snapshots.delete
.
Synopsis
- type ProjectsSnapshotsDeleteResource = "v1" :> (Capture "snapshot" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))
- projectsSnapshotsDelete :: Text -> ProjectsSnapshotsDelete
- data ProjectsSnapshotsDelete
- proXgafv :: Lens' ProjectsSnapshotsDelete (Maybe Xgafv)
- proSnapshot :: Lens' ProjectsSnapshotsDelete Text
- proUploadProtocol :: Lens' ProjectsSnapshotsDelete (Maybe Text)
- proAccessToken :: Lens' ProjectsSnapshotsDelete (Maybe Text)
- proUploadType :: Lens' ProjectsSnapshotsDelete (Maybe Text)
- proCallback :: Lens' ProjectsSnapshotsDelete (Maybe Text)
REST Resource
type ProjectsSnapshotsDeleteResource = "v1" :> (Capture "snapshot" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))) Source #
A resource alias for pubsub.projects.snapshots.delete
method which the
ProjectsSnapshotsDelete
request conforms to.
Creating a Request
projectsSnapshotsDelete Source #
Creates a value of ProjectsSnapshotsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSnapshotsDelete Source #
Removes an existing snapshot. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot. BETA: This feature is part of a beta release. This API might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. When the snapshot is deleted, all messages retained in the snapshot are immediately dropped. After a snapshot is deleted, a new one may be created with the same name, but the new one has no association with the old snapshot or its subscription, unless the same subscription is specified.
See: projectsSnapshotsDelete
smart constructor.
Instances
Request Lenses
proSnapshot :: Lens' ProjectsSnapshotsDelete Text Source #
The name of the snapshot to delete. Format is `projects/{project}/snapshots/{snap}`.
proUploadProtocol :: Lens' ProjectsSnapshotsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
proAccessToken :: Lens' ProjectsSnapshotsDelete (Maybe Text) Source #
OAuth access token.
proUploadType :: Lens' ProjectsSnapshotsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
proCallback :: Lens' ProjectsSnapshotsDelete (Maybe Text) Source #
JSONP