{-# 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.Dataflow.Projects.Locations.Jobs.Debug.SendCapture
(
ProjectsLocationsJobsDebugSendCaptureResource
, projectsLocationsJobsDebugSendCapture
, ProjectsLocationsJobsDebugSendCapture
, pljdscXgafv
, pljdscJobId
, pljdscUploadProtocol
, pljdscLocation
, pljdscAccessToken
, pljdscUploadType
, pljdscPayload
, pljdscProjectId
, pljdscCallback
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsLocationsJobsDebugSendCaptureResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"locations" :>
Capture "location" Text :>
"jobs" :>
Capture "jobId" Text :>
"debug" :>
"sendCapture" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SendDebugCaptureRequest :>
Post '[JSON] SendDebugCaptureResponse
data ProjectsLocationsJobsDebugSendCapture = ProjectsLocationsJobsDebugSendCapture'
{ _pljdscXgafv :: !(Maybe Xgafv)
, _pljdscJobId :: !Text
, _pljdscUploadProtocol :: !(Maybe Text)
, _pljdscLocation :: !Text
, _pljdscAccessToken :: !(Maybe Text)
, _pljdscUploadType :: !(Maybe Text)
, _pljdscPayload :: !SendDebugCaptureRequest
, _pljdscProjectId :: !Text
, _pljdscCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsJobsDebugSendCapture
:: Text
-> Text
-> SendDebugCaptureRequest
-> Text
-> ProjectsLocationsJobsDebugSendCapture
projectsLocationsJobsDebugSendCapture pPljdscJobId_ pPljdscLocation_ pPljdscPayload_ pPljdscProjectId_ =
ProjectsLocationsJobsDebugSendCapture'
{ _pljdscXgafv = Nothing
, _pljdscJobId = pPljdscJobId_
, _pljdscUploadProtocol = Nothing
, _pljdscLocation = pPljdscLocation_
, _pljdscAccessToken = Nothing
, _pljdscUploadType = Nothing
, _pljdscPayload = pPljdscPayload_
, _pljdscProjectId = pPljdscProjectId_
, _pljdscCallback = Nothing
}
pljdscXgafv :: Lens' ProjectsLocationsJobsDebugSendCapture (Maybe Xgafv)
pljdscXgafv
= lens _pljdscXgafv (\ s a -> s{_pljdscXgafv = a})
pljdscJobId :: Lens' ProjectsLocationsJobsDebugSendCapture Text
pljdscJobId
= lens _pljdscJobId (\ s a -> s{_pljdscJobId = a})
pljdscUploadProtocol :: Lens' ProjectsLocationsJobsDebugSendCapture (Maybe Text)
pljdscUploadProtocol
= lens _pljdscUploadProtocol
(\ s a -> s{_pljdscUploadProtocol = a})
pljdscLocation :: Lens' ProjectsLocationsJobsDebugSendCapture Text
pljdscLocation
= lens _pljdscLocation
(\ s a -> s{_pljdscLocation = a})
pljdscAccessToken :: Lens' ProjectsLocationsJobsDebugSendCapture (Maybe Text)
pljdscAccessToken
= lens _pljdscAccessToken
(\ s a -> s{_pljdscAccessToken = a})
pljdscUploadType :: Lens' ProjectsLocationsJobsDebugSendCapture (Maybe Text)
pljdscUploadType
= lens _pljdscUploadType
(\ s a -> s{_pljdscUploadType = a})
pljdscPayload :: Lens' ProjectsLocationsJobsDebugSendCapture SendDebugCaptureRequest
pljdscPayload
= lens _pljdscPayload
(\ s a -> s{_pljdscPayload = a})
pljdscProjectId :: Lens' ProjectsLocationsJobsDebugSendCapture Text
pljdscProjectId
= lens _pljdscProjectId
(\ s a -> s{_pljdscProjectId = a})
pljdscCallback :: Lens' ProjectsLocationsJobsDebugSendCapture (Maybe Text)
pljdscCallback
= lens _pljdscCallback
(\ s a -> s{_pljdscCallback = a})
instance GoogleRequest
ProjectsLocationsJobsDebugSendCapture where
type Rs ProjectsLocationsJobsDebugSendCapture =
SendDebugCaptureResponse
type Scopes ProjectsLocationsJobsDebugSendCapture =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly",
"https://www.googleapis.com/auth/userinfo.email"]
requestClient
ProjectsLocationsJobsDebugSendCapture'{..}
= go _pljdscProjectId _pljdscLocation _pljdscJobId
_pljdscXgafv
_pljdscUploadProtocol
_pljdscAccessToken
_pljdscUploadType
_pljdscCallback
(Just AltJSON)
_pljdscPayload
dataflowService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsJobsDebugSendCaptureResource)
mempty