{-# 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.List
(
ProjectsOccurrencesListResource
, projectsOccurrencesList
, ProjectsOccurrencesList
, polParent
, polXgafv
, polUploadProtocol
, polAccessToken
, polUploadType
, polFilter
, polPageToken
, polPageSize
, polCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsOccurrencesListResource =
"v1beta1" :>
Capture "parent" Text :>
"occurrences" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListOccurrencesResponse
data ProjectsOccurrencesList = ProjectsOccurrencesList'
{ _polParent :: !Text
, _polXgafv :: !(Maybe Xgafv)
, _polUploadProtocol :: !(Maybe Text)
, _polAccessToken :: !(Maybe Text)
, _polUploadType :: !(Maybe Text)
, _polFilter :: !(Maybe Text)
, _polPageToken :: !(Maybe Text)
, _polPageSize :: !(Maybe (Textual Int32))
, _polCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOccurrencesList
:: Text
-> ProjectsOccurrencesList
projectsOccurrencesList pPolParent_ =
ProjectsOccurrencesList'
{ _polParent = pPolParent_
, _polXgafv = Nothing
, _polUploadProtocol = Nothing
, _polAccessToken = Nothing
, _polUploadType = Nothing
, _polFilter = Nothing
, _polPageToken = Nothing
, _polPageSize = Nothing
, _polCallback = Nothing
}
polParent :: Lens' ProjectsOccurrencesList Text
polParent
= lens _polParent (\ s a -> s{_polParent = a})
polXgafv :: Lens' ProjectsOccurrencesList (Maybe Xgafv)
polXgafv = lens _polXgafv (\ s a -> s{_polXgafv = a})
polUploadProtocol :: Lens' ProjectsOccurrencesList (Maybe Text)
polUploadProtocol
= lens _polUploadProtocol
(\ s a -> s{_polUploadProtocol = a})
polAccessToken :: Lens' ProjectsOccurrencesList (Maybe Text)
polAccessToken
= lens _polAccessToken
(\ s a -> s{_polAccessToken = a})
polUploadType :: Lens' ProjectsOccurrencesList (Maybe Text)
polUploadType
= lens _polUploadType
(\ s a -> s{_polUploadType = a})
polFilter :: Lens' ProjectsOccurrencesList (Maybe Text)
polFilter
= lens _polFilter (\ s a -> s{_polFilter = a})
polPageToken :: Lens' ProjectsOccurrencesList (Maybe Text)
polPageToken
= lens _polPageToken (\ s a -> s{_polPageToken = a})
polPageSize :: Lens' ProjectsOccurrencesList (Maybe Int32)
polPageSize
= lens _polPageSize (\ s a -> s{_polPageSize = a}) .
mapping _Coerce
polCallback :: Lens' ProjectsOccurrencesList (Maybe Text)
polCallback
= lens _polCallback (\ s a -> s{_polCallback = a})
instance GoogleRequest ProjectsOccurrencesList where
type Rs ProjectsOccurrencesList =
ListOccurrencesResponse
type Scopes ProjectsOccurrencesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsOccurrencesList'{..}
= go _polParent _polXgafv _polUploadProtocol
_polAccessToken
_polUploadType
_polFilter
_polPageToken
_polPageSize
_polCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsOccurrencesListResource)
mempty