{-# 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.AndroidEnterprise.Users.Get
(
UsersGetResource
, usersGet
, UsersGet
, ugEnterpriseId
, ugUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type UsersGetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] User
data UsersGet = UsersGet'
{ _ugEnterpriseId :: !Text
, _ugUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersGet
:: Text
-> Text
-> UsersGet
usersGet pUgEnterpriseId_ pUgUserId_ =
UsersGet'
{ _ugEnterpriseId = pUgEnterpriseId_
, _ugUserId = pUgUserId_
}
ugEnterpriseId :: Lens' UsersGet Text
ugEnterpriseId
= lens _ugEnterpriseId
(\ s a -> s{_ugEnterpriseId = a})
ugUserId :: Lens' UsersGet Text
ugUserId = lens _ugUserId (\ s a -> s{_ugUserId = a})
instance GoogleRequest UsersGet where
type Rs UsersGet = User
type Scopes UsersGet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient UsersGet'{..}
= go _ugEnterpriseId _ugUserId (Just AltJSON)
androidEnterpriseService
where go
= buildClient (Proxy :: Proxy UsersGetResource)
mempty