{-# 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.Folders.MoveEntitiesToFolder
(
AccountsContainersWorkspacesFoldersMoveEntitiesToFolderResource
, accountsContainersWorkspacesFoldersMoveEntitiesToFolder
, AccountsContainersWorkspacesFoldersMoveEntitiesToFolder
, acwfmetfPath
, acwfmetfTriggerId
, acwfmetfVariableId
, acwfmetfPayload
, acwfmetfTagId
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesFoldersMoveEntitiesToFolderResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "move_entities_to_folder" Text :>
QueryParams "triggerId" Text :>
QueryParams "variableId" Text :>
QueryParams "tagId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Folder :> Post '[JSON] ()
data AccountsContainersWorkspacesFoldersMoveEntitiesToFolder = AccountsContainersWorkspacesFoldersMoveEntitiesToFolder'
{ _acwfmetfPath :: !Text
, _acwfmetfTriggerId :: !(Maybe [Text])
, _acwfmetfVariableId :: !(Maybe [Text])
, _acwfmetfPayload :: !Folder
, _acwfmetfTagId :: !(Maybe [Text])
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesFoldersMoveEntitiesToFolder
:: Text
-> Folder
-> AccountsContainersWorkspacesFoldersMoveEntitiesToFolder
accountsContainersWorkspacesFoldersMoveEntitiesToFolder pAcwfmetfPath_ pAcwfmetfPayload_ =
AccountsContainersWorkspacesFoldersMoveEntitiesToFolder'
{ _acwfmetfPath = pAcwfmetfPath_
, _acwfmetfTriggerId = Nothing
, _acwfmetfVariableId = Nothing
, _acwfmetfPayload = pAcwfmetfPayload_
, _acwfmetfTagId = Nothing
}
acwfmetfPath :: Lens' AccountsContainersWorkspacesFoldersMoveEntitiesToFolder Text
acwfmetfPath
= lens _acwfmetfPath (\ s a -> s{_acwfmetfPath = a})
acwfmetfTriggerId :: Lens' AccountsContainersWorkspacesFoldersMoveEntitiesToFolder [Text]
acwfmetfTriggerId
= lens _acwfmetfTriggerId
(\ s a -> s{_acwfmetfTriggerId = a})
. _Default
. _Coerce
acwfmetfVariableId :: Lens' AccountsContainersWorkspacesFoldersMoveEntitiesToFolder [Text]
acwfmetfVariableId
= lens _acwfmetfVariableId
(\ s a -> s{_acwfmetfVariableId = a})
. _Default
. _Coerce
acwfmetfPayload :: Lens' AccountsContainersWorkspacesFoldersMoveEntitiesToFolder Folder
acwfmetfPayload
= lens _acwfmetfPayload
(\ s a -> s{_acwfmetfPayload = a})
acwfmetfTagId :: Lens' AccountsContainersWorkspacesFoldersMoveEntitiesToFolder [Text]
acwfmetfTagId
= lens _acwfmetfTagId
(\ s a -> s{_acwfmetfTagId = a})
. _Default
. _Coerce
instance GoogleRequest
AccountsContainersWorkspacesFoldersMoveEntitiesToFolder
where
type Rs
AccountsContainersWorkspacesFoldersMoveEntitiesToFolder
= ()
type Scopes
AccountsContainersWorkspacesFoldersMoveEntitiesToFolder
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesFoldersMoveEntitiesToFolder'{..}
= go _acwfmetfPath (_acwfmetfTriggerId ^. _Default)
(_acwfmetfVariableId ^. _Default)
(_acwfmetfTagId ^. _Default)
(Just AltJSON)
_acwfmetfPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesFoldersMoveEntitiesToFolderResource)
mempty