gogol-spanner-0.4.0: Google Cloud Spanner SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

Contents

Description

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

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
Eq ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

Data ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsInstancesDatabasesSessionsGet -> c ProjectsInstancesDatabasesSessionsGet #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsInstancesDatabasesSessionsGet #

toConstr :: ProjectsInstancesDatabasesSessionsGet -> Constr #

dataTypeOf :: ProjectsInstancesDatabasesSessionsGet -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsInstancesDatabasesSessionsGet) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsInstancesDatabasesSessionsGet) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsInstancesDatabasesSessionsGet -> ProjectsInstancesDatabasesSessionsGet #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesSessionsGet -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsInstancesDatabasesSessionsGet -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesSessionsGet -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsInstancesDatabasesSessionsGet -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsGet -> m ProjectsInstancesDatabasesSessionsGet #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsGet -> m ProjectsInstancesDatabasesSessionsGet #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsInstancesDatabasesSessionsGet -> m ProjectsInstancesDatabasesSessionsGet #

Show ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

Generic ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

GoogleRequest ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

type Rep ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

type Rep ProjectsInstancesDatabasesSessionsGet = D1 (MetaData "ProjectsInstancesDatabasesSessionsGet" "Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get" "gogol-spanner-0.4.0-Gx6Dlj0rchWGrfXCDHk4fo" False) (C1 (MetaCons "ProjectsInstancesDatabasesSessionsGet'" PrefixI True) ((S1 (MetaSel (Just "_pidsgXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pidsgUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pidsgAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_pidsgUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pidsgName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pidsgCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

type Scopes ProjectsInstancesDatabasesSessionsGet = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/spanner.data" ': ([] :: [Symbol]))
type Rs ProjectsInstancesDatabasesSessionsGet Source # 
Instance details

Defined in Network.Google.Resource.Spanner.Projects.Instances.Databases.Sessions.Get

Request Lenses

pidsgUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

pidsgUploadType :: Lens' ProjectsInstancesDatabasesSessionsGet (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

pidsgName :: Lens' ProjectsInstancesDatabasesSessionsGet Text Source #

Required. The name of the session to retrieve.