{-# 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.TargetHTTPSProxies.SetSSLPolicy
(
TargetHTTPSProxiesSetSSLPolicyResource
, targetHTTPSProxiesSetSSLPolicy
, TargetHTTPSProxiesSetSSLPolicy
, thpsspRequestId
, thpsspProject
, thpsspPayload
, thpsspTargetHTTPSProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetHTTPSProxiesSetSSLPolicyResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetHttpsProxies" :>
Capture "targetHttpsProxy" Text :>
"setSslPolicy" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SSLPolicyReference :>
Post '[JSON] Operation
data TargetHTTPSProxiesSetSSLPolicy = TargetHTTPSProxiesSetSSLPolicy'
{ _thpsspRequestId :: !(Maybe Text)
, _thpsspProject :: !Text
, _thpsspPayload :: !SSLPolicyReference
, _thpsspTargetHTTPSProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPSProxiesSetSSLPolicy
:: Text
-> SSLPolicyReference
-> Text
-> TargetHTTPSProxiesSetSSLPolicy
targetHTTPSProxiesSetSSLPolicy pThpsspProject_ pThpsspPayload_ pThpsspTargetHTTPSProxy_ =
TargetHTTPSProxiesSetSSLPolicy'
{ _thpsspRequestId = Nothing
, _thpsspProject = pThpsspProject_
, _thpsspPayload = pThpsspPayload_
, _thpsspTargetHTTPSProxy = pThpsspTargetHTTPSProxy_
}
thpsspRequestId :: Lens' TargetHTTPSProxiesSetSSLPolicy (Maybe Text)
thpsspRequestId
= lens _thpsspRequestId
(\ s a -> s{_thpsspRequestId = a})
thpsspProject :: Lens' TargetHTTPSProxiesSetSSLPolicy Text
thpsspProject
= lens _thpsspProject
(\ s a -> s{_thpsspProject = a})
thpsspPayload :: Lens' TargetHTTPSProxiesSetSSLPolicy SSLPolicyReference
thpsspPayload
= lens _thpsspPayload
(\ s a -> s{_thpsspPayload = a})
thpsspTargetHTTPSProxy :: Lens' TargetHTTPSProxiesSetSSLPolicy Text
thpsspTargetHTTPSProxy
= lens _thpsspTargetHTTPSProxy
(\ s a -> s{_thpsspTargetHTTPSProxy = a})
instance GoogleRequest TargetHTTPSProxiesSetSSLPolicy
where
type Rs TargetHTTPSProxiesSetSSLPolicy = Operation
type Scopes TargetHTTPSProxiesSetSSLPolicy =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetHTTPSProxiesSetSSLPolicy'{..}
= go _thpsspProject _thpsspTargetHTTPSProxy
_thpsspRequestId
(Just AltJSON)
_thpsspPayload
computeService
where go
= buildClient
(Proxy ::
Proxy TargetHTTPSProxiesSetSSLPolicyResource)
mempty