{-# 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.Jobs.Debug.GetConfig
(
ProjectsJobsDebugGetConfigResource
, projectsJobsDebugGetConfig
, ProjectsJobsDebugGetConfig
, pjdgcXgafv
, pjdgcJobId
, pjdgcUploadProtocol
, pjdgcAccessToken
, pjdgcUploadType
, pjdgcPayload
, pjdgcProjectId
, pjdgcCallback
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsJobsDebugGetConfigResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"jobs" :>
Capture "jobId" Text :>
"debug" :>
"getConfig" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] GetDebugConfigRequest :>
Post '[JSON] GetDebugConfigResponse
data ProjectsJobsDebugGetConfig = ProjectsJobsDebugGetConfig'
{ _pjdgcXgafv :: !(Maybe Xgafv)
, _pjdgcJobId :: !Text
, _pjdgcUploadProtocol :: !(Maybe Text)
, _pjdgcAccessToken :: !(Maybe Text)
, _pjdgcUploadType :: !(Maybe Text)
, _pjdgcPayload :: !GetDebugConfigRequest
, _pjdgcProjectId :: !Text
, _pjdgcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobsDebugGetConfig
:: Text
-> GetDebugConfigRequest
-> Text
-> ProjectsJobsDebugGetConfig
projectsJobsDebugGetConfig pPjdgcJobId_ pPjdgcPayload_ pPjdgcProjectId_ =
ProjectsJobsDebugGetConfig'
{ _pjdgcXgafv = Nothing
, _pjdgcJobId = pPjdgcJobId_
, _pjdgcUploadProtocol = Nothing
, _pjdgcAccessToken = Nothing
, _pjdgcUploadType = Nothing
, _pjdgcPayload = pPjdgcPayload_
, _pjdgcProjectId = pPjdgcProjectId_
, _pjdgcCallback = Nothing
}
pjdgcXgafv :: Lens' ProjectsJobsDebugGetConfig (Maybe Xgafv)
pjdgcXgafv
= lens _pjdgcXgafv (\ s a -> s{_pjdgcXgafv = a})
pjdgcJobId :: Lens' ProjectsJobsDebugGetConfig Text
pjdgcJobId
= lens _pjdgcJobId (\ s a -> s{_pjdgcJobId = a})
pjdgcUploadProtocol :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
pjdgcUploadProtocol
= lens _pjdgcUploadProtocol
(\ s a -> s{_pjdgcUploadProtocol = a})
pjdgcAccessToken :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
pjdgcAccessToken
= lens _pjdgcAccessToken
(\ s a -> s{_pjdgcAccessToken = a})
pjdgcUploadType :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
pjdgcUploadType
= lens _pjdgcUploadType
(\ s a -> s{_pjdgcUploadType = a})
pjdgcPayload :: Lens' ProjectsJobsDebugGetConfig GetDebugConfigRequest
pjdgcPayload
= lens _pjdgcPayload (\ s a -> s{_pjdgcPayload = a})
pjdgcProjectId :: Lens' ProjectsJobsDebugGetConfig Text
pjdgcProjectId
= lens _pjdgcProjectId
(\ s a -> s{_pjdgcProjectId = a})
pjdgcCallback :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
pjdgcCallback
= lens _pjdgcCallback
(\ s a -> s{_pjdgcCallback = a})
instance GoogleRequest ProjectsJobsDebugGetConfig
where
type Rs ProjectsJobsDebugGetConfig =
GetDebugConfigResponse
type Scopes ProjectsJobsDebugGetConfig =
'["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 ProjectsJobsDebugGetConfig'{..}
= go _pjdgcProjectId _pjdgcJobId _pjdgcXgafv
_pjdgcUploadProtocol
_pjdgcAccessToken
_pjdgcUploadType
_pjdgcCallback
(Just AltJSON)
_pjdgcPayload
dataflowService
where go
= buildClient
(Proxy :: Proxy ProjectsJobsDebugGetConfigResource)
mempty