{-# 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.Triggers.Get
(
AccountsContainersWorkspacesTriggersGetResource
, accountsContainersWorkspacesTriggersGet
, AccountsContainersWorkspacesTriggersGet
, accPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesTriggersGetResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Trigger
newtype AccountsContainersWorkspacesTriggersGet = AccountsContainersWorkspacesTriggersGet'
{ _accPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesTriggersGet
:: Text
-> AccountsContainersWorkspacesTriggersGet
accountsContainersWorkspacesTriggersGet pAccPath_ =
AccountsContainersWorkspacesTriggersGet'
{ _accPath = pAccPath_
}
accPath :: Lens' AccountsContainersWorkspacesTriggersGet Text
accPath = lens _accPath (\ s a -> s{_accPath = a})
instance GoogleRequest
AccountsContainersWorkspacesTriggersGet where
type Rs AccountsContainersWorkspacesTriggersGet =
Trigger
type Scopes AccountsContainersWorkspacesTriggersGet =
'["https://www.googleapis.com/auth/tagmanager.edit.containers",
"https://www.googleapis.com/auth/tagmanager.readonly"]
requestClient
AccountsContainersWorkspacesTriggersGet'{..}
= go _accPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesTriggersGetResource)
mempty