{-# 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.TargetPools.Delete
(
TargetPoolsDeleteResource
, targetPoolsDelete
, TargetPoolsDelete
, tpdRequestId
, tpdProject
, tpdTargetPool
, tpdRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetPoolsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"targetPools" :>
Capture "targetPool" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data TargetPoolsDelete = TargetPoolsDelete'
{ _tpdRequestId :: !(Maybe Text)
, _tpdProject :: !Text
, _tpdTargetPool :: !Text
, _tpdRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetPoolsDelete
:: Text
-> Text
-> Text
-> TargetPoolsDelete
targetPoolsDelete pTpdProject_ pTpdTargetPool_ pTpdRegion_ =
TargetPoolsDelete'
{ _tpdRequestId = Nothing
, _tpdProject = pTpdProject_
, _tpdTargetPool = pTpdTargetPool_
, _tpdRegion = pTpdRegion_
}
tpdRequestId :: Lens' TargetPoolsDelete (Maybe Text)
tpdRequestId
= lens _tpdRequestId (\ s a -> s{_tpdRequestId = a})
tpdProject :: Lens' TargetPoolsDelete Text
tpdProject
= lens _tpdProject (\ s a -> s{_tpdProject = a})
tpdTargetPool :: Lens' TargetPoolsDelete Text
tpdTargetPool
= lens _tpdTargetPool
(\ s a -> s{_tpdTargetPool = a})
tpdRegion :: Lens' TargetPoolsDelete Text
tpdRegion
= lens _tpdRegion (\ s a -> s{_tpdRegion = a})
instance GoogleRequest TargetPoolsDelete where
type Rs TargetPoolsDelete = Operation
type Scopes TargetPoolsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetPoolsDelete'{..}
= go _tpdProject _tpdRegion _tpdTargetPool
_tpdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetPoolsDeleteResource)
mempty