{-# 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.Create
(
AccountsContainersWorkspacesFoldersCreateResource
, accountsContainersWorkspacesFoldersCreate
, AccountsContainersWorkspacesFoldersCreate
, acwfcParent
, acwfcPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesFoldersCreateResource
=
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"folders" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Folder :> Post '[JSON] Folder
data AccountsContainersWorkspacesFoldersCreate = AccountsContainersWorkspacesFoldersCreate'
{ _acwfcParent :: !Text
, _acwfcPayload :: !Folder
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesFoldersCreate
:: Text
-> Folder
-> AccountsContainersWorkspacesFoldersCreate
accountsContainersWorkspacesFoldersCreate pAcwfcParent_ pAcwfcPayload_ =
AccountsContainersWorkspacesFoldersCreate'
{ _acwfcParent = pAcwfcParent_
, _acwfcPayload = pAcwfcPayload_
}
acwfcParent :: Lens' AccountsContainersWorkspacesFoldersCreate Text
acwfcParent
= lens _acwfcParent (\ s a -> s{_acwfcParent = a})
acwfcPayload :: Lens' AccountsContainersWorkspacesFoldersCreate Folder
acwfcPayload
= lens _acwfcPayload (\ s a -> s{_acwfcPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesFoldersCreate where
type Rs AccountsContainersWorkspacesFoldersCreate =
Folder
type Scopes AccountsContainersWorkspacesFoldersCreate
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesFoldersCreate'{..}
= go _acwfcParent (Just AltJSON) _acwfcPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesFoldersCreateResource)
mempty