{-# 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.Get
(
ProjectsScanConfigsScanRunsFindingsGetResource
, projectsScanConfigsScanRunsFindingsGet
, ProjectsScanConfigsScanRunsFindingsGet
, pscsrfgXgafv
, pscsrfgUploadProtocol
, pscsrfgAccessToken
, pscsrfgUploadType
, pscsrfgName
, pscsrfgCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsScanRunsFindingsGetResource =
"v1alpha" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Finding
data ProjectsScanConfigsScanRunsFindingsGet = ProjectsScanConfigsScanRunsFindingsGet'
{ _pscsrfgXgafv :: !(Maybe Xgafv)
, _pscsrfgUploadProtocol :: !(Maybe Text)
, _pscsrfgAccessToken :: !(Maybe Text)
, _pscsrfgUploadType :: !(Maybe Text)
, _pscsrfgName :: !Text
, _pscsrfgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsScanRunsFindingsGet
:: Text
-> ProjectsScanConfigsScanRunsFindingsGet
projectsScanConfigsScanRunsFindingsGet pPscsrfgName_ =
ProjectsScanConfigsScanRunsFindingsGet'
{ _pscsrfgXgafv = Nothing
, _pscsrfgUploadProtocol = Nothing
, _pscsrfgAccessToken = Nothing
, _pscsrfgUploadType = Nothing
, _pscsrfgName = pPscsrfgName_
, _pscsrfgCallback = Nothing
}
pscsrfgXgafv :: Lens' ProjectsScanConfigsScanRunsFindingsGet (Maybe Xgafv)
pscsrfgXgafv
= lens _pscsrfgXgafv (\ s a -> s{_pscsrfgXgafv = a})
pscsrfgUploadProtocol :: Lens' ProjectsScanConfigsScanRunsFindingsGet (Maybe Text)
pscsrfgUploadProtocol
= lens _pscsrfgUploadProtocol
(\ s a -> s{_pscsrfgUploadProtocol = a})
pscsrfgAccessToken :: Lens' ProjectsScanConfigsScanRunsFindingsGet (Maybe Text)
pscsrfgAccessToken
= lens _pscsrfgAccessToken
(\ s a -> s{_pscsrfgAccessToken = a})
pscsrfgUploadType :: Lens' ProjectsScanConfigsScanRunsFindingsGet (Maybe Text)
pscsrfgUploadType
= lens _pscsrfgUploadType
(\ s a -> s{_pscsrfgUploadType = a})
pscsrfgName :: Lens' ProjectsScanConfigsScanRunsFindingsGet Text
pscsrfgName
= lens _pscsrfgName (\ s a -> s{_pscsrfgName = a})
pscsrfgCallback :: Lens' ProjectsScanConfigsScanRunsFindingsGet (Maybe Text)
pscsrfgCallback
= lens _pscsrfgCallback
(\ s a -> s{_pscsrfgCallback = a})
instance GoogleRequest
ProjectsScanConfigsScanRunsFindingsGet where
type Rs ProjectsScanConfigsScanRunsFindingsGet =
Finding
type Scopes ProjectsScanConfigsScanRunsFindingsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsScanConfigsScanRunsFindingsGet'{..}
= go _pscsrfgName _pscsrfgXgafv
_pscsrfgUploadProtocol
_pscsrfgAccessToken
_pscsrfgUploadType
_pscsrfgCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsScanConfigsScanRunsFindingsGetResource)
mempty