{-# 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.Versions.Get
(
AccountsContainersVersionsGetResource
, accountsContainersVersionsGet
, AccountsContainersVersionsGet
, acvgPath
, acvgContainerVersionId
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersVersionsGetResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "containerVersionId" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ContainerVersion
data AccountsContainersVersionsGet = AccountsContainersVersionsGet'
{ _acvgPath :: !Text
, _acvgContainerVersionId :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersVersionsGet
:: Text
-> AccountsContainersVersionsGet
accountsContainersVersionsGet pAcvgPath_ =
AccountsContainersVersionsGet'
{ _acvgPath = pAcvgPath_
, _acvgContainerVersionId = Nothing
}
acvgPath :: Lens' AccountsContainersVersionsGet Text
acvgPath = lens _acvgPath (\ s a -> s{_acvgPath = a})
acvgContainerVersionId :: Lens' AccountsContainersVersionsGet (Maybe Text)
acvgContainerVersionId
= lens _acvgContainerVersionId
(\ s a -> s{_acvgContainerVersionId = a})
instance GoogleRequest AccountsContainersVersionsGet
where
type Rs AccountsContainersVersionsGet =
ContainerVersion
type Scopes AccountsContainersVersionsGet =
'["https://www.googleapis.com/auth/tagmanager.edit.containers",
"https://www.googleapis.com/auth/tagmanager.edit.containerversions",
"https://www.googleapis.com/auth/tagmanager.readonly"]
requestClient AccountsContainersVersionsGet'{..}
= go _acvgPath _acvgContainerVersionId (Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersVersionsGetResource)
mempty