{-# 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.Dataproc.Projects.Regions.Jobs.Get
(
ProjectsRegionsJobsGetResource
, projectsRegionsJobsGet
, ProjectsRegionsJobsGet
, prjgXgafv
, prjgJobId
, prjgUploadProtocol
, prjgAccessToken
, prjgUploadType
, prjgRegion
, prjgProjectId
, prjgCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsJobsGetResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"regions" :>
Capture "region" Text :>
"jobs" :>
Capture "jobId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Job
data ProjectsRegionsJobsGet = ProjectsRegionsJobsGet'
{ _prjgXgafv :: !(Maybe Xgafv)
, _prjgJobId :: !Text
, _prjgUploadProtocol :: !(Maybe Text)
, _prjgAccessToken :: !(Maybe Text)
, _prjgUploadType :: !(Maybe Text)
, _prjgRegion :: !Text
, _prjgProjectId :: !Text
, _prjgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsJobsGet
:: Text
-> Text
-> Text
-> ProjectsRegionsJobsGet
projectsRegionsJobsGet pPrjgJobId_ pPrjgRegion_ pPrjgProjectId_ =
ProjectsRegionsJobsGet'
{ _prjgXgafv = Nothing
, _prjgJobId = pPrjgJobId_
, _prjgUploadProtocol = Nothing
, _prjgAccessToken = Nothing
, _prjgUploadType = Nothing
, _prjgRegion = pPrjgRegion_
, _prjgProjectId = pPrjgProjectId_
, _prjgCallback = Nothing
}
prjgXgafv :: Lens' ProjectsRegionsJobsGet (Maybe Xgafv)
prjgXgafv
= lens _prjgXgafv (\ s a -> s{_prjgXgafv = a})
prjgJobId :: Lens' ProjectsRegionsJobsGet Text
prjgJobId
= lens _prjgJobId (\ s a -> s{_prjgJobId = a})
prjgUploadProtocol :: Lens' ProjectsRegionsJobsGet (Maybe Text)
prjgUploadProtocol
= lens _prjgUploadProtocol
(\ s a -> s{_prjgUploadProtocol = a})
prjgAccessToken :: Lens' ProjectsRegionsJobsGet (Maybe Text)
prjgAccessToken
= lens _prjgAccessToken
(\ s a -> s{_prjgAccessToken = a})
prjgUploadType :: Lens' ProjectsRegionsJobsGet (Maybe Text)
prjgUploadType
= lens _prjgUploadType
(\ s a -> s{_prjgUploadType = a})
prjgRegion :: Lens' ProjectsRegionsJobsGet Text
prjgRegion
= lens _prjgRegion (\ s a -> s{_prjgRegion = a})
prjgProjectId :: Lens' ProjectsRegionsJobsGet Text
prjgProjectId
= lens _prjgProjectId
(\ s a -> s{_prjgProjectId = a})
prjgCallback :: Lens' ProjectsRegionsJobsGet (Maybe Text)
prjgCallback
= lens _prjgCallback (\ s a -> s{_prjgCallback = a})
instance GoogleRequest ProjectsRegionsJobsGet where
type Rs ProjectsRegionsJobsGet = Job
type Scopes ProjectsRegionsJobsGet =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsJobsGet'{..}
= go _prjgProjectId _prjgRegion _prjgJobId _prjgXgafv
_prjgUploadProtocol
_prjgAccessToken
_prjgUploadType
_prjgCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy :: Proxy ProjectsRegionsJobsGetResource)
mempty