{-# 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.Findings.List
(
ProjectsScanConfigsScanRunsFindingsListResource
, projectsScanConfigsScanRunsFindingsList
, ProjectsScanConfigsScanRunsFindingsList
, pscsrflParent
, pscsrflXgafv
, pscsrflUploadProtocol
, pscsrflAccessToken
, pscsrflUploadType
, pscsrflFilter
, pscsrflPageToken
, pscsrflPageSize
, pscsrflCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsScanRunsFindingsListResource
=
"v1alpha" :>
Capture "parent" Text :>
"findings" :>
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] ListFindingsResponse
data ProjectsScanConfigsScanRunsFindingsList = ProjectsScanConfigsScanRunsFindingsList'
{ _pscsrflParent :: !Text
, _pscsrflXgafv :: !(Maybe Xgafv)
, _pscsrflUploadProtocol :: !(Maybe Text)
, _pscsrflAccessToken :: !(Maybe Text)
, _pscsrflUploadType :: !(Maybe Text)
, _pscsrflFilter :: !(Maybe Text)
, _pscsrflPageToken :: !(Maybe Text)
, _pscsrflPageSize :: !(Maybe (Textual Int32))
, _pscsrflCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsScanRunsFindingsList
:: Text
-> ProjectsScanConfigsScanRunsFindingsList
projectsScanConfigsScanRunsFindingsList pPscsrflParent_ =
ProjectsScanConfigsScanRunsFindingsList'
{ _pscsrflParent = pPscsrflParent_
, _pscsrflXgafv = Nothing
, _pscsrflUploadProtocol = Nothing
, _pscsrflAccessToken = Nothing
, _pscsrflUploadType = Nothing
, _pscsrflFilter = Nothing
, _pscsrflPageToken = Nothing
, _pscsrflPageSize = Nothing
, _pscsrflCallback = Nothing
}
pscsrflParent :: Lens' ProjectsScanConfigsScanRunsFindingsList Text
pscsrflParent
= lens _pscsrflParent
(\ s a -> s{_pscsrflParent = a})
pscsrflXgafv :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Xgafv)
pscsrflXgafv
= lens _pscsrflXgafv (\ s a -> s{_pscsrflXgafv = a})
pscsrflUploadProtocol :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Text)
pscsrflUploadProtocol
= lens _pscsrflUploadProtocol
(\ s a -> s{_pscsrflUploadProtocol = a})
pscsrflAccessToken :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Text)
pscsrflAccessToken
= lens _pscsrflAccessToken
(\ s a -> s{_pscsrflAccessToken = a})
pscsrflUploadType :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Text)
pscsrflUploadType
= lens _pscsrflUploadType
(\ s a -> s{_pscsrflUploadType = a})
pscsrflFilter :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Text)
pscsrflFilter
= lens _pscsrflFilter
(\ s a -> s{_pscsrflFilter = a})
pscsrflPageToken :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Text)
pscsrflPageToken
= lens _pscsrflPageToken
(\ s a -> s{_pscsrflPageToken = a})
pscsrflPageSize :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Int32)
pscsrflPageSize
= lens _pscsrflPageSize
(\ s a -> s{_pscsrflPageSize = a})
. mapping _Coerce
pscsrflCallback :: Lens' ProjectsScanConfigsScanRunsFindingsList (Maybe Text)
pscsrflCallback
= lens _pscsrflCallback
(\ s a -> s{_pscsrflCallback = a})
instance GoogleRequest
ProjectsScanConfigsScanRunsFindingsList where
type Rs ProjectsScanConfigsScanRunsFindingsList =
ListFindingsResponse
type Scopes ProjectsScanConfigsScanRunsFindingsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsScanConfigsScanRunsFindingsList'{..}
= go _pscsrflParent _pscsrflXgafv
_pscsrflUploadProtocol
_pscsrflAccessToken
_pscsrflUploadType
_pscsrflFilter
_pscsrflPageToken
_pscsrflPageSize
_pscsrflCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsScanConfigsScanRunsFindingsListResource)
mempty