{-# 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.WebApps.Get
(
WebAppsGetResource
, webAppsGet
, WebAppsGet
, wagWebAppId
, wagEnterpriseId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type WebAppsGetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"webApps" :>
Capture "webAppId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] WebApp
data WebAppsGet = WebAppsGet'
{ _wagWebAppId :: !Text
, _wagEnterpriseId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
webAppsGet
:: Text
-> Text
-> WebAppsGet
webAppsGet pWagWebAppId_ pWagEnterpriseId_ =
WebAppsGet'
{ _wagWebAppId = pWagWebAppId_
, _wagEnterpriseId = pWagEnterpriseId_
}
wagWebAppId :: Lens' WebAppsGet Text
wagWebAppId
= lens _wagWebAppId (\ s a -> s{_wagWebAppId = a})
wagEnterpriseId :: Lens' WebAppsGet Text
wagEnterpriseId
= lens _wagEnterpriseId
(\ s a -> s{_wagEnterpriseId = a})
instance GoogleRequest WebAppsGet where
type Rs WebAppsGet = WebApp
type Scopes WebAppsGet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient WebAppsGet'{..}
= go _wagEnterpriseId _wagWebAppId (Just AltJSON)
androidEnterpriseService
where go
= buildClient (Proxy :: Proxy WebAppsGetResource)
mempty