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 |
Updates 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. Note that certain properties of a snapshot are not modifiable.
See: Cloud Pub/Sub API Reference for pubsub.projects.snapshots.patch
.
Synopsis
- type ProjectsSnapshotsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateSnapshotRequest :> Patch '[JSON] Snapshot))))))))
- projectsSnapshotsPatch :: UpdateSnapshotRequest -> Text -> ProjectsSnapshotsPatch
- data ProjectsSnapshotsPatch
- ppXgafv :: Lens' ProjectsSnapshotsPatch (Maybe Xgafv)
- ppUploadProtocol :: Lens' ProjectsSnapshotsPatch (Maybe Text)
- ppAccessToken :: Lens' ProjectsSnapshotsPatch (Maybe Text)
- ppUploadType :: Lens' ProjectsSnapshotsPatch (Maybe Text)
- ppPayload :: Lens' ProjectsSnapshotsPatch UpdateSnapshotRequest
- ppName :: Lens' ProjectsSnapshotsPatch Text
- ppCallback :: Lens' ProjectsSnapshotsPatch (Maybe Text)
REST Resource
type ProjectsSnapshotsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateSnapshotRequest :> Patch '[JSON] Snapshot)))))))) Source #
A resource alias for pubsub.projects.snapshots.patch
method which the
ProjectsSnapshotsPatch
request conforms to.
Creating a Request
projectsSnapshotsPatch Source #
Creates a value of ProjectsSnapshotsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSnapshotsPatch Source #
Updates 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. Note that certain properties of a snapshot are not modifiable.
See: projectsSnapshotsPatch
smart constructor.
Instances
Request Lenses
ppUploadProtocol :: Lens' ProjectsSnapshotsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ppAccessToken :: Lens' ProjectsSnapshotsPatch (Maybe Text) Source #
OAuth access token.
ppUploadType :: Lens' ProjectsSnapshotsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ppPayload :: Lens' ProjectsSnapshotsPatch UpdateSnapshotRequest Source #
Multipart request metadata.
ppCallback :: Lens' ProjectsSnapshotsPatch (Maybe Text) Source #
JSONP