{-# 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.Undelete
(
AccountsContainersVersionsUndeleteResource
, accountsContainersVersionsUndelete
, AccountsContainersVersionsUndelete
, acvuPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersVersionsUndeleteResource =
"tagmanager" :>
"v2" :>
CaptureMode "path" "undelete" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] ContainerVersion
newtype AccountsContainersVersionsUndelete = AccountsContainersVersionsUndelete'
{ _acvuPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersVersionsUndelete
:: Text
-> AccountsContainersVersionsUndelete
accountsContainersVersionsUndelete pAcvuPath_ =
AccountsContainersVersionsUndelete'
{ _acvuPath = pAcvuPath_
}
acvuPath :: Lens' AccountsContainersVersionsUndelete Text
acvuPath = lens _acvuPath (\ s a -> s{_acvuPath = a})
instance GoogleRequest
AccountsContainersVersionsUndelete where
type Rs AccountsContainersVersionsUndelete =
ContainerVersion
type Scopes AccountsContainersVersionsUndelete =
'["https://www.googleapis.com/auth/tagmanager.edit.containerversions"]
requestClient AccountsContainersVersionsUndelete'{..}
= go _acvuPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersVersionsUndeleteResource)
mempty