{-# 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.Patch
(
AccountsContainersEnvironmentsPatchResource
, accountsContainersEnvironmentsPatch
, AccountsContainersEnvironmentsPatch
, acepPath
, acepFingerprint
, acepPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersEnvironmentsPatchResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Environment :>
Patch '[JSON] Environment
data AccountsContainersEnvironmentsPatch = AccountsContainersEnvironmentsPatch'
{ _acepPath :: !Text
, _acepFingerprint :: !(Maybe Text)
, _acepPayload :: !Environment
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersEnvironmentsPatch
:: Text
-> Environment
-> AccountsContainersEnvironmentsPatch
accountsContainersEnvironmentsPatch pAcepPath_ pAcepPayload_ =
AccountsContainersEnvironmentsPatch'
{ _acepPath = pAcepPath_
, _acepFingerprint = Nothing
, _acepPayload = pAcepPayload_
}
acepPath :: Lens' AccountsContainersEnvironmentsPatch Text
acepPath = lens _acepPath (\ s a -> s{_acepPath = a})
acepFingerprint :: Lens' AccountsContainersEnvironmentsPatch (Maybe Text)
acepFingerprint
= lens _acepFingerprint
(\ s a -> s{_acepFingerprint = a})
acepPayload :: Lens' AccountsContainersEnvironmentsPatch Environment
acepPayload
= lens _acepPayload (\ s a -> s{_acepPayload = a})
instance GoogleRequest
AccountsContainersEnvironmentsPatch where
type Rs AccountsContainersEnvironmentsPatch =
Environment
type Scopes AccountsContainersEnvironmentsPatch =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersEnvironmentsPatch'{..}
= go _acepPath _acepFingerprint (Just AltJSON)
_acepPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersEnvironmentsPatchResource)
mempty