{-# 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.CloudFunctions.Projects.Locations.Functions.Delete
(
ProjectsLocationsFunctionsDeleteResource
, projectsLocationsFunctionsDelete
, ProjectsLocationsFunctionsDelete
, plfdXgafv
, plfdUploadProtocol
, plfdAccessToken
, plfdUploadType
, plfdName
, plfdCallback
) where
import Network.Google.CloudFunctions.Types
import Network.Google.Prelude
type ProjectsLocationsFunctionsDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data ProjectsLocationsFunctionsDelete = ProjectsLocationsFunctionsDelete'
{ _plfdXgafv :: !(Maybe Xgafv)
, _plfdUploadProtocol :: !(Maybe Text)
, _plfdAccessToken :: !(Maybe Text)
, _plfdUploadType :: !(Maybe Text)
, _plfdName :: !Text
, _plfdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsFunctionsDelete
:: Text
-> ProjectsLocationsFunctionsDelete
projectsLocationsFunctionsDelete pPlfdName_ =
ProjectsLocationsFunctionsDelete'
{ _plfdXgafv = Nothing
, _plfdUploadProtocol = Nothing
, _plfdAccessToken = Nothing
, _plfdUploadType = Nothing
, _plfdName = pPlfdName_
, _plfdCallback = Nothing
}
plfdXgafv :: Lens' ProjectsLocationsFunctionsDelete (Maybe Xgafv)
plfdXgafv
= lens _plfdXgafv (\ s a -> s{_plfdXgafv = a})
plfdUploadProtocol :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)
plfdUploadProtocol
= lens _plfdUploadProtocol
(\ s a -> s{_plfdUploadProtocol = a})
plfdAccessToken :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)
plfdAccessToken
= lens _plfdAccessToken
(\ s a -> s{_plfdAccessToken = a})
plfdUploadType :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)
plfdUploadType
= lens _plfdUploadType
(\ s a -> s{_plfdUploadType = a})
plfdName :: Lens' ProjectsLocationsFunctionsDelete Text
plfdName = lens _plfdName (\ s a -> s{_plfdName = a})
plfdCallback :: Lens' ProjectsLocationsFunctionsDelete (Maybe Text)
plfdCallback
= lens _plfdCallback (\ s a -> s{_plfdCallback = a})
instance GoogleRequest
ProjectsLocationsFunctionsDelete where
type Rs ProjectsLocationsFunctionsDelete = Operation
type Scopes ProjectsLocationsFunctionsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsFunctionsDelete'{..}
= go _plfdName _plfdXgafv _plfdUploadProtocol
_plfdAccessToken
_plfdUploadType
_plfdCallback
(Just AltJSON)
cloudFunctionsService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsFunctionsDeleteResource)
mempty