{-# 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.Entitlements.List
(
EntitlementsListResource
, entitlementsList
, EntitlementsList
, elEnterpriseId
, elUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type EntitlementsListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"entitlements" :>
QueryParam "alt" AltJSON :>
Get '[JSON] EntitlementsListResponse
data EntitlementsList = EntitlementsList'
{ _elEnterpriseId :: !Text
, _elUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
entitlementsList
:: Text
-> Text
-> EntitlementsList
entitlementsList pElEnterpriseId_ pElUserId_ =
EntitlementsList'
{ _elEnterpriseId = pElEnterpriseId_
, _elUserId = pElUserId_
}
elEnterpriseId :: Lens' EntitlementsList Text
elEnterpriseId
= lens _elEnterpriseId
(\ s a -> s{_elEnterpriseId = a})
elUserId :: Lens' EntitlementsList Text
elUserId = lens _elUserId (\ s a -> s{_elUserId = a})
instance GoogleRequest EntitlementsList where
type Rs EntitlementsList = EntitlementsListResponse
type Scopes EntitlementsList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient EntitlementsList'{..}
= go _elEnterpriseId _elUserId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy EntitlementsListResource)
mempty