{-# 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.HTTPHealthChecks.Patch
(
HTTPHealthChecksPatchResource
, hTTPHealthChecksPatch
, HTTPHealthChecksPatch
, httphcpRequestId
, httphcpProject
, httphcpPayload
, httphcpHTTPHealthCheck
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type HTTPHealthChecksPatchResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"httpHealthChecks" :>
Capture "httpHealthCheck" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] HTTPHealthCheck :>
Patch '[JSON] Operation
data HTTPHealthChecksPatch = HTTPHealthChecksPatch'
{ _httphcpRequestId :: !(Maybe Text)
, _httphcpProject :: !Text
, _httphcpPayload :: !HTTPHealthCheck
, _httphcpHTTPHealthCheck :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
hTTPHealthChecksPatch
:: Text
-> HTTPHealthCheck
-> Text
-> HTTPHealthChecksPatch
hTTPHealthChecksPatch pHttphcpProject_ pHttphcpPayload_ pHttphcpHTTPHealthCheck_ =
HTTPHealthChecksPatch'
{ _httphcpRequestId = Nothing
, _httphcpProject = pHttphcpProject_
, _httphcpPayload = pHttphcpPayload_
, _httphcpHTTPHealthCheck = pHttphcpHTTPHealthCheck_
}
httphcpRequestId :: Lens' HTTPHealthChecksPatch (Maybe Text)
httphcpRequestId
= lens _httphcpRequestId
(\ s a -> s{_httphcpRequestId = a})
httphcpProject :: Lens' HTTPHealthChecksPatch Text
httphcpProject
= lens _httphcpProject
(\ s a -> s{_httphcpProject = a})
httphcpPayload :: Lens' HTTPHealthChecksPatch HTTPHealthCheck
httphcpPayload
= lens _httphcpPayload
(\ s a -> s{_httphcpPayload = a})
httphcpHTTPHealthCheck :: Lens' HTTPHealthChecksPatch Text
httphcpHTTPHealthCheck
= lens _httphcpHTTPHealthCheck
(\ s a -> s{_httphcpHTTPHealthCheck = a})
instance GoogleRequest HTTPHealthChecksPatch where
type Rs HTTPHealthChecksPatch = Operation
type Scopes HTTPHealthChecksPatch =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient HTTPHealthChecksPatch'{..}
= go _httphcpProject _httphcpHTTPHealthCheck
_httphcpRequestId
(Just AltJSON)
_httphcpPayload
computeService
where go
= buildClient
(Proxy :: Proxy HTTPHealthChecksPatchResource)
mempty