{-# 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.Get
(
GrouplicensesGetResource
, grouplicensesGet
, GrouplicensesGet
, ggEnterpriseId
, ggGroupLicenseId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type GrouplicensesGetResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"groupLicenses" :>
Capture "groupLicenseId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] GroupLicense
data GrouplicensesGet = GrouplicensesGet'
{ _ggEnterpriseId :: !Text
, _ggGroupLicenseId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
grouplicensesGet
:: Text
-> Text
-> GrouplicensesGet
grouplicensesGet pGgEnterpriseId_ pGgGroupLicenseId_ =
GrouplicensesGet'
{ _ggEnterpriseId = pGgEnterpriseId_
, _ggGroupLicenseId = pGgGroupLicenseId_
}
ggEnterpriseId :: Lens' GrouplicensesGet Text
ggEnterpriseId
= lens _ggEnterpriseId
(\ s a -> s{_ggEnterpriseId = a})
ggGroupLicenseId :: Lens' GrouplicensesGet Text
ggGroupLicenseId
= lens _ggGroupLicenseId
(\ s a -> s{_ggGroupLicenseId = a})
instance GoogleRequest GrouplicensesGet where
type Rs GrouplicensesGet = GroupLicense
type Scopes GrouplicensesGet =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient GrouplicensesGet'{..}
= go _ggEnterpriseId _ggGroupLicenseId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy GrouplicensesGetResource)
mempty