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