{-# 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.WebSecurityScanner.Projects.ScanConfigs.ScanRuns.List
(
ProjectsScanConfigsScanRunsListResource
, projectsScanConfigsScanRunsList
, ProjectsScanConfigsScanRunsList
, pscsrlParent
, pscsrlXgafv
, pscsrlUploadProtocol
, pscsrlAccessToken
, pscsrlUploadType
, pscsrlPageToken
, pscsrlPageSize
, pscsrlCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsScanRunsListResource =
"v1alpha" :>
Capture "parent" Text :>
"scanRuns" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListScanRunsResponse
data ProjectsScanConfigsScanRunsList = ProjectsScanConfigsScanRunsList'
{ _pscsrlParent :: !Text
, _pscsrlXgafv :: !(Maybe Xgafv)
, _pscsrlUploadProtocol :: !(Maybe Text)
, _pscsrlAccessToken :: !(Maybe Text)
, _pscsrlUploadType :: !(Maybe Text)
, _pscsrlPageToken :: !(Maybe Text)
, _pscsrlPageSize :: !(Maybe (Textual Int32))
, _pscsrlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsScanRunsList
:: Text
-> ProjectsScanConfigsScanRunsList
projectsScanConfigsScanRunsList pPscsrlParent_ =
ProjectsScanConfigsScanRunsList'
{ _pscsrlParent = pPscsrlParent_
, _pscsrlXgafv = Nothing
, _pscsrlUploadProtocol = Nothing
, _pscsrlAccessToken = Nothing
, _pscsrlUploadType = Nothing
, _pscsrlPageToken = Nothing
, _pscsrlPageSize = Nothing
, _pscsrlCallback = Nothing
}
pscsrlParent :: Lens' ProjectsScanConfigsScanRunsList Text
pscsrlParent
= lens _pscsrlParent (\ s a -> s{_pscsrlParent = a})
pscsrlXgafv :: Lens' ProjectsScanConfigsScanRunsList (Maybe Xgafv)
pscsrlXgafv
= lens _pscsrlXgafv (\ s a -> s{_pscsrlXgafv = a})
pscsrlUploadProtocol :: Lens' ProjectsScanConfigsScanRunsList (Maybe Text)
pscsrlUploadProtocol
= lens _pscsrlUploadProtocol
(\ s a -> s{_pscsrlUploadProtocol = a})
pscsrlAccessToken :: Lens' ProjectsScanConfigsScanRunsList (Maybe Text)
pscsrlAccessToken
= lens _pscsrlAccessToken
(\ s a -> s{_pscsrlAccessToken = a})
pscsrlUploadType :: Lens' ProjectsScanConfigsScanRunsList (Maybe Text)
pscsrlUploadType
= lens _pscsrlUploadType
(\ s a -> s{_pscsrlUploadType = a})
pscsrlPageToken :: Lens' ProjectsScanConfigsScanRunsList (Maybe Text)
pscsrlPageToken
= lens _pscsrlPageToken
(\ s a -> s{_pscsrlPageToken = a})
pscsrlPageSize :: Lens' ProjectsScanConfigsScanRunsList (Maybe Int32)
pscsrlPageSize
= lens _pscsrlPageSize
(\ s a -> s{_pscsrlPageSize = a})
. mapping _Coerce
pscsrlCallback :: Lens' ProjectsScanConfigsScanRunsList (Maybe Text)
pscsrlCallback
= lens _pscsrlCallback
(\ s a -> s{_pscsrlCallback = a})
instance GoogleRequest
ProjectsScanConfigsScanRunsList where
type Rs ProjectsScanConfigsScanRunsList =
ListScanRunsResponse
type Scopes ProjectsScanConfigsScanRunsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsScanConfigsScanRunsList'{..}
= go _pscsrlParent _pscsrlXgafv _pscsrlUploadProtocol
_pscsrlAccessToken
_pscsrlUploadType
_pscsrlPageToken
_pscsrlPageSize
_pscsrlCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsScanConfigsScanRunsListResource)
mempty