{-# 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.Messages.List
(
ProjectsJobsMessagesListResource
, projectsJobsMessagesList
, ProjectsJobsMessagesList
, pjmlXgafv
, pjmlJobId
, pjmlUploadProtocol
, pjmlLocation
, pjmlStartTime
, pjmlAccessToken
, pjmlUploadType
, pjmlEndTime
, pjmlMinimumImportance
, pjmlPageToken
, pjmlProjectId
, pjmlPageSize
, pjmlCallback
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsJobsMessagesListResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"jobs" :>
Capture "jobId" Text :>
"messages" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "location" Text :>
QueryParam "startTime" DateTime' :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "endTime" DateTime' :>
QueryParam "minimumImportance" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListJobMessagesResponse
data ProjectsJobsMessagesList = ProjectsJobsMessagesList'
{ _pjmlXgafv :: !(Maybe Xgafv)
, _pjmlJobId :: !Text
, _pjmlUploadProtocol :: !(Maybe Text)
, _pjmlLocation :: !(Maybe Text)
, _pjmlStartTime :: !(Maybe DateTime')
, _pjmlAccessToken :: !(Maybe Text)
, _pjmlUploadType :: !(Maybe Text)
, _pjmlEndTime :: !(Maybe DateTime')
, _pjmlMinimumImportance :: !(Maybe Text)
, _pjmlPageToken :: !(Maybe Text)
, _pjmlProjectId :: !Text
, _pjmlPageSize :: !(Maybe (Textual Int32))
, _pjmlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobsMessagesList
:: Text
-> Text
-> ProjectsJobsMessagesList
projectsJobsMessagesList pPjmlJobId_ pPjmlProjectId_ =
ProjectsJobsMessagesList'
{ _pjmlXgafv = Nothing
, _pjmlJobId = pPjmlJobId_
, _pjmlUploadProtocol = Nothing
, _pjmlLocation = Nothing
, _pjmlStartTime = Nothing
, _pjmlAccessToken = Nothing
, _pjmlUploadType = Nothing
, _pjmlEndTime = Nothing
, _pjmlMinimumImportance = Nothing
, _pjmlPageToken = Nothing
, _pjmlProjectId = pPjmlProjectId_
, _pjmlPageSize = Nothing
, _pjmlCallback = Nothing
}
pjmlXgafv :: Lens' ProjectsJobsMessagesList (Maybe Xgafv)
pjmlXgafv
= lens _pjmlXgafv (\ s a -> s{_pjmlXgafv = a})
pjmlJobId :: Lens' ProjectsJobsMessagesList Text
pjmlJobId
= lens _pjmlJobId (\ s a -> s{_pjmlJobId = a})
pjmlUploadProtocol :: Lens' ProjectsJobsMessagesList (Maybe Text)
pjmlUploadProtocol
= lens _pjmlUploadProtocol
(\ s a -> s{_pjmlUploadProtocol = a})
pjmlLocation :: Lens' ProjectsJobsMessagesList (Maybe Text)
pjmlLocation
= lens _pjmlLocation (\ s a -> s{_pjmlLocation = a})
pjmlStartTime :: Lens' ProjectsJobsMessagesList (Maybe UTCTime)
pjmlStartTime
= lens _pjmlStartTime
(\ s a -> s{_pjmlStartTime = a})
. mapping _DateTime
pjmlAccessToken :: Lens' ProjectsJobsMessagesList (Maybe Text)
pjmlAccessToken
= lens _pjmlAccessToken
(\ s a -> s{_pjmlAccessToken = a})
pjmlUploadType :: Lens' ProjectsJobsMessagesList (Maybe Text)
pjmlUploadType
= lens _pjmlUploadType
(\ s a -> s{_pjmlUploadType = a})
pjmlEndTime :: Lens' ProjectsJobsMessagesList (Maybe UTCTime)
pjmlEndTime
= lens _pjmlEndTime (\ s a -> s{_pjmlEndTime = a}) .
mapping _DateTime
pjmlMinimumImportance :: Lens' ProjectsJobsMessagesList (Maybe Text)
pjmlMinimumImportance
= lens _pjmlMinimumImportance
(\ s a -> s{_pjmlMinimumImportance = a})
pjmlPageToken :: Lens' ProjectsJobsMessagesList (Maybe Text)
pjmlPageToken
= lens _pjmlPageToken
(\ s a -> s{_pjmlPageToken = a})
pjmlProjectId :: Lens' ProjectsJobsMessagesList Text
pjmlProjectId
= lens _pjmlProjectId
(\ s a -> s{_pjmlProjectId = a})
pjmlPageSize :: Lens' ProjectsJobsMessagesList (Maybe Int32)
pjmlPageSize
= lens _pjmlPageSize (\ s a -> s{_pjmlPageSize = a})
. mapping _Coerce
pjmlCallback :: Lens' ProjectsJobsMessagesList (Maybe Text)
pjmlCallback
= lens _pjmlCallback (\ s a -> s{_pjmlCallback = a})
instance GoogleRequest ProjectsJobsMessagesList where
type Rs ProjectsJobsMessagesList =
ListJobMessagesResponse
type Scopes ProjectsJobsMessagesList =
'["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 ProjectsJobsMessagesList'{..}
= go _pjmlProjectId _pjmlJobId _pjmlXgafv
_pjmlUploadProtocol
_pjmlLocation
_pjmlStartTime
_pjmlAccessToken
_pjmlUploadType
_pjmlEndTime
_pjmlMinimumImportance
_pjmlPageToken
_pjmlPageSize
_pjmlCallback
(Just AltJSON)
dataflowService
where go
= buildClient
(Proxy :: Proxy ProjectsJobsMessagesListResource)
mempty