{-# 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.List
(
ProjectsNotesListResource
, projectsNotesList
, ProjectsNotesList
, pnlParent
, pnlXgafv
, pnlUploadProtocol
, pnlAccessToken
, pnlUploadType
, pnlFilter
, pnlPageToken
, pnlPageSize
, pnlCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsNotesListResource =
"v1beta1" :>
Capture "parent" Text :>
"notes" :>
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] ListNotesResponse
data ProjectsNotesList = ProjectsNotesList'
{ _pnlParent :: !Text
, _pnlXgafv :: !(Maybe Xgafv)
, _pnlUploadProtocol :: !(Maybe Text)
, _pnlAccessToken :: !(Maybe Text)
, _pnlUploadType :: !(Maybe Text)
, _pnlFilter :: !(Maybe Text)
, _pnlPageToken :: !(Maybe Text)
, _pnlPageSize :: !(Maybe (Textual Int32))
, _pnlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotesList
:: Text
-> ProjectsNotesList
projectsNotesList pPnlParent_ =
ProjectsNotesList'
{ _pnlParent = pPnlParent_
, _pnlXgafv = Nothing
, _pnlUploadProtocol = Nothing
, _pnlAccessToken = Nothing
, _pnlUploadType = Nothing
, _pnlFilter = Nothing
, _pnlPageToken = Nothing
, _pnlPageSize = Nothing
, _pnlCallback = Nothing
}
pnlParent :: Lens' ProjectsNotesList Text
pnlParent
= lens _pnlParent (\ s a -> s{_pnlParent = a})
pnlXgafv :: Lens' ProjectsNotesList (Maybe Xgafv)
pnlXgafv = lens _pnlXgafv (\ s a -> s{_pnlXgafv = a})
pnlUploadProtocol :: Lens' ProjectsNotesList (Maybe Text)
pnlUploadProtocol
= lens _pnlUploadProtocol
(\ s a -> s{_pnlUploadProtocol = a})
pnlAccessToken :: Lens' ProjectsNotesList (Maybe Text)
pnlAccessToken
= lens _pnlAccessToken
(\ s a -> s{_pnlAccessToken = a})
pnlUploadType :: Lens' ProjectsNotesList (Maybe Text)
pnlUploadType
= lens _pnlUploadType
(\ s a -> s{_pnlUploadType = a})
pnlFilter :: Lens' ProjectsNotesList (Maybe Text)
pnlFilter
= lens _pnlFilter (\ s a -> s{_pnlFilter = a})
pnlPageToken :: Lens' ProjectsNotesList (Maybe Text)
pnlPageToken
= lens _pnlPageToken (\ s a -> s{_pnlPageToken = a})
pnlPageSize :: Lens' ProjectsNotesList (Maybe Int32)
pnlPageSize
= lens _pnlPageSize (\ s a -> s{_pnlPageSize = a}) .
mapping _Coerce
pnlCallback :: Lens' ProjectsNotesList (Maybe Text)
pnlCallback
= lens _pnlCallback (\ s a -> s{_pnlCallback = a})
instance GoogleRequest ProjectsNotesList where
type Rs ProjectsNotesList = ListNotesResponse
type Scopes ProjectsNotesList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsNotesList'{..}
= go _pnlParent _pnlXgafv _pnlUploadProtocol
_pnlAccessToken
_pnlUploadType
_pnlFilter
_pnlPageToken
_pnlPageSize
_pnlCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsNotesListResource)
mempty