{-# 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.StorageTransfer.GoogleServiceAccounts.Get
(
GoogleServiceAccountsGetResource
, googleServiceAccountsGet
, GoogleServiceAccountsGet
, gsagXgafv
, gsagUploadProtocol
, gsagAccessToken
, gsagUploadType
, gsagProjectId
, gsagCallback
) where
import Network.Google.Prelude
import Network.Google.StorageTransfer.Types
type GoogleServiceAccountsGetResource =
"v1" :>
"googleServiceAccounts" :>
Capture "projectId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] GoogleServiceAccount
data GoogleServiceAccountsGet = GoogleServiceAccountsGet'
{ _gsagXgafv :: !(Maybe Xgafv)
, _gsagUploadProtocol :: !(Maybe Text)
, _gsagAccessToken :: !(Maybe Text)
, _gsagUploadType :: !(Maybe Text)
, _gsagProjectId :: !Text
, _gsagCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
googleServiceAccountsGet
:: Text
-> GoogleServiceAccountsGet
googleServiceAccountsGet pGsagProjectId_ =
GoogleServiceAccountsGet'
{ _gsagXgafv = Nothing
, _gsagUploadProtocol = Nothing
, _gsagAccessToken = Nothing
, _gsagUploadType = Nothing
, _gsagProjectId = pGsagProjectId_
, _gsagCallback = Nothing
}
gsagXgafv :: Lens' GoogleServiceAccountsGet (Maybe Xgafv)
gsagXgafv
= lens _gsagXgafv (\ s a -> s{_gsagXgafv = a})
gsagUploadProtocol :: Lens' GoogleServiceAccountsGet (Maybe Text)
gsagUploadProtocol
= lens _gsagUploadProtocol
(\ s a -> s{_gsagUploadProtocol = a})
gsagAccessToken :: Lens' GoogleServiceAccountsGet (Maybe Text)
gsagAccessToken
= lens _gsagAccessToken
(\ s a -> s{_gsagAccessToken = a})
gsagUploadType :: Lens' GoogleServiceAccountsGet (Maybe Text)
gsagUploadType
= lens _gsagUploadType
(\ s a -> s{_gsagUploadType = a})
gsagProjectId :: Lens' GoogleServiceAccountsGet Text
gsagProjectId
= lens _gsagProjectId
(\ s a -> s{_gsagProjectId = a})
gsagCallback :: Lens' GoogleServiceAccountsGet (Maybe Text)
gsagCallback
= lens _gsagCallback (\ s a -> s{_gsagCallback = a})
instance GoogleRequest GoogleServiceAccountsGet where
type Rs GoogleServiceAccountsGet =
GoogleServiceAccount
type Scopes GoogleServiceAccountsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient GoogleServiceAccountsGet'{..}
= go _gsagProjectId _gsagXgafv _gsagUploadProtocol
_gsagAccessToken
_gsagUploadType
_gsagCallback
(Just AltJSON)
storageTransferService
where go
= buildClient
(Proxy :: Proxy GoogleServiceAccountsGetResource)
mempty