{-# 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.AndroidManagement.Enterprises.Applications.Get
(
EnterprisesApplicationsGetResource
, enterprisesApplicationsGet
, EnterprisesApplicationsGet
, eagXgafv
, eagLanguageCode
, eagUploadProtocol
, eagAccessToken
, eagUploadType
, eagName
, eagCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesApplicationsGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "languageCode" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Application
data EnterprisesApplicationsGet = EnterprisesApplicationsGet'
{ _eagXgafv :: !(Maybe Xgafv)
, _eagLanguageCode :: !(Maybe Text)
, _eagUploadProtocol :: !(Maybe Text)
, _eagAccessToken :: !(Maybe Text)
, _eagUploadType :: !(Maybe Text)
, _eagName :: !Text
, _eagCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesApplicationsGet
:: Text
-> EnterprisesApplicationsGet
enterprisesApplicationsGet pEagName_ =
EnterprisesApplicationsGet'
{ _eagXgafv = Nothing
, _eagLanguageCode = Nothing
, _eagUploadProtocol = Nothing
, _eagAccessToken = Nothing
, _eagUploadType = Nothing
, _eagName = pEagName_
, _eagCallback = Nothing
}
eagXgafv :: Lens' EnterprisesApplicationsGet (Maybe Xgafv)
eagXgafv = lens _eagXgafv (\ s a -> s{_eagXgafv = a})
eagLanguageCode :: Lens' EnterprisesApplicationsGet (Maybe Text)
eagLanguageCode
= lens _eagLanguageCode
(\ s a -> s{_eagLanguageCode = a})
eagUploadProtocol :: Lens' EnterprisesApplicationsGet (Maybe Text)
eagUploadProtocol
= lens _eagUploadProtocol
(\ s a -> s{_eagUploadProtocol = a})
eagAccessToken :: Lens' EnterprisesApplicationsGet (Maybe Text)
eagAccessToken
= lens _eagAccessToken
(\ s a -> s{_eagAccessToken = a})
eagUploadType :: Lens' EnterprisesApplicationsGet (Maybe Text)
eagUploadType
= lens _eagUploadType
(\ s a -> s{_eagUploadType = a})
eagName :: Lens' EnterprisesApplicationsGet Text
eagName = lens _eagName (\ s a -> s{_eagName = a})
eagCallback :: Lens' EnterprisesApplicationsGet (Maybe Text)
eagCallback
= lens _eagCallback (\ s a -> s{_eagCallback = a})
instance GoogleRequest EnterprisesApplicationsGet
where
type Rs EnterprisesApplicationsGet = Application
type Scopes EnterprisesApplicationsGet =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesApplicationsGet'{..}
= go _eagName _eagXgafv _eagLanguageCode
_eagUploadProtocol
_eagAccessToken
_eagUploadType
_eagCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy EnterprisesApplicationsGetResource)
mempty