{-# 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.Environments.Update
(
AccountsContainersEnvironmentsUpdateResource
, accountsContainersEnvironmentsUpdate
, AccountsContainersEnvironmentsUpdate
, aceuPath
, aceuFingerprint
, aceuPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersEnvironmentsUpdateResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Environment :>
Put '[JSON] Environment
data AccountsContainersEnvironmentsUpdate = AccountsContainersEnvironmentsUpdate'
{ _aceuPath :: !Text
, _aceuFingerprint :: !(Maybe Text)
, _aceuPayload :: !Environment
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersEnvironmentsUpdate
:: Text
-> Environment
-> AccountsContainersEnvironmentsUpdate
accountsContainersEnvironmentsUpdate pAceuPath_ pAceuPayload_ =
AccountsContainersEnvironmentsUpdate'
{ _aceuPath = pAceuPath_
, _aceuFingerprint = Nothing
, _aceuPayload = pAceuPayload_
}
aceuPath :: Lens' AccountsContainersEnvironmentsUpdate Text
aceuPath = lens _aceuPath (\ s a -> s{_aceuPath = a})
aceuFingerprint :: Lens' AccountsContainersEnvironmentsUpdate (Maybe Text)
aceuFingerprint
= lens _aceuFingerprint
(\ s a -> s{_aceuFingerprint = a})
aceuPayload :: Lens' AccountsContainersEnvironmentsUpdate Environment
aceuPayload
= lens _aceuPayload (\ s a -> s{_aceuPayload = a})
instance GoogleRequest
AccountsContainersEnvironmentsUpdate where
type Rs AccountsContainersEnvironmentsUpdate =
Environment
type Scopes AccountsContainersEnvironmentsUpdate =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersEnvironmentsUpdate'{..}
= go _aceuPath _aceuFingerprint (Just AltJSON)
_aceuPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersEnvironmentsUpdateResource)
mempty