{-# 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.ConsumerSurveys.MobileApppanels.List
(
MobileApppanelsListResource
, mobileApppanelsList
, MobileApppanelsList
, malToken
, malStartIndex
, malMaxResults
) where
import Network.Google.ConsumerSurveys.Types
import Network.Google.Prelude
type MobileApppanelsListResource =
"consumersurveys" :>
"v2" :>
"mobileAppPanels" :>
QueryParam "token" Text :>
QueryParam "startIndex" (Textual Word32) :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] MobileAppPanelsListResponse
data MobileApppanelsList = MobileApppanelsList'
{ _malToken :: !(Maybe Text)
, _malStartIndex :: !(Maybe (Textual Word32))
, _malMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
mobileApppanelsList
:: MobileApppanelsList
mobileApppanelsList =
MobileApppanelsList'
{ _malToken = Nothing
, _malStartIndex = Nothing
, _malMaxResults = Nothing
}
malToken :: Lens' MobileApppanelsList (Maybe Text)
malToken = lens _malToken (\ s a -> s{_malToken = a})
malStartIndex :: Lens' MobileApppanelsList (Maybe Word32)
malStartIndex
= lens _malStartIndex
(\ s a -> s{_malStartIndex = a})
. mapping _Coerce
malMaxResults :: Lens' MobileApppanelsList (Maybe Word32)
malMaxResults
= lens _malMaxResults
(\ s a -> s{_malMaxResults = a})
. mapping _Coerce
instance GoogleRequest MobileApppanelsList where
type Rs MobileApppanelsList =
MobileAppPanelsListResponse
type Scopes MobileApppanelsList =
'["https://www.googleapis.com/auth/consumersurveys",
"https://www.googleapis.com/auth/consumersurveys.readonly",
"https://www.googleapis.com/auth/userinfo.email"]
requestClient MobileApppanelsList'{..}
= go _malToken _malStartIndex _malMaxResults
(Just AltJSON)
consumerSurveysService
where go
= buildClient
(Proxy :: Proxy MobileApppanelsListResource)
mempty