{-# 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.List
(
ProjectsTriggersListResource
, projectsTriggersList
, ProjectsTriggersList
, ptlXgafv
, ptlUploadProtocol
, ptlAccessToken
, ptlUploadType
, ptlProjectId
, ptlCallback
) where
import Network.Google.ContainerBuilder.Types
import Network.Google.Prelude
type ProjectsTriggersListResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"triggers" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListBuildTriggersResponse
data ProjectsTriggersList = ProjectsTriggersList'
{ _ptlXgafv :: !(Maybe Xgafv)
, _ptlUploadProtocol :: !(Maybe Text)
, _ptlAccessToken :: !(Maybe Text)
, _ptlUploadType :: !(Maybe Text)
, _ptlProjectId :: !Text
, _ptlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsTriggersList
:: Text
-> ProjectsTriggersList
projectsTriggersList pPtlProjectId_ =
ProjectsTriggersList'
{ _ptlXgafv = Nothing
, _ptlUploadProtocol = Nothing
, _ptlAccessToken = Nothing
, _ptlUploadType = Nothing
, _ptlProjectId = pPtlProjectId_
, _ptlCallback = Nothing
}
ptlXgafv :: Lens' ProjectsTriggersList (Maybe Xgafv)
ptlXgafv = lens _ptlXgafv (\ s a -> s{_ptlXgafv = a})
ptlUploadProtocol :: Lens' ProjectsTriggersList (Maybe Text)
ptlUploadProtocol
= lens _ptlUploadProtocol
(\ s a -> s{_ptlUploadProtocol = a})
ptlAccessToken :: Lens' ProjectsTriggersList (Maybe Text)
ptlAccessToken
= lens _ptlAccessToken
(\ s a -> s{_ptlAccessToken = a})
ptlUploadType :: Lens' ProjectsTriggersList (Maybe Text)
ptlUploadType
= lens _ptlUploadType
(\ s a -> s{_ptlUploadType = a})
ptlProjectId :: Lens' ProjectsTriggersList Text
ptlProjectId
= lens _ptlProjectId (\ s a -> s{_ptlProjectId = a})
ptlCallback :: Lens' ProjectsTriggersList (Maybe Text)
ptlCallback
= lens _ptlCallback (\ s a -> s{_ptlCallback = a})
instance GoogleRequest ProjectsTriggersList where
type Rs ProjectsTriggersList =
ListBuildTriggersResponse
type Scopes ProjectsTriggersList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsTriggersList'{..}
= go _ptlProjectId _ptlXgafv _ptlUploadProtocol
_ptlAccessToken
_ptlUploadType
_ptlCallback
(Just AltJSON)
containerBuilderService
where go
= buildClient
(Proxy :: Proxy ProjectsTriggersListResource)
mempty