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