{-# 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.Get
(
StorelayoutpagesGetResource
, storelayoutpagesGet
, StorelayoutpagesGet
, sgEnterpriseId
, sgPageId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type StorelayoutpagesGetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"storeLayout" :>
"pages" :>
Capture "pageId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] StorePage
data StorelayoutpagesGet = StorelayoutpagesGet'
{ _sgEnterpriseId :: !Text
, _sgPageId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
storelayoutpagesGet
:: Text
-> Text
-> StorelayoutpagesGet
storelayoutpagesGet pSgEnterpriseId_ pSgPageId_ =
StorelayoutpagesGet'
{ _sgEnterpriseId = pSgEnterpriseId_
, _sgPageId = pSgPageId_
}
sgEnterpriseId :: Lens' StorelayoutpagesGet Text
sgEnterpriseId
= lens _sgEnterpriseId
(\ s a -> s{_sgEnterpriseId = a})
sgPageId :: Lens' StorelayoutpagesGet Text
sgPageId = lens _sgPageId (\ s a -> s{_sgPageId = a})
instance GoogleRequest StorelayoutpagesGet where
type Rs StorelayoutpagesGet = StorePage
type Scopes StorelayoutpagesGet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient StorelayoutpagesGet'{..}
= go _sgEnterpriseId _sgPageId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy StorelayoutpagesGetResource)
mempty