{-# 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.ManagedConfigurationssettings.List
(
ManagedConfigurationssettingsListResource
, managedConfigurationssettingsList
, ManagedConfigurationssettingsList
, mclEnterpriseId
, mclProductId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ManagedConfigurationssettingsListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"products" :>
Capture "productId" Text :>
"managedConfigurationsSettings" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ManagedConfigurationsSettingsListResponse
data ManagedConfigurationssettingsList = ManagedConfigurationssettingsList'
{ _mclEnterpriseId :: !Text
, _mclProductId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
managedConfigurationssettingsList
:: Text
-> Text
-> ManagedConfigurationssettingsList
managedConfigurationssettingsList pMclEnterpriseId_ pMclProductId_ =
ManagedConfigurationssettingsList'
{ _mclEnterpriseId = pMclEnterpriseId_
, _mclProductId = pMclProductId_
}
mclEnterpriseId :: Lens' ManagedConfigurationssettingsList Text
mclEnterpriseId
= lens _mclEnterpriseId
(\ s a -> s{_mclEnterpriseId = a})
mclProductId :: Lens' ManagedConfigurationssettingsList Text
mclProductId
= lens _mclProductId (\ s a -> s{_mclProductId = a})
instance GoogleRequest
ManagedConfigurationssettingsList where
type Rs ManagedConfigurationssettingsList =
ManagedConfigurationsSettingsListResponse
type Scopes ManagedConfigurationssettingsList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ManagedConfigurationssettingsList'{..}
= go _mclEnterpriseId _mclProductId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy ::
Proxy ManagedConfigurationssettingsListResource)
mempty