@@ -38,7 +38,6 @@ module Network.Google.Resource.AndroidEnterprise.Products.List
3838 , plQuery
3939 , plLanguage
4040 , plApproved
41− , plStartIndex
4241 , plMaxResults
4342 ) where
4443
@@ -57,10 +56,9 @@ type ProductsListResource =
5756 QueryParam "query" Text :>
5857 QueryParam "language" Text :>
5958 QueryParam "approved" Bool :>
60− QueryParam "startIndex" (Textual Word32) :>
61− QueryParam "maxResults" (Textual Word32) :>
62− QueryParam "alt" AltJSON :>
63− Get '[JSON] ProductsListResponse
59+ QueryParam "maxResults" (Textual Word32) :>
60+ QueryParam "alt" AltJSON :>
61+ Get '[JSON] ProductsListResponse
6462
6563-- | Finds approved products that match a query.
6664--
@@ -71,7 +69,6 @@ data ProductsList = ProductsList'
7169 , _plQuery :: !(Maybe Text)
7270 , _plLanguage :: !(Maybe Text)
7371 , _plApproved :: !(Maybe Bool)
74− , _plStartIndex :: !(Maybe (Textual Word32))
7572 , _plMaxResults :: !(Maybe (Textual Word32))
7673 } deriving (Eq,Show,Data,Typeable,Generic)
7774
@@ -89,8 +86,6 @@ data ProductsList = ProductsList'
8986--
9087-- * 'plApproved'
9188--
92−-- * 'plStartIndex'
93−--
9489-- * 'plMaxResults'
9590productsList
9691 :: Text -- ^ 'plEnterpriseId'
@@ -102,7 +97,6 @@ productsList pPlEnterpriseId_ =
10297 , _plQuery = Nothing
10398 , _plLanguage = Nothing
10499 , _plApproved = Nothing
105− , _plStartIndex = Nothing
106100 , _plMaxResults = Nothing
107101 }
108102
@@ -112,31 +106,36 @@ plEnterpriseId
112106 = lens _plEnterpriseId
113107 (\ s a -> s{_plEnterpriseId = a})
114108
109+-- | A pagination token is contained in a request’s response when there are
110+-- more products. The token can be used in a subsequent request to obtain
111+-- more products, and so forth. This parameter cannot be used in the
112+-- initial request.
115113plToken :: Lens' ProductsList (Maybe Text)
116114plToken = lens _plToken (\ s a -> s{_plToken = a})
117115
118116-- | The search query as typed in the Google Play Store search box. If
119−-- omitted, all approved apps will be returned.
117+-- omitted, all approved apps will be returned (using the pagination
118+-- parameters).
120119plQuery :: Lens' ProductsList (Maybe Text)
121120plQuery = lens _plQuery (\ s a -> s{_plQuery = a})
122121
123122-- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\",
124−-- \"de\"). Results are returned in the language best matching it.
123+-- \"de\"). Results are returned in the language best matching the
124+-- preferred language.
125125plLanguage :: Lens' ProductsList (Maybe Text)
126126plLanguage
127127 = lens _plLanguage (\ s a -> s{_plLanguage = a})
128128
129−-- | Whether to search amongst all products or only amongst approved ones.
130−-- Only \"true\" is supported, and should be specified.
129+-- | Specifies whether to search among all products (false) or among only
130+-- products that have been approved (true). Only \"true\" is supported, and
131+-- should be specified.
131132plApproved :: Lens' ProductsList (Maybe Bool)
132133plApproved
133134 = lens _plApproved (\ s a -> s{_plApproved = a})
134135
135−plStartIndex :: Lens' ProductsList (Maybe Word32)
136−plStartIndex
137− = lens _plStartIndex (\ s a -> s{_plStartIndex = a})
138− . mapping _Coerce
139−
136+-- | Specifies the maximum number of products that can be returned per
137+-- request. If not specified, uses a default value of 100, which is also
138+-- the maximum retrievable within a single response.
140139plMaxResults :: Lens' ProductsList (Maybe Word32)
141140plMaxResults
142141 = lens _plMaxResults (\ s a -> s{_plMaxResults = a})
@@ -149,7 +148,6 @@ instance GoogleRequest ProductsList where
149148 requestClient ProductsList'{..}
150149 = go _plEnterpriseId _plToken _plQuery _plLanguage
151150 _plApproved
152− _plStartIndex
153151 _plMaxResults
154152 (Just AltJSON)
155153 androidEnterpriseService