{-# 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.Workspaces.Folders.Update
(
AccountsContainersWorkspacesFoldersUpdateResource
, accountsContainersWorkspacesFoldersUpdate
, AccountsContainersWorkspacesFoldersUpdate
, acwfuPath
, acwfuFingerprint
, acwfuPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesFoldersUpdateResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Folder :> Put '[JSON] Folder
data AccountsContainersWorkspacesFoldersUpdate = AccountsContainersWorkspacesFoldersUpdate'
{ _acwfuPath :: !Text
, _acwfuFingerprint :: !(Maybe Text)
, _acwfuPayload :: !Folder
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesFoldersUpdate
:: Text
-> Folder
-> AccountsContainersWorkspacesFoldersUpdate
accountsContainersWorkspacesFoldersUpdate pAcwfuPath_ pAcwfuPayload_ =
AccountsContainersWorkspacesFoldersUpdate'
{ _acwfuPath = pAcwfuPath_
, _acwfuFingerprint = Nothing
, _acwfuPayload = pAcwfuPayload_
}
acwfuPath :: Lens' AccountsContainersWorkspacesFoldersUpdate Text
acwfuPath
= lens _acwfuPath (\ s a -> s{_acwfuPath = a})
acwfuFingerprint :: Lens' AccountsContainersWorkspacesFoldersUpdate (Maybe Text)
acwfuFingerprint
= lens _acwfuFingerprint
(\ s a -> s{_acwfuFingerprint = a})
acwfuPayload :: Lens' AccountsContainersWorkspacesFoldersUpdate Folder
acwfuPayload
= lens _acwfuPayload (\ s a -> s{_acwfuPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesFoldersUpdate where
type Rs AccountsContainersWorkspacesFoldersUpdate =
Folder
type Scopes AccountsContainersWorkspacesFoldersUpdate
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesFoldersUpdate'{..}
= go _acwfuPath _acwfuFingerprint (Just AltJSON)
_acwfuPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesFoldersUpdateResource)
mempty