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