{-# 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.FirebaseRules.Projects.Rulesets.Delete
(
ProjectsRulesetsDeleteResource
, projectsRulesetsDelete
, ProjectsRulesetsDelete
, proXgafv
, proUploadProtocol
, proAccessToken
, proUploadType
, proName
, proCallback
) where
import Network.Google.FirebaseRules.Types
import Network.Google.Prelude
type ProjectsRulesetsDeleteResource =
"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] Empty
data ProjectsRulesetsDelete = ProjectsRulesetsDelete'
{ _proXgafv :: !(Maybe Xgafv)
, _proUploadProtocol :: !(Maybe Text)
, _proAccessToken :: !(Maybe Text)
, _proUploadType :: !(Maybe Text)
, _proName :: !Text
, _proCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRulesetsDelete
:: Text
-> ProjectsRulesetsDelete
projectsRulesetsDelete pProName_ =
ProjectsRulesetsDelete'
{ _proXgafv = Nothing
, _proUploadProtocol = Nothing
, _proAccessToken = Nothing
, _proUploadType = Nothing
, _proName = pProName_
, _proCallback = Nothing
}
proXgafv :: Lens' ProjectsRulesetsDelete (Maybe Xgafv)
proXgafv = lens _proXgafv (\ s a -> s{_proXgafv = a})
proUploadProtocol :: Lens' ProjectsRulesetsDelete (Maybe Text)
proUploadProtocol
= lens _proUploadProtocol
(\ s a -> s{_proUploadProtocol = a})
proAccessToken :: Lens' ProjectsRulesetsDelete (Maybe Text)
proAccessToken
= lens _proAccessToken
(\ s a -> s{_proAccessToken = a})
proUploadType :: Lens' ProjectsRulesetsDelete (Maybe Text)
proUploadType
= lens _proUploadType
(\ s a -> s{_proUploadType = a})
proName :: Lens' ProjectsRulesetsDelete Text
proName = lens _proName (\ s a -> s{_proName = a})
proCallback :: Lens' ProjectsRulesetsDelete (Maybe Text)
proCallback
= lens _proCallback (\ s a -> s{_proCallback = a})
instance GoogleRequest ProjectsRulesetsDelete where
type Rs ProjectsRulesetsDelete = Empty
type Scopes ProjectsRulesetsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase"]
requestClient ProjectsRulesetsDelete'{..}
= go _proName _proXgafv _proUploadProtocol
_proAccessToken
_proUploadType
_proCallback
(Just AltJSON)
firebaseRulesService
where go
= buildClient
(Proxy :: Proxy ProjectsRulesetsDeleteResource)
mempty