{-# 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.SSLPolicies.Patch
(
SSLPoliciesPatchResource
, sslPoliciesPatch
, SSLPoliciesPatch
, sppSSLPolicy
, sppRequestId
, sppProject
, sppPayload
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type SSLPoliciesPatchResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"sslPolicies" :>
Capture "sslPolicy" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SSLPolicy :> Patch '[JSON] Operation
data SSLPoliciesPatch = SSLPoliciesPatch'
{ _sppSSLPolicy :: !Text
, _sppRequestId :: !(Maybe Text)
, _sppProject :: !Text
, _sppPayload :: !SSLPolicy
} deriving (Eq,Show,Data,Typeable,Generic)
sslPoliciesPatch
:: Text
-> Text
-> SSLPolicy
-> SSLPoliciesPatch
sslPoliciesPatch pSppSSLPolicy_ pSppProject_ pSppPayload_ =
SSLPoliciesPatch'
{ _sppSSLPolicy = pSppSSLPolicy_
, _sppRequestId = Nothing
, _sppProject = pSppProject_
, _sppPayload = pSppPayload_
}
sppSSLPolicy :: Lens' SSLPoliciesPatch Text
sppSSLPolicy
= lens _sppSSLPolicy (\ s a -> s{_sppSSLPolicy = a})
sppRequestId :: Lens' SSLPoliciesPatch (Maybe Text)
sppRequestId
= lens _sppRequestId (\ s a -> s{_sppRequestId = a})
sppProject :: Lens' SSLPoliciesPatch Text
sppProject
= lens _sppProject (\ s a -> s{_sppProject = a})
sppPayload :: Lens' SSLPoliciesPatch SSLPolicy
sppPayload
= lens _sppPayload (\ s a -> s{_sppPayload = a})
instance GoogleRequest SSLPoliciesPatch where
type Rs SSLPoliciesPatch = Operation
type Scopes SSLPoliciesPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient SSLPoliciesPatch'{..}
= go _sppProject _sppSSLPolicy _sppRequestId
(Just AltJSON)
_sppPayload
computeService
where go
= buildClient
(Proxy :: Proxy SSLPoliciesPatchResource)
mempty