{-# 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.Get
(
ProjectsScanConfigsScanRunsGetResource
, projectsScanConfigsScanRunsGet
, ProjectsScanConfigsScanRunsGet
, pscsrgXgafv
, pscsrgUploadProtocol
, pscsrgAccessToken
, pscsrgUploadType
, pscsrgName
, pscsrgCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsScanRunsGetResource =
"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] ScanRun
data ProjectsScanConfigsScanRunsGet = ProjectsScanConfigsScanRunsGet'
{ _pscsrgXgafv :: !(Maybe Xgafv)
, _pscsrgUploadProtocol :: !(Maybe Text)
, _pscsrgAccessToken :: !(Maybe Text)
, _pscsrgUploadType :: !(Maybe Text)
, _pscsrgName :: !Text
, _pscsrgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsScanRunsGet
:: Text
-> ProjectsScanConfigsScanRunsGet
projectsScanConfigsScanRunsGet pPscsrgName_ =
ProjectsScanConfigsScanRunsGet'
{ _pscsrgXgafv = Nothing
, _pscsrgUploadProtocol = Nothing
, _pscsrgAccessToken = Nothing
, _pscsrgUploadType = Nothing
, _pscsrgName = pPscsrgName_
, _pscsrgCallback = Nothing
}
pscsrgXgafv :: Lens' ProjectsScanConfigsScanRunsGet (Maybe Xgafv)
pscsrgXgafv
= lens _pscsrgXgafv (\ s a -> s{_pscsrgXgafv = a})
pscsrgUploadProtocol :: Lens' ProjectsScanConfigsScanRunsGet (Maybe Text)
pscsrgUploadProtocol
= lens _pscsrgUploadProtocol
(\ s a -> s{_pscsrgUploadProtocol = a})
pscsrgAccessToken :: Lens' ProjectsScanConfigsScanRunsGet (Maybe Text)
pscsrgAccessToken
= lens _pscsrgAccessToken
(\ s a -> s{_pscsrgAccessToken = a})
pscsrgUploadType :: Lens' ProjectsScanConfigsScanRunsGet (Maybe Text)
pscsrgUploadType
= lens _pscsrgUploadType
(\ s a -> s{_pscsrgUploadType = a})
pscsrgName :: Lens' ProjectsScanConfigsScanRunsGet Text
pscsrgName
= lens _pscsrgName (\ s a -> s{_pscsrgName = a})
pscsrgCallback :: Lens' ProjectsScanConfigsScanRunsGet (Maybe Text)
pscsrgCallback
= lens _pscsrgCallback
(\ s a -> s{_pscsrgCallback = a})
instance GoogleRequest ProjectsScanConfigsScanRunsGet
where
type Rs ProjectsScanConfigsScanRunsGet = ScanRun
type Scopes ProjectsScanConfigsScanRunsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsScanConfigsScanRunsGet'{..}
= go _pscsrgName _pscsrgXgafv _pscsrgUploadProtocol
_pscsrgAccessToken
_pscsrgUploadType
_pscsrgCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsScanConfigsScanRunsGetResource)
mempty