{-# 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.CloudTasks.Projects.Locations.Queues.Tasks.Delete
(
ProjectsLocationsQueuesTasksDeleteResource
, projectsLocationsQueuesTasksDelete
, ProjectsLocationsQueuesTasksDelete
, plqtdXgafv
, plqtdUploadProtocol
, plqtdAccessToken
, plqtdUploadType
, plqtdName
, plqtdCallback
) where
import Network.Google.CloudTasks.Types
import Network.Google.Prelude
type ProjectsLocationsQueuesTasksDeleteResource =
"v2beta3" :>
Capture "name" 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 ProjectsLocationsQueuesTasksDelete = ProjectsLocationsQueuesTasksDelete'
{ _plqtdXgafv :: !(Maybe Xgafv)
, _plqtdUploadProtocol :: !(Maybe Text)
, _plqtdAccessToken :: !(Maybe Text)
, _plqtdUploadType :: !(Maybe Text)
, _plqtdName :: !Text
, _plqtdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsQueuesTasksDelete
:: Text
-> ProjectsLocationsQueuesTasksDelete
projectsLocationsQueuesTasksDelete pPlqtdName_ =
ProjectsLocationsQueuesTasksDelete'
{ _plqtdXgafv = Nothing
, _plqtdUploadProtocol = Nothing
, _plqtdAccessToken = Nothing
, _plqtdUploadType = Nothing
, _plqtdName = pPlqtdName_
, _plqtdCallback = Nothing
}
plqtdXgafv :: Lens' ProjectsLocationsQueuesTasksDelete (Maybe Xgafv)
plqtdXgafv
= lens _plqtdXgafv (\ s a -> s{_plqtdXgafv = a})
plqtdUploadProtocol :: Lens' ProjectsLocationsQueuesTasksDelete (Maybe Text)
plqtdUploadProtocol
= lens _plqtdUploadProtocol
(\ s a -> s{_plqtdUploadProtocol = a})
plqtdAccessToken :: Lens' ProjectsLocationsQueuesTasksDelete (Maybe Text)
plqtdAccessToken
= lens _plqtdAccessToken
(\ s a -> s{_plqtdAccessToken = a})
plqtdUploadType :: Lens' ProjectsLocationsQueuesTasksDelete (Maybe Text)
plqtdUploadType
= lens _plqtdUploadType
(\ s a -> s{_plqtdUploadType = a})
plqtdName :: Lens' ProjectsLocationsQueuesTasksDelete Text
plqtdName
= lens _plqtdName (\ s a -> s{_plqtdName = a})
plqtdCallback :: Lens' ProjectsLocationsQueuesTasksDelete (Maybe Text)
plqtdCallback
= lens _plqtdCallback
(\ s a -> s{_plqtdCallback = a})
instance GoogleRequest
ProjectsLocationsQueuesTasksDelete where
type Rs ProjectsLocationsQueuesTasksDelete = Empty
type Scopes ProjectsLocationsQueuesTasksDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsQueuesTasksDelete'{..}
= go _plqtdName _plqtdXgafv _plqtdUploadProtocol
_plqtdAccessToken
_plqtdUploadType
_plqtdCallback
(Just AltJSON)
cloudTasksService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsQueuesTasksDeleteResource)
mempty