{-# 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.SetSSLCertificates
(
TargetHTTPSProxiesSetSSLCertificatesResource
, targetHTTPSProxiesSetSSLCertificates
, TargetHTTPSProxiesSetSSLCertificates
, thpsscRequestId
, thpsscProject
, thpsscPayload
, thpsscTargetHTTPSProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetHTTPSProxiesSetSSLCertificatesResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"targetHttpsProxies" :>
Capture "targetHttpsProxy" Text :>
"setSslCertificates" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
TargetHTTPSProxiesSetSSLCertificatesRequest
:> Post '[JSON] Operation
data TargetHTTPSProxiesSetSSLCertificates = TargetHTTPSProxiesSetSSLCertificates'
{ _thpsscRequestId :: !(Maybe Text)
, _thpsscProject :: !Text
, _thpsscPayload :: !TargetHTTPSProxiesSetSSLCertificatesRequest
, _thpsscTargetHTTPSProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPSProxiesSetSSLCertificates
:: Text
-> TargetHTTPSProxiesSetSSLCertificatesRequest
-> Text
-> TargetHTTPSProxiesSetSSLCertificates
targetHTTPSProxiesSetSSLCertificates pThpsscProject_ pThpsscPayload_ pThpsscTargetHTTPSProxy_ =
TargetHTTPSProxiesSetSSLCertificates'
{ _thpsscRequestId = Nothing
, _thpsscProject = pThpsscProject_
, _thpsscPayload = pThpsscPayload_
, _thpsscTargetHTTPSProxy = pThpsscTargetHTTPSProxy_
}
thpsscRequestId :: Lens' TargetHTTPSProxiesSetSSLCertificates (Maybe Text)
thpsscRequestId
= lens _thpsscRequestId
(\ s a -> s{_thpsscRequestId = a})
thpsscProject :: Lens' TargetHTTPSProxiesSetSSLCertificates Text
thpsscProject
= lens _thpsscProject
(\ s a -> s{_thpsscProject = a})
thpsscPayload :: Lens' TargetHTTPSProxiesSetSSLCertificates TargetHTTPSProxiesSetSSLCertificatesRequest
thpsscPayload
= lens _thpsscPayload
(\ s a -> s{_thpsscPayload = a})
thpsscTargetHTTPSProxy :: Lens' TargetHTTPSProxiesSetSSLCertificates Text
thpsscTargetHTTPSProxy
= lens _thpsscTargetHTTPSProxy
(\ s a -> s{_thpsscTargetHTTPSProxy = a})
instance GoogleRequest
TargetHTTPSProxiesSetSSLCertificates where
type Rs TargetHTTPSProxiesSetSSLCertificates =
Operation
type Scopes TargetHTTPSProxiesSetSSLCertificates =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient
TargetHTTPSProxiesSetSSLCertificates'{..}
= go _thpsscProject _thpsscTargetHTTPSProxy
_thpsscRequestId
(Just AltJSON)
_thpsscPayload
computeService
where go
= buildClient
(Proxy ::
Proxy TargetHTTPSProxiesSetSSLCertificatesResource)
mempty