{-# 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.Environments.Create
(
AccountsContainersEnvironmentsCreateResource
, accountsContainersEnvironmentsCreate
, AccountsContainersEnvironmentsCreate
, acecParent
, acecPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersEnvironmentsCreateResource =
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"environments" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Environment :>
Post '[JSON] Environment
data AccountsContainersEnvironmentsCreate = AccountsContainersEnvironmentsCreate'
{ _acecParent :: !Text
, _acecPayload :: !Environment
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersEnvironmentsCreate
:: Text
-> Environment
-> AccountsContainersEnvironmentsCreate
accountsContainersEnvironmentsCreate pAcecParent_ pAcecPayload_ =
AccountsContainersEnvironmentsCreate'
{ _acecParent = pAcecParent_
, _acecPayload = pAcecPayload_
}
acecParent :: Lens' AccountsContainersEnvironmentsCreate Text
acecParent
= lens _acecParent (\ s a -> s{_acecParent = a})
acecPayload :: Lens' AccountsContainersEnvironmentsCreate Environment
acecPayload
= lens _acecPayload (\ s a -> s{_acecPayload = a})
instance GoogleRequest
AccountsContainersEnvironmentsCreate where
type Rs AccountsContainersEnvironmentsCreate =
Environment
type Scopes AccountsContainersEnvironmentsCreate =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersEnvironmentsCreate'{..}
= go _acecParent (Just AltJSON) _acecPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy AccountsContainersEnvironmentsCreateResource)
mempty