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