{-# 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.SetQuicOverride
(
TargetHTTPSProxiesSetQuicOverrideResource
, targetHTTPSProxiesSetQuicOverride
, TargetHTTPSProxiesSetQuicOverride
, thpsqoRequestId
, thpsqoProject
, thpsqoPayload
, thpsqoTargetHTTPSProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetHTTPSProxiesSetQuicOverrideResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"targetHttpsProxies" :>
Capture "targetHttpsProxy" Text :>
"setQuicOverride" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON]
TargetHTTPSProxiesSetQuicOverrideRequest
:> Post '[JSON] Operation
data TargetHTTPSProxiesSetQuicOverride = TargetHTTPSProxiesSetQuicOverride'
{ _thpsqoRequestId :: !(Maybe Text)
, _thpsqoProject :: !Text
, _thpsqoPayload :: !TargetHTTPSProxiesSetQuicOverrideRequest
, _thpsqoTargetHTTPSProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPSProxiesSetQuicOverride
:: Text
-> TargetHTTPSProxiesSetQuicOverrideRequest
-> Text
-> TargetHTTPSProxiesSetQuicOverride
targetHTTPSProxiesSetQuicOverride pThpsqoProject_ pThpsqoPayload_ pThpsqoTargetHTTPSProxy_ =
TargetHTTPSProxiesSetQuicOverride'
{ _thpsqoRequestId = Nothing
, _thpsqoProject = pThpsqoProject_
, _thpsqoPayload = pThpsqoPayload_
, _thpsqoTargetHTTPSProxy = pThpsqoTargetHTTPSProxy_
}
thpsqoRequestId :: Lens' TargetHTTPSProxiesSetQuicOverride (Maybe Text)
thpsqoRequestId
= lens _thpsqoRequestId
(\ s a -> s{_thpsqoRequestId = a})
thpsqoProject :: Lens' TargetHTTPSProxiesSetQuicOverride Text
thpsqoProject
= lens _thpsqoProject
(\ s a -> s{_thpsqoProject = a})
thpsqoPayload :: Lens' TargetHTTPSProxiesSetQuicOverride TargetHTTPSProxiesSetQuicOverrideRequest
thpsqoPayload
= lens _thpsqoPayload
(\ s a -> s{_thpsqoPayload = a})
thpsqoTargetHTTPSProxy :: Lens' TargetHTTPSProxiesSetQuicOverride Text
thpsqoTargetHTTPSProxy
= lens _thpsqoTargetHTTPSProxy
(\ s a -> s{_thpsqoTargetHTTPSProxy = a})
instance GoogleRequest
TargetHTTPSProxiesSetQuicOverride where
type Rs TargetHTTPSProxiesSetQuicOverride = Operation
type Scopes TargetHTTPSProxiesSetQuicOverride =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetHTTPSProxiesSetQuicOverride'{..}
= go _thpsqoProject _thpsqoTargetHTTPSProxy
_thpsqoRequestId
(Just AltJSON)
_thpsqoPayload
computeService
where go
= buildClient
(Proxy ::
Proxy TargetHTTPSProxiesSetQuicOverrideResource)
mempty