{-# 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.Zones.Create
(
AccountsContainersWorkspacesZonesCreateResource
, accountsContainersWorkspacesZonesCreate
, AccountsContainersWorkspacesZonesCreate
, acwzcParent
, acwzcPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersWorkspacesZonesCreateResource
=
"tagmanager" :>
"v2" :>
Capture "parent" Text :>
"zones" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Zone :> Post '[JSON] Zone
data AccountsContainersWorkspacesZonesCreate =
AccountsContainersWorkspacesZonesCreate'
{ _acwzcParent :: !Text
, _acwzcPayload :: !Zone
}
deriving (Eq, Show, Data, Typeable, Generic)
accountsContainersWorkspacesZonesCreate
:: Text
-> Zone
-> AccountsContainersWorkspacesZonesCreate
accountsContainersWorkspacesZonesCreate pAcwzcParent_ pAcwzcPayload_ =
AccountsContainersWorkspacesZonesCreate'
{_acwzcParent = pAcwzcParent_, _acwzcPayload = pAcwzcPayload_}
acwzcParent :: Lens' AccountsContainersWorkspacesZonesCreate Text
acwzcParent
= lens _acwzcParent (\ s a -> s{_acwzcParent = a})
acwzcPayload :: Lens' AccountsContainersWorkspacesZonesCreate Zone
acwzcPayload
= lens _acwzcPayload (\ s a -> s{_acwzcPayload = a})
instance GoogleRequest
AccountsContainersWorkspacesZonesCreate
where
type Rs AccountsContainersWorkspacesZonesCreate =
Zone
type Scopes AccountsContainersWorkspacesZonesCreate =
'["https://www.googleapis.com/auth/tagmanager.edit.containers"]
requestClient
AccountsContainersWorkspacesZonesCreate'{..}
= go _acwzcParent (Just AltJSON) _acwzcPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersWorkspacesZonesCreateResource)
mempty