{-# 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.GetProposal
(
AccountsContainersWorkspacesGetProposalResource
, accountsContainersWorkspacesGetProposal
, AccountsContainersWorkspacesGetProposal
, acwgpPath
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesGetProposalResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] WorkspaceProposal
newtype AccountsContainersWorkspacesGetProposal = AccountsContainersWorkspacesGetProposal'
{ _acwgpPath :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesGetProposal
:: Text
-> AccountsContainersWorkspacesGetProposal
accountsContainersWorkspacesGetProposal pAcwgpPath_ =
AccountsContainersWorkspacesGetProposal'
{ _acwgpPath = pAcwgpPath_
}
acwgpPath :: Lens' AccountsContainersWorkspacesGetProposal Text
acwgpPath
= lens _acwgpPath (\ s a -> s{_acwgpPath = a})
instance GoogleRequest
AccountsContainersWorkspacesGetProposal where
type Rs AccountsContainersWorkspacesGetProposal =
WorkspaceProposal
type Scopes AccountsContainersWorkspacesGetProposal =
'[]
requestClient
AccountsContainersWorkspacesGetProposal'{..}
= go _acwgpPath (Just AltJSON) tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesGetProposalResource)
mempty