{-# 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.SetBackendService
(
TargetSSLProxiesSetBackendServiceResource
, targetSSLProxiesSetBackendService
, TargetSSLProxiesSetBackendService
, tspsbsRequestId
, tspsbsProject
, tspsbsPayload
, tspsbsTargetSSLProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetSSLProxiesSetBackendServiceResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetSslProxies" :>
Capture "targetSslProxy" Text :>
"setBackendService" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
TargetSSLProxiesSetBackendServiceRequest
:> Post '[JSON] Operation
data TargetSSLProxiesSetBackendService = TargetSSLProxiesSetBackendService'
{ _tspsbsRequestId :: !(Maybe Text)
, _tspsbsProject :: !Text
, _tspsbsPayload :: !TargetSSLProxiesSetBackendServiceRequest
, _tspsbsTargetSSLProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetSSLProxiesSetBackendService
:: Text
-> TargetSSLProxiesSetBackendServiceRequest
-> Text
-> TargetSSLProxiesSetBackendService
targetSSLProxiesSetBackendService pTspsbsProject_ pTspsbsPayload_ pTspsbsTargetSSLProxy_ =
TargetSSLProxiesSetBackendService'
{ _tspsbsRequestId = Nothing
, _tspsbsProject = pTspsbsProject_
, _tspsbsPayload = pTspsbsPayload_
, _tspsbsTargetSSLProxy = pTspsbsTargetSSLProxy_
}
tspsbsRequestId :: Lens' TargetSSLProxiesSetBackendService (Maybe Text)
tspsbsRequestId
= lens _tspsbsRequestId
(\ s a -> s{_tspsbsRequestId = a})
tspsbsProject :: Lens' TargetSSLProxiesSetBackendService Text
tspsbsProject
= lens _tspsbsProject
(\ s a -> s{_tspsbsProject = a})
tspsbsPayload :: Lens' TargetSSLProxiesSetBackendService TargetSSLProxiesSetBackendServiceRequest
tspsbsPayload
= lens _tspsbsPayload
(\ s a -> s{_tspsbsPayload = a})
tspsbsTargetSSLProxy :: Lens' TargetSSLProxiesSetBackendService Text
tspsbsTargetSSLProxy
= lens _tspsbsTargetSSLProxy
(\ s a -> s{_tspsbsTargetSSLProxy = a})
instance GoogleRequest
TargetSSLProxiesSetBackendService where
type Rs TargetSSLProxiesSetBackendService = Operation
type Scopes TargetSSLProxiesSetBackendService =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetSSLProxiesSetBackendService'{..}
= go _tspsbsProject _tspsbsTargetSSLProxy
_tspsbsRequestId
(Just AltJSON)
_tspsbsPayload
computeService
where go
= buildClient
(Proxy ::
Proxy TargetSSLProxiesSetBackendServiceResource)
mempty