{-# 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] ()
-- | Remove photos for the user
--
-- /See:/ 'usersPhotosDelete' smart constructor.
newtype UsersPhotosDelete = UsersPhotosDelete'
{ _updUserKey :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
-- | Creates a value of 'UsersPhotosDelete' with the minimum fields required to make a request.
--
-- Use one of the following lenses to modify other fields as desired:
--
-- * 'updUserKey'
usersPhotosDelete
:: Text -- ^ 'updUserKey'
-> UsersPhotosDelete
usersPhotosDelete pUpdUserKey_ =
UsersPhotosDelete'
{ _updUserKey = pUpdUserKey_
}
-- | Email or immutable Id of the user
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