{-# 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.CloudResourceManager.Folders.Delete
(
FoldersDeleteResource
, foldersDelete
, FoldersDelete
, fdXgafv
, fdUploadProtocol
, fdAccessToken
, fdUploadType
, fdName
, fdCallback
) where
import Network.Google.Prelude
import Network.Google.ResourceManager.Types
type FoldersDeleteResource =
"v2" :>
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] Folder
data FoldersDelete = FoldersDelete'
{ _fdXgafv :: !(Maybe Xgafv)
, _fdUploadProtocol :: !(Maybe Text)
, _fdAccessToken :: !(Maybe Text)
, _fdUploadType :: !(Maybe Text)
, _fdName :: !Text
, _fdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
foldersDelete
:: Text
-> FoldersDelete
foldersDelete pFdName_ =
FoldersDelete'
{ _fdXgafv = Nothing
, _fdUploadProtocol = Nothing
, _fdAccessToken = Nothing
, _fdUploadType = Nothing
, _fdName = pFdName_
, _fdCallback = Nothing
}
fdXgafv :: Lens' FoldersDelete (Maybe Xgafv)
fdXgafv = lens _fdXgafv (\ s a -> s{_fdXgafv = a})
fdUploadProtocol :: Lens' FoldersDelete (Maybe Text)
fdUploadProtocol
= lens _fdUploadProtocol
(\ s a -> s{_fdUploadProtocol = a})
fdAccessToken :: Lens' FoldersDelete (Maybe Text)
fdAccessToken
= lens _fdAccessToken
(\ s a -> s{_fdAccessToken = a})
fdUploadType :: Lens' FoldersDelete (Maybe Text)
fdUploadType
= lens _fdUploadType (\ s a -> s{_fdUploadType = a})
fdName :: Lens' FoldersDelete Text
fdName = lens _fdName (\ s a -> s{_fdName = a})
fdCallback :: Lens' FoldersDelete (Maybe Text)
fdCallback
= lens _fdCallback (\ s a -> s{_fdCallback = a})
instance GoogleRequest FoldersDelete where
type Rs FoldersDelete = Folder
type Scopes FoldersDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient FoldersDelete'{..}
= go _fdName _fdXgafv _fdUploadProtocol
_fdAccessToken
_fdUploadType
_fdCallback
(Just AltJSON)
resourceManagerService
where go
= buildClient (Proxy :: Proxy FoldersDeleteResource)
mempty