{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Spanner.Projects.InstanceConfigs.Get
(
ProjectsInstanceConfigsGetResource
, projectsInstanceConfigsGet
, ProjectsInstanceConfigsGet
, picgXgafv
, picgUploadProtocol
, picgAccessToken
, picgUploadType
, picgName
, picgCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstanceConfigsGetResource =
"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] InstanceConfig
data ProjectsInstanceConfigsGet = ProjectsInstanceConfigsGet'
{ _picgXgafv :: !(Maybe Xgafv)
, _picgUploadProtocol :: !(Maybe Text)
, _picgAccessToken :: !(Maybe Text)
, _picgUploadType :: !(Maybe Text)
, _picgName :: !Text
, _picgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstanceConfigsGet
:: Text
-> ProjectsInstanceConfigsGet
projectsInstanceConfigsGet pPicgName_ =
ProjectsInstanceConfigsGet'
{ _picgXgafv = Nothing
, _picgUploadProtocol = Nothing
, _picgAccessToken = Nothing
, _picgUploadType = Nothing
, _picgName = pPicgName_
, _picgCallback = Nothing
}
picgXgafv :: Lens' ProjectsInstanceConfigsGet (Maybe Xgafv)
picgXgafv
= lens _picgXgafv (\ s a -> s{_picgXgafv = a})
picgUploadProtocol :: Lens' ProjectsInstanceConfigsGet (Maybe Text)
picgUploadProtocol
= lens _picgUploadProtocol
(\ s a -> s{_picgUploadProtocol = a})
picgAccessToken :: Lens' ProjectsInstanceConfigsGet (Maybe Text)
picgAccessToken
= lens _picgAccessToken
(\ s a -> s{_picgAccessToken = a})
picgUploadType :: Lens' ProjectsInstanceConfigsGet (Maybe Text)
picgUploadType
= lens _picgUploadType
(\ s a -> s{_picgUploadType = a})
picgName :: Lens' ProjectsInstanceConfigsGet Text
picgName = lens _picgName (\ s a -> s{_picgName = a})
picgCallback :: Lens' ProjectsInstanceConfigsGet (Maybe Text)
picgCallback
= lens _picgCallback (\ s a -> s{_picgCallback = a})
instance GoogleRequest ProjectsInstanceConfigsGet
where
type Rs ProjectsInstanceConfigsGet = InstanceConfig
type Scopes ProjectsInstanceConfigsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient ProjectsInstanceConfigsGet'{..}
= go _picgName _picgXgafv _picgUploadProtocol
_picgAccessToken
_picgUploadType
_picgCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy :: Proxy ProjectsInstanceConfigsGetResource)
mempty