{-# 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.BatchCreate
(
ProjectsNotesBatchCreateResource
, projectsNotesBatchCreate
, ProjectsNotesBatchCreate
, pnbcParent
, pnbcXgafv
, pnbcUploadProtocol
, pnbcAccessToken
, pnbcUploadType
, pnbcPayload
, pnbcCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsNotesBatchCreateResource =
"v1beta1" :>
Capture "parent" Text :>
"notes:batchCreate" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] BatchCreateNotesRequest :>
Post '[JSON] BatchCreateNotesResponse
data ProjectsNotesBatchCreate = ProjectsNotesBatchCreate'
{ _pnbcParent :: !Text
, _pnbcXgafv :: !(Maybe Xgafv)
, _pnbcUploadProtocol :: !(Maybe Text)
, _pnbcAccessToken :: !(Maybe Text)
, _pnbcUploadType :: !(Maybe Text)
, _pnbcPayload :: !BatchCreateNotesRequest
, _pnbcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsNotesBatchCreate
:: Text
-> BatchCreateNotesRequest
-> ProjectsNotesBatchCreate
projectsNotesBatchCreate pPnbcParent_ pPnbcPayload_ =
ProjectsNotesBatchCreate'
{ _pnbcParent = pPnbcParent_
, _pnbcXgafv = Nothing
, _pnbcUploadProtocol = Nothing
, _pnbcAccessToken = Nothing
, _pnbcUploadType = Nothing
, _pnbcPayload = pPnbcPayload_
, _pnbcCallback = Nothing
}
pnbcParent :: Lens' ProjectsNotesBatchCreate Text
pnbcParent
= lens _pnbcParent (\ s a -> s{_pnbcParent = a})
pnbcXgafv :: Lens' ProjectsNotesBatchCreate (Maybe Xgafv)
pnbcXgafv
= lens _pnbcXgafv (\ s a -> s{_pnbcXgafv = a})
pnbcUploadProtocol :: Lens' ProjectsNotesBatchCreate (Maybe Text)
pnbcUploadProtocol
= lens _pnbcUploadProtocol
(\ s a -> s{_pnbcUploadProtocol = a})
pnbcAccessToken :: Lens' ProjectsNotesBatchCreate (Maybe Text)
pnbcAccessToken
= lens _pnbcAccessToken
(\ s a -> s{_pnbcAccessToken = a})
pnbcUploadType :: Lens' ProjectsNotesBatchCreate (Maybe Text)
pnbcUploadType
= lens _pnbcUploadType
(\ s a -> s{_pnbcUploadType = a})
pnbcPayload :: Lens' ProjectsNotesBatchCreate BatchCreateNotesRequest
pnbcPayload
= lens _pnbcPayload (\ s a -> s{_pnbcPayload = a})
pnbcCallback :: Lens' ProjectsNotesBatchCreate (Maybe Text)
pnbcCallback
= lens _pnbcCallback (\ s a -> s{_pnbcCallback = a})
instance GoogleRequest ProjectsNotesBatchCreate where
type Rs ProjectsNotesBatchCreate =
BatchCreateNotesResponse
type Scopes ProjectsNotesBatchCreate =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsNotesBatchCreate'{..}
= go _pnbcParent _pnbcXgafv _pnbcUploadProtocol
_pnbcAccessToken
_pnbcUploadType
_pnbcCallback
(Just AltJSON)
_pnbcPayload
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsNotesBatchCreateResource)
mempty