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