{-# 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.ResolveConflict
(
AccountsContainersWorkspacesResolveConflictResource
, accountsContainersWorkspacesResolveConflict
, AccountsContainersWorkspacesResolveConflict
, acwrcPath
, acwrcFingerprint
, acwrcPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesResolveConflictResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "resolve_conflict" Text :>
QueryParam "fingerprint" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Entity :> Post '[JSON] ()
data AccountsContainersWorkspacesResolveConflict = AccountsContainersWorkspacesResolveConflict'
{ _acwrcPath :: !Text
, _acwrcFingerprint :: !(Maybe Text)
, _acwrcPayload :: !Entity
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesResolveConflict
:: Text
-> Entity
-> AccountsContainersWorkspacesResolveConflict
accountsContainersWorkspacesResolveConflict pAcwrcPath_ pAcwrcPayload_ =
AccountsContainersWorkspacesResolveConflict'
{ _acwrcPath = pAcwrcPath_
, _acwrcFingerprint = Nothing
, _acwrcPayload = pAcwrcPayload_
}
acwrcPath :: Lens' AccountsContainersWorkspacesResolveConflict Text
acwrcPath
= lens _acwrcPath (\ s a -> s{_acwrcPath = a})
acwrcFingerprint :: Lens' AccountsContainersWorkspacesResolveConflict (Maybe Text)
acwrcFingerprint
= lens _acwrcFingerprint
(\ s a -> s{_acwrcFingerprint = a})
acwrcPayload :: Lens' AccountsContainersWorkspacesResolveConflict Entity
acwrcPayload
= lens _acwrcPayload (\ s a -> s{_acwrcPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesResolveConflict where
type Rs AccountsContainersWorkspacesResolveConflict =
()
type Scopes
AccountsContainersWorkspacesResolveConflict
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesResolveConflict'{..}
= go _acwrcPath _acwrcFingerprint (Just AltJSON)
_acwrcPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesResolveConflictResource)
mempty