{-# 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.Policies.Get
(
EnterprisesPoliciesGetResource
, enterprisesPoliciesGet
, EnterprisesPoliciesGet
, epgXgafv
, epgUploadProtocol
, epgAccessToken
, epgUploadType
, epgName
, epgCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesPoliciesGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Policy
data EnterprisesPoliciesGet = EnterprisesPoliciesGet'
{ _epgXgafv :: !(Maybe Xgafv)
, _epgUploadProtocol :: !(Maybe Text)
, _epgAccessToken :: !(Maybe Text)
, _epgUploadType :: !(Maybe Text)
, _epgName :: !Text
, _epgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesPoliciesGet
:: Text
-> EnterprisesPoliciesGet
enterprisesPoliciesGet pEpgName_ =
EnterprisesPoliciesGet'
{ _epgXgafv = Nothing
, _epgUploadProtocol = Nothing
, _epgAccessToken = Nothing
, _epgUploadType = Nothing
, _epgName = pEpgName_
, _epgCallback = Nothing
}
epgXgafv :: Lens' EnterprisesPoliciesGet (Maybe Xgafv)
epgXgafv = lens _epgXgafv (\ s a -> s{_epgXgafv = a})
epgUploadProtocol :: Lens' EnterprisesPoliciesGet (Maybe Text)
epgUploadProtocol
= lens _epgUploadProtocol
(\ s a -> s{_epgUploadProtocol = a})
epgAccessToken :: Lens' EnterprisesPoliciesGet (Maybe Text)
epgAccessToken
= lens _epgAccessToken
(\ s a -> s{_epgAccessToken = a})
epgUploadType :: Lens' EnterprisesPoliciesGet (Maybe Text)
epgUploadType
= lens _epgUploadType
(\ s a -> s{_epgUploadType = a})
epgName :: Lens' EnterprisesPoliciesGet Text
epgName = lens _epgName (\ s a -> s{_epgName = a})
epgCallback :: Lens' EnterprisesPoliciesGet (Maybe Text)
epgCallback
= lens _epgCallback (\ s a -> s{_epgCallback = a})
instance GoogleRequest EnterprisesPoliciesGet where
type Rs EnterprisesPoliciesGet = Policy
type Scopes EnterprisesPoliciesGet =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesPoliciesGet'{..}
= go _epgName _epgXgafv _epgUploadProtocol
_epgAccessToken
_epgUploadType
_epgCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy EnterprisesPoliciesGetResource)
mempty