on develop help sign in
Regenerating gogol-android-enterprise from latest service definition
e449c9cBrendan Hay
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs+2−1
@@ -896,7 +896,8 @@ dKind = lens _dKind (\ s a -> s{_dKind = a})
896-- \"managedProfile\" means that the EMM\'s app is the profile owner (and
896-- \"managedProfile\" means that the EMM\'s app is the profile owner (and
897-- there is a separate personal profile which is not managed).
897-- there is a separate personal profile which is not managed).
898-- \"containerApp\" means that the EMM\'s app is managing the Android for
898-- \"containerApp\" means that the EMM\'s app is managing the Android for
899−-- Work container app on the device.
899+-- Work container app on the device. ?unmanagedProfile? means that the
900+-- EMM?s app is managing a managed user on an unmanaged device
900dManagementType :: Lens' Device (Maybe Text)
901dManagementType :: Lens' Device (Maybe Text)
901dManagementType
902dManagementType
902 = lens _dManagementType
903 = lens _dManagementType
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs+10−4
@@ -20,8 +20,11 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Approves the specified product (and the relevant app permissions, if
23+-- Approves the specified product and the relevant app permissions, if any.
24−-- any).
24+-- The maximum number of products that you can approve per enterprise
25+-- customer is 1,000. To learn how to use Google Play for Work to design
26+-- and create a store layout to display approved products to your users,
27+-- see Store Layout Design.
25--
28--
26-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@.
29-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@.
27module Network.Google.Resource.AndroidEnterprise.Products.Approve
30module Network.Google.Resource.AndroidEnterprise.Products.Approve
@@ -56,8 +59,11 @@ type ProductsApproveResource =
56 ReqBody '[JSON] ProductsApproveRequest :>
59 ReqBody '[JSON] ProductsApproveRequest :>
57 Post '[JSON] ()
60 Post '[JSON] ()
58
61
59−-- | Approves the specified product (and the relevant app permissions, if
62+-- | Approves the specified product and the relevant app permissions, if any.
60−-- any).
63+-- The maximum number of products that you can approve per enterprise
64+-- customer is 1,000. To learn how to use Google Play for Work to design
65+-- and create a store layout to display approved products to your users,
66+-- see Store Layout Design.
61--
67--
62-- /See:/ 'productsApprove' smart constructor.
68-- /See:/ 'productsApprove' smart constructor.
63data ProductsApprove = ProductsApprove'
69data ProductsApprove = ProductsApprove'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs+17−19
@@ -38,7 +38,6 @@ module Network.Google.Resource.AndroidEnterprise.Products.List
38 , plQuery
38 , plQuery
39 , plLanguage
39 , plLanguage
40 , plApproved
40 , plApproved
41− , plStartIndex
42 , plMaxResults
41 , plMaxResults
43 ) where
42 ) where
44
43
@@ -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
64
62
65-- | Finds approved products that match a query.
63-- | Finds approved products that match a query.
66--
64--
@@ -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)
77
74
@@ -89,8 +86,6 @@ data ProductsList = ProductsList'
89--
86--
90-- * 'plApproved'
87-- * 'plApproved'
91--
88--
92−-- * 'plStartIndex'
93−--
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
107 }
101 }
108
102
@@ -112,31 +106,36 @@ plEnterpriseId
112 = lens _plEnterpriseId
106 = lens _plEnterpriseId
113 (\ s a -> s{_plEnterpriseId = a})
107 (\ s a -> s{_plEnterpriseId = a})
114
108
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.
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})
117
115
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
118+-- parameters).
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})
122
121
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})
128
128
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})
134
135
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.
138− . mapping _Coerce
139−
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
152− _plStartIndex
153 _plMaxResults
151 _plMaxResults
154 (Just AltJSON)
152 (Just AltJSON)
155 androidEnterpriseService
153 androidEnterpriseService