{-# 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.Variables.Create
(
AccountsContainersWorkspacesVariablesCreateResource
, accountsContainersWorkspacesVariablesCreate
, AccountsContainersWorkspacesVariablesCreate
, acwvcParent
, acwvcPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesVariablesCreateResource
=
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"variables" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Variable :> Post '[JSON] Variable
data AccountsContainersWorkspacesVariablesCreate = AccountsContainersWorkspacesVariablesCreate'
{ _acwvcParent :: !Text
, _acwvcPayload :: !Variable
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesVariablesCreate
:: Text
-> Variable
-> AccountsContainersWorkspacesVariablesCreate
accountsContainersWorkspacesVariablesCreate pAcwvcParent_ pAcwvcPayload_ =
AccountsContainersWorkspacesVariablesCreate'
{ _acwvcParent = pAcwvcParent_
, _acwvcPayload = pAcwvcPayload_
}
acwvcParent :: Lens' AccountsContainersWorkspacesVariablesCreate Text
acwvcParent
= lens _acwvcParent (\ s a -> s{_acwvcParent = a})
acwvcPayload :: Lens' AccountsContainersWorkspacesVariablesCreate Variable
acwvcPayload
= lens _acwvcPayload (\ s a -> s{_acwvcPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesVariablesCreate where
type Rs AccountsContainersWorkspacesVariablesCreate =
Variable
type Scopes
AccountsContainersWorkspacesVariablesCreate
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesVariablesCreate'{..}
= go _acwvcParent (Just AltJSON) _acwvcPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesVariablesCreateResource)
mempty