{-# 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.VersionHeaders.Latest
(
AccountsContainersVersionHeadersLatestResource
, accountsContainersVersionHeadersLatest
, AccountsContainersVersionHeadersLatest
, acvhlParent
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersVersionHeadersLatestResource =
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"version_headers:latest" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ContainerVersionHeader
newtype AccountsContainersVersionHeadersLatest = AccountsContainersVersionHeadersLatest'
{ _acvhlParent :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersVersionHeadersLatest
:: Text
-> AccountsContainersVersionHeadersLatest
accountsContainersVersionHeadersLatest pAcvhlParent_ =
AccountsContainersVersionHeadersLatest'
{ _acvhlParent = pAcvhlParent_
}
acvhlParent :: Lens' AccountsContainersVersionHeadersLatest Text
acvhlParent
= lens _acvhlParent (\ s a -> s{_acvhlParent = a})
instance GoogleRequest
AccountsContainersVersionHeadersLatest where
type Rs AccountsContainersVersionHeadersLatest =
ContainerVersionHeader
type Scopes AccountsContainersVersionHeadersLatest =
'["https://www.googleapis.com/auth/tagmanager.edit.containers",
"https://www.googleapis.com/auth/tagmanager.readonly"]
requestClient
AccountsContainersVersionHeadersLatest'{..}
= go _acvhlParent (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersVersionHeadersLatestResource)
mempty