{-# 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.Patch
(
ProjectsNotesPatchResource
, projectsNotesPatch
, ProjectsNotesPatch
, pnpXgafv
, pnpUploadProtocol
, pnpUpdateMask
, pnpAccessToken
, pnpUploadType
, pnpPayload
, pnpName
, pnpCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsNotesPatchResource =
"v1beta1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "updateMask" GFieldMask :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Note :> Patch '[JSON] Note
data ProjectsNotesPatch = ProjectsNotesPatch'
{ _pnpXgafv :: !(Maybe Xgafv)
, _pnpUploadProtocol :: !(Maybe Text)
, _pnpUpdateMask :: !(Maybe GFieldMask)
, _pnpAccessToken :: !(Maybe Text)
, _pnpUploadType :: !(Maybe Text)
, _pnpPayload :: !Note
, _pnpName :: !Text
, _pnpCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotesPatch
:: Note
-> Text
-> ProjectsNotesPatch
projectsNotesPatch pPnpPayload_ pPnpName_ =
ProjectsNotesPatch'
{ _pnpXgafv = Nothing
, _pnpUploadProtocol = Nothing
, _pnpUpdateMask = Nothing
, _pnpAccessToken = Nothing
, _pnpUploadType = Nothing
, _pnpPayload = pPnpPayload_
, _pnpName = pPnpName_
, _pnpCallback = Nothing
}
pnpXgafv :: Lens' ProjectsNotesPatch (Maybe Xgafv)
pnpXgafv = lens _pnpXgafv (\ s a -> s{_pnpXgafv = a})
pnpUploadProtocol :: Lens' ProjectsNotesPatch (Maybe Text)
pnpUploadProtocol
= lens _pnpUploadProtocol
(\ s a -> s{_pnpUploadProtocol = a})
pnpUpdateMask :: Lens' ProjectsNotesPatch (Maybe GFieldMask)
pnpUpdateMask
= lens _pnpUpdateMask
(\ s a -> s{_pnpUpdateMask = a})
pnpAccessToken :: Lens' ProjectsNotesPatch (Maybe Text)
pnpAccessToken
= lens _pnpAccessToken
(\ s a -> s{_pnpAccessToken = a})
pnpUploadType :: Lens' ProjectsNotesPatch (Maybe Text)
pnpUploadType
= lens _pnpUploadType
(\ s a -> s{_pnpUploadType = a})
pnpPayload :: Lens' ProjectsNotesPatch Note
pnpPayload
= lens _pnpPayload (\ s a -> s{_pnpPayload = a})
pnpName :: Lens' ProjectsNotesPatch Text
pnpName = lens _pnpName (\ s a -> s{_pnpName = a})
pnpCallback :: Lens' ProjectsNotesPatch (Maybe Text)
pnpCallback
= lens _pnpCallback (\ s a -> s{_pnpCallback = a})
instance GoogleRequest ProjectsNotesPatch where
type Rs ProjectsNotesPatch = Note
type Scopes ProjectsNotesPatch =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsNotesPatch'{..}
= go _pnpName _pnpXgafv _pnpUploadProtocol
_pnpUpdateMask
_pnpAccessToken
_pnpUploadType
_pnpCallback
(Just AltJSON)
_pnpPayload
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsNotesPatchResource)
mempty