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 |
Gets a session. Returns `NOT_FOUND` if the session does not exist. This is mainly useful for determining whether a session is still alive.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.sessions.get
.
Synopsis
- type ProjectsInstancesDatabasesSessionsGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Session)))))))
- projectsInstancesDatabasesSessionsGet :: Text -> ProjectsInstancesDatabasesSessionsGet
- data ProjectsInstancesDatabasesSessionsGet
- pidsgXgafv :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Xgafv)
- pidsgUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text)
- pidsgAccessToken :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text)
- pidsgUploadType :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text)
- pidsgName :: Lens' ProjectsInstancesDatabasesSessionsGet Text
- pidsgCallback :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSessionsGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Session))))))) Source #
A resource alias for spanner.projects.instances.databases.sessions.get
method which the
ProjectsInstancesDatabasesSessionsGet
request conforms to.
Creating a Request
projectsInstancesDatabasesSessionsGet Source #
Creates a value of ProjectsInstancesDatabasesSessionsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSessionsGet Source #
Gets a session. Returns `NOT_FOUND` if the session does not exist. This is mainly useful for determining whether a session is still alive.
See: projectsInstancesDatabasesSessionsGet
smart constructor.
Instances
Request Lenses
pidsgXgafv :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Xgafv) Source #
V1 error format.
pidsgUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidsgAccessToken :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text) Source #
OAuth access token.
pidsgUploadType :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").