{-# 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.Get
(
ProjectsScanConfigsGetResource
, projectsScanConfigsGet
, ProjectsScanConfigsGet
, pscgXgafv
, pscgUploadProtocol
, pscgAccessToken
, pscgUploadType
, pscgName
, pscgCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsGetResource =
"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] ScanConfig
data ProjectsScanConfigsGet = ProjectsScanConfigsGet'
{ _pscgXgafv :: !(Maybe Xgafv)
, _pscgUploadProtocol :: !(Maybe Text)
, _pscgAccessToken :: !(Maybe Text)
, _pscgUploadType :: !(Maybe Text)
, _pscgName :: !Text
, _pscgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsGet
:: Text
-> ProjectsScanConfigsGet
projectsScanConfigsGet pPscgName_ =
ProjectsScanConfigsGet'
{ _pscgXgafv = Nothing
, _pscgUploadProtocol = Nothing
, _pscgAccessToken = Nothing
, _pscgUploadType = Nothing
, _pscgName = pPscgName_
, _pscgCallback = Nothing
}
pscgXgafv :: Lens' ProjectsScanConfigsGet (Maybe Xgafv)
pscgXgafv
= lens _pscgXgafv (\ s a -> s{_pscgXgafv = a})
pscgUploadProtocol :: Lens' ProjectsScanConfigsGet (Maybe Text)
pscgUploadProtocol
= lens _pscgUploadProtocol
(\ s a -> s{_pscgUploadProtocol = a})
pscgAccessToken :: Lens' ProjectsScanConfigsGet (Maybe Text)
pscgAccessToken
= lens _pscgAccessToken
(\ s a -> s{_pscgAccessToken = a})
pscgUploadType :: Lens' ProjectsScanConfigsGet (Maybe Text)
pscgUploadType
= lens _pscgUploadType
(\ s a -> s{_pscgUploadType = a})
pscgName :: Lens' ProjectsScanConfigsGet Text
pscgName = lens _pscgName (\ s a -> s{_pscgName = a})
pscgCallback :: Lens' ProjectsScanConfigsGet (Maybe Text)
pscgCallback
= lens _pscgCallback (\ s a -> s{_pscgCallback = a})
instance GoogleRequest ProjectsScanConfigsGet where
type Rs ProjectsScanConfigsGet = ScanConfig
type Scopes ProjectsScanConfigsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsScanConfigsGet'{..}
= go _pscgName _pscgXgafv _pscgUploadProtocol
_pscgAccessToken
_pscgUploadType
_pscgCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy :: Proxy ProjectsScanConfigsGetResource)
mempty