{-# 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.Instances.Databases.Operations.Get
(
ProjectsInstancesDatabasesOperationsGetResource
, projectsInstancesDatabasesOperationsGet
, ProjectsInstancesDatabasesOperationsGet
, pidogXgafv
, pidogUploadProtocol
, pidogAccessToken
, pidogUploadType
, pidogName
, pidogCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesDatabasesOperationsGetResource
=
"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] Operation
data ProjectsInstancesDatabasesOperationsGet = ProjectsInstancesDatabasesOperationsGet'
{ _pidogXgafv :: !(Maybe Xgafv)
, _pidogUploadProtocol :: !(Maybe Text)
, _pidogAccessToken :: !(Maybe Text)
, _pidogUploadType :: !(Maybe Text)
, _pidogName :: !Text
, _pidogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDatabasesOperationsGet
:: Text
-> ProjectsInstancesDatabasesOperationsGet
projectsInstancesDatabasesOperationsGet pPidogName_ =
ProjectsInstancesDatabasesOperationsGet'
{ _pidogXgafv = Nothing
, _pidogUploadProtocol = Nothing
, _pidogAccessToken = Nothing
, _pidogUploadType = Nothing
, _pidogName = pPidogName_
, _pidogCallback = Nothing
}
pidogXgafv :: Lens' ProjectsInstancesDatabasesOperationsGet (Maybe Xgafv)
pidogXgafv
= lens _pidogXgafv (\ s a -> s{_pidogXgafv = a})
pidogUploadProtocol :: Lens' ProjectsInstancesDatabasesOperationsGet (Maybe Text)
pidogUploadProtocol
= lens _pidogUploadProtocol
(\ s a -> s{_pidogUploadProtocol = a})
pidogAccessToken :: Lens' ProjectsInstancesDatabasesOperationsGet (Maybe Text)
pidogAccessToken
= lens _pidogAccessToken
(\ s a -> s{_pidogAccessToken = a})
pidogUploadType :: Lens' ProjectsInstancesDatabasesOperationsGet (Maybe Text)
pidogUploadType
= lens _pidogUploadType
(\ s a -> s{_pidogUploadType = a})
pidogName :: Lens' ProjectsInstancesDatabasesOperationsGet Text
pidogName
= lens _pidogName (\ s a -> s{_pidogName = a})
pidogCallback :: Lens' ProjectsInstancesDatabasesOperationsGet (Maybe Text)
pidogCallback
= lens _pidogCallback
(\ s a -> s{_pidogCallback = a})
instance GoogleRequest
ProjectsInstancesDatabasesOperationsGet where
type Rs ProjectsInstancesDatabasesOperationsGet =
Operation
type Scopes ProjectsInstancesDatabasesOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient
ProjectsInstancesDatabasesOperationsGet'{..}
= go _pidogName _pidogXgafv _pidogUploadProtocol
_pidogAccessToken
_pidogUploadType
_pidogCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsInstancesDatabasesOperationsGetResource)
mempty