{-# 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.AndroidPublisher.Reviews.List
(
ReviewsListResource
, reviewsList
, ReviewsList
, rlPackageName
, rlToken
, rlTranslationLanguage
, rlStartIndex
, rlMaxResults
) where
import Network.Google.AndroidPublisher.Types
import Network.Google.Prelude
type ReviewsListResource =
"androidpublisher" :>
"v3" :>
"applications" :>
Capture "packageName" Text :>
"reviews" :>
QueryParam "token" Text :>
QueryParam "translationLanguage" Text :>
QueryParam "startIndex" (Textual Word32) :>
QueryParam "maxResults" (Textual Word32) :>
QueryParam "alt" AltJSON :>
Get '[JSON] ReviewsListResponse
data ReviewsList = ReviewsList'
{ _rlPackageName :: !Text
, _rlToken :: !(Maybe Text)
, _rlTranslationLanguage :: !(Maybe Text)
, _rlStartIndex :: !(Maybe (Textual Word32))
, _rlMaxResults :: !(Maybe (Textual Word32))
} deriving (Eq,Show,Data,Typeable,Generic)
reviewsList
:: Text
-> ReviewsList
reviewsList pRlPackageName_ =
ReviewsList'
{ _rlPackageName = pRlPackageName_
, _rlToken = Nothing
, _rlTranslationLanguage = Nothing
, _rlStartIndex = Nothing
, _rlMaxResults = Nothing
}
rlPackageName :: Lens' ReviewsList Text
rlPackageName
= lens _rlPackageName
(\ s a -> s{_rlPackageName = a})
rlToken :: Lens' ReviewsList (Maybe Text)
rlToken = lens _rlToken (\ s a -> s{_rlToken = a})
rlTranslationLanguage :: Lens' ReviewsList (Maybe Text)
rlTranslationLanguage
= lens _rlTranslationLanguage
(\ s a -> s{_rlTranslationLanguage = a})
rlStartIndex :: Lens' ReviewsList (Maybe Word32)
rlStartIndex
= lens _rlStartIndex (\ s a -> s{_rlStartIndex = a})
. mapping _Coerce
rlMaxResults :: Lens' ReviewsList (Maybe Word32)
rlMaxResults
= lens _rlMaxResults (\ s a -> s{_rlMaxResults = a})
. mapping _Coerce
instance GoogleRequest ReviewsList where
type Rs ReviewsList = ReviewsListResponse
type Scopes ReviewsList =
'["https://www.googleapis.com/auth/androidpublisher"]
requestClient ReviewsList'{..}
= go _rlPackageName _rlToken _rlTranslationLanguage
_rlStartIndex
_rlMaxResults
(Just AltJSON)
androidPublisherService
where go
= buildClient (Proxy :: Proxy ReviewsListResource)
mempty