{-# 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.Builds.List
(
ProjectsBuildsListResource
, projectsBuildsList
, ProjectsBuildsList
, pblXgafv
, pblUploadProtocol
, pblAccessToken
, pblUploadType
, pblFilter
, pblPageToken
, pblProjectId
, pblPageSize
, pblCallback
) where
import Network.Google.ContainerBuilder.Types
import Network.Google.Prelude
type ProjectsBuildsListResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"builds" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListBuildsResponse
data ProjectsBuildsList = ProjectsBuildsList'
{ _pblXgafv :: !(Maybe Xgafv)
, _pblUploadProtocol :: !(Maybe Text)
, _pblAccessToken :: !(Maybe Text)
, _pblUploadType :: !(Maybe Text)
, _pblFilter :: !(Maybe Text)
, _pblPageToken :: !(Maybe Text)
, _pblProjectId :: !Text
, _pblPageSize :: !(Maybe (Textual Int32))
, _pblCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsBuildsList
:: Text
-> ProjectsBuildsList
projectsBuildsList pPblProjectId_ =
ProjectsBuildsList'
{ _pblXgafv = Nothing
, _pblUploadProtocol = Nothing
, _pblAccessToken = Nothing
, _pblUploadType = Nothing
, _pblFilter = Nothing
, _pblPageToken = Nothing
, _pblProjectId = pPblProjectId_
, _pblPageSize = Nothing
, _pblCallback = Nothing
}
pblXgafv :: Lens' ProjectsBuildsList (Maybe Xgafv)
pblXgafv = lens _pblXgafv (\ s a -> s{_pblXgafv = a})
pblUploadProtocol :: Lens' ProjectsBuildsList (Maybe Text)
pblUploadProtocol
= lens _pblUploadProtocol
(\ s a -> s{_pblUploadProtocol = a})
pblAccessToken :: Lens' ProjectsBuildsList (Maybe Text)
pblAccessToken
= lens _pblAccessToken
(\ s a -> s{_pblAccessToken = a})
pblUploadType :: Lens' ProjectsBuildsList (Maybe Text)
pblUploadType
= lens _pblUploadType
(\ s a -> s{_pblUploadType = a})
pblFilter :: Lens' ProjectsBuildsList (Maybe Text)
pblFilter
= lens _pblFilter (\ s a -> s{_pblFilter = a})
pblPageToken :: Lens' ProjectsBuildsList (Maybe Text)
pblPageToken
= lens _pblPageToken (\ s a -> s{_pblPageToken = a})
pblProjectId :: Lens' ProjectsBuildsList Text
pblProjectId
= lens _pblProjectId (\ s a -> s{_pblProjectId = a})
pblPageSize :: Lens' ProjectsBuildsList (Maybe Int32)
pblPageSize
= lens _pblPageSize (\ s a -> s{_pblPageSize = a}) .
mapping _Coerce
pblCallback :: Lens' ProjectsBuildsList (Maybe Text)
pblCallback
= lens _pblCallback (\ s a -> s{_pblCallback = a})
instance GoogleRequest ProjectsBuildsList where
type Rs ProjectsBuildsList = ListBuildsResponse
type Scopes ProjectsBuildsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsBuildsList'{..}
= go _pblProjectId _pblXgafv _pblUploadProtocol
_pblAccessToken
_pblUploadType
_pblFilter
_pblPageToken
_pblPageSize
_pblCallback
(Just AltJSON)
containerBuilderService
where go
= buildClient
(Proxy :: Proxy ProjectsBuildsListResource)
mempty