{-# 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.Directory.Resources.Features.List
(
ResourcesFeaturesListResource
, resourcesFeaturesList
, ResourcesFeaturesList
, rflCustomer
, rflPageToken
, rflMaxResults
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ResourcesFeaturesListResource =
"admin" :>
"directory" :>
"v1" :>
"customer" :>
Capture "customer" Text :>
"resources" :>
"features" :>
QueryParam "pageToken" Text :>
QueryParam "maxResults" (Textual Int32) :>
QueryParam "alt" AltJSON :> Get '[JSON] Features
data ResourcesFeaturesList = ResourcesFeaturesList'
{ _rflCustomer :: !Text
, _rflPageToken :: !(Maybe Text)
, _rflMaxResults :: !(Maybe (Textual Int32))
} deriving (Eq,Show,Data,Typeable,Generic)
resourcesFeaturesList
:: Text
-> ResourcesFeaturesList
resourcesFeaturesList pRflCustomer_ =
ResourcesFeaturesList'
{ _rflCustomer = pRflCustomer_
, _rflPageToken = Nothing
, _rflMaxResults = Nothing
}
rflCustomer :: Lens' ResourcesFeaturesList Text
rflCustomer
= lens _rflCustomer (\ s a -> s{_rflCustomer = a})
rflPageToken :: Lens' ResourcesFeaturesList (Maybe Text)
rflPageToken
= lens _rflPageToken (\ s a -> s{_rflPageToken = a})
rflMaxResults :: Lens' ResourcesFeaturesList (Maybe Int32)
rflMaxResults
= lens _rflMaxResults
(\ s a -> s{_rflMaxResults = a})
. mapping _Coerce
instance GoogleRequest ResourcesFeaturesList where
type Rs ResourcesFeaturesList = Features
type Scopes ResourcesFeaturesList =
'["https://www.googleapis.com/auth/admin.directory.resource.calendar",
"https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"]
requestClient ResourcesFeaturesList'{..}
= go _rflCustomer _rflPageToken _rflMaxResults
(Just AltJSON)
directoryService
where go
= buildClient
(Proxy :: Proxy ResourcesFeaturesListResource)
mempty