{-# 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.Redis.Projects.Locations.Operations.Delete
(
ProjectsLocationsOperationsDeleteResource
, projectsLocationsOperationsDelete
, ProjectsLocationsOperationsDelete
, plodXgafv
, plodUploadProtocol
, plodAccessToken
, plodUploadType
, plodName
, plodCallback
) where
import Network.Google.Prelude
import Network.Google.Redis.Types
type ProjectsLocationsOperationsDeleteResource =
"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 ProjectsLocationsOperationsDelete = ProjectsLocationsOperationsDelete'
{ _plodXgafv :: !(Maybe Xgafv)
, _plodUploadProtocol :: !(Maybe Text)
, _plodAccessToken :: !(Maybe Text)
, _plodUploadType :: !(Maybe Text)
, _plodName :: !Text
, _plodCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsOperationsDelete
:: Text
-> ProjectsLocationsOperationsDelete
projectsLocationsOperationsDelete pPlodName_ =
ProjectsLocationsOperationsDelete'
{ _plodXgafv = Nothing
, _plodUploadProtocol = Nothing
, _plodAccessToken = Nothing
, _plodUploadType = Nothing
, _plodName = pPlodName_
, _plodCallback = Nothing
}
plodXgafv :: Lens' ProjectsLocationsOperationsDelete (Maybe Xgafv)
plodXgafv
= lens _plodXgafv (\ s a -> s{_plodXgafv = a})
plodUploadProtocol :: Lens' ProjectsLocationsOperationsDelete (Maybe Text)
plodUploadProtocol
= lens _plodUploadProtocol
(\ s a -> s{_plodUploadProtocol = a})
plodAccessToken :: Lens' ProjectsLocationsOperationsDelete (Maybe Text)
plodAccessToken
= lens _plodAccessToken
(\ s a -> s{_plodAccessToken = a})
plodUploadType :: Lens' ProjectsLocationsOperationsDelete (Maybe Text)
plodUploadType
= lens _plodUploadType
(\ s a -> s{_plodUploadType = a})
plodName :: Lens' ProjectsLocationsOperationsDelete Text
plodName = lens _plodName (\ s a -> s{_plodName = a})
plodCallback :: Lens' ProjectsLocationsOperationsDelete (Maybe Text)
plodCallback
= lens _plodCallback (\ s a -> s{_plodCallback = a})
instance GoogleRequest
ProjectsLocationsOperationsDelete where
type Rs ProjectsLocationsOperationsDelete = Empty
type Scopes ProjectsLocationsOperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsOperationsDelete'{..}
= go _plodName _plodXgafv _plodUploadProtocol
_plodAccessToken
_plodUploadType
_plodCallback
(Just AltJSON)
redisService
where go
= buildClient
(Proxy ::
Proxy ProjectsLocationsOperationsDeleteResource)
mempty