{-# 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.Operations.Delete
(
ProjectsRegionsOperationsDeleteResource
, projectsRegionsOperationsDelete
, ProjectsRegionsOperationsDelete
, prodXgafv
, prodUploadProtocol
, prodAccessToken
, prodUploadType
, prodName
, prodCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsOperationsDeleteResource =
"v1" :>
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 ProjectsRegionsOperationsDelete = ProjectsRegionsOperationsDelete'
{ _prodXgafv :: !(Maybe Xgafv)
, _prodUploadProtocol :: !(Maybe Text)
, _prodAccessToken :: !(Maybe Text)
, _prodUploadType :: !(Maybe Text)
, _prodName :: !Text
, _prodCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsOperationsDelete
:: Text
-> ProjectsRegionsOperationsDelete
projectsRegionsOperationsDelete pProdName_ =
ProjectsRegionsOperationsDelete'
{ _prodXgafv = Nothing
, _prodUploadProtocol = Nothing
, _prodAccessToken = Nothing
, _prodUploadType = Nothing
, _prodName = pProdName_
, _prodCallback = Nothing
}
prodXgafv :: Lens' ProjectsRegionsOperationsDelete (Maybe Xgafv)
prodXgafv
= lens _prodXgafv (\ s a -> s{_prodXgafv = a})
prodUploadProtocol :: Lens' ProjectsRegionsOperationsDelete (Maybe Text)
prodUploadProtocol
= lens _prodUploadProtocol
(\ s a -> s{_prodUploadProtocol = a})
prodAccessToken :: Lens' ProjectsRegionsOperationsDelete (Maybe Text)
prodAccessToken
= lens _prodAccessToken
(\ s a -> s{_prodAccessToken = a})
prodUploadType :: Lens' ProjectsRegionsOperationsDelete (Maybe Text)
prodUploadType
= lens _prodUploadType
(\ s a -> s{_prodUploadType = a})
prodName :: Lens' ProjectsRegionsOperationsDelete Text
prodName = lens _prodName (\ s a -> s{_prodName = a})
prodCallback :: Lens' ProjectsRegionsOperationsDelete (Maybe Text)
prodCallback
= lens _prodCallback (\ s a -> s{_prodCallback = a})
instance GoogleRequest
ProjectsRegionsOperationsDelete where
type Rs ProjectsRegionsOperationsDelete = Empty
type Scopes ProjectsRegionsOperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsOperationsDelete'{..}
= go _prodName _prodXgafv _prodUploadProtocol
_prodAccessToken
_prodUploadType
_prodCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsOperationsDeleteResource)
mempty