{-# 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.WorkItems.ReportStatus
(
ProjectsJobsWorkItemsReportStatusResource
, projectsJobsWorkItemsReportStatus
, ProjectsJobsWorkItemsReportStatus
, pjwirsXgafv
, pjwirsJobId
, pjwirsUploadProtocol
, pjwirsAccessToken
, pjwirsUploadType
, pjwirsPayload
, pjwirsProjectId
, pjwirsCallback
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsJobsWorkItemsReportStatusResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"jobs" :>
Capture "jobId" Text :>
"workItems:reportStatus" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ReportWorkItemStatusRequest :>
Post '[JSON] ReportWorkItemStatusResponse
data ProjectsJobsWorkItemsReportStatus = ProjectsJobsWorkItemsReportStatus'
{ _pjwirsXgafv :: !(Maybe Xgafv)
, _pjwirsJobId :: !Text
, _pjwirsUploadProtocol :: !(Maybe Text)
, _pjwirsAccessToken :: !(Maybe Text)
, _pjwirsUploadType :: !(Maybe Text)
, _pjwirsPayload :: !ReportWorkItemStatusRequest
, _pjwirsProjectId :: !Text
, _pjwirsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsJobsWorkItemsReportStatus
:: Text
-> ReportWorkItemStatusRequest
-> Text
-> ProjectsJobsWorkItemsReportStatus
projectsJobsWorkItemsReportStatus pPjwirsJobId_ pPjwirsPayload_ pPjwirsProjectId_ =
ProjectsJobsWorkItemsReportStatus'
{ _pjwirsXgafv = Nothing
, _pjwirsJobId = pPjwirsJobId_
, _pjwirsUploadProtocol = Nothing
, _pjwirsAccessToken = Nothing
, _pjwirsUploadType = Nothing
, _pjwirsPayload = pPjwirsPayload_
, _pjwirsProjectId = pPjwirsProjectId_
, _pjwirsCallback = Nothing
}
pjwirsXgafv :: Lens' ProjectsJobsWorkItemsReportStatus (Maybe Xgafv)
pjwirsXgafv
= lens _pjwirsXgafv (\ s a -> s{_pjwirsXgafv = a})
pjwirsJobId :: Lens' ProjectsJobsWorkItemsReportStatus Text
pjwirsJobId
= lens _pjwirsJobId (\ s a -> s{_pjwirsJobId = a})
pjwirsUploadProtocol :: Lens' ProjectsJobsWorkItemsReportStatus (Maybe Text)
pjwirsUploadProtocol
= lens _pjwirsUploadProtocol
(\ s a -> s{_pjwirsUploadProtocol = a})
pjwirsAccessToken :: Lens' ProjectsJobsWorkItemsReportStatus (Maybe Text)
pjwirsAccessToken
= lens _pjwirsAccessToken
(\ s a -> s{_pjwirsAccessToken = a})
pjwirsUploadType :: Lens' ProjectsJobsWorkItemsReportStatus (Maybe Text)
pjwirsUploadType
= lens _pjwirsUploadType
(\ s a -> s{_pjwirsUploadType = a})
pjwirsPayload :: Lens' ProjectsJobsWorkItemsReportStatus ReportWorkItemStatusRequest
pjwirsPayload
= lens _pjwirsPayload
(\ s a -> s{_pjwirsPayload = a})
pjwirsProjectId :: Lens' ProjectsJobsWorkItemsReportStatus Text
pjwirsProjectId
= lens _pjwirsProjectId
(\ s a -> s{_pjwirsProjectId = a})
pjwirsCallback :: Lens' ProjectsJobsWorkItemsReportStatus (Maybe Text)
pjwirsCallback
= lens _pjwirsCallback
(\ s a -> s{_pjwirsCallback = a})
instance GoogleRequest
ProjectsJobsWorkItemsReportStatus where
type Rs ProjectsJobsWorkItemsReportStatus =
ReportWorkItemStatusResponse
type Scopes ProjectsJobsWorkItemsReportStatus =
'["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 ProjectsJobsWorkItemsReportStatus'{..}
= go _pjwirsProjectId _pjwirsJobId _pjwirsXgafv
_pjwirsUploadProtocol
_pjwirsAccessToken
_pjwirsUploadType
_pjwirsCallback
(Just AltJSON)
_pjwirsPayload
dataflowService
where go
= buildClient
(Proxy ::
Proxy ProjectsJobsWorkItemsReportStatusResource)
mempty