{-# 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.WorkflowTemplates.Delete
(
ProjectsRegionsWorkflowTemplatesDeleteResource
, projectsRegionsWorkflowTemplatesDelete
, ProjectsRegionsWorkflowTemplatesDelete
, prwtdXgafv
, prwtdUploadProtocol
, prwtdAccessToken
, prwtdUploadType
, prwtdName
, prwtdVersion
, prwtdCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsWorkflowTemplatesDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "version" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsRegionsWorkflowTemplatesDelete = ProjectsRegionsWorkflowTemplatesDelete'
{ _prwtdXgafv :: !(Maybe Xgafv)
, _prwtdUploadProtocol :: !(Maybe Text)
, _prwtdAccessToken :: !(Maybe Text)
, _prwtdUploadType :: !(Maybe Text)
, _prwtdName :: !Text
, _prwtdVersion :: !(Maybe (Textual Int32))
, _prwtdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsWorkflowTemplatesDelete
:: Text
-> ProjectsRegionsWorkflowTemplatesDelete
projectsRegionsWorkflowTemplatesDelete pPrwtdName_ =
ProjectsRegionsWorkflowTemplatesDelete'
{ _prwtdXgafv = Nothing
, _prwtdUploadProtocol = Nothing
, _prwtdAccessToken = Nothing
, _prwtdUploadType = Nothing
, _prwtdName = pPrwtdName_
, _prwtdVersion = Nothing
, _prwtdCallback = Nothing
}
prwtdXgafv :: Lens' ProjectsRegionsWorkflowTemplatesDelete (Maybe Xgafv)
prwtdXgafv
= lens _prwtdXgafv (\ s a -> s{_prwtdXgafv = a})
prwtdUploadProtocol :: Lens' ProjectsRegionsWorkflowTemplatesDelete (Maybe Text)
prwtdUploadProtocol
= lens _prwtdUploadProtocol
(\ s a -> s{_prwtdUploadProtocol = a})
prwtdAccessToken :: Lens' ProjectsRegionsWorkflowTemplatesDelete (Maybe Text)
prwtdAccessToken
= lens _prwtdAccessToken
(\ s a -> s{_prwtdAccessToken = a})
prwtdUploadType :: Lens' ProjectsRegionsWorkflowTemplatesDelete (Maybe Text)
prwtdUploadType
= lens _prwtdUploadType
(\ s a -> s{_prwtdUploadType = a})
prwtdName :: Lens' ProjectsRegionsWorkflowTemplatesDelete Text
prwtdName
= lens _prwtdName (\ s a -> s{_prwtdName = a})
prwtdVersion :: Lens' ProjectsRegionsWorkflowTemplatesDelete (Maybe Int32)
prwtdVersion
= lens _prwtdVersion (\ s a -> s{_prwtdVersion = a})
. mapping _Coerce
prwtdCallback :: Lens' ProjectsRegionsWorkflowTemplatesDelete (Maybe Text)
prwtdCallback
= lens _prwtdCallback
(\ s a -> s{_prwtdCallback = a})
instance GoogleRequest
ProjectsRegionsWorkflowTemplatesDelete where
type Rs ProjectsRegionsWorkflowTemplatesDelete =
Empty
type Scopes ProjectsRegionsWorkflowTemplatesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsRegionsWorkflowTemplatesDelete'{..}
= go _prwtdName _prwtdXgafv _prwtdUploadProtocol
_prwtdAccessToken
_prwtdUploadType
_prwtdVersion
_prwtdCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsWorkflowTemplatesDeleteResource)
mempty