{-# 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.Update
(
AccountsContainersUpdateResource
, accountsContainersUpdate
, AccountsContainersUpdate
, acuPath
, acuFingerprint
, acuPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersUpdateResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Container :> Put '[JSON] Container
data AccountsContainersUpdate = AccountsContainersUpdate'
{ _acuPath :: !Text
, _acuFingerprint :: !(Maybe Text)
, _acuPayload :: !Container
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersUpdate
:: Text
-> Container
-> AccountsContainersUpdate
accountsContainersUpdate pAcuPath_ pAcuPayload_ =
AccountsContainersUpdate'
{ _acuPath = pAcuPath_
, _acuFingerprint = Nothing
, _acuPayload = pAcuPayload_
}
acuPath :: Lens' AccountsContainersUpdate Text
acuPath = lens _acuPath (\ s a -> s{_acuPath = a})
acuFingerprint :: Lens' AccountsContainersUpdate (Maybe Text)
acuFingerprint
= lens _acuFingerprint
(\ s a -> s{_acuFingerprint = a})
acuPayload :: Lens' AccountsContainersUpdate Container
acuPayload
= lens _acuPayload (\ s a -> s{_acuPayload = a})
instance GoogleRequest AccountsContainersUpdate where
type Rs AccountsContainersUpdate = Container
type Scopes AccountsContainersUpdate =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient AccountsContainersUpdate'{..}
= go _acuPath _acuFingerprint (Just AltJSON)
_acuPayload
tagManagerService
where go
= buildClient
(Proxy :: Proxy AccountsContainersUpdateResource)
mempty