{-# 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.Locations.WorkflowTemplates.Delete
(
ProjectsLocationsWorkflowTemplatesDeleteResource
, projectsLocationsWorkflowTemplatesDelete
, ProjectsLocationsWorkflowTemplatesDelete
, plwtdXgafv
, plwtdUploadProtocol
, plwtdAccessToken
, plwtdUploadType
, plwtdName
, plwtdVersion
, plwtdCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsLocationsWorkflowTemplatesDeleteResource
=
"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 ProjectsLocationsWorkflowTemplatesDelete = ProjectsLocationsWorkflowTemplatesDelete'
{ _plwtdXgafv :: !(Maybe Xgafv)
, _plwtdUploadProtocol :: !(Maybe Text)
, _plwtdAccessToken :: !(Maybe Text)
, _plwtdUploadType :: !(Maybe Text)
, _plwtdName :: !Text
, _plwtdVersion :: !(Maybe (Textual Int32))
, _plwtdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsWorkflowTemplatesDelete
:: Text
-> ProjectsLocationsWorkflowTemplatesDelete
projectsLocationsWorkflowTemplatesDelete pPlwtdName_ =
ProjectsLocationsWorkflowTemplatesDelete'
{ _plwtdXgafv = Nothing
, _plwtdUploadProtocol = Nothing
, _plwtdAccessToken = Nothing
, _plwtdUploadType = Nothing
, _plwtdName = pPlwtdName_
, _plwtdVersion = Nothing
, _plwtdCallback = Nothing
}
plwtdXgafv :: Lens' ProjectsLocationsWorkflowTemplatesDelete (Maybe Xgafv)
plwtdXgafv
= lens _plwtdXgafv (\ s a -> s{_plwtdXgafv = a})
plwtdUploadProtocol :: Lens' ProjectsLocationsWorkflowTemplatesDelete (Maybe Text)
plwtdUploadProtocol
= lens _plwtdUploadProtocol
(\ s a -> s{_plwtdUploadProtocol = a})
plwtdAccessToken :: Lens' ProjectsLocationsWorkflowTemplatesDelete (Maybe Text)
plwtdAccessToken
= lens _plwtdAccessToken
(\ s a -> s{_plwtdAccessToken = a})
plwtdUploadType :: Lens' ProjectsLocationsWorkflowTemplatesDelete (Maybe Text)
plwtdUploadType
= lens _plwtdUploadType
(\ s a -> s{_plwtdUploadType = a})
plwtdName :: Lens' ProjectsLocationsWorkflowTemplatesDelete Text
plwtdName
= lens _plwtdName (\ s a -> s{_plwtdName = a})
plwtdVersion :: Lens' ProjectsLocationsWorkflowTemplatesDelete (Maybe Int32)
plwtdVersion
= lens _plwtdVersion (\ s a -> s{_plwtdVersion = a})
. mapping _Coerce
plwtdCallback :: Lens' ProjectsLocationsWorkflowTemplatesDelete (Maybe Text)
plwtdCallback
= lens _plwtdCallback
(\ s a -> s{_plwtdCallback = a})
instance GoogleRequest
ProjectsLocationsWorkflowTemplatesDelete where
type Rs ProjectsLocationsWorkflowTemplatesDelete =
Empty
type Scopes ProjectsLocationsWorkflowTemplatesDelete
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsWorkflowTemplatesDelete'{..}
= go _plwtdName _plwtdXgafv _plwtdUploadProtocol
_plwtdAccessToken
_plwtdUploadType
_plwtdVersion
_plwtdCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsWorkflowTemplatesDeleteResource)
mempty