{-# 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.Notes.Occurrences.List
(
ProjectsNotesOccurrencesListResource
, projectsNotesOccurrencesList
, ProjectsNotesOccurrencesList
, pnolXgafv
, pnolUploadProtocol
, pnolAccessToken
, pnolUploadType
, pnolName
, pnolFilter
, pnolPageToken
, pnolPageSize
, pnolCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsNotesOccurrencesListResource =
"v1beta1" :>
Capture "name" 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] ListNoteOccurrencesResponse
data ProjectsNotesOccurrencesList = ProjectsNotesOccurrencesList'
{ _pnolXgafv :: !(Maybe Xgafv)
, _pnolUploadProtocol :: !(Maybe Text)
, _pnolAccessToken :: !(Maybe Text)
, _pnolUploadType :: !(Maybe Text)
, _pnolName :: !Text
, _pnolFilter :: !(Maybe Text)
, _pnolPageToken :: !(Maybe Text)
, _pnolPageSize :: !(Maybe (Textual Int32))
, _pnolCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotesOccurrencesList
:: Text
-> ProjectsNotesOccurrencesList
projectsNotesOccurrencesList pPnolName_ =
ProjectsNotesOccurrencesList'
{ _pnolXgafv = Nothing
, _pnolUploadProtocol = Nothing
, _pnolAccessToken = Nothing
, _pnolUploadType = Nothing
, _pnolName = pPnolName_
, _pnolFilter = Nothing
, _pnolPageToken = Nothing
, _pnolPageSize = Nothing
, _pnolCallback = Nothing
}
pnolXgafv :: Lens' ProjectsNotesOccurrencesList (Maybe Xgafv)
pnolXgafv
= lens _pnolXgafv (\ s a -> s{_pnolXgafv = a})
pnolUploadProtocol :: Lens' ProjectsNotesOccurrencesList (Maybe Text)
pnolUploadProtocol
= lens _pnolUploadProtocol
(\ s a -> s{_pnolUploadProtocol = a})
pnolAccessToken :: Lens' ProjectsNotesOccurrencesList (Maybe Text)
pnolAccessToken
= lens _pnolAccessToken
(\ s a -> s{_pnolAccessToken = a})
pnolUploadType :: Lens' ProjectsNotesOccurrencesList (Maybe Text)
pnolUploadType
= lens _pnolUploadType
(\ s a -> s{_pnolUploadType = a})
pnolName :: Lens' ProjectsNotesOccurrencesList Text
pnolName = lens _pnolName (\ s a -> s{_pnolName = a})
pnolFilter :: Lens' ProjectsNotesOccurrencesList (Maybe Text)
pnolFilter
= lens _pnolFilter (\ s a -> s{_pnolFilter = a})
pnolPageToken :: Lens' ProjectsNotesOccurrencesList (Maybe Text)
pnolPageToken
= lens _pnolPageToken
(\ s a -> s{_pnolPageToken = a})
pnolPageSize :: Lens' ProjectsNotesOccurrencesList (Maybe Int32)
pnolPageSize
= lens _pnolPageSize (\ s a -> s{_pnolPageSize = a})
. mapping _Coerce
pnolCallback :: Lens' ProjectsNotesOccurrencesList (Maybe Text)
pnolCallback
= lens _pnolCallback (\ s a -> s{_pnolCallback = a})
instance GoogleRequest ProjectsNotesOccurrencesList
where
type Rs ProjectsNotesOccurrencesList =
ListNoteOccurrencesResponse
type Scopes ProjectsNotesOccurrencesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsNotesOccurrencesList'{..}
= go _pnolName _pnolXgafv _pnolUploadProtocol
_pnolAccessToken
_pnolUploadType
_pnolFilter
_pnolPageToken
_pnolPageSize
_pnolCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsNotesOccurrencesListResource)
mempty