{-# 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.SetURLMap
(
TargetHTTPSProxiesSetURLMapResource
, targetHTTPSProxiesSetURLMap
, TargetHTTPSProxiesSetURLMap
, thpsumRequestId
, thpsumProject
, thpsumPayload
, thpsumTargetHTTPSProxy
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetHTTPSProxiesSetURLMapResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"targetHttpsProxies" :>
Capture "targetHttpsProxy" Text :>
"setUrlMap" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] URLMapReference :>
Post '[JSON] Operation
data TargetHTTPSProxiesSetURLMap = TargetHTTPSProxiesSetURLMap'
{ _thpsumRequestId :: !(Maybe Text)
, _thpsumProject :: !Text
, _thpsumPayload :: !URLMapReference
, _thpsumTargetHTTPSProxy :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetHTTPSProxiesSetURLMap
:: Text
-> URLMapReference
-> Text
-> TargetHTTPSProxiesSetURLMap
targetHTTPSProxiesSetURLMap pThpsumProject_ pThpsumPayload_ pThpsumTargetHTTPSProxy_ =
TargetHTTPSProxiesSetURLMap'
{ _thpsumRequestId = Nothing
, _thpsumProject = pThpsumProject_
, _thpsumPayload = pThpsumPayload_
, _thpsumTargetHTTPSProxy = pThpsumTargetHTTPSProxy_
}
thpsumRequestId :: Lens' TargetHTTPSProxiesSetURLMap (Maybe Text)
thpsumRequestId
= lens _thpsumRequestId
(\ s a -> s{_thpsumRequestId = a})
thpsumProject :: Lens' TargetHTTPSProxiesSetURLMap Text
thpsumProject
= lens _thpsumProject
(\ s a -> s{_thpsumProject = a})
thpsumPayload :: Lens' TargetHTTPSProxiesSetURLMap URLMapReference
thpsumPayload
= lens _thpsumPayload
(\ s a -> s{_thpsumPayload = a})
thpsumTargetHTTPSProxy :: Lens' TargetHTTPSProxiesSetURLMap Text
thpsumTargetHTTPSProxy
= lens _thpsumTargetHTTPSProxy
(\ s a -> s{_thpsumTargetHTTPSProxy = a})
instance GoogleRequest TargetHTTPSProxiesSetURLMap
where
type Rs TargetHTTPSProxiesSetURLMap = Operation
type Scopes TargetHTTPSProxiesSetURLMap =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetHTTPSProxiesSetURLMap'{..}
= go _thpsumProject _thpsumTargetHTTPSProxy
_thpsumRequestId
(Just AltJSON)
_thpsumPayload
computeService
where go
= buildClient
(Proxy :: Proxy TargetHTTPSProxiesSetURLMapResource)
mempty