{-# 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.Drive.Teamdrives.Delete
(
TeamdrivesDeleteResource
, teamdrivesDelete
, TeamdrivesDelete
, tdTeamDriveId
) where
import Network.Google.Drive.Types
import Network.Google.Prelude
type TeamdrivesDeleteResource =
"drive" :>
"v3" :>
"teamdrives" :>
Capture "teamDriveId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype TeamdrivesDelete = TeamdrivesDelete'
{ _tdTeamDriveId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
teamdrivesDelete
:: Text
-> TeamdrivesDelete
teamdrivesDelete pTdTeamDriveId_ =
TeamdrivesDelete'
{ _tdTeamDriveId = pTdTeamDriveId_
}
tdTeamDriveId :: Lens' TeamdrivesDelete Text
tdTeamDriveId
= lens _tdTeamDriveId
(\ s a -> s{_tdTeamDriveId = a})
instance GoogleRequest TeamdrivesDelete where
type Rs TeamdrivesDelete = ()
type Scopes TeamdrivesDelete =
'["https://www.googleapis.com/auth/drive"]
requestClient TeamdrivesDelete'{..}
= go _tdTeamDriveId (Just AltJSON) driveService
where go
= buildClient
(Proxy :: Proxy TeamdrivesDeleteResource)
mempty