{-# 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.GetNotes
(
ProjectsOccurrencesGetNotesResource
, projectsOccurrencesGetNotes
, ProjectsOccurrencesGetNotes
, pognXgafv
, pognUploadProtocol
, pognAccessToken
, pognUploadType
, pognName
, pognCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsOccurrencesGetNotesResource =
"v1beta1" :>
Capture "name" Text :>
"notes" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Note
data ProjectsOccurrencesGetNotes = ProjectsOccurrencesGetNotes'
{ _pognXgafv :: !(Maybe Xgafv)
, _pognUploadProtocol :: !(Maybe Text)
, _pognAccessToken :: !(Maybe Text)
, _pognUploadType :: !(Maybe Text)
, _pognName :: !Text
, _pognCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOccurrencesGetNotes
:: Text
-> ProjectsOccurrencesGetNotes
projectsOccurrencesGetNotes pPognName_ =
ProjectsOccurrencesGetNotes'
{ _pognXgafv = Nothing
, _pognUploadProtocol = Nothing
, _pognAccessToken = Nothing
, _pognUploadType = Nothing
, _pognName = pPognName_
, _pognCallback = Nothing
}
pognXgafv :: Lens' ProjectsOccurrencesGetNotes (Maybe Xgafv)
pognXgafv
= lens _pognXgafv (\ s a -> s{_pognXgafv = a})
pognUploadProtocol :: Lens' ProjectsOccurrencesGetNotes (Maybe Text)
pognUploadProtocol
= lens _pognUploadProtocol
(\ s a -> s{_pognUploadProtocol = a})
pognAccessToken :: Lens' ProjectsOccurrencesGetNotes (Maybe Text)
pognAccessToken
= lens _pognAccessToken
(\ s a -> s{_pognAccessToken = a})
pognUploadType :: Lens' ProjectsOccurrencesGetNotes (Maybe Text)
pognUploadType
= lens _pognUploadType
(\ s a -> s{_pognUploadType = a})
pognName :: Lens' ProjectsOccurrencesGetNotes Text
pognName = lens _pognName (\ s a -> s{_pognName = a})
pognCallback :: Lens' ProjectsOccurrencesGetNotes (Maybe Text)
pognCallback
= lens _pognCallback (\ s a -> s{_pognCallback = a})
instance GoogleRequest ProjectsOccurrencesGetNotes
where
type Rs ProjectsOccurrencesGetNotes = Note
type Scopes ProjectsOccurrencesGetNotes =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsOccurrencesGetNotes'{..}
= go _pognName _pognXgafv _pognUploadProtocol
_pognAccessToken
_pognUploadType
_pognCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsOccurrencesGetNotesResource)
mempty