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 all sessions in a given database.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.list
.
Synopsis
- type ProjectsInstancesDatabasesSessionsListResource = "v1" :> (Capture "database" Text :> ("sessions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListSessionsResponse)))))))))))
- projectsInstancesDatabasesSessionsList :: Text -> ProjectsInstancesDatabasesSessionsList
- data ProjectsInstancesDatabasesSessionsList
- pidslXgafv :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Xgafv)
- pidslUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
- pidslDatabase :: Lens' ProjectsInstancesDatabasesSessionsList Text
- pidslAccessToken :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
- pidslUploadType :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
- pidslFilter :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
- pidslPageToken :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
- pidslPageSize :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Int32)
- pidslCallback :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsListResource = "v1" :> (Capture "database" Text :> ("sessions" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListSessionsResponse))))))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.list
method which the
ProjectsInstancesDatabasesSessionsList
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsList Source #
Creates a value of ProjectsInstancesDatabasesSessionsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsList Source #
Lists all sessions in a given database.
See: projectsInstancesDatabasesSessionsList
smart constructor.
Instances
Request Lenses
pidslXgafv :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Xgafv) Source #
V1 error format.
pidslUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidslDatabase :: Lens' ProjectsInstancesDatabasesSessionsList Text Source #
Required. The database in which to list sessions.
pidslAccessToken :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text) Source #
OAuth access token.
pidslUploadType :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidslFilter :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text) Source #
An expression for filtering the results of the request. Filter rules are case insensitive. The fields eligible for filtering are: * `labels.key` where key is the name of a label Some examples of using filters are: * `labels.env:*` --> The session has the label "env". * `labels.env:dev` --> The session has the label "env" and the value of the label contains the string "dev".
pidslPageToken :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Text) Source #
If non-empty, `page_token` should contain a next_page_token from a previous ListSessionsResponse.
pidslPageSize :: Lens' ProjectsInstancesDatabasesSessionsList (Maybe Int32) Source #
Number of sessions to be returned in the response. If 0 or less, defaults to the server's maximum allowed page size.