{-# 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.QuickPreview
(
AccountsContainersWorkspacesQuickPreviewResource
, accountsContainersWorkspacesQuickPreview
, AccountsContainersWorkspacesQuickPreview
, acwqpPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesQuickPreviewResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "quick_preview" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] QuickPreviewResponse
newtype AccountsContainersWorkspacesQuickPreview = AccountsContainersWorkspacesQuickPreview'
{ _acwqpPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesQuickPreview
:: Text
-> AccountsContainersWorkspacesQuickPreview
accountsContainersWorkspacesQuickPreview pAcwqpPath_ =
AccountsContainersWorkspacesQuickPreview'
{ _acwqpPath = pAcwqpPath_
}
acwqpPath :: Lens' AccountsContainersWorkspacesQuickPreview Text
acwqpPath
= lens _acwqpPath (\ s a -> s{_acwqpPath = a})
instance GoogleRequest
AccountsContainersWorkspacesQuickPreview where
type Rs AccountsContainersWorkspacesQuickPreview =
QuickPreviewResponse
type Scopes AccountsContainersWorkspacesQuickPreview
=
'["https://www.googleapis.com/auth/tagmanager.edit.containerversions"]
requestClient
AccountsContainersWorkspacesQuickPreview'{..}
= go _acwqpPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesQuickPreviewResource)
mempty