{-# 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.Update
(
HTTPSHealthChecksUpdateResource
, httpsHealthChecksUpdate
, HTTPSHealthChecksUpdate
, hhcuRequestId
, hhcuProject
, hhcuPayload
, hhcuHTTPSHealthCheck
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type HTTPSHealthChecksUpdateResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"httpsHealthChecks" :>
Capture "httpsHealthCheck" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] HTTPSHealthCheck :>
Put '[JSON] Operation
data HTTPSHealthChecksUpdate = HTTPSHealthChecksUpdate'
{ _hhcuRequestId :: !(Maybe Text)
, _hhcuProject :: !Text
, _hhcuPayload :: !HTTPSHealthCheck
, _hhcuHTTPSHealthCheck :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
httpsHealthChecksUpdate
:: Text
-> HTTPSHealthCheck
-> Text
-> HTTPSHealthChecksUpdate
httpsHealthChecksUpdate pHhcuProject_ pHhcuPayload_ pHhcuHTTPSHealthCheck_ =
HTTPSHealthChecksUpdate'
{ _hhcuRequestId = Nothing
, _hhcuProject = pHhcuProject_
, _hhcuPayload = pHhcuPayload_
, _hhcuHTTPSHealthCheck = pHhcuHTTPSHealthCheck_
}
hhcuRequestId :: Lens' HTTPSHealthChecksUpdate (Maybe Text)
hhcuRequestId
= lens _hhcuRequestId
(\ s a -> s{_hhcuRequestId = a})
hhcuProject :: Lens' HTTPSHealthChecksUpdate Text
hhcuProject
= lens _hhcuProject (\ s a -> s{_hhcuProject = a})
hhcuPayload :: Lens' HTTPSHealthChecksUpdate HTTPSHealthCheck
hhcuPayload
= lens _hhcuPayload (\ s a -> s{_hhcuPayload = a})
hhcuHTTPSHealthCheck :: Lens' HTTPSHealthChecksUpdate Text
hhcuHTTPSHealthCheck
= lens _hhcuHTTPSHealthCheck
(\ s a -> s{_hhcuHTTPSHealthCheck = a})
instance GoogleRequest HTTPSHealthChecksUpdate where
type Rs HTTPSHealthChecksUpdate = Operation
type Scopes HTTPSHealthChecksUpdate =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient HTTPSHealthChecksUpdate'{..}
= go _hhcuProject _hhcuHTTPSHealthCheck
_hhcuRequestId
(Just AltJSON)
_hhcuPayload
computeService
where go
= buildClient
(Proxy :: Proxy HTTPSHealthChecksUpdateResource)
mempty