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