{-# 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.SetLatest
(
AccountsContainersVersionsSetLatestResource
, accountsContainersVersionsSetLatest
, AccountsContainersVersionsSetLatest
, acvslPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersVersionsSetLatestResource =
"tagmanager" :>
"v2" :>
CaptureMode "path" "set_latest" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] ContainerVersion
newtype AccountsContainersVersionsSetLatest = AccountsContainersVersionsSetLatest'
{ _acvslPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersVersionsSetLatest
:: Text
-> AccountsContainersVersionsSetLatest
accountsContainersVersionsSetLatest pAcvslPath_ =
AccountsContainersVersionsSetLatest'
{ _acvslPath = pAcvslPath_
}
acvslPath :: Lens' AccountsContainersVersionsSetLatest Text
acvslPath
= lens _acvslPath (\ s a -> s{_acvslPath = a})
instance GoogleRequest
AccountsContainersVersionsSetLatest where
type Rs AccountsContainersVersionsSetLatest =
ContainerVersion
type Scopes AccountsContainersVersionsSetLatest =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersVersionsSetLatest'{..}
= go _acvslPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersVersionsSetLatestResource)
mempty