on develop help sign in
Regenerating gogol-android-enterprise from latest service definition
commite449c9c4d67cf020fe58054a88dd32a0187d2e72 authorBrendan Hay <brendan.g.hay@gmail.com> dateMon 20 Jun 2016, 09:33 (10 years ago) parent86b529e
3 files changed+29−24
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs+2−1 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs+10−4 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs+17−19
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs+2−1
@@ -896,7 +896,8 @@ dKind = lens _dKind (\ s a -> s{_dKind = a})
896896-- \"managedProfile\" means that the EMM\'s app is the profile owner (and
897897-- there is a separate personal profile which is not managed).
898898-- \"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
900901dManagementType :: Lens' Device (Maybe Text)
901902dManagementType
902903 = lens _dManagementType
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs+10−4
@@ -20,8 +20,11 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
23−-- Approves the specified product (and the relevant app permissions, if
24−-- any).
23+-- Approves the specified product and the relevant app permissions, if 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.
2528--
2629-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@.
2730module Network.Google.Resource.AndroidEnterprise.Products.Approve
@@ -56,8 +59,11 @@ type ProductsApproveResource =
5659 ReqBody '[JSON] ProductsApproveRequest :>
5760 Post '[JSON] ()
5861
59−-- | Approves the specified product (and the relevant app permissions, if
60−-- any).
62+-- | Approves the specified product and the relevant app permissions, if 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.
6167--
6268-- /See:/ 'productsApprove' smart constructor.
6369data 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
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