{-# 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.Cloudbuild.Projects.Triggers.Delete
(
ProjectsTriggersDeleteResource
, projectsTriggersDelete
, ProjectsTriggersDelete
, ptdXgafv
, ptdUploadProtocol
, ptdTriggerId
, ptdAccessToken
, ptdUploadType
, ptdProjectId
, ptdCallback
) where
import Network.Google.ContainerBuilder.Types
import Network.Google.Prelude
type ProjectsTriggersDeleteResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"triggers" :>
Capture "triggerId" 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 ProjectsTriggersDelete = ProjectsTriggersDelete'
{ _ptdXgafv :: !(Maybe Xgafv)
, _ptdUploadProtocol :: !(Maybe Text)
, _ptdTriggerId :: !Text
, _ptdAccessToken :: !(Maybe Text)
, _ptdUploadType :: !(Maybe Text)
, _ptdProjectId :: !Text
, _ptdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTriggersDelete
:: Text
-> Text
-> ProjectsTriggersDelete
projectsTriggersDelete pPtdTriggerId_ pPtdProjectId_ =
ProjectsTriggersDelete'
{ _ptdXgafv = Nothing
, _ptdUploadProtocol = Nothing
, _ptdTriggerId = pPtdTriggerId_
, _ptdAccessToken = Nothing
, _ptdUploadType = Nothing
, _ptdProjectId = pPtdProjectId_
, _ptdCallback = Nothing
}
ptdXgafv :: Lens' ProjectsTriggersDelete (Maybe Xgafv)
ptdXgafv = lens _ptdXgafv (\ s a -> s{_ptdXgafv = a})
ptdUploadProtocol :: Lens' ProjectsTriggersDelete (Maybe Text)
ptdUploadProtocol
= lens _ptdUploadProtocol
(\ s a -> s{_ptdUploadProtocol = a})
ptdTriggerId :: Lens' ProjectsTriggersDelete Text
ptdTriggerId
= lens _ptdTriggerId (\ s a -> s{_ptdTriggerId = a})
ptdAccessToken :: Lens' ProjectsTriggersDelete (Maybe Text)
ptdAccessToken
= lens _ptdAccessToken
(\ s a -> s{_ptdAccessToken = a})
ptdUploadType :: Lens' ProjectsTriggersDelete (Maybe Text)
ptdUploadType
= lens _ptdUploadType
(\ s a -> s{_ptdUploadType = a})
ptdProjectId :: Lens' ProjectsTriggersDelete Text
ptdProjectId
= lens _ptdProjectId (\ s a -> s{_ptdProjectId = a})
ptdCallback :: Lens' ProjectsTriggersDelete (Maybe Text)
ptdCallback
= lens _ptdCallback (\ s a -> s{_ptdCallback = a})
instance GoogleRequest ProjectsTriggersDelete where
type Rs ProjectsTriggersDelete = Empty
type Scopes ProjectsTriggersDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsTriggersDelete'{..}
= go _ptdProjectId _ptdTriggerId _ptdXgafv
_ptdUploadProtocol
_ptdAccessToken
_ptdUploadType
_ptdCallback
(Just AltJSON)
containerBuilderService
where go
= buildClient
(Proxy :: Proxy ProjectsTriggersDeleteResource)
mempty