{-# 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.Get
(
ProjectsNotesGetResource
, projectsNotesGet
, ProjectsNotesGet
, pngXgafv
, pngUploadProtocol
, pngAccessToken
, pngUploadType
, pngName
, pngCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsNotesGetResource =
"v1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Note
data ProjectsNotesGet = ProjectsNotesGet'
{ _pngXgafv :: !(Maybe Xgafv)
, _pngUploadProtocol :: !(Maybe Text)
, _pngAccessToken :: !(Maybe Text)
, _pngUploadType :: !(Maybe Text)
, _pngName :: !Text
, _pngCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotesGet
:: Text
-> ProjectsNotesGet
projectsNotesGet pPngName_ =
ProjectsNotesGet'
{ _pngXgafv = Nothing
, _pngUploadProtocol = Nothing
, _pngAccessToken = Nothing
, _pngUploadType = Nothing
, _pngName = pPngName_
, _pngCallback = Nothing
}
pngXgafv :: Lens' ProjectsNotesGet (Maybe Xgafv)
pngXgafv = lens _pngXgafv (\ s a -> s{_pngXgafv = a})
pngUploadProtocol :: Lens' ProjectsNotesGet (Maybe Text)
pngUploadProtocol
= lens _pngUploadProtocol
(\ s a -> s{_pngUploadProtocol = a})
pngAccessToken :: Lens' ProjectsNotesGet (Maybe Text)
pngAccessToken
= lens _pngAccessToken
(\ s a -> s{_pngAccessToken = a})
pngUploadType :: Lens' ProjectsNotesGet (Maybe Text)
pngUploadType
= lens _pngUploadType
(\ s a -> s{_pngUploadType = a})
pngName :: Lens' ProjectsNotesGet Text
pngName = lens _pngName (\ s a -> s{_pngName = a})
pngCallback :: Lens' ProjectsNotesGet (Maybe Text)
pngCallback
= lens _pngCallback (\ s a -> s{_pngCallback = a})
instance GoogleRequest ProjectsNotesGet where
type Rs ProjectsNotesGet = Note
type Scopes ProjectsNotesGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsNotesGet'{..}
= go _pngName _pngXgafv _pngUploadProtocol
_pngAccessToken
_pngUploadType
_pngCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsNotesGetResource)
mempty