{-# 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.Create
(
AccountsContainersWorkspacesCreateResource
, accountsContainersWorkspacesCreate
, AccountsContainersWorkspacesCreate
, acwcParent
, acwcPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesCreateResource =
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"workspaces" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Workspace :> Post '[JSON] Workspace
data AccountsContainersWorkspacesCreate = AccountsContainersWorkspacesCreate'
{ _acwcParent :: !Text
, _acwcPayload :: !Workspace
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesCreate
:: Text
-> Workspace
-> AccountsContainersWorkspacesCreate
accountsContainersWorkspacesCreate pAcwcParent_ pAcwcPayload_ =
AccountsContainersWorkspacesCreate'
{ _acwcParent = pAcwcParent_
, _acwcPayload = pAcwcPayload_
}
acwcParent :: Lens' AccountsContainersWorkspacesCreate Text
acwcParent
= lens _acwcParent (\ s a -> s{_acwcParent = a})
acwcPayload :: Lens' AccountsContainersWorkspacesCreate Workspace
acwcPayload
= lens _acwcPayload (\ s a -> s{_acwcPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesCreate where
type Rs AccountsContainersWorkspacesCreate =
Workspace
type Scopes AccountsContainersWorkspacesCreate =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient AccountsContainersWorkspacesCreate'{..}
= go _acwcParent (Just AltJSON) _acwcPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersWorkspacesCreateResource)
mempty