{-# 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.List
(
AspsListResource
, aspsList
, AspsList
, alUserKey
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type AspsListResource =
"admin" :>
"directory" :>
"v1" :>
"users" :>
Capture "userKey" Text :>
"asps" :>
QueryParam "alt" AltJSON :> Get '[JSON] Asps
newtype AspsList = AspsList'
{ _alUserKey :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
aspsList
:: Text
-> AspsList
aspsList pAlUserKey_ =
AspsList'
{ _alUserKey = pAlUserKey_
}
alUserKey :: Lens' AspsList Text
alUserKey
= lens _alUserKey (\ s a -> s{_alUserKey = a})
instance GoogleRequest AspsList where
type Rs AspsList = Asps
type Scopes AspsList =
'["https://www.googleapis.com/auth/admin.directory.user.security"]
requestClient AspsList'{..}
= go _alUserKey (Just AltJSON) directoryService
where go
= buildClient (Proxy :: Proxy AspsListResource)
mempty