{-# 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.Storelayoutpages.List
(
StorelayoutpagesListResource
, storelayoutpagesList
, StorelayoutpagesList
, slEnterpriseId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type StorelayoutpagesListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"storeLayout" :>
"pages" :>
QueryParam "alt" AltJSON :>
Get '[JSON] StoreLayoutPagesListResponse
newtype StorelayoutpagesList = StorelayoutpagesList'
{ _slEnterpriseId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
storelayoutpagesList
:: Text
-> StorelayoutpagesList
storelayoutpagesList pSlEnterpriseId_ =
StorelayoutpagesList'
{ _slEnterpriseId = pSlEnterpriseId_
}
slEnterpriseId :: Lens' StorelayoutpagesList Text
slEnterpriseId
= lens _slEnterpriseId
(\ s a -> s{_slEnterpriseId = a})
instance GoogleRequest StorelayoutpagesList where
type Rs StorelayoutpagesList =
StoreLayoutPagesListResponse
type Scopes StorelayoutpagesList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient StorelayoutpagesList'{..}
= go _slEnterpriseId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy StorelayoutpagesListResource)
mempty