@@ -38,7 +38,6 @@ module Network.Google.Resource.AndroidEnterprise.Products.List
39 , plLanguage
39 , plLanguage
40 , plApproved
40 , plApproved
42 , plMaxResults
41 , plMaxResults
@@ -57,10 +56,9 @@ type ProductsListResource =
57 QueryParam "query" Text :>
56 QueryParam "query" Text :>
58 QueryParam "language" Text :>
57 QueryParam "language" Text :>
59 QueryParam "approved" Bool :>
58 QueryParam "approved" Bool :>
60− QueryParam "startIndex" (Textual Word32) :>
59+ QueryParam "maxResults" (Textual Word32) :>
61− QueryParam "maxResults" (Textual Word32) :>
62− QueryParam "alt" AltJSON :>
60+ QueryParam "alt" AltJSON :>
63− Get '[JSON] ProductsListResponse
61+ Get '[JSON] ProductsListResponse
65-- | Finds approved products that match a query.
63-- | Finds approved products that match a query.
@@ -71,7 +69,6 @@ data ProductsList = ProductsList'
71 , _plQuery :: !(Maybe Text)
69 , _plQuery :: !(Maybe Text)
72 , _plLanguage :: !(Maybe Text)
70 , _plLanguage :: !(Maybe Text)
73 , _plApproved :: !(Maybe Bool)
71 , _plApproved :: !(Maybe Bool)
74− , _plStartIndex :: !(Maybe (Textual Word32))
75 , _plMaxResults :: !(Maybe (Textual Word32))
72 , _plMaxResults :: !(Maybe (Textual Word32))
76 } deriving (Eq,Show,Data,Typeable,Generic)
73 } deriving (Eq,Show,Data,Typeable,Generic)
@@ -89,8 +86,6 @@ data ProductsList = ProductsList'
90-- * 'plApproved'
87-- * 'plApproved'
94-- * 'plMaxResults'
89-- * 'plMaxResults'
95productsList
90productsList
96 :: Text -- ^ 'plEnterpriseId'
91 :: Text -- ^ 'plEnterpriseId'
@@ -102,7 +97,6 @@ productsList pPlEnterpriseId_ =
102 , _plQuery = Nothing
97 , _plQuery = Nothing
103 , _plLanguage = Nothing
98 , _plLanguage = Nothing
104 , _plApproved = Nothing
99 , _plApproved = Nothing
105− , _plStartIndex = Nothing
106 , _plMaxResults = Nothing
100 , _plMaxResults = Nothing
@@ -112,31 +106,36 @@ plEnterpriseId
112 = lens _plEnterpriseId
106 = lens _plEnterpriseId
113 (\ s a -> s{_plEnterpriseId = a})
107 (\ s a -> s{_plEnterpriseId = a})
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
115plToken :: Lens' ProductsList (Maybe Text)
113plToken :: Lens' ProductsList (Maybe Text)
116plToken = lens _plToken (\ s a -> s{_plToken = a})
114plToken = lens _plToken (\ s a -> s{_plToken = a})
118-- | The search query as typed in the Google Play Store search box. If
116-- | 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
120plQuery :: Lens' ProductsList (Maybe Text)
119plQuery :: Lens' ProductsList (Maybe Text)
121plQuery = lens _plQuery (\ s a -> s{_plQuery = a})
120plQuery = lens _plQuery (\ s a -> s{_plQuery = a})
123-- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\",
122-- | 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.
125plLanguage :: Lens' ProductsList (Maybe Text)
125plLanguage :: Lens' ProductsList (Maybe Text)
126plLanguage
126plLanguage
127 = lens _plLanguage (\ s a -> s{_plLanguage = a})
127 = lens _plLanguage (\ s a -> s{_plLanguage = a})
129−-- | Whether to search amongst all products or only amongst approved ones.
129+-- | Specifies whether to search among all products (false) or among only
130+-- products that have been approved (true). Only \"true\" is supported, and
130−-- Only \"true\" is supported, and should be specified.
131+-- should be specified.
131plApproved :: Lens' ProductsList (Maybe Bool)
132plApproved :: Lens' ProductsList (Maybe Bool)
132plApproved
133plApproved
133 = lens _plApproved (\ s a -> s{_plApproved = a})
134 = lens _plApproved (\ s a -> s{_plApproved = a})
135−plStartIndex :: Lens' ProductsList (Maybe Word32)
136+-- | Specifies the maximum number of products that can be returned per
136−plStartIndex
137+-- request. If not specified, uses a default value of 100, which is also
137− = lens _plStartIndex (\ s a -> s{_plStartIndex = a})
138+-- the maximum retrievable within a single response.
140plMaxResults :: Lens' ProductsList (Maybe Word32)
139plMaxResults :: Lens' ProductsList (Maybe Word32)
141plMaxResults
140plMaxResults
142 = lens _plMaxResults (\ s a -> s{_plMaxResults = a})
141 = lens _plMaxResults (\ s a -> s{_plMaxResults = a})
@@ -149,7 +148,6 @@ instance GoogleRequest ProductsList where
149 requestClient ProductsList'{..}
148 requestClient ProductsList'{..}
150 = go _plEnterpriseId _plToken _plQuery _plLanguage
149 = go _plEnterpriseId _plToken _plQuery _plLanguage
151 _plApproved
150 _plApproved
153 _plMaxResults
151 _plMaxResults
154 (Just AltJSON)
152 (Just AltJSON)
155 androidEnterpriseService
153 androidEnterpriseService