{-# 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.GetAvailableProductSet
(
UsersGetAvailableProductSetResource
, usersGetAvailableProductSet
, UsersGetAvailableProductSet
, ugapsEnterpriseId
, ugapsUserId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type UsersGetAvailableProductSetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"users" :>
Capture "userId" Text :>
"availableProductSet" :>
QueryParam "alt" AltJSON :> Get '[JSON] ProductSet
data UsersGetAvailableProductSet = UsersGetAvailableProductSet'
{ _ugapsEnterpriseId :: !Text
, _ugapsUserId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
usersGetAvailableProductSet
:: Text
-> Text
-> UsersGetAvailableProductSet
usersGetAvailableProductSet pUgapsEnterpriseId_ pUgapsUserId_ =
UsersGetAvailableProductSet'
{ _ugapsEnterpriseId = pUgapsEnterpriseId_
, _ugapsUserId = pUgapsUserId_
}
ugapsEnterpriseId :: Lens' UsersGetAvailableProductSet Text
ugapsEnterpriseId
= lens _ugapsEnterpriseId
(\ s a -> s{_ugapsEnterpriseId = a})
ugapsUserId :: Lens' UsersGetAvailableProductSet Text
ugapsUserId
= lens _ugapsUserId (\ s a -> s{_ugapsUserId = a})
instance GoogleRequest UsersGetAvailableProductSet
where
type Rs UsersGetAvailableProductSet = ProductSet
type Scopes UsersGetAvailableProductSet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient UsersGetAvailableProductSet'{..}
= go _ugapsEnterpriseId _ugapsUserId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy UsersGetAvailableProductSetResource)
mempty