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