{-# 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.Delete
(
HTTPSHealthChecksDeleteResource
, httpsHealthChecksDelete
, HTTPSHealthChecksDelete
, hhcdRequestId
, hhcdProject
, hhcdHTTPSHealthCheck
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type HTTPSHealthChecksDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"httpsHealthChecks" :>
Capture "httpsHealthCheck" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data HTTPSHealthChecksDelete = HTTPSHealthChecksDelete'
{ _hhcdRequestId :: !(Maybe Text)
, _hhcdProject :: !Text
, _hhcdHTTPSHealthCheck :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
httpsHealthChecksDelete
:: Text
-> Text
-> HTTPSHealthChecksDelete
httpsHealthChecksDelete pHhcdProject_ pHhcdHTTPSHealthCheck_ =
HTTPSHealthChecksDelete'
{ _hhcdRequestId = Nothing
, _hhcdProject = pHhcdProject_
, _hhcdHTTPSHealthCheck = pHhcdHTTPSHealthCheck_
}
hhcdRequestId :: Lens' HTTPSHealthChecksDelete (Maybe Text)
hhcdRequestId
= lens _hhcdRequestId
(\ s a -> s{_hhcdRequestId = a})
hhcdProject :: Lens' HTTPSHealthChecksDelete Text
hhcdProject
= lens _hhcdProject (\ s a -> s{_hhcdProject = a})
hhcdHTTPSHealthCheck :: Lens' HTTPSHealthChecksDelete Text
hhcdHTTPSHealthCheck
= lens _hhcdHTTPSHealthCheck
(\ s a -> s{_hhcdHTTPSHealthCheck = a})
instance GoogleRequest HTTPSHealthChecksDelete where
type Rs HTTPSHealthChecksDelete = Operation
type Scopes HTTPSHealthChecksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient HTTPSHealthChecksDelete'{..}
= go _hhcdProject _hhcdHTTPSHealthCheck
_hhcdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy HTTPSHealthChecksDeleteResource)
mempty