{-# 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.HealthChecks.Delete
(
HealthChecksDeleteResource
, healthChecksDelete
, HealthChecksDelete
, hcdRequestId
, hcdHealthCheck
, hcdProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type HealthChecksDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"healthChecks" :>
Capture "healthCheck" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data HealthChecksDelete = HealthChecksDelete'
{ _hcdRequestId :: !(Maybe Text)
, _hcdHealthCheck :: !Text
, _hcdProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
healthChecksDelete
:: Text
-> Text
-> HealthChecksDelete
healthChecksDelete pHcdHealthCheck_ pHcdProject_ =
HealthChecksDelete'
{ _hcdRequestId = Nothing
, _hcdHealthCheck = pHcdHealthCheck_
, _hcdProject = pHcdProject_
}
hcdRequestId :: Lens' HealthChecksDelete (Maybe Text)
hcdRequestId
= lens _hcdRequestId (\ s a -> s{_hcdRequestId = a})
hcdHealthCheck :: Lens' HealthChecksDelete Text
hcdHealthCheck
= lens _hcdHealthCheck
(\ s a -> s{_hcdHealthCheck = a})
hcdProject :: Lens' HealthChecksDelete Text
hcdProject
= lens _hcdProject (\ s a -> s{_hcdProject = a})
instance GoogleRequest HealthChecksDelete where
type Rs HealthChecksDelete = Operation
type Scopes HealthChecksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient HealthChecksDelete'{..}
= go _hcdProject _hcdHealthCheck _hcdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy HealthChecksDeleteResource)
mempty