{-# 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.TargetSSLProxies.SetProxyHeader
(
TargetSSLProxiesSetProxyHeaderResource
, targetSSLProxiesSetProxyHeader
, TargetSSLProxiesSetProxyHeader
, tspsphRequestId
, tspsphProject
, tspsphPayload
, tspsphTargetSSLProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetSSLProxiesSetProxyHeaderResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetSslProxies" :>
Capture "targetSslProxy" Text :>
"setProxyHeader" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] TargetSSLProxiesSetProxyHeaderRequest
:> Post '[JSON] Operation
data TargetSSLProxiesSetProxyHeader = TargetSSLProxiesSetProxyHeader'
{ _tspsphRequestId :: !(Maybe Text)
, _tspsphProject :: !Text
, _tspsphPayload :: !TargetSSLProxiesSetProxyHeaderRequest
, _tspsphTargetSSLProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetSSLProxiesSetProxyHeader
:: Text
-> TargetSSLProxiesSetProxyHeaderRequest
-> Text
-> TargetSSLProxiesSetProxyHeader
targetSSLProxiesSetProxyHeader pTspsphProject_ pTspsphPayload_ pTspsphTargetSSLProxy_ =
TargetSSLProxiesSetProxyHeader'
{ _tspsphRequestId = Nothing
, _tspsphProject = pTspsphProject_
, _tspsphPayload = pTspsphPayload_
, _tspsphTargetSSLProxy = pTspsphTargetSSLProxy_
}
tspsphRequestId :: Lens' TargetSSLProxiesSetProxyHeader (Maybe Text)
tspsphRequestId
= lens _tspsphRequestId
(\ s a -> s{_tspsphRequestId = a})
tspsphProject :: Lens' TargetSSLProxiesSetProxyHeader Text
tspsphProject
= lens _tspsphProject
(\ s a -> s{_tspsphProject = a})
tspsphPayload :: Lens' TargetSSLProxiesSetProxyHeader TargetSSLProxiesSetProxyHeaderRequest
tspsphPayload
= lens _tspsphPayload
(\ s a -> s{_tspsphPayload = a})
tspsphTargetSSLProxy :: Lens' TargetSSLProxiesSetProxyHeader Text
tspsphTargetSSLProxy
= lens _tspsphTargetSSLProxy
(\ s a -> s{_tspsphTargetSSLProxy = a})
instance GoogleRequest TargetSSLProxiesSetProxyHeader
where
type Rs TargetSSLProxiesSetProxyHeader = Operation
type Scopes TargetSSLProxiesSetProxyHeader =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetSSLProxiesSetProxyHeader'{..}
= go _tspsphProject _tspsphTargetSSLProxy
_tspsphRequestId
(Just AltJSON)
_tspsphPayload
computeService
where go
= buildClient
(Proxy ::
Proxy TargetSSLProxiesSetProxyHeaderResource)
mempty