{-# 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.RegionBackendServices.Delete
(
RegionBackendServicesDeleteResource
, regionBackendServicesDelete
, RegionBackendServicesDelete
, rbsdRequestId
, rbsdProject
, rbsdRegion
, rbsdBackendService
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionBackendServicesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"backendServices" :>
Capture "backendService" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data RegionBackendServicesDelete = RegionBackendServicesDelete'
{ _rbsdRequestId :: !(Maybe Text)
, _rbsdProject :: !Text
, _rbsdRegion :: !Text
, _rbsdBackendService :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionBackendServicesDelete
:: Text
-> Text
-> Text
-> RegionBackendServicesDelete
regionBackendServicesDelete pRbsdProject_ pRbsdRegion_ pRbsdBackendService_ =
RegionBackendServicesDelete'
{ _rbsdRequestId = Nothing
, _rbsdProject = pRbsdProject_
, _rbsdRegion = pRbsdRegion_
, _rbsdBackendService = pRbsdBackendService_
}
rbsdRequestId :: Lens' RegionBackendServicesDelete (Maybe Text)
rbsdRequestId
= lens _rbsdRequestId
(\ s a -> s{_rbsdRequestId = a})
rbsdProject :: Lens' RegionBackendServicesDelete Text
rbsdProject
= lens _rbsdProject (\ s a -> s{_rbsdProject = a})
rbsdRegion :: Lens' RegionBackendServicesDelete Text
rbsdRegion
= lens _rbsdRegion (\ s a -> s{_rbsdRegion = a})
rbsdBackendService :: Lens' RegionBackendServicesDelete Text
rbsdBackendService
= lens _rbsdBackendService
(\ s a -> s{_rbsdBackendService = a})
instance GoogleRequest RegionBackendServicesDelete
where
type Rs RegionBackendServicesDelete = Operation
type Scopes RegionBackendServicesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient RegionBackendServicesDelete'{..}
= go _rbsdProject _rbsdRegion _rbsdBackendService
_rbsdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy RegionBackendServicesDeleteResource)
mempty