{-# 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.Dataproc.Projects.Regions.Jobs.Delete
(
ProjectsRegionsJobsDeleteResource
, projectsRegionsJobsDelete
, ProjectsRegionsJobsDelete
, prjdXgafv
, prjdJobId
, prjdUploadProtocol
, prjdAccessToken
, prjdUploadType
, prjdRegion
, prjdProjectId
, prjdCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsJobsDeleteResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"regions" :>
Capture "region" Text :>
"jobs" :>
Capture "jobId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsRegionsJobsDelete = ProjectsRegionsJobsDelete'
{ _prjdXgafv :: !(Maybe Xgafv)
, _prjdJobId :: !Text
, _prjdUploadProtocol :: !(Maybe Text)
, _prjdAccessToken :: !(Maybe Text)
, _prjdUploadType :: !(Maybe Text)
, _prjdRegion :: !Text
, _prjdProjectId :: !Text
, _prjdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsJobsDelete
:: Text
-> Text
-> Text
-> ProjectsRegionsJobsDelete
projectsRegionsJobsDelete pPrjdJobId_ pPrjdRegion_ pPrjdProjectId_ =
ProjectsRegionsJobsDelete'
{ _prjdXgafv = Nothing
, _prjdJobId = pPrjdJobId_
, _prjdUploadProtocol = Nothing
, _prjdAccessToken = Nothing
, _prjdUploadType = Nothing
, _prjdRegion = pPrjdRegion_
, _prjdProjectId = pPrjdProjectId_
, _prjdCallback = Nothing
}
prjdXgafv :: Lens' ProjectsRegionsJobsDelete (Maybe Xgafv)
prjdXgafv
= lens _prjdXgafv (\ s a -> s{_prjdXgafv = a})
prjdJobId :: Lens' ProjectsRegionsJobsDelete Text
prjdJobId
= lens _prjdJobId (\ s a -> s{_prjdJobId = a})
prjdUploadProtocol :: Lens' ProjectsRegionsJobsDelete (Maybe Text)
prjdUploadProtocol
= lens _prjdUploadProtocol
(\ s a -> s{_prjdUploadProtocol = a})
prjdAccessToken :: Lens' ProjectsRegionsJobsDelete (Maybe Text)
prjdAccessToken
= lens _prjdAccessToken
(\ s a -> s{_prjdAccessToken = a})
prjdUploadType :: Lens' ProjectsRegionsJobsDelete (Maybe Text)
prjdUploadType
= lens _prjdUploadType
(\ s a -> s{_prjdUploadType = a})
prjdRegion :: Lens' ProjectsRegionsJobsDelete Text
prjdRegion
= lens _prjdRegion (\ s a -> s{_prjdRegion = a})
prjdProjectId :: Lens' ProjectsRegionsJobsDelete Text
prjdProjectId
= lens _prjdProjectId
(\ s a -> s{_prjdProjectId = a})
prjdCallback :: Lens' ProjectsRegionsJobsDelete (Maybe Text)
prjdCallback
= lens _prjdCallback (\ s a -> s{_prjdCallback = a})
instance GoogleRequest ProjectsRegionsJobsDelete
where
type Rs ProjectsRegionsJobsDelete = Empty
type Scopes ProjectsRegionsJobsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsJobsDelete'{..}
= go _prjdProjectId _prjdRegion _prjdJobId _prjdXgafv
_prjdUploadProtocol
_prjdAccessToken
_prjdUploadType
_prjdCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy :: Proxy ProjectsRegionsJobsDeleteResource)
mempty