{-# 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.Reauthorize
(
AccountsContainersEnvironmentsReauthorizeResource
, accountsContainersEnvironmentsReauthorize
, AccountsContainersEnvironmentsReauthorize
, acerPath
, acerPayload
) where
import Network.Google.Prelude
import Network.Google.TagManager.Types
type AccountsContainersEnvironmentsReauthorizeResource
=
"tagmanager" :>
"v2" :>
CaptureMode "path" "reauthorize" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Environment :>
Post '[JSON] Environment
data AccountsContainersEnvironmentsReauthorize = AccountsContainersEnvironmentsReauthorize'
{ _acerPath :: !Text
, _acerPayload :: !Environment
} deriving (Eq,Show,Data,Typeable,Generic)
accountsContainersEnvironmentsReauthorize
:: Text
-> Environment
-> AccountsContainersEnvironmentsReauthorize
accountsContainersEnvironmentsReauthorize pAcerPath_ pAcerPayload_ =
AccountsContainersEnvironmentsReauthorize'
{ _acerPath = pAcerPath_
, _acerPayload = pAcerPayload_
}
acerPath :: Lens' AccountsContainersEnvironmentsReauthorize Text
acerPath = lens _acerPath (\ s a -> s{_acerPath = a})
acerPayload :: Lens' AccountsContainersEnvironmentsReauthorize Environment
acerPayload
= lens _acerPayload (\ s a -> s{_acerPayload = a})
instance GoogleRequest
AccountsContainersEnvironmentsReauthorize where
type Rs AccountsContainersEnvironmentsReauthorize =
Environment
type Scopes AccountsContainersEnvironmentsReauthorize
=
'["https://www.googleapis.com/auth/tagmanager.publish"]
requestClient
AccountsContainersEnvironmentsReauthorize'{..}
= go _acerPath (Just AltJSON) _acerPayload
tagManagerService
where go
= buildClient
(Proxy ::
Proxy
AccountsContainersEnvironmentsReauthorizeResource)
mempty