{-# 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.Variables.Update
(
AccountsContainersWorkspacesVariablesUpdateResource
, accountsContainersWorkspacesVariablesUpdate
, AccountsContainersWorkspacesVariablesUpdate
, acwvuPath
, acwvuFingerprint
, acwvuPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesVariablesUpdateResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Variable :> Put '[JSON] Variable
data AccountsContainersWorkspacesVariablesUpdate = AccountsContainersWorkspacesVariablesUpdate'
{ _acwvuPath :: !Text
, _acwvuFingerprint :: !(Maybe Text)
, _acwvuPayload :: !Variable
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesVariablesUpdate
:: Text
-> Variable
-> AccountsContainersWorkspacesVariablesUpdate
accountsContainersWorkspacesVariablesUpdate pAcwvuPath_ pAcwvuPayload_ =
AccountsContainersWorkspacesVariablesUpdate'
{ _acwvuPath = pAcwvuPath_
, _acwvuFingerprint = Nothing
, _acwvuPayload = pAcwvuPayload_
}
acwvuPath :: Lens' AccountsContainersWorkspacesVariablesUpdate Text
acwvuPath
= lens _acwvuPath (\ s a -> s{_acwvuPath = a})
acwvuFingerprint :: Lens' AccountsContainersWorkspacesVariablesUpdate (Maybe Text)
acwvuFingerprint
= lens _acwvuFingerprint
(\ s a -> s{_acwvuFingerprint = a})
acwvuPayload :: Lens' AccountsContainersWorkspacesVariablesUpdate Variable
acwvuPayload
= lens _acwvuPayload (\ s a -> s{_acwvuPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesVariablesUpdate where
type Rs AccountsContainersWorkspacesVariablesUpdate =
Variable
type Scopes
AccountsContainersWorkspacesVariablesUpdate
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesVariablesUpdate'{..}
= go _acwvuPath _acwvuFingerprint (Just AltJSON)
_acwvuPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesVariablesUpdateResource)
mempty