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