{-# 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.FirebaseHosting.Sites.Versions.Delete
(
SitesVersionsDeleteResource
, sitesVersionsDelete
, SitesVersionsDelete
, svdXgafv
, svdUploadProtocol
, svdAccessToken
, svdUploadType
, svdName
, svdCallback
) where
import Network.Google.FirebaseHosting.Types
import Network.Google.Prelude
type SitesVersionsDeleteResource =
"v1beta1" :>
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 SitesVersionsDelete = SitesVersionsDelete'
{ _svdXgafv :: !(Maybe Xgafv)
, _svdUploadProtocol :: !(Maybe Text)
, _svdAccessToken :: !(Maybe Text)
, _svdUploadType :: !(Maybe Text)
, _svdName :: !Text
, _svdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
sitesVersionsDelete
:: Text
-> SitesVersionsDelete
sitesVersionsDelete pSvdName_ =
SitesVersionsDelete'
{ _svdXgafv = Nothing
, _svdUploadProtocol = Nothing
, _svdAccessToken = Nothing
, _svdUploadType = Nothing
, _svdName = pSvdName_
, _svdCallback = Nothing
}
svdXgafv :: Lens' SitesVersionsDelete (Maybe Xgafv)
svdXgafv = lens _svdXgafv (\ s a -> s{_svdXgafv = a})
svdUploadProtocol :: Lens' SitesVersionsDelete (Maybe Text)
svdUploadProtocol
= lens _svdUploadProtocol
(\ s a -> s{_svdUploadProtocol = a})
svdAccessToken :: Lens' SitesVersionsDelete (Maybe Text)
svdAccessToken
= lens _svdAccessToken
(\ s a -> s{_svdAccessToken = a})
svdUploadType :: Lens' SitesVersionsDelete (Maybe Text)
svdUploadType
= lens _svdUploadType
(\ s a -> s{_svdUploadType = a})
svdName :: Lens' SitesVersionsDelete Text
svdName = lens _svdName (\ s a -> s{_svdName = a})
svdCallback :: Lens' SitesVersionsDelete (Maybe Text)
svdCallback
= lens _svdCallback (\ s a -> s{_svdCallback = a})
instance GoogleRequest SitesVersionsDelete where
type Rs SitesVersionsDelete = Empty
type Scopes SitesVersionsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/firebase"]
requestClient SitesVersionsDelete'{..}
= go _svdName _svdXgafv _svdUploadProtocol
_svdAccessToken
_svdUploadType
_svdCallback
(Just AltJSON)
firebaseHostingService
where go
= buildClient
(Proxy :: Proxy SitesVersionsDeleteResource)
mempty