{-# 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.BackendServices.Delete
(
BackendServicesDeleteResource
, backendServicesDelete
, BackendServicesDelete
, bsdRequestId
, bsdProject
, bsdBackendService
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type BackendServicesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"backendServices" :>
Capture "backendService" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data BackendServicesDelete = BackendServicesDelete'
{ _bsdRequestId :: !(Maybe Text)
, _bsdProject :: !Text
, _bsdBackendService :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
backendServicesDelete
:: Text
-> Text
-> BackendServicesDelete
backendServicesDelete pBsdProject_ pBsdBackendService_ =
BackendServicesDelete'
{ _bsdRequestId = Nothing
, _bsdProject = pBsdProject_
, _bsdBackendService = pBsdBackendService_
}
bsdRequestId :: Lens' BackendServicesDelete (Maybe Text)
bsdRequestId
= lens _bsdRequestId (\ s a -> s{_bsdRequestId = a})
bsdProject :: Lens' BackendServicesDelete Text
bsdProject
= lens _bsdProject (\ s a -> s{_bsdProject = a})
bsdBackendService :: Lens' BackendServicesDelete Text
bsdBackendService
= lens _bsdBackendService
(\ s a -> s{_bsdBackendService = a})
instance GoogleRequest BackendServicesDelete where
type Rs BackendServicesDelete = Operation
type Scopes BackendServicesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient BackendServicesDelete'{..}
= go _bsdProject _bsdBackendService _bsdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy BackendServicesDeleteResource)
mempty