{-# 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.Asps.Delete
(
AspsDeleteResource
, aspsDelete
, AspsDelete
, adCodeId
, adUserKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type AspsDeleteResource =
"admin" :>
"directory" :>
"v1" :>
"users" :>
Capture "userKey" Text :>
"asps" :>
Capture "codeId" (Textual Int32) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data AspsDelete = AspsDelete'
{ _adCodeId :: !(Textual Int32)
, _adUserKey :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
aspsDelete
:: Int32
-> Text
-> AspsDelete
aspsDelete pAdCodeId_ pAdUserKey_ =
AspsDelete'
{ _adCodeId = _Coerce # pAdCodeId_
, _adUserKey = pAdUserKey_
}
adCodeId :: Lens' AspsDelete Int32
adCodeId
= lens _adCodeId (\ s a -> s{_adCodeId = a}) .
_Coerce
adUserKey :: Lens' AspsDelete Text
adUserKey
= lens _adUserKey (\ s a -> s{_adUserKey = a})
instance GoogleRequest AspsDelete where
type Rs AspsDelete = ()
type Scopes AspsDelete =
'["https://www.googleapis.com/auth/admin.directory.user.security"]
requestClient AspsDelete'{..}
= go _adUserKey _adCodeId (Just AltJSON)
directoryService
where go
= buildClient (Proxy :: Proxy AspsDeleteResource)
mempty