{-# 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.List
(
ProjectsJobsListResource
, projectsJobsList
, ProjectsJobsList
, pjlXgafv
, pjlUploadProtocol
, pjlLocation
, pjlAccessToken
, pjlUploadType
, pjlView
, pjlFilter
, pjlPageToken
, pjlProjectId
, pjlPageSize
, pjlCallback
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsJobsListResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"jobs" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "location" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "view" Text :>
QueryParam "filter" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListJobsResponse
data ProjectsJobsList = ProjectsJobsList'
{ _pjlXgafv :: !(Maybe Xgafv)
, _pjlUploadProtocol :: !(Maybe Text)
, _pjlLocation :: !(Maybe Text)
, _pjlAccessToken :: !(Maybe Text)
, _pjlUploadType :: !(Maybe Text)
, _pjlView :: !(Maybe Text)
, _pjlFilter :: !(Maybe Text)
, _pjlPageToken :: !(Maybe Text)
, _pjlProjectId :: !Text
, _pjlPageSize :: !(Maybe (Textual Int32))
, _pjlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobsList
:: Text
-> ProjectsJobsList
projectsJobsList pPjlProjectId_ =
ProjectsJobsList'
{ _pjlXgafv = Nothing
, _pjlUploadProtocol = Nothing
, _pjlLocation = Nothing
, _pjlAccessToken = Nothing
, _pjlUploadType = Nothing
, _pjlView = Nothing
, _pjlFilter = Nothing
, _pjlPageToken = Nothing
, _pjlProjectId = pPjlProjectId_
, _pjlPageSize = Nothing
, _pjlCallback = Nothing
}
pjlXgafv :: Lens' ProjectsJobsList (Maybe Xgafv)
pjlXgafv = lens _pjlXgafv (\ s a -> s{_pjlXgafv = a})
pjlUploadProtocol :: Lens' ProjectsJobsList (Maybe Text)
pjlUploadProtocol
= lens _pjlUploadProtocol
(\ s a -> s{_pjlUploadProtocol = a})
pjlLocation :: Lens' ProjectsJobsList (Maybe Text)
pjlLocation
= lens _pjlLocation (\ s a -> s{_pjlLocation = a})
pjlAccessToken :: Lens' ProjectsJobsList (Maybe Text)
pjlAccessToken
= lens _pjlAccessToken
(\ s a -> s{_pjlAccessToken = a})
pjlUploadType :: Lens' ProjectsJobsList (Maybe Text)
pjlUploadType
= lens _pjlUploadType
(\ s a -> s{_pjlUploadType = a})
pjlView :: Lens' ProjectsJobsList (Maybe Text)
pjlView = lens _pjlView (\ s a -> s{_pjlView = a})
pjlFilter :: Lens' ProjectsJobsList (Maybe Text)
pjlFilter
= lens _pjlFilter (\ s a -> s{_pjlFilter = a})
pjlPageToken :: Lens' ProjectsJobsList (Maybe Text)
pjlPageToken
= lens _pjlPageToken (\ s a -> s{_pjlPageToken = a})
pjlProjectId :: Lens' ProjectsJobsList Text
pjlProjectId
= lens _pjlProjectId (\ s a -> s{_pjlProjectId = a})
pjlPageSize :: Lens' ProjectsJobsList (Maybe Int32)
pjlPageSize
= lens _pjlPageSize (\ s a -> s{_pjlPageSize = a}) .
mapping _Coerce
pjlCallback :: Lens' ProjectsJobsList (Maybe Text)
pjlCallback
= lens _pjlCallback (\ s a -> s{_pjlCallback = a})
instance GoogleRequest ProjectsJobsList where
type Rs ProjectsJobsList = ListJobsResponse
type Scopes ProjectsJobsList =
'["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 ProjectsJobsList'{..}
= go _pjlProjectId _pjlXgafv _pjlUploadProtocol
_pjlLocation
_pjlAccessToken
_pjlUploadType
_pjlView
_pjlFilter
_pjlPageToken
_pjlPageSize
_pjlCallback
(Just AltJSON)
dataflowService
where go
= buildClient
(Proxy :: Proxy ProjectsJobsListResource)
mempty