{-# 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.BuiltInVariables.Create
(
AccountsContainersWorkspacesBuiltInVariablesCreateResource
, accountsContainersWorkspacesBuiltInVariablesCreate
, AccountsContainersWorkspacesBuiltInVariablesCreate
, acwbivcParent
, acwbivcType
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesBuiltInVariablesCreateResource
=
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"built_in_variables" :>
QueryParams "type"
AccountsContainersWorkspacesBuilt_in_variablesCreateType
:>
QueryParam "alt" AltJSON :>
Post '[JSON] CreateBuiltInVariableResponse
data AccountsContainersWorkspacesBuiltInVariablesCreate = AccountsContainersWorkspacesBuiltInVariablesCreate'
{ _acwbivcParent :: !Text
, _acwbivcType :: !(Maybe [AccountsContainersWorkspacesBuilt_in_variablesCreateType])
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersWorkspacesBuiltInVariablesCreate
:: Text
-> AccountsContainersWorkspacesBuiltInVariablesCreate
accountsContainersWorkspacesBuiltInVariablesCreate pAcwbivcParent_ =
AccountsContainersWorkspacesBuiltInVariablesCreate'
{ _acwbivcParent = pAcwbivcParent_
, _acwbivcType = Nothing
}
acwbivcParent :: Lens' AccountsContainersWorkspacesBuiltInVariablesCreate Text
acwbivcParent
= lens _acwbivcParent
(\ s a -> s{_acwbivcParent = a})
acwbivcType :: Lens' AccountsContainersWorkspacesBuiltInVariablesCreate [AccountsContainersWorkspacesBuilt_in_variablesCreateType]
acwbivcType
= lens _acwbivcType (\ s a -> s{_acwbivcType = a}) .
_Default
. _Coerce
instance GoogleRequest
AccountsContainersWorkspacesBuiltInVariablesCreate
where
type Rs
AccountsContainersWorkspacesBuiltInVariablesCreate
= CreateBuiltInVariableResponse
type Scopes
AccountsContainersWorkspacesBuiltInVariablesCreate
=
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesBuiltInVariablesCreate'{..}
= go _acwbivcParent (_acwbivcType ^. _Default)
(Just AltJSON)
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesBuiltInVariablesCreateResource)
mempty