{-# 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.Releases.Delete
(
ProjectsReleasesDeleteResource
, projectsReleasesDelete
, ProjectsReleasesDelete
, prdXgafv
, prdUploadProtocol
, prdAccessToken
, prdUploadType
, prdName
, prdCallback
) where
import Network.Google.FirebaseRules.Types
import Network.Google.Prelude
type ProjectsReleasesDeleteResource =
"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 ProjectsReleasesDelete = ProjectsReleasesDelete'
{ _prdXgafv :: !(Maybe Xgafv)
, _prdUploadProtocol :: !(Maybe Text)
, _prdAccessToken :: !(Maybe Text)
, _prdUploadType :: !(Maybe Text)
, _prdName :: !Text
, _prdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsReleasesDelete
:: Text
-> ProjectsReleasesDelete
projectsReleasesDelete pPrdName_ =
ProjectsReleasesDelete'
{ _prdXgafv = Nothing
, _prdUploadProtocol = Nothing
, _prdAccessToken = Nothing
, _prdUploadType = Nothing
, _prdName = pPrdName_
, _prdCallback = Nothing
}
prdXgafv :: Lens' ProjectsReleasesDelete (Maybe Xgafv)
prdXgafv = lens _prdXgafv (\ s a -> s{_prdXgafv = a})
prdUploadProtocol :: Lens' ProjectsReleasesDelete (Maybe Text)
prdUploadProtocol
= lens _prdUploadProtocol
(\ s a -> s{_prdUploadProtocol = a})
prdAccessToken :: Lens' ProjectsReleasesDelete (Maybe Text)
prdAccessToken
= lens _prdAccessToken
(\ s a -> s{_prdAccessToken = a})
prdUploadType :: Lens' ProjectsReleasesDelete (Maybe Text)
prdUploadType
= lens _prdUploadType
(\ s a -> s{_prdUploadType = a})
prdName :: Lens' ProjectsReleasesDelete Text
prdName = lens _prdName (\ s a -> s{_prdName = a})
prdCallback :: Lens' ProjectsReleasesDelete (Maybe Text)
prdCallback
= lens _prdCallback (\ s a -> s{_prdCallback = a})
instance GoogleRequest ProjectsReleasesDelete where
type Rs ProjectsReleasesDelete = Empty
type Scopes ProjectsReleasesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase"]
requestClient ProjectsReleasesDelete'{..}
= go _prdName _prdXgafv _prdUploadProtocol
_prdAccessToken
_prdUploadType
_prdCallback
(Just AltJSON)
firebaseRulesService
where go
= buildClient
(Proxy :: Proxy ProjectsReleasesDeleteResource)
mempty