{-# 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.Locations.Jobs.Messages.List
(
ProjectsLocationsJobsMessagesListResource
, projectsLocationsJobsMessagesList
, ProjectsLocationsJobsMessagesList
, pljmlXgafv
, pljmlJobId
, pljmlUploadProtocol
, pljmlLocation
, pljmlStartTime
, pljmlAccessToken
, pljmlUploadType
, pljmlEndTime
, pljmlMinimumImportance
, pljmlPageToken
, pljmlProjectId
, pljmlPageSize
, pljmlCallback
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsLocationsJobsMessagesListResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"locations" :>
Capture "location" Text :>
"jobs" :>
Capture "jobId" Text :>
"messages" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" 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 ProjectsLocationsJobsMessagesList = ProjectsLocationsJobsMessagesList'
{ _pljmlXgafv :: !(Maybe Xgafv)
, _pljmlJobId :: !Text
, _pljmlUploadProtocol :: !(Maybe Text)
, _pljmlLocation :: !Text
, _pljmlStartTime :: !(Maybe DateTime')
, _pljmlAccessToken :: !(Maybe Text)
, _pljmlUploadType :: !(Maybe Text)
, _pljmlEndTime :: !(Maybe DateTime')
, _pljmlMinimumImportance :: !(Maybe Text)
, _pljmlPageToken :: !(Maybe Text)
, _pljmlProjectId :: !Text
, _pljmlPageSize :: !(Maybe (Textual Int32))
, _pljmlCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsJobsMessagesList
:: Text
-> Text
-> Text
-> ProjectsLocationsJobsMessagesList
projectsLocationsJobsMessagesList pPljmlJobId_ pPljmlLocation_ pPljmlProjectId_ =
ProjectsLocationsJobsMessagesList'
{ _pljmlXgafv = Nothing
, _pljmlJobId = pPljmlJobId_
, _pljmlUploadProtocol = Nothing
, _pljmlLocation = pPljmlLocation_
, _pljmlStartTime = Nothing
, _pljmlAccessToken = Nothing
, _pljmlUploadType = Nothing
, _pljmlEndTime = Nothing
, _pljmlMinimumImportance = Nothing
, _pljmlPageToken = Nothing
, _pljmlProjectId = pPljmlProjectId_
, _pljmlPageSize = Nothing
, _pljmlCallback = Nothing
}
pljmlXgafv :: Lens' ProjectsLocationsJobsMessagesList (Maybe Xgafv)
pljmlXgafv
= lens _pljmlXgafv (\ s a -> s{_pljmlXgafv = a})
pljmlJobId :: Lens' ProjectsLocationsJobsMessagesList Text
pljmlJobId
= lens _pljmlJobId (\ s a -> s{_pljmlJobId = a})
pljmlUploadProtocol :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
pljmlUploadProtocol
= lens _pljmlUploadProtocol
(\ s a -> s{_pljmlUploadProtocol = a})
pljmlLocation :: Lens' ProjectsLocationsJobsMessagesList Text
pljmlLocation
= lens _pljmlLocation
(\ s a -> s{_pljmlLocation = a})
pljmlStartTime :: Lens' ProjectsLocationsJobsMessagesList (Maybe UTCTime)
pljmlStartTime
= lens _pljmlStartTime
(\ s a -> s{_pljmlStartTime = a})
. mapping _DateTime
pljmlAccessToken :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
pljmlAccessToken
= lens _pljmlAccessToken
(\ s a -> s{_pljmlAccessToken = a})
pljmlUploadType :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
pljmlUploadType
= lens _pljmlUploadType
(\ s a -> s{_pljmlUploadType = a})
pljmlEndTime :: Lens' ProjectsLocationsJobsMessagesList (Maybe UTCTime)
pljmlEndTime
= lens _pljmlEndTime (\ s a -> s{_pljmlEndTime = a})
. mapping _DateTime
pljmlMinimumImportance :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
pljmlMinimumImportance
= lens _pljmlMinimumImportance
(\ s a -> s{_pljmlMinimumImportance = a})
pljmlPageToken :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
pljmlPageToken
= lens _pljmlPageToken
(\ s a -> s{_pljmlPageToken = a})
pljmlProjectId :: Lens' ProjectsLocationsJobsMessagesList Text
pljmlProjectId
= lens _pljmlProjectId
(\ s a -> s{_pljmlProjectId = a})
pljmlPageSize :: Lens' ProjectsLocationsJobsMessagesList (Maybe Int32)
pljmlPageSize
= lens _pljmlPageSize
(\ s a -> s{_pljmlPageSize = a})
. mapping _Coerce
pljmlCallback :: Lens' ProjectsLocationsJobsMessagesList (Maybe Text)
pljmlCallback
= lens _pljmlCallback
(\ s a -> s{_pljmlCallback = a})
instance GoogleRequest
ProjectsLocationsJobsMessagesList where
type Rs ProjectsLocationsJobsMessagesList =
ListJobMessagesResponse
type Scopes ProjectsLocationsJobsMessagesList =
'["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 ProjectsLocationsJobsMessagesList'{..}
= go _pljmlProjectId _pljmlLocation _pljmlJobId
_pljmlXgafv
_pljmlUploadProtocol
_pljmlStartTime
_pljmlAccessToken
_pljmlUploadType
_pljmlEndTime
_pljmlMinimumImportance
_pljmlPageToken
_pljmlPageSize
_pljmlCallback
(Just AltJSON)
dataflowService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsJobsMessagesListResource)
mempty