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