{-# 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.List
(
EnterprisesPoliciesListResource
, enterprisesPoliciesList
, EnterprisesPoliciesList
, eplParent
, eplXgafv
, eplUploadProtocol
, eplAccessToken
, eplUploadType
, eplPageToken
, eplPageSize
, eplCallback
) where
import Network.Google.AndroidManagement.Types
import Network.Google.Prelude
type EnterprisesPoliciesListResource =
"v1" :>
Capture "parent" Text :>
"policies" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "pageToken" Text :>
QueryParam "pageSize" (Textual Int32) :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListPoliciesResponse
data EnterprisesPoliciesList = EnterprisesPoliciesList'
{ _eplParent :: !Text
, _eplXgafv :: !(Maybe Xgafv)
, _eplUploadProtocol :: !(Maybe Text)
, _eplAccessToken :: !(Maybe Text)
, _eplUploadType :: !(Maybe Text)
, _eplPageToken :: !(Maybe Text)
, _eplPageSize :: !(Maybe (Textual Int32))
, _eplCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesPoliciesList
:: Text
-> EnterprisesPoliciesList
enterprisesPoliciesList pEplParent_ =
EnterprisesPoliciesList'
{ _eplParent = pEplParent_
, _eplXgafv = Nothing
, _eplUploadProtocol = Nothing
, _eplAccessToken = Nothing
, _eplUploadType = Nothing
, _eplPageToken = Nothing
, _eplPageSize = Nothing
, _eplCallback = Nothing
}
eplParent :: Lens' EnterprisesPoliciesList Text
eplParent
= lens _eplParent (\ s a -> s{_eplParent = a})
eplXgafv :: Lens' EnterprisesPoliciesList (Maybe Xgafv)
eplXgafv = lens _eplXgafv (\ s a -> s{_eplXgafv = a})
eplUploadProtocol :: Lens' EnterprisesPoliciesList (Maybe Text)
eplUploadProtocol
= lens _eplUploadProtocol
(\ s a -> s{_eplUploadProtocol = a})
eplAccessToken :: Lens' EnterprisesPoliciesList (Maybe Text)
eplAccessToken
= lens _eplAccessToken
(\ s a -> s{_eplAccessToken = a})
eplUploadType :: Lens' EnterprisesPoliciesList (Maybe Text)
eplUploadType
= lens _eplUploadType
(\ s a -> s{_eplUploadType = a})
eplPageToken :: Lens' EnterprisesPoliciesList (Maybe Text)
eplPageToken
= lens _eplPageToken (\ s a -> s{_eplPageToken = a})
eplPageSize :: Lens' EnterprisesPoliciesList (Maybe Int32)
eplPageSize
= lens _eplPageSize (\ s a -> s{_eplPageSize = a}) .
mapping _Coerce
eplCallback :: Lens' EnterprisesPoliciesList (Maybe Text)
eplCallback
= lens _eplCallback (\ s a -> s{_eplCallback = a})
instance GoogleRequest EnterprisesPoliciesList where
type Rs EnterprisesPoliciesList =
ListPoliciesResponse
type Scopes EnterprisesPoliciesList =
'["https://www.googleapis.com/auth/androidmanagement"]
requestClient EnterprisesPoliciesList'{..}
= go _eplParent _eplXgafv _eplUploadProtocol
_eplAccessToken
_eplUploadType
_eplPageToken
_eplPageSize
_eplCallback
(Just AltJSON)
androidManagementService
where go
= buildClient
(Proxy :: Proxy EnterprisesPoliciesListResource)
mempty