{-# 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.Enterprises.GetStoreLayout
(
EnterprisesGetStoreLayoutResource
, enterprisesGetStoreLayout
, EnterprisesGetStoreLayout
, egslEnterpriseId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type EnterprisesGetStoreLayoutResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"storeLayout" :>
QueryParam "alt" AltJSON :> Get '[JSON] StoreLayout
newtype EnterprisesGetStoreLayout =
EnterprisesGetStoreLayout'
{ _egslEnterpriseId :: Text
}
deriving (Eq, Show, Data, Typeable, Generic)
enterprisesGetStoreLayout
:: Text
-> EnterprisesGetStoreLayout
enterprisesGetStoreLayout pEgslEnterpriseId_ =
EnterprisesGetStoreLayout' {_egslEnterpriseId = pEgslEnterpriseId_}
egslEnterpriseId :: Lens' EnterprisesGetStoreLayout Text
egslEnterpriseId
= lens _egslEnterpriseId
(\ s a -> s{_egslEnterpriseId = a})
instance GoogleRequest EnterprisesGetStoreLayout
where
type Rs EnterprisesGetStoreLayout = StoreLayout
type Scopes EnterprisesGetStoreLayout =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient EnterprisesGetStoreLayout'{..}
= go _egslEnterpriseId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy EnterprisesGetStoreLayoutResource)
mempty