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