{-# 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.Versions.Update
(
AccountsContainersVersionsUpdateResource
, accountsContainersVersionsUpdate
, AccountsContainersVersionsUpdate
, acvucPath
, acvucFingerprint
, acvucPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersVersionsUpdateResource =
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ContainerVersion :>
Put '[JSON] ContainerVersion
data AccountsContainersVersionsUpdate = AccountsContainersVersionsUpdate'
{ _acvucPath :: !Text
, _acvucFingerprint :: !(Maybe Text)
, _acvucPayload :: !ContainerVersion
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersVersionsUpdate
:: Text
-> ContainerVersion
-> AccountsContainersVersionsUpdate
accountsContainersVersionsUpdate pAcvucPath_ pAcvucPayload_ =
AccountsContainersVersionsUpdate'
{ _acvucPath = pAcvucPath_
, _acvucFingerprint = Nothing
, _acvucPayload = pAcvucPayload_
}
acvucPath :: Lens' AccountsContainersVersionsUpdate Text
acvucPath
= lens _acvucPath (\ s a -> s{_acvucPath = a})
acvucFingerprint :: Lens' AccountsContainersVersionsUpdate (Maybe Text)
acvucFingerprint
= lens _acvucFingerprint
(\ s a -> s{_acvucFingerprint = a})
acvucPayload :: Lens' AccountsContainersVersionsUpdate ContainerVersion
acvucPayload
= lens _acvucPayload (\ s a -> s{_acvucPayload = a})
instance GoogleRequest
AccountsContainersVersionsUpdate where
type Rs AccountsContainersVersionsUpdate =
ContainerVersion
type Scopes AccountsContainersVersionsUpdate =
'["https://www.googleapis.com/auth/tagmanager.edit.containerversions"]
requestClient AccountsContainersVersionsUpdate'{..}
= go _acvucPath _acvucFingerprint (Just AltJSON)
_acvucPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersVersionsUpdateResource)
mempty