{-# 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.Live
(
AccountsContainersVersionsLiveResource
, accountsContainersVersionsLive
, AccountsContainersVersionsLive
, acvlParent
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersVersionsLiveResource =
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"versions:live" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ContainerVersion
newtype AccountsContainersVersionsLive = AccountsContainersVersionsLive'
{ _acvlParent :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersVersionsLive
:: Text
-> AccountsContainersVersionsLive
accountsContainersVersionsLive pAcvlParent_ =
AccountsContainersVersionsLive'
{ _acvlParent = pAcvlParent_
}
acvlParent :: Lens' AccountsContainersVersionsLive Text
acvlParent
= lens _acvlParent (\ s a -> s{_acvlParent = a})
instance GoogleRequest AccountsContainersVersionsLive
where
type Rs AccountsContainersVersionsLive =
ContainerVersion
type Scopes AccountsContainersVersionsLive =
'["https://www.googleapis.com/auth/tagmanager.edit.containers",
"https://www.googleapis.com/auth/tagmanager.readonly"]
requestClient AccountsContainersVersionsLive'{..}
= go _acvlParent (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersVersionsLiveResource)
mempty