{-# 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.CrawledURLs.List
(
ProjectsScanConfigsScanRunsCrawledURLsListResource
, projectsScanConfigsScanRunsCrawledURLsList
, ProjectsScanConfigsScanRunsCrawledURLsList
, pscsrculParent
, pscsrculXgafv
, pscsrculUploadProtocol
, pscsrculAccessToken
, pscsrculUploadType
, pscsrculPageToken
, pscsrculPageSize
, pscsrculCallback
) where
import Network.Google.Prelude
import Network.Google.WebSecurityScanner.Types
type ProjectsScanConfigsScanRunsCrawledURLsListResource
=
"v1alpha" :>
Capture "parent" Text :>
"crawledUrls" :>
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] ListCrawledURLsResponse
data ProjectsScanConfigsScanRunsCrawledURLsList = ProjectsScanConfigsScanRunsCrawledURLsList'
{ _pscsrculParent :: !Text
, _pscsrculXgafv :: !(Maybe Xgafv)
, _pscsrculUploadProtocol :: !(Maybe Text)
, _pscsrculAccessToken :: !(Maybe Text)
, _pscsrculUploadType :: !(Maybe Text)
, _pscsrculPageToken :: !(Maybe Text)
, _pscsrculPageSize :: !(Maybe (Textual Int32))
, _pscsrculCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsScanConfigsScanRunsCrawledURLsList
:: Text
-> ProjectsScanConfigsScanRunsCrawledURLsList
projectsScanConfigsScanRunsCrawledURLsList pPscsrculParent_ =
ProjectsScanConfigsScanRunsCrawledURLsList'
{ _pscsrculParent = pPscsrculParent_
, _pscsrculXgafv = Nothing
, _pscsrculUploadProtocol = Nothing
, _pscsrculAccessToken = Nothing
, _pscsrculUploadType = Nothing
, _pscsrculPageToken = Nothing
, _pscsrculPageSize = Nothing
, _pscsrculCallback = Nothing
}
pscsrculParent :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList Text
pscsrculParent
= lens _pscsrculParent
(\ s a -> s{_pscsrculParent = a})
pscsrculXgafv :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList (Maybe Xgafv)
pscsrculXgafv
= lens _pscsrculXgafv
(\ s a -> s{_pscsrculXgafv = a})
pscsrculUploadProtocol :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList (Maybe Text)
pscsrculUploadProtocol
= lens _pscsrculUploadProtocol
(\ s a -> s{_pscsrculUploadProtocol = a})
pscsrculAccessToken :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList (Maybe Text)
pscsrculAccessToken
= lens _pscsrculAccessToken
(\ s a -> s{_pscsrculAccessToken = a})
pscsrculUploadType :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList (Maybe Text)
pscsrculUploadType
= lens _pscsrculUploadType
(\ s a -> s{_pscsrculUploadType = a})
pscsrculPageToken :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList (Maybe Text)
pscsrculPageToken
= lens _pscsrculPageToken
(\ s a -> s{_pscsrculPageToken = a})
pscsrculPageSize :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList (Maybe Int32)
pscsrculPageSize
= lens _pscsrculPageSize
(\ s a -> s{_pscsrculPageSize = a})
. mapping _Coerce
pscsrculCallback :: Lens' ProjectsScanConfigsScanRunsCrawledURLsList (Maybe Text)
pscsrculCallback
= lens _pscsrculCallback
(\ s a -> s{_pscsrculCallback = a})
instance GoogleRequest
ProjectsScanConfigsScanRunsCrawledURLsList where
type Rs ProjectsScanConfigsScanRunsCrawledURLsList =
ListCrawledURLsResponse
type Scopes
ProjectsScanConfigsScanRunsCrawledURLsList
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsScanConfigsScanRunsCrawledURLsList'{..}
= go _pscsrculParent _pscsrculXgafv
_pscsrculUploadProtocol
_pscsrculAccessToken
_pscsrculUploadType
_pscsrculPageToken
_pscsrculPageSize
_pscsrculCallback
(Just AltJSON)
webSecurityScannerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsScanConfigsScanRunsCrawledURLsListResource)
mempty