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