{-# 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.Directory.Users.Photos.Delete
(
UsersPhotosDeleteResource
, usersPhotosDelete
, UsersPhotosDelete
, updUserKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type UsersPhotosDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"users" :>
Capture "userKey" Text :>
"photos" :>
"thumbnail" :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype UsersPhotosDelete = UsersPhotosDelete'
{ _updUserKey :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersPhotosDelete
:: Text
-> UsersPhotosDelete
usersPhotosDelete pUpdUserKey_ =
UsersPhotosDelete'
{ _updUserKey = pUpdUserKey_
}
updUserKey :: Lens' UsersPhotosDelete Text
updUserKey
= lens _updUserKey (\ s a -> s{_updUserKey = a})
instance GoogleRequest UsersPhotosDelete where
type Rs UsersPhotosDelete = ()
type Scopes UsersPhotosDelete =
'["https://www.googleapis.com/auth/admin.directory.user"]
requestClient UsersPhotosDelete'{..}
= go _updUserKey (Just AltJSON) directoryService
where go
= buildClient
(Proxy :: Proxy UsersPhotosDeleteResource)
mempty