{-# 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.Snapshot
(
ProjectsLocationsJobsSnapshotResource
, projectsLocationsJobsSnapshot
, ProjectsLocationsJobsSnapshot
, pljsXgafv
, pljsJobId
, pljsUploadProtocol
, pljsLocation
, pljsAccessToken
, pljsUploadType
, pljsPayload
, pljsProjectId
, pljsCallback
) where
import Network.Google.Dataflow.Types
import Network.Google.Prelude
type ProjectsLocationsJobsSnapshotResource =
"v1b3" :>
"projects" :>
Capture "projectId" Text :>
"locations" :>
Capture "location" Text :>
"jobs" :>
CaptureMode "jobId" "snapshot" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] SnapshotJobRequest :>
Post '[JSON] Snapshot
data ProjectsLocationsJobsSnapshot = ProjectsLocationsJobsSnapshot'
{ _pljsXgafv :: !(Maybe Xgafv)
, _pljsJobId :: !Text
, _pljsUploadProtocol :: !(Maybe Text)
, _pljsLocation :: !Text
, _pljsAccessToken :: !(Maybe Text)
, _pljsUploadType :: !(Maybe Text)
, _pljsPayload :: !SnapshotJobRequest
, _pljsProjectId :: !Text
, _pljsCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsJobsSnapshot
:: Text
-> Text
-> SnapshotJobRequest
-> Text
-> ProjectsLocationsJobsSnapshot
projectsLocationsJobsSnapshot pPljsJobId_ pPljsLocation_ pPljsPayload_ pPljsProjectId_ =
ProjectsLocationsJobsSnapshot'
{ _pljsXgafv = Nothing
, _pljsJobId = pPljsJobId_
, _pljsUploadProtocol = Nothing
, _pljsLocation = pPljsLocation_
, _pljsAccessToken = Nothing
, _pljsUploadType = Nothing
, _pljsPayload = pPljsPayload_
, _pljsProjectId = pPljsProjectId_
, _pljsCallback = Nothing
}
pljsXgafv :: Lens' ProjectsLocationsJobsSnapshot (Maybe Xgafv)
pljsXgafv
= lens _pljsXgafv (\ s a -> s{_pljsXgafv = a})
pljsJobId :: Lens' ProjectsLocationsJobsSnapshot Text
pljsJobId
= lens _pljsJobId (\ s a -> s{_pljsJobId = a})
pljsUploadProtocol :: Lens' ProjectsLocationsJobsSnapshot (Maybe Text)
pljsUploadProtocol
= lens _pljsUploadProtocol
(\ s a -> s{_pljsUploadProtocol = a})
pljsLocation :: Lens' ProjectsLocationsJobsSnapshot Text
pljsLocation
= lens _pljsLocation (\ s a -> s{_pljsLocation = a})
pljsAccessToken :: Lens' ProjectsLocationsJobsSnapshot (Maybe Text)
pljsAccessToken
= lens _pljsAccessToken
(\ s a -> s{_pljsAccessToken = a})
pljsUploadType :: Lens' ProjectsLocationsJobsSnapshot (Maybe Text)
pljsUploadType
= lens _pljsUploadType
(\ s a -> s{_pljsUploadType = a})
pljsPayload :: Lens' ProjectsLocationsJobsSnapshot SnapshotJobRequest
pljsPayload
= lens _pljsPayload (\ s a -> s{_pljsPayload = a})
pljsProjectId :: Lens' ProjectsLocationsJobsSnapshot Text
pljsProjectId
= lens _pljsProjectId
(\ s a -> s{_pljsProjectId = a})
pljsCallback :: Lens' ProjectsLocationsJobsSnapshot (Maybe Text)
pljsCallback
= lens _pljsCallback (\ s a -> s{_pljsCallback = a})
instance GoogleRequest ProjectsLocationsJobsSnapshot
where
type Rs ProjectsLocationsJobsSnapshot = Snapshot
type Scopes ProjectsLocationsJobsSnapshot =
'["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 ProjectsLocationsJobsSnapshot'{..}
= go _pljsProjectId _pljsLocation _pljsJobId
_pljsXgafv
_pljsUploadProtocol
_pljsAccessToken
_pljsUploadType
_pljsCallback
(Just AltJSON)
_pljsPayload
dataflowService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsJobsSnapshotResource)
mempty