{-# 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.ContainerAnalysis.Projects.Occurrences.GetVulnerabilitySummary
(
ProjectsOccurrencesGetVulnerabilitySummaryResource
, projectsOccurrencesGetVulnerabilitySummary
, ProjectsOccurrencesGetVulnerabilitySummary
, pogvsParent
, pogvsXgafv
, pogvsUploadProtocol
, pogvsAccessToken
, pogvsUploadType
, pogvsFilter
, pogvsCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsOccurrencesGetVulnerabilitySummaryResource
=
"v1beta1" :>
Capture "parent" Text :>
"occurrences:vulnerabilitySummary" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] VulnerabilityOccurrencesSummary
data ProjectsOccurrencesGetVulnerabilitySummary = ProjectsOccurrencesGetVulnerabilitySummary'
{ _pogvsParent :: !Text
, _pogvsXgafv :: !(Maybe Xgafv)
, _pogvsUploadProtocol :: !(Maybe Text)
, _pogvsAccessToken :: !(Maybe Text)
, _pogvsUploadType :: !(Maybe Text)
, _pogvsFilter :: !(Maybe Text)
, _pogvsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOccurrencesGetVulnerabilitySummary
:: Text
-> ProjectsOccurrencesGetVulnerabilitySummary
projectsOccurrencesGetVulnerabilitySummary pPogvsParent_ =
ProjectsOccurrencesGetVulnerabilitySummary'
{ _pogvsParent = pPogvsParent_
, _pogvsXgafv = Nothing
, _pogvsUploadProtocol = Nothing
, _pogvsAccessToken = Nothing
, _pogvsUploadType = Nothing
, _pogvsFilter = Nothing
, _pogvsCallback = Nothing
}
pogvsParent :: Lens' ProjectsOccurrencesGetVulnerabilitySummary Text
pogvsParent
= lens _pogvsParent (\ s a -> s{_pogvsParent = a})
pogvsXgafv :: Lens' ProjectsOccurrencesGetVulnerabilitySummary (Maybe Xgafv)
pogvsXgafv
= lens _pogvsXgafv (\ s a -> s{_pogvsXgafv = a})
pogvsUploadProtocol :: Lens' ProjectsOccurrencesGetVulnerabilitySummary (Maybe Text)
pogvsUploadProtocol
= lens _pogvsUploadProtocol
(\ s a -> s{_pogvsUploadProtocol = a})
pogvsAccessToken :: Lens' ProjectsOccurrencesGetVulnerabilitySummary (Maybe Text)
pogvsAccessToken
= lens _pogvsAccessToken
(\ s a -> s{_pogvsAccessToken = a})
pogvsUploadType :: Lens' ProjectsOccurrencesGetVulnerabilitySummary (Maybe Text)
pogvsUploadType
= lens _pogvsUploadType
(\ s a -> s{_pogvsUploadType = a})
pogvsFilter :: Lens' ProjectsOccurrencesGetVulnerabilitySummary (Maybe Text)
pogvsFilter
= lens _pogvsFilter (\ s a -> s{_pogvsFilter = a})
pogvsCallback :: Lens' ProjectsOccurrencesGetVulnerabilitySummary (Maybe Text)
pogvsCallback
= lens _pogvsCallback
(\ s a -> s{_pogvsCallback = a})
instance GoogleRequest
ProjectsOccurrencesGetVulnerabilitySummary where
type Rs ProjectsOccurrencesGetVulnerabilitySummary =
VulnerabilityOccurrencesSummary
type Scopes
ProjectsOccurrencesGetVulnerabilitySummary
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsOccurrencesGetVulnerabilitySummary'{..}
= go _pogvsParent _pogvsXgafv _pogvsUploadProtocol
_pogvsAccessToken
_pogvsUploadType
_pogvsFilter
_pogvsCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy ::
Proxy
ProjectsOccurrencesGetVulnerabilitySummaryResource)
mempty