{-# 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.Operations.Get
(
ProjectsInstancesOperationsGetResource
, projectsInstancesOperationsGet
, ProjectsInstancesOperationsGet
, piogXgafv
, piogUploadProtocol
, piogAccessToken
, piogUploadType
, piogName
, piogCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesOperationsGetResource =
"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 ProjectsInstancesOperationsGet = ProjectsInstancesOperationsGet'
{ _piogXgafv :: !(Maybe Xgafv)
, _piogUploadProtocol :: !(Maybe Text)
, _piogAccessToken :: !(Maybe Text)
, _piogUploadType :: !(Maybe Text)
, _piogName :: !Text
, _piogCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesOperationsGet
:: Text
-> ProjectsInstancesOperationsGet
projectsInstancesOperationsGet pPiogName_ =
ProjectsInstancesOperationsGet'
{ _piogXgafv = Nothing
, _piogUploadProtocol = Nothing
, _piogAccessToken = Nothing
, _piogUploadType = Nothing
, _piogName = pPiogName_
, _piogCallback = Nothing
}
piogXgafv :: Lens' ProjectsInstancesOperationsGet (Maybe Xgafv)
piogXgafv
= lens _piogXgafv (\ s a -> s{_piogXgafv = a})
piogUploadProtocol :: Lens' ProjectsInstancesOperationsGet (Maybe Text)
piogUploadProtocol
= lens _piogUploadProtocol
(\ s a -> s{_piogUploadProtocol = a})
piogAccessToken :: Lens' ProjectsInstancesOperationsGet (Maybe Text)
piogAccessToken
= lens _piogAccessToken
(\ s a -> s{_piogAccessToken = a})
piogUploadType :: Lens' ProjectsInstancesOperationsGet (Maybe Text)
piogUploadType
= lens _piogUploadType
(\ s a -> s{_piogUploadType = a})
piogName :: Lens' ProjectsInstancesOperationsGet Text
piogName = lens _piogName (\ s a -> s{_piogName = a})
piogCallback :: Lens' ProjectsInstancesOperationsGet (Maybe Text)
piogCallback
= lens _piogCallback (\ s a -> s{_piogCallback = a})
instance GoogleRequest ProjectsInstancesOperationsGet
where
type Rs ProjectsInstancesOperationsGet = Operation
type Scopes ProjectsInstancesOperationsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient ProjectsInstancesOperationsGet'{..}
= go _piogName _piogXgafv _piogUploadProtocol
_piogAccessToken
_piogUploadType
_piogCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesOperationsGetResource)
mempty