{-# 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.List
(
ProjectsScanConfigsListResource
, projectsScanConfigsList
, ProjectsScanConfigsList
, psclParent
, psclXgafv
, psclUploadProtocol
, psclAccessToken
, psclUploadType
, psclPageToken
, psclPageSize
, psclCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsListResource =
"v1alpha" :>
Capture "parent" Text :>
"scanConfigs" :>
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] ListScanConfigsResponse
data ProjectsScanConfigsList = ProjectsScanConfigsList'
{ _psclParent :: !Text
, _psclXgafv :: !(Maybe Xgafv)
, _psclUploadProtocol :: !(Maybe Text)
, _psclAccessToken :: !(Maybe Text)
, _psclUploadType :: !(Maybe Text)
, _psclPageToken :: !(Maybe Text)
, _psclPageSize :: !(Maybe (Textual Int32))
, _psclCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsList
:: Text
-> ProjectsScanConfigsList
projectsScanConfigsList pPsclParent_ =
ProjectsScanConfigsList'
{ _psclParent = pPsclParent_
, _psclXgafv = Nothing
, _psclUploadProtocol = Nothing
, _psclAccessToken = Nothing
, _psclUploadType = Nothing
, _psclPageToken = Nothing
, _psclPageSize = Nothing
, _psclCallback = Nothing
}
psclParent :: Lens' ProjectsScanConfigsList Text
psclParent
= lens _psclParent (\ s a -> s{_psclParent = a})
psclXgafv :: Lens' ProjectsScanConfigsList (Maybe Xgafv)
psclXgafv
= lens _psclXgafv (\ s a -> s{_psclXgafv = a})
psclUploadProtocol :: Lens' ProjectsScanConfigsList (Maybe Text)
psclUploadProtocol
= lens _psclUploadProtocol
(\ s a -> s{_psclUploadProtocol = a})
psclAccessToken :: Lens' ProjectsScanConfigsList (Maybe Text)
psclAccessToken
= lens _psclAccessToken
(\ s a -> s{_psclAccessToken = a})
psclUploadType :: Lens' ProjectsScanConfigsList (Maybe Text)
psclUploadType
= lens _psclUploadType
(\ s a -> s{_psclUploadType = a})
psclPageToken :: Lens' ProjectsScanConfigsList (Maybe Text)
psclPageToken
= lens _psclPageToken
(\ s a -> s{_psclPageToken = a})
psclPageSize :: Lens' ProjectsScanConfigsList (Maybe Int32)
psclPageSize
= lens _psclPageSize (\ s a -> s{_psclPageSize = a})
. mapping _Coerce
psclCallback :: Lens' ProjectsScanConfigsList (Maybe Text)
psclCallback
= lens _psclCallback (\ s a -> s{_psclCallback = a})
instance GoogleRequest ProjectsScanConfigsList where
type Rs ProjectsScanConfigsList =
ListScanConfigsResponse
type Scopes ProjectsScanConfigsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsScanConfigsList'{..}
= go _psclParent _psclXgafv _psclUploadProtocol
_psclAccessToken
_psclUploadType
_psclPageToken
_psclPageSize
_psclCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy :: Proxy ProjectsScanConfigsListResource)
mempty