{-# 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.Datastore.Projects.Operations.Delete
(
ProjectsOperationsDeleteResource
, projectsOperationsDelete
, ProjectsOperationsDelete
, podXgafv
, podUploadProtocol
, podAccessToken
, podUploadType
, podName
, podCallback
) where
import Network.Google.Datastore.Types
import Network.Google.Prelude
type ProjectsOperationsDeleteResource =
"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 ProjectsOperationsDelete = ProjectsOperationsDelete'
{ _podXgafv :: !(Maybe Xgafv)
, _podUploadProtocol :: !(Maybe Text)
, _podAccessToken :: !(Maybe Text)
, _podUploadType :: !(Maybe Text)
, _podName :: !Text
, _podCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOperationsDelete
:: Text
-> ProjectsOperationsDelete
projectsOperationsDelete pPodName_ =
ProjectsOperationsDelete'
{ _podXgafv = Nothing
, _podUploadProtocol = Nothing
, _podAccessToken = Nothing
, _podUploadType = Nothing
, _podName = pPodName_
, _podCallback = Nothing
}
podXgafv :: Lens' ProjectsOperationsDelete (Maybe Xgafv)
podXgafv = lens _podXgafv (\ s a -> s{_podXgafv = a})
podUploadProtocol :: Lens' ProjectsOperationsDelete (Maybe Text)
podUploadProtocol
= lens _podUploadProtocol
(\ s a -> s{_podUploadProtocol = a})
podAccessToken :: Lens' ProjectsOperationsDelete (Maybe Text)
podAccessToken
= lens _podAccessToken
(\ s a -> s{_podAccessToken = a})
podUploadType :: Lens' ProjectsOperationsDelete (Maybe Text)
podUploadType
= lens _podUploadType
(\ s a -> s{_podUploadType = a})
podName :: Lens' ProjectsOperationsDelete Text
podName = lens _podName (\ s a -> s{_podName = a})
podCallback :: Lens' ProjectsOperationsDelete (Maybe Text)
podCallback
= lens _podCallback (\ s a -> s{_podCallback = a})
instance GoogleRequest ProjectsOperationsDelete where
type Rs ProjectsOperationsDelete = Empty
type Scopes ProjectsOperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient ProjectsOperationsDelete'{..}
= go _podName _podXgafv _podUploadProtocol
_podAccessToken
_podUploadType
_podCallback
(Just AltJSON)
datastoreService
where go
= buildClient
(Proxy :: Proxy ProjectsOperationsDeleteResource)
mempty