{-# 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.CloudScheduler.Projects.Locations.Jobs.Resume
(
ProjectsLocationsJobsResumeResource
, projectsLocationsJobsResume
, ProjectsLocationsJobsResume
, pljrXgafv
, pljrUploadProtocol
, pljrAccessToken
, pljrUploadType
, pljrPayload
, pljrName
, pljrCallback
) where
import Network.Google.CloudScheduler.Types
import Network.Google.Prelude
type ProjectsLocationsJobsResumeResource =
"v1beta1" :>
CaptureMode "name" "resume" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ResumeJobRequest :> Post '[JSON] Job
data ProjectsLocationsJobsResume = ProjectsLocationsJobsResume'
{ _pljrXgafv :: !(Maybe Xgafv)
, _pljrUploadProtocol :: !(Maybe Text)
, _pljrAccessToken :: !(Maybe Text)
, _pljrUploadType :: !(Maybe Text)
, _pljrPayload :: !ResumeJobRequest
, _pljrName :: !Text
, _pljrCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsJobsResume
:: ResumeJobRequest
-> Text
-> ProjectsLocationsJobsResume
projectsLocationsJobsResume pPljrPayload_ pPljrName_ =
ProjectsLocationsJobsResume'
{ _pljrXgafv = Nothing
, _pljrUploadProtocol = Nothing
, _pljrAccessToken = Nothing
, _pljrUploadType = Nothing
, _pljrPayload = pPljrPayload_
, _pljrName = pPljrName_
, _pljrCallback = Nothing
}
pljrXgafv :: Lens' ProjectsLocationsJobsResume (Maybe Xgafv)
pljrXgafv
= lens _pljrXgafv (\ s a -> s{_pljrXgafv = a})
pljrUploadProtocol :: Lens' ProjectsLocationsJobsResume (Maybe Text)
pljrUploadProtocol
= lens _pljrUploadProtocol
(\ s a -> s{_pljrUploadProtocol = a})
pljrAccessToken :: Lens' ProjectsLocationsJobsResume (Maybe Text)
pljrAccessToken
= lens _pljrAccessToken
(\ s a -> s{_pljrAccessToken = a})
pljrUploadType :: Lens' ProjectsLocationsJobsResume (Maybe Text)
pljrUploadType
= lens _pljrUploadType
(\ s a -> s{_pljrUploadType = a})
pljrPayload :: Lens' ProjectsLocationsJobsResume ResumeJobRequest
pljrPayload
= lens _pljrPayload (\ s a -> s{_pljrPayload = a})
pljrName :: Lens' ProjectsLocationsJobsResume Text
pljrName = lens _pljrName (\ s a -> s{_pljrName = a})
pljrCallback :: Lens' ProjectsLocationsJobsResume (Maybe Text)
pljrCallback
= lens _pljrCallback (\ s a -> s{_pljrCallback = a})
instance GoogleRequest ProjectsLocationsJobsResume
where
type Rs ProjectsLocationsJobsResume = Job
type Scopes ProjectsLocationsJobsResume =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsJobsResume'{..}
= go _pljrName _pljrXgafv _pljrUploadProtocol
_pljrAccessToken
_pljrUploadType
_pljrCallback
(Just AltJSON)
_pljrPayload
cloudSchedulerService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsJobsResumeResource)
mempty