{-# 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.Triggers.Update
(
AccountsContainersWorkspacesTriggersUpdateResource
, accountsContainersWorkspacesTriggersUpdate
, AccountsContainersWorkspacesTriggersUpdate
, acwtuPath
, acwtuFingerprint
, acwtuPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesTriggersUpdateResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Trigger :> Put '[JSON] Trigger
data AccountsContainersWorkspacesTriggersUpdate = AccountsContainersWorkspacesTriggersUpdate'
{ _acwtuPath :: !Text
, _acwtuFingerprint :: !(Maybe Text)
, _acwtuPayload :: !Trigger
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesTriggersUpdate
:: Text
-> Trigger
-> AccountsContainersWorkspacesTriggersUpdate
accountsContainersWorkspacesTriggersUpdate pAcwtuPath_ pAcwtuPayload_ =
AccountsContainersWorkspacesTriggersUpdate'
{ _acwtuPath = pAcwtuPath_
, _acwtuFingerprint = Nothing
, _acwtuPayload = pAcwtuPayload_
}
acwtuPath :: Lens' AccountsContainersWorkspacesTriggersUpdate Text
acwtuPath
= lens _acwtuPath (\ s a -> s{_acwtuPath = a})
acwtuFingerprint :: Lens' AccountsContainersWorkspacesTriggersUpdate (Maybe Text)
acwtuFingerprint
= lens _acwtuFingerprint
(\ s a -> s{_acwtuFingerprint = a})
acwtuPayload :: Lens' AccountsContainersWorkspacesTriggersUpdate Trigger
acwtuPayload
= lens _acwtuPayload (\ s a -> s{_acwtuPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesTriggersUpdate where
type Rs AccountsContainersWorkspacesTriggersUpdate =
Trigger
type Scopes
AccountsContainersWorkspacesTriggersUpdate
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesTriggersUpdate'{..}
= go _acwtuPath _acwtuFingerprint (Just AltJSON)
_acwtuPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesTriggersUpdateResource)
mempty