{-# 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.UpdateProposal
(
AccountsContainersWorkspacesUpdateProposalResource
, accountsContainersWorkspacesUpdateProposal
, AccountsContainersWorkspacesUpdateProposal
, acwupPath
, acwupPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesUpdateProposalResource
=
"tagmanager" :>
"v2" :>
Capture "path" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UpdateWorkspaceProposalRequest :>
Put '[JSON] WorkspaceProposal
data AccountsContainersWorkspacesUpdateProposal = AccountsContainersWorkspacesUpdateProposal'
{ _acwupPath :: !Text
, _acwupPayload :: !UpdateWorkspaceProposalRequest
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesUpdateProposal
:: Text
-> UpdateWorkspaceProposalRequest
-> AccountsContainersWorkspacesUpdateProposal
accountsContainersWorkspacesUpdateProposal pAcwupPath_ pAcwupPayload_ =
AccountsContainersWorkspacesUpdateProposal'
{ _acwupPath = pAcwupPath_
, _acwupPayload = pAcwupPayload_
}
acwupPath :: Lens' AccountsContainersWorkspacesUpdateProposal Text
acwupPath
= lens _acwupPath (\ s a -> s{_acwupPath = a})
acwupPayload :: Lens' AccountsContainersWorkspacesUpdateProposal UpdateWorkspaceProposalRequest
acwupPayload
= lens _acwupPayload (\ s a -> s{_acwupPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesUpdateProposal where
type Rs AccountsContainersWorkspacesUpdateProposal =
WorkspaceProposal
type Scopes
AccountsContainersWorkspacesUpdateProposal
= '[]
requestClient
AccountsContainersWorkspacesUpdateProposal'{..}
= go _acwupPath (Just AltJSON) _acwupPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesUpdateProposalResource)
mempty