{-# 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.Containers.Get
(
AccountsContainersGetResource
, accountsContainersGet
, AccountsContainersGet
, acgPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersGetResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Container
newtype AccountsContainersGet = AccountsContainersGet'
{ _acgPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersGet
:: Text
-> AccountsContainersGet
accountsContainersGet pAcgPath_ =
AccountsContainersGet'
{ _acgPath = pAcgPath_
}
acgPath :: Lens' AccountsContainersGet Text
acgPath = lens _acgPath (\ s a -> s{_acgPath = a})
instance GoogleRequest AccountsContainersGet where
type Rs AccountsContainersGet = Container
type Scopes AccountsContainersGet =
'["https://www.googleapis.com/auth/tagmanager.edit.containers",
"https://www.googleapis.com/auth/tagmanager.readonly"]
requestClient AccountsContainersGet'{..}
= go _acgPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy :: Proxy AccountsContainersGetResource)
mempty