{-# 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.Compute.TargetTCPProxies.SetProxyHeader
(
TargetTCPProxiesSetProxyHeaderResource
, targetTCPProxiesSetProxyHeader
, TargetTCPProxiesSetProxyHeader
, ttpsphRequestId
, ttpsphProject
, ttpsphPayload
, ttpsphTargetTCPProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetTCPProxiesSetProxyHeaderResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetTcpProxies" :>
Capture "targetTcpProxy" Text :>
"setProxyHeader" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] TargetTCPProxiesSetProxyHeaderRequest
:> Post '[JSON] Operation
data TargetTCPProxiesSetProxyHeader = TargetTCPProxiesSetProxyHeader'
{ _ttpsphRequestId :: !(Maybe Text)
, _ttpsphProject :: !Text
, _ttpsphPayload :: !TargetTCPProxiesSetProxyHeaderRequest
, _ttpsphTargetTCPProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetTCPProxiesSetProxyHeader
:: Text
-> TargetTCPProxiesSetProxyHeaderRequest
-> Text
-> TargetTCPProxiesSetProxyHeader
targetTCPProxiesSetProxyHeader pTtpsphProject_ pTtpsphPayload_ pTtpsphTargetTCPProxy_ =
TargetTCPProxiesSetProxyHeader'
{ _ttpsphRequestId = Nothing
, _ttpsphProject = pTtpsphProject_
, _ttpsphPayload = pTtpsphPayload_
, _ttpsphTargetTCPProxy = pTtpsphTargetTCPProxy_
}
ttpsphRequestId :: Lens' TargetTCPProxiesSetProxyHeader (Maybe Text)
ttpsphRequestId
= lens _ttpsphRequestId
(\ s a -> s{_ttpsphRequestId = a})
ttpsphProject :: Lens' TargetTCPProxiesSetProxyHeader Text
ttpsphProject
= lens _ttpsphProject
(\ s a -> s{_ttpsphProject = a})
ttpsphPayload :: Lens' TargetTCPProxiesSetProxyHeader TargetTCPProxiesSetProxyHeaderRequest
ttpsphPayload
= lens _ttpsphPayload
(\ s a -> s{_ttpsphPayload = a})
ttpsphTargetTCPProxy :: Lens' TargetTCPProxiesSetProxyHeader Text
ttpsphTargetTCPProxy
= lens _ttpsphTargetTCPProxy
(\ s a -> s{_ttpsphTargetTCPProxy = a})
instance GoogleRequest TargetTCPProxiesSetProxyHeader
where
type Rs TargetTCPProxiesSetProxyHeader = Operation
type Scopes TargetTCPProxiesSetProxyHeader =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetTCPProxiesSetProxyHeader'{..}
= go _ttpsphProject _ttpsphTargetTCPProxy
_ttpsphRequestId
(Just AltJSON)
_ttpsphPayload
computeService
where go
= buildClient
(Proxy ::
Proxy TargetTCPProxiesSetProxyHeaderResource)
mempty