{-# 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.ServiceAccountkeys.List
(
ServiceAccountkeysListResource
, serviceAccountkeysList
, ServiceAccountkeysList
, salEnterpriseId
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type ServiceAccountkeysListResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
Capture "enterpriseId" Text :>
"serviceAccountKeys" :>
QueryParam "alt" AltJSON :>
Get '[JSON] ServiceAccountKeysListResponse
newtype ServiceAccountkeysList = ServiceAccountkeysList'
{ _salEnterpriseId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
serviceAccountkeysList
:: Text
-> ServiceAccountkeysList
serviceAccountkeysList pSalEnterpriseId_ =
ServiceAccountkeysList'
{ _salEnterpriseId = pSalEnterpriseId_
}
salEnterpriseId :: Lens' ServiceAccountkeysList Text
salEnterpriseId
= lens _salEnterpriseId
(\ s a -> s{_salEnterpriseId = a})
instance GoogleRequest ServiceAccountkeysList where
type Rs ServiceAccountkeysList =
ServiceAccountKeysListResponse
type Scopes ServiceAccountkeysList =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient ServiceAccountkeysList'{..}
= go _salEnterpriseId (Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy ServiceAccountkeysListResource)
mempty