{-# 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.Storelayoutclusters.List
(
StorelayoutclustersListResource
, storelayoutclustersList
, StorelayoutclustersList
, sllEnterpriseId
, sllPageId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type StorelayoutclustersListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"storeLayout" :>
"pages" :>
Capture "pageId" Text :>
"clusters" :>
QueryParam "alt" AltJSON :>
Get '[JSON] StoreLayoutClustersListResponse
data StorelayoutclustersList = StorelayoutclustersList'
{ _sllEnterpriseId :: !Text
, _sllPageId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
storelayoutclustersList
:: Text
-> Text
-> StorelayoutclustersList
storelayoutclustersList pSllEnterpriseId_ pSllPageId_ =
StorelayoutclustersList'
{ _sllEnterpriseId = pSllEnterpriseId_
, _sllPageId = pSllPageId_
}
sllEnterpriseId :: Lens' StorelayoutclustersList Text
sllEnterpriseId
= lens _sllEnterpriseId
(\ s a -> s{_sllEnterpriseId = a})
sllPageId :: Lens' StorelayoutclustersList Text
sllPageId
= lens _sllPageId (\ s a -> s{_sllPageId = a})
instance GoogleRequest StorelayoutclustersList where
type Rs StorelayoutclustersList =
StoreLayoutClustersListResponse
type Scopes StorelayoutclustersList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient StorelayoutclustersList'{..}
= go _sllEnterpriseId _sllPageId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy StorelayoutclustersListResource)
mempty