{-# 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.Update
(
AccountsContainersWorkspacesUpdateResource
, accountsContainersWorkspacesUpdate
, AccountsContainersWorkspacesUpdate
, acwuPath
, acwuFingerprint
, acwuPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesUpdateResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Workspace :> Put '[JSON] Workspace
data AccountsContainersWorkspacesUpdate = AccountsContainersWorkspacesUpdate'
{ _acwuPath :: !Text
, _acwuFingerprint :: !(Maybe Text)
, _acwuPayload :: !Workspace
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesUpdate
:: Text
-> Workspace
-> AccountsContainersWorkspacesUpdate
accountsContainersWorkspacesUpdate pAcwuPath_ pAcwuPayload_ =
AccountsContainersWorkspacesUpdate'
{ _acwuPath = pAcwuPath_
, _acwuFingerprint = Nothing
, _acwuPayload = pAcwuPayload_
}
acwuPath :: Lens' AccountsContainersWorkspacesUpdate Text
acwuPath = lens _acwuPath (\ s a -> s{_acwuPath = a})
acwuFingerprint :: Lens' AccountsContainersWorkspacesUpdate (Maybe Text)
acwuFingerprint
= lens _acwuFingerprint
(\ s a -> s{_acwuFingerprint = a})
acwuPayload :: Lens' AccountsContainersWorkspacesUpdate Workspace
acwuPayload
= lens _acwuPayload (\ s a -> s{_acwuPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesUpdate where
type Rs AccountsContainersWorkspacesUpdate =
Workspace
type Scopes AccountsContainersWorkspacesUpdate =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient AccountsContainersWorkspacesUpdate'{..}
= go _acwuPath _acwuFingerprint (Just AltJSON)
_acwuPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersWorkspacesUpdateResource)
mempty