{-# 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.Entities
(
AccountsContainersWorkspacesFoldersEntitiesResource
, accountsContainersWorkspacesFoldersEntities
, AccountsContainersWorkspacesFoldersEntities
, acwfePath
, acwfePageToken
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesFoldersEntitiesResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "entities" Text :>
QueryParam "pageToken" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] FolderEntities
data AccountsContainersWorkspacesFoldersEntities = AccountsContainersWorkspacesFoldersEntities'
{ _acwfePath :: !Text
, _acwfePageToken :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesFoldersEntities
:: Text
-> AccountsContainersWorkspacesFoldersEntities
accountsContainersWorkspacesFoldersEntities pAcwfePath_ =
AccountsContainersWorkspacesFoldersEntities'
{ _acwfePath = pAcwfePath_
, _acwfePageToken = Nothing
}
acwfePath :: Lens' AccountsContainersWorkspacesFoldersEntities Text
acwfePath
= lens _acwfePath (\ s a -> s{_acwfePath = a})
acwfePageToken :: Lens' AccountsContainersWorkspacesFoldersEntities (Maybe Text)
acwfePageToken
= lens _acwfePageToken
(\ s a -> s{_acwfePageToken = a})
instance GoogleRequest
AccountsContainersWorkspacesFoldersEntities where
type Rs AccountsContainersWorkspacesFoldersEntities =
FolderEntities
type Scopes
AccountsContainersWorkspacesFoldersEntities
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers",
"https://www.googleapis.com/auth/tagmanager.readonly"]
requestClient
AccountsContainersWorkspacesFoldersEntities'{..}
= go _acwfePath _acwfePageToken (Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesFoldersEntitiesResource)
mempty