{-# 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.List
(
ProjectsRegionsJobsListResource
, projectsRegionsJobsList
, ProjectsRegionsJobsList
, prjlJobStateMatcher
, prjlXgafv
, prjlUploadProtocol
, prjlAccessToken
, prjlUploadType
, prjlClusterName
, prjlFilter
, prjlRegion
, prjlPageToken
, prjlProjectId
, prjlPageSize
, prjlCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsJobsListResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"regions" :>
Capture "region" Text :>
"jobs" :>
QueryParam "jobStateMatcher" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "clusterName" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListJobsResponse
data ProjectsRegionsJobsList = ProjectsRegionsJobsList'
{ _prjlJobStateMatcher :: !(Maybe Text)
, _prjlXgafv :: !(Maybe Xgafv)
, _prjlUploadProtocol :: !(Maybe Text)
, _prjlAccessToken :: !(Maybe Text)
, _prjlUploadType :: !(Maybe Text)
, _prjlClusterName :: !(Maybe Text)
, _prjlFilter :: !(Maybe Text)
, _prjlRegion :: !Text
, _prjlPageToken :: !(Maybe Text)
, _prjlProjectId :: !Text
, _prjlPageSize :: !(Maybe (Textual Int32))
, _prjlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsJobsList
:: Text
-> Text
-> ProjectsRegionsJobsList
projectsRegionsJobsList pPrjlRegion_ pPrjlProjectId_ =
ProjectsRegionsJobsList'
{ _prjlJobStateMatcher = Nothing
, _prjlXgafv = Nothing
, _prjlUploadProtocol = Nothing
, _prjlAccessToken = Nothing
, _prjlUploadType = Nothing
, _prjlClusterName = Nothing
, _prjlFilter = Nothing
, _prjlRegion = pPrjlRegion_
, _prjlPageToken = Nothing
, _prjlProjectId = pPrjlProjectId_
, _prjlPageSize = Nothing
, _prjlCallback = Nothing
}
prjlJobStateMatcher :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlJobStateMatcher
= lens _prjlJobStateMatcher
(\ s a -> s{_prjlJobStateMatcher = a})
prjlXgafv :: Lens' ProjectsRegionsJobsList (Maybe Xgafv)
prjlXgafv
= lens _prjlXgafv (\ s a -> s{_prjlXgafv = a})
prjlUploadProtocol :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlUploadProtocol
= lens _prjlUploadProtocol
(\ s a -> s{_prjlUploadProtocol = a})
prjlAccessToken :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlAccessToken
= lens _prjlAccessToken
(\ s a -> s{_prjlAccessToken = a})
prjlUploadType :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlUploadType
= lens _prjlUploadType
(\ s a -> s{_prjlUploadType = a})
prjlClusterName :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlClusterName
= lens _prjlClusterName
(\ s a -> s{_prjlClusterName = a})
prjlFilter :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlFilter
= lens _prjlFilter (\ s a -> s{_prjlFilter = a})
prjlRegion :: Lens' ProjectsRegionsJobsList Text
prjlRegion
= lens _prjlRegion (\ s a -> s{_prjlRegion = a})
prjlPageToken :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlPageToken
= lens _prjlPageToken
(\ s a -> s{_prjlPageToken = a})
prjlProjectId :: Lens' ProjectsRegionsJobsList Text
prjlProjectId
= lens _prjlProjectId
(\ s a -> s{_prjlProjectId = a})
prjlPageSize :: Lens' ProjectsRegionsJobsList (Maybe Int32)
prjlPageSize
= lens _prjlPageSize (\ s a -> s{_prjlPageSize = a})
. mapping _Coerce
prjlCallback :: Lens' ProjectsRegionsJobsList (Maybe Text)
prjlCallback
= lens _prjlCallback (\ s a -> s{_prjlCallback = a})
instance GoogleRequest ProjectsRegionsJobsList where
type Rs ProjectsRegionsJobsList = ListJobsResponse
type Scopes ProjectsRegionsJobsList =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsJobsList'{..}
= go _prjlProjectId _prjlRegion _prjlJobStateMatcher
_prjlXgafv
_prjlUploadProtocol
_prjlAccessToken
_prjlUploadType
_prjlClusterName
_prjlFilter
_prjlPageToken
_prjlPageSize
_prjlCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy :: Proxy ProjectsRegionsJobsListResource)
mempty