{-# 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.HTTPSHealthChecks.Patch
(
HTTPSHealthChecksPatchResource
, httpsHealthChecksPatch
, HTTPSHealthChecksPatch
, hhcpRequestId
, hhcpProject
, hhcpPayload
, hhcpHTTPSHealthCheck
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type HTTPSHealthChecksPatchResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"httpsHealthChecks" :>
Capture "httpsHealthCheck" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] HTTPSHealthCheck :>
Patch '[JSON] Operation
data HTTPSHealthChecksPatch = HTTPSHealthChecksPatch'
{ _hhcpRequestId :: !(Maybe Text)
, _hhcpProject :: !Text
, _hhcpPayload :: !HTTPSHealthCheck
, _hhcpHTTPSHealthCheck :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
httpsHealthChecksPatch
:: Text
-> HTTPSHealthCheck
-> Text
-> HTTPSHealthChecksPatch
httpsHealthChecksPatch pHhcpProject_ pHhcpPayload_ pHhcpHTTPSHealthCheck_ =
HTTPSHealthChecksPatch'
{ _hhcpRequestId = Nothing
, _hhcpProject = pHhcpProject_
, _hhcpPayload = pHhcpPayload_
, _hhcpHTTPSHealthCheck = pHhcpHTTPSHealthCheck_
}
hhcpRequestId :: Lens' HTTPSHealthChecksPatch (Maybe Text)
hhcpRequestId
= lens _hhcpRequestId
(\ s a -> s{_hhcpRequestId = a})
hhcpProject :: Lens' HTTPSHealthChecksPatch Text
hhcpProject
= lens _hhcpProject (\ s a -> s{_hhcpProject = a})
hhcpPayload :: Lens' HTTPSHealthChecksPatch HTTPSHealthCheck
hhcpPayload
= lens _hhcpPayload (\ s a -> s{_hhcpPayload = a})
hhcpHTTPSHealthCheck :: Lens' HTTPSHealthChecksPatch Text
hhcpHTTPSHealthCheck
= lens _hhcpHTTPSHealthCheck
(\ s a -> s{_hhcpHTTPSHealthCheck = a})
instance GoogleRequest HTTPSHealthChecksPatch where
type Rs HTTPSHealthChecksPatch = Operation
type Scopes HTTPSHealthChecksPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient HTTPSHealthChecksPatch'{..}
= go _hhcpProject _hhcpHTTPSHealthCheck
_hhcpRequestId
(Just AltJSON)
_hhcpPayload
computeService
where go
= buildClient
(Proxy :: Proxy HTTPSHealthChecksPatchResource)
mempty