{-# 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.Proposal.Create
(
AccountsContainersWorkspacesProposalCreateResource
, accountsContainersWorkspacesProposalCreate
, AccountsContainersWorkspacesProposalCreate
, acwpcParent
, acwpcPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesProposalCreateResource
=
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"proposal" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CreateWorkspaceProposalRequest :>
Post '[JSON] WorkspaceProposal
data AccountsContainersWorkspacesProposalCreate = AccountsContainersWorkspacesProposalCreate'
{ _acwpcParent :: !Text
, _acwpcPayload :: !CreateWorkspaceProposalRequest
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesProposalCreate
:: Text
-> CreateWorkspaceProposalRequest
-> AccountsContainersWorkspacesProposalCreate
accountsContainersWorkspacesProposalCreate pAcwpcParent_ pAcwpcPayload_ =
AccountsContainersWorkspacesProposalCreate'
{ _acwpcParent = pAcwpcParent_
, _acwpcPayload = pAcwpcPayload_
}
acwpcParent :: Lens' AccountsContainersWorkspacesProposalCreate Text
acwpcParent
= lens _acwpcParent (\ s a -> s{_acwpcParent = a})
acwpcPayload :: Lens' AccountsContainersWorkspacesProposalCreate CreateWorkspaceProposalRequest
acwpcPayload
= lens _acwpcPayload (\ s a -> s{_acwpcPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesProposalCreate where
type Rs AccountsContainersWorkspacesProposalCreate =
WorkspaceProposal
type Scopes
AccountsContainersWorkspacesProposalCreate
= '[]
requestClient
AccountsContainersWorkspacesProposalCreate'{..}
= go _acwpcParent (Just AltJSON) _acwpcPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesProposalCreateResource)
mempty