{-# 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.TagManager.Accounts.Get
(
AccountsGetResource
, accountsGet
, AccountsGet
, agPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsGetResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Account
newtype AccountsGet = AccountsGet'
{ _agPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsGet
:: Text
-> AccountsGet
accountsGet pAgPath_ =
AccountsGet'
{ _agPath = pAgPath_
}
agPath :: Lens' AccountsGet Text
agPath = lens _agPath (\ s a -> s{_agPath = a})
instance GoogleRequest AccountsGet where
type Rs AccountsGet = Account
type Scopes AccountsGet =
'["https://www.googleapis.com/auth/tagmanager.edit.containers",
"https://www.googleapis.com/auth/tagmanager.manage.accounts",
"https://www.googleapis.com/auth/tagmanager.readonly"]
requestClient AccountsGet'{..}
= go _agPath (Just AltJSON) tagManagerService
where go
= buildClient (Proxy :: Proxy AccountsGetResource)
mempty