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 |
Lists the existing snapshots. 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.
See: Cloud Pub/Sub API Reference for pubsub.projects.snapshots.list
.
Synopsis
- type ProjectsSnapshotsListResource = "v1" :> (Capture "project" Text :> ("snapshots" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListSnapshotsResponse))))))))))
- projectsSnapshotsList :: Text -> ProjectsSnapshotsList
- data ProjectsSnapshotsList
- pslsXgafv :: Lens' ProjectsSnapshotsList (Maybe Xgafv)
- pslsUploadProtocol :: Lens' ProjectsSnapshotsList (Maybe Text)
- pslsProject :: Lens' ProjectsSnapshotsList Text
- pslsAccessToken :: Lens' ProjectsSnapshotsList (Maybe Text)
- pslsUploadType :: Lens' ProjectsSnapshotsList (Maybe Text)
- pslsPageToken :: Lens' ProjectsSnapshotsList (Maybe Text)
- pslsPageSize :: Lens' ProjectsSnapshotsList (Maybe Int32)
- pslsCallback :: Lens' ProjectsSnapshotsList (Maybe Text)
REST Resource
type ProjectsSnapshotsListResource = "v1" :> (Capture "project" Text :> ("snapshots" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListSnapshotsResponse)))))))))) Source #
A resource alias for pubsub.projects.snapshots.list
method which the
ProjectsSnapshotsList
request conforms to.
Creating a Request
projectsSnapshotsList Source #
Creates a value of ProjectsSnapshotsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSnapshotsList Source #
Lists the existing snapshots. 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.
See: projectsSnapshotsList
smart constructor.
Instances
Request Lenses
pslsUploadProtocol :: Lens' ProjectsSnapshotsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pslsProject :: Lens' ProjectsSnapshotsList Text Source #
The name of the project in which to list snapshots. Format is `projects/{project-id}`.
pslsAccessToken :: Lens' ProjectsSnapshotsList (Maybe Text) Source #
OAuth access token.
pslsUploadType :: Lens' ProjectsSnapshotsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pslsPageToken :: Lens' ProjectsSnapshotsList (Maybe Text) Source #
The value returned by the last `ListSnapshotsResponse`; indicates that this is a continuation of a prior `ListSnapshots` call, and that the system should return the next page of data.
pslsPageSize :: Lens' ProjectsSnapshotsList (Maybe Int32) Source #
Maximum number of snapshots to return.
pslsCallback :: Lens' ProjectsSnapshotsList (Maybe Text) Source #
JSONP