on develop help sign in
Regenerating gogol-android-enterprise from updated service defintions
f35afefBrendan Hay
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise.hs+9−81
@@ -29,39 +29,6 @@ module Network.Google.AndroidEnterprise
29
29
30 -- * Resources
30 -- * Resources
31
31
32− -- ** androidenterprise.collections.delete
33− , module Network.Google.Resource.AndroidEnterprise.Collections.Delete
34−
35− -- ** androidenterprise.collections.get
36− , module Network.Google.Resource.AndroidEnterprise.Collections.Get
37−
38− -- ** androidenterprise.collections.insert
39− , module Network.Google.Resource.AndroidEnterprise.Collections.Insert
40−
41− -- ** androidenterprise.collections.list
42− , module Network.Google.Resource.AndroidEnterprise.Collections.List
43−
44− -- ** androidenterprise.collections.patch
45− , module Network.Google.Resource.AndroidEnterprise.Collections.Patch
46−
47− -- ** androidenterprise.collections.update
48− , module Network.Google.Resource.AndroidEnterprise.Collections.Update
49−
50− -- ** androidenterprise.collectionviewers.delete
51− , module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete
52−
53− -- ** androidenterprise.collectionviewers.get
54− , module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get
55−
56− -- ** androidenterprise.collectionviewers.list
57− , module Network.Google.Resource.AndroidEnterprise.Collectionviewers.List
58−
59− -- ** androidenterprise.collectionviewers.patch
60− , module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch
61−
62− -- ** androidenterprise.collectionviewers.update
63− , module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update
64−
65 -- ** androidenterprise.devices.get
32 -- ** androidenterprise.devices.get
66 , module Network.Google.Resource.AndroidEnterprise.Devices.Get
33 , module Network.Google.Resource.AndroidEnterprise.Devices.Get
67
34
@@ -215,9 +182,6 @@ module Network.Google.AndroidEnterprise
215 -- ** androidenterprise.products.unapprove
182 -- ** androidenterprise.products.unapprove
216 , module Network.Google.Resource.AndroidEnterprise.Products.UnApprove
183 , module Network.Google.Resource.AndroidEnterprise.Products.UnApprove
217
184
218− -- ** androidenterprise.products.updatePermissions
219− , module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
220−
221 -- ** androidenterprise.serviceaccountkeys.delete
185 -- ** androidenterprise.serviceaccountkeys.delete
222 , module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
186 , module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
223
187
@@ -320,12 +284,6 @@ module Network.Google.AndroidEnterprise
320 , eaKind
284 , eaKind
321 , eaAccountEmail
285 , eaAccountEmail
322
286
323− -- ** CollectionsListResponse
324− , CollectionsListResponse
325− , collectionsListResponse
326− , clrKind
327− , clrCollection
328−
329 -- ** AppRestrictionsSchemaRestrictionRestrictionValue
287 -- ** AppRestrictionsSchemaRestrictionRestrictionValue
330 , AppRestrictionsSchemaRestrictionRestrictionValue
288 , AppRestrictionsSchemaRestrictionRestrictionValue
331 , appRestrictionsSchemaRestrictionRestrictionValue
289 , appRestrictionsSchemaRestrictionRestrictionValue
@@ -409,6 +367,7 @@ module Network.Google.AndroidEnterprise
409 , nAppUpdateEvent
367 , nAppUpdateEvent
410 , nInstallFailureEvent
368 , nInstallFailureEvent
411 , nAppRestrictionsSchemaChangeEvent
369 , nAppRestrictionsSchemaChangeEvent
370+ , nNewDeviceEvent
412 , nTimestampMillis
371 , nTimestampMillis
413
372
414 -- ** PageInfo
373 -- ** PageInfo
@@ -457,6 +416,7 @@ module Network.Google.AndroidEnterprise
457 , sakData
416 , sakData
458 , sakId
417 , sakId
459 , sakType
418 , sakType
419+ , sakPublicData
460
420
461 -- ** InstallsListResponse
421 -- ** InstallsListResponse
462 , InstallsListResponse
422 , InstallsListResponse
@@ -513,15 +473,6 @@ module Network.Google.AndroidEnterprise
513 , gllrGroupLicense
473 , gllrGroupLicense
514 , gllrKind
474 , gllrKind
515
475
516− -- ** Collection
517− , Collection
518− , collection
519− , colKind
520− , colCollectionId
521− , colVisibility
522− , colName
523− , colProductId
524−
525 -- ** ProductSet
476 -- ** ProductSet
526 , ProductSet
477 , ProductSet
527 , productSet
478 , productSet
@@ -664,6 +615,13 @@ module Network.Google.AndroidEnterprise
664 , appRestrictionsSchemaChangeEvent
615 , appRestrictionsSchemaChangeEvent
665 , arsceProductId
616 , arsceProductId
666
617
618+ -- ** NewDeviceEvent
619+ , NewDeviceEvent
620+ , newDeviceEvent
621+ , ndeUserId
622+ , ndeDeviceId
623+ , ndeManagementType
624+
667 -- ** AdministratorWebToken
625 -- ** AdministratorWebToken
668 , AdministratorWebToken
626 , AdministratorWebToken
669 , administratorWebToken
627 , administratorWebToken
@@ -722,12 +680,6 @@ module Network.Google.AndroidEnterprise
722 , productsApproveRequest
680 , productsApproveRequest
723 , parApprovalURLInfo
681 , parApprovalURLInfo
724
682
725− -- ** CollectionViewersListResponse
726− , CollectionViewersListResponse
727− , collectionViewersListResponse
728− , cvlrKind
729− , cvlrUser
730−
731 -- ** Entitlement
683 -- ** Entitlement
732 , Entitlement
684 , Entitlement
733 , entitlement
685 , entitlement
@@ -746,17 +698,6 @@ module Network.Google.AndroidEnterprise
746
698
747import Network.Google.AndroidEnterprise.Types
699import Network.Google.AndroidEnterprise.Types
748import Network.Google.Prelude
700import Network.Google.Prelude
749−import Network.Google.Resource.AndroidEnterprise.Collections.Delete
750−import Network.Google.Resource.AndroidEnterprise.Collections.Get
751−import Network.Google.Resource.AndroidEnterprise.Collections.Insert
752−import Network.Google.Resource.AndroidEnterprise.Collections.List
753−import Network.Google.Resource.AndroidEnterprise.Collections.Patch
754−import Network.Google.Resource.AndroidEnterprise.Collections.Update
755−import Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete
756−import Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get
757−import Network.Google.Resource.AndroidEnterprise.Collectionviewers.List
758−import Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch
759−import Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update
760import Network.Google.Resource.AndroidEnterprise.Devices.Get
701import Network.Google.Resource.AndroidEnterprise.Devices.Get
761import Network.Google.Resource.AndroidEnterprise.Devices.GetState
702import Network.Google.Resource.AndroidEnterprise.Devices.GetState
762import Network.Google.Resource.AndroidEnterprise.Devices.List
703import Network.Google.Resource.AndroidEnterprise.Devices.List
@@ -808,7 +749,6 @@ import Network.Google.Resource.AndroidEnterprise.Products.GetAppRestri
808import Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
749import Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
809import Network.Google.Resource.AndroidEnterprise.Products.List
750import Network.Google.Resource.AndroidEnterprise.Products.List
810import Network.Google.Resource.AndroidEnterprise.Products.UnApprove
751import Network.Google.Resource.AndroidEnterprise.Products.UnApprove
811−import Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
812import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
752import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
813import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert
753import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert
814import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List
754import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List
@@ -848,11 +788,6 @@ type AndroidEnterpriseAPI =
848 :<|> StorelayoutclustersGetResource
788 :<|> StorelayoutclustersGetResource
849 :<|> StorelayoutclustersDeleteResource
789 :<|> StorelayoutclustersDeleteResource
850 :<|> StorelayoutclustersUpdateResource
790 :<|> StorelayoutclustersUpdateResource
851− :<|> CollectionviewersListResource
852− :<|> CollectionviewersPatchResource
853− :<|> CollectionviewersGetResource
854− :<|> CollectionviewersDeleteResource
855− :<|> CollectionviewersUpdateResource
856 :<|> UsersInsertResource
791 :<|> UsersInsertResource
857 :<|> UsersListResource
792 :<|> UsersListResource
858 :<|> UsersGenerateTokenResource
793 :<|> UsersGenerateTokenResource
@@ -875,12 +810,6 @@ type AndroidEnterpriseAPI =
875 :<|> StorelayoutpagesGetResource
810 :<|> StorelayoutpagesGetResource
876 :<|> StorelayoutpagesDeleteResource
811 :<|> StorelayoutpagesDeleteResource
877 :<|> StorelayoutpagesUpdateResource
812 :<|> StorelayoutpagesUpdateResource
878− :<|> CollectionsInsertResource
879− :<|> CollectionsListResource
880− :<|> CollectionsPatchResource
881− :<|> CollectionsGetResource
882− :<|> CollectionsDeleteResource
883− :<|> CollectionsUpdateResource
884 :<|> ServiceAccountkeysInsertResource
813 :<|> ServiceAccountkeysInsertResource
885 :<|> ServiceAccountkeysListResource
814 :<|> ServiceAccountkeysListResource
886 :<|> ServiceAccountkeysDeleteResource
815 :<|> ServiceAccountkeysDeleteResource
@@ -925,7 +854,6 @@ type AndroidEnterpriseAPI =
925 :<|> ProductsUnApproveResource
854 :<|> ProductsUnApproveResource
926 :<|> ProductsApproveResource
855 :<|> ProductsApproveResource
927 :<|> ProductsGetPermissionsResource
856 :<|> ProductsGetPermissionsResource
928− :<|> ProductsUpdatePermissionsResource
929 :<|> DevicesListResource
857 :<|> DevicesListResource
930 :<|> DevicesSetStateResource
858 :<|> DevicesSetStateResource
931 :<|> DevicesGetResource
859 :<|> DevicesGetResource
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types.hs+9−21
@@ -44,12 +44,6 @@ module Network.Google.AndroidEnterprise.Types
44 , eaKind
44 , eaKind
45 , eaAccountEmail
45 , eaAccountEmail
46
46
47− -- * CollectionsListResponse
48− , CollectionsListResponse
49− , collectionsListResponse
50− , clrKind
51− , clrCollection
52−
53 -- * AppRestrictionsSchemaRestrictionRestrictionValue
47 -- * AppRestrictionsSchemaRestrictionRestrictionValue
54 , AppRestrictionsSchemaRestrictionRestrictionValue
48 , AppRestrictionsSchemaRestrictionRestrictionValue
55 , appRestrictionsSchemaRestrictionRestrictionValue
49 , appRestrictionsSchemaRestrictionRestrictionValue
@@ -133,6 +127,7 @@ module Network.Google.AndroidEnterprise.Types
133 , nAppUpdateEvent
127 , nAppUpdateEvent
134 , nInstallFailureEvent
128 , nInstallFailureEvent
135 , nAppRestrictionsSchemaChangeEvent
129 , nAppRestrictionsSchemaChangeEvent
130+ , nNewDeviceEvent
136 , nTimestampMillis
131 , nTimestampMillis
137
132
138 -- * PageInfo
133 -- * PageInfo
@@ -181,6 +176,7 @@ module Network.Google.AndroidEnterprise.Types
181 , sakData
176 , sakData
182 , sakId
177 , sakId
183 , sakType
178 , sakType
179+ , sakPublicData
184
180
185 -- * InstallsListResponse
181 -- * InstallsListResponse
186 , InstallsListResponse
182 , InstallsListResponse
@@ -237,15 +233,6 @@ module Network.Google.AndroidEnterprise.Types
237 , gllrGroupLicense
233 , gllrGroupLicense
238 , gllrKind
234 , gllrKind
239
235
240− -- * Collection
241− , Collection
242− , collection
243− , colKind
244− , colCollectionId
245− , colVisibility
246− , colName
247− , colProductId
248−
249 -- * ProductSet
236 -- * ProductSet
250 , ProductSet
237 , ProductSet
251 , productSet
238 , productSet
@@ -388,6 +375,13 @@ module Network.Google.AndroidEnterprise.Types
388 , appRestrictionsSchemaChangeEvent
375 , appRestrictionsSchemaChangeEvent
389 , arsceProductId
376 , arsceProductId
390
377
378+ -- * NewDeviceEvent
379+ , NewDeviceEvent
380+ , newDeviceEvent
381+ , ndeUserId
382+ , ndeDeviceId
383+ , ndeManagementType
384+
391 -- * AdministratorWebToken
385 -- * AdministratorWebToken
392 , AdministratorWebToken
386 , AdministratorWebToken
393 , administratorWebToken
387 , administratorWebToken
@@ -446,12 +440,6 @@ module Network.Google.AndroidEnterprise.Types
446 , productsApproveRequest
440 , productsApproveRequest
447 , parApprovalURLInfo
441 , parApprovalURLInfo
448
442
449− -- * CollectionViewersListResponse
450− , CollectionViewersListResponse
451− , collectionViewersListResponse
452− , cvlrKind
453− , cvlrUser
454−
455 -- * Entitlement
443 -- * Entitlement
456 , Entitlement
444 , Entitlement
457 , entitlement
445 , entitlement
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs+158−266
@@ -248,59 +248,6 @@ instance ToJSON EnterpriseAccount where
248 [Just ("kind" .= _eaKind),
248 [Just ("kind" .= _eaKind),
249 ("accountEmail" .=) <$> _eaAccountEmail])
249 ("accountEmail" .=) <$> _eaAccountEmail])
250
250
251−-- | The collection resources for the enterprise.
252−--
253−-- /See:/ 'collectionsListResponse' smart constructor.
254−data CollectionsListResponse = CollectionsListResponse'
255− { _clrKind :: !Text
256− , _clrCollection :: !(Maybe [Collection])
257− } deriving (Eq,Show,Data,Typeable,Generic)
258−
259−-- | Creates a value of 'CollectionsListResponse' with the minimum fields required to make a request.
260−--
261−-- Use one of the following lenses to modify other fields as desired:
262−--
263−-- * 'clrKind'
264−--
265−-- * 'clrCollection'
266−collectionsListResponse
267− :: CollectionsListResponse
268−collectionsListResponse =
269− CollectionsListResponse'
270− { _clrKind = "androidenterprise#collectionsListResponse"
271− , _clrCollection = Nothing
272− }
273−
274−-- | Identifies what kind of resource this is. Value: the fixed string
275−-- \"androidenterprise#collectionsListResponse\".
276−clrKind :: Lens' CollectionsListResponse Text
277−clrKind = lens _clrKind (\ s a -> s{_clrKind = a})
278−
279−-- | An ordered collection of products which can be made visible on the
280−-- Google Play Store to a selected group of users.
281−clrCollection :: Lens' CollectionsListResponse [Collection]
282−clrCollection
283− = lens _clrCollection
284− (\ s a -> s{_clrCollection = a})
285− . _Default
286− . _Coerce
287−
288−instance FromJSON CollectionsListResponse where
289− parseJSON
290− = withObject "CollectionsListResponse"
291− (\ o ->
292− CollectionsListResponse' <$>
293− (o .:? "kind" .!=
294− "androidenterprise#collectionsListResponse")
295− <*> (o .:? "collection" .!= mempty))
296−
297−instance ToJSON CollectionsListResponse where
298− toJSON CollectionsListResponse'{..}
299− = object
300− (catMaybes
301− [Just ("kind" .= _clrKind),
302− ("collection" .=) <$> _clrCollection])
303−
304-- | A typed value for the restriction.
251-- | A typed value for the restriction.
305--
252--
306-- /See:/ 'appRestrictionsSchemaRestrictionRestrictionValue' smart constructor.
253-- /See:/ 'appRestrictionsSchemaRestrictionRestrictionValue' smart constructor.
@@ -841,7 +788,7 @@ instance ToJSON ManagedConfiguration where
841 Just ("kind" .= _mcKind),
788 Just ("kind" .= _mcKind),
842 ("productId" .=) <$> _mcProductId])
789 ("productId" .=) <$> _mcProductId])
843
790
844−-- | Definition of a Google Play for Work store cluster, a list of products
791+-- | Definition of a managed Google Play store cluster, a list of products
845-- displayed as part of a store page.
792-- displayed as part of a store page.
846--
793--
847-- /See:/ 'storeCluster' smart constructor.
794-- /See:/ 'storeCluster' smart constructor.
@@ -976,7 +923,8 @@ awtsKind = lens _awtsKind (\ s a -> s{_awtsKind = a})
976
923
977-- | The list of permissions the admin is granted within the iframe. The
924-- | The list of permissions the admin is granted within the iframe. The
978-- admin will only be allowed to view an iframe if they have all of the
925-- admin will only be allowed to view an iframe if they have all of the
979−-- permissions associated with it.
926+-- permissions associated with it. The only valid value is \"approveApps\"
927+-- that will allow the admin to access the iframe in \"approve\" mode.
980awtsPermission :: Lens' AdministratorWebTokenSpec [Text]
928awtsPermission :: Lens' AdministratorWebTokenSpec [Text]
981awtsPermission
929awtsPermission
982 = lens _awtsPermission
930 = lens _awtsPermission
@@ -1013,6 +961,7 @@ data Notification = Notification'
1013 , _nAppUpdateEvent :: !(Maybe AppUpdateEvent)
961 , _nAppUpdateEvent :: !(Maybe AppUpdateEvent)
1014 , _nInstallFailureEvent :: !(Maybe InstallFailureEvent)
962 , _nInstallFailureEvent :: !(Maybe InstallFailureEvent)
1015 , _nAppRestrictionsSchemaChangeEvent :: !(Maybe AppRestrictionsSchemaChangeEvent)
963 , _nAppRestrictionsSchemaChangeEvent :: !(Maybe AppRestrictionsSchemaChangeEvent)
964+ , _nNewDeviceEvent :: !(Maybe NewDeviceEvent)
1016 , _nTimestampMillis :: !(Maybe (Textual Int64))
965 , _nTimestampMillis :: !(Maybe (Textual Int64))
1017 } deriving (Eq,Show,Data,Typeable,Generic)
966 } deriving (Eq,Show,Data,Typeable,Generic)
1018
967
@@ -1034,6 +983,8 @@ data Notification = Notification'
1034--
983--
1035-- * 'nAppRestrictionsSchemaChangeEvent'
984-- * 'nAppRestrictionsSchemaChangeEvent'
1036--
985--
986+-- * 'nNewDeviceEvent'
987+--
1037-- * 'nTimestampMillis'
988-- * 'nTimestampMillis'
1038notification
989notification
1039 :: Notification
990 :: Notification
@@ -1046,6 +997,7 @@ notification =
1046 , _nAppUpdateEvent = Nothing
997 , _nAppUpdateEvent = Nothing
1047 , _nInstallFailureEvent = Nothing
998 , _nInstallFailureEvent = Nothing
1048 , _nAppRestrictionsSchemaChangeEvent = Nothing
999 , _nAppRestrictionsSchemaChangeEvent = Nothing
1000+ , _nNewDeviceEvent = Nothing
1049 , _nTimestampMillis = Nothing
1001 , _nTimestampMillis = Nothing
1050 }
1002 }
1051
1003
@@ -1092,6 +1044,12 @@ nAppRestrictionsSchemaChangeEvent
1092 = lens _nAppRestrictionsSchemaChangeEvent
1044 = lens _nAppRestrictionsSchemaChangeEvent
1093 (\ s a -> s{_nAppRestrictionsSchemaChangeEvent = a})
1045 (\ s a -> s{_nAppRestrictionsSchemaChangeEvent = a})
1094
1046
1047+-- | Notifications about new devices.
1048+nNewDeviceEvent :: Lens' Notification (Maybe NewDeviceEvent)
1049+nNewDeviceEvent
1050+ = lens _nNewDeviceEvent
1051+ (\ s a -> s{_nNewDeviceEvent = a})
1052+
1095-- | The time when the notification was published in milliseconds since
1053-- | The time when the notification was published in milliseconds since
1096-- 1970-01-01T00:00:00Z. This will always be present.
1054-- 1970-01-01T00:00:00Z. This will always be present.
1097nTimestampMillis :: Lens' Notification (Maybe Int64)
1055nTimestampMillis :: Lens' Notification (Maybe Int64)
@@ -1112,6 +1070,7 @@ instance FromJSON Notification where
1112 <*> (o .:? "appUpdateEvent")
1070 <*> (o .:? "appUpdateEvent")
1113 <*> (o .:? "installFailureEvent")
1071 <*> (o .:? "installFailureEvent")
1114 <*> (o .:? "appRestrictionsSchemaChangeEvent")
1072 <*> (o .:? "appRestrictionsSchemaChangeEvent")
1073+ <*> (o .:? "newDeviceEvent")
1115 <*> (o .:? "timestampMillis"))
1074 <*> (o .:? "timestampMillis"))
1116
1075
1117instance ToJSON Notification where
1076instance ToJSON Notification where
@@ -1128,6 +1087,7 @@ instance ToJSON Notification where
1128 ("installFailureEvent" .=) <$> _nInstallFailureEvent,
1087 ("installFailureEvent" .=) <$> _nInstallFailureEvent,
1129 ("appRestrictionsSchemaChangeEvent" .=) <$>
1088 ("appRestrictionsSchemaChangeEvent" .=) <$>
1130 _nAppRestrictionsSchemaChangeEvent,
1089 _nAppRestrictionsSchemaChangeEvent,
1090+ ("newDeviceEvent" .=) <$> _nNewDeviceEvent,
1131 ("timestampMillis" .=) <$> _nTimestampMillis])
1091 ("timestampMillis" .=) <$> _nTimestampMillis])
1132
1092
1133--
1093--
@@ -1448,17 +1408,17 @@ device =
1448dKind :: Lens' Device Text
1408dKind :: Lens' Device Text
1449dKind = lens _dKind (\ s a -> s{_dKind = a})
1409dKind = lens _dKind (\ s a -> s{_dKind = a})
1450
1410
1451−-- | Identifies the extent to which the device is controlled by an Android
1411+-- | Identifies the extent to which the device is controlled by a managed
1452−-- for Work EMM in various deployment configurations. Possible values
1412+-- Google Play EMM in various deployment configurations. Possible values
1453-- include: - \"managedDevice\", a device that has the EMM\'s device policy
1413-- include: - \"managedDevice\", a device that has the EMM\'s device policy
1454-- controller (DPC) as the device owner, - \"managedProfile\", a device
1414-- controller (DPC) as the device owner, - \"managedProfile\", a device
1455−-- that has a work profile managed by the DPC (DPC is profile owner) in
1415+-- that has a profile managed by the DPC (DPC is profile owner) in addition
1456−-- addition to a separate, personal profile that is unavailable to the DPC,
1416+-- to a separate, personal profile that is unavailable to the DPC, -
1457−-- - \"containerApp\", a device running the Android for Work App. The
1417+-- \"containerApp\", a device running the container App. The container App
1458−-- Android for Work App is managed by the DPC, - \"unmanagedProfile\", a
1418+-- is managed by the DPC, - \"unmanagedProfile\", a device that has been
1459−-- device that has been allowed (by the domain\'s admin, using the Admin
1419+-- allowed (by the domain\'s admin, using the Admin Console to enable the
1460−-- Console to enable the privilege) to use Android for Work apps or Google
1461−-- Apps for Work, but the profile is itself not owned by a DPC.
1420+-- privilege) to use managed Google Play, but the profile is itself not
1421+-- owned by a DPC.
1462dManagementType :: Lens' Device (Maybe Text)
1422dManagementType :: Lens' Device (Maybe Text)
1463dManagementType
1423dManagementType
1464 = lens _dManagementType
1424 = lens _dManagementType
@@ -1491,10 +1451,11 @@ instance ToJSON Device where
1491--
1451--
1492-- /See:/ 'serviceAccountKey' smart constructor.
1452-- /See:/ 'serviceAccountKey' smart constructor.
1493data ServiceAccountKey = ServiceAccountKey'
1453data ServiceAccountKey = ServiceAccountKey'
1494− { _sakKind :: !Text
1454+ { _sakKind :: !Text
1495− , _sakData :: !(Maybe Text)
1455+ , _sakData :: !(Maybe Text)
1496− , _sakId :: !(Maybe Text)
1456+ , _sakId :: !(Maybe Text)
1497− , _sakType :: !(Maybe Text)
1457+ , _sakType :: !(Maybe Text)
1458+ , _sakPublicData :: !(Maybe Text)
1498 } deriving (Eq,Show,Data,Typeable,Generic)
1459 } deriving (Eq,Show,Data,Typeable,Generic)
1499
1460
1500-- | Creates a value of 'ServiceAccountKey' with the minimum fields required to make a request.
1461-- | Creates a value of 'ServiceAccountKey' with the minimum fields required to make a request.
@@ -1508,6 +1469,8 @@ data ServiceAccountKey = ServiceAccountKey'
1508-- * 'sakId'
1469-- * 'sakId'
1509--
1470--
1510-- * 'sakType'
1471-- * 'sakType'
1472+--
1473+-- * 'sakPublicData'
1511serviceAccountKey
1474serviceAccountKey
1512 :: ServiceAccountKey
1475 :: ServiceAccountKey
1513serviceAccountKey =
1476serviceAccountKey =
@@ -1516,6 +1479,7 @@ serviceAccountKey =
1516 , _sakData = Nothing
1479 , _sakData = Nothing
1517 , _sakId = Nothing
1480 , _sakId = Nothing
1518 , _sakType = Nothing
1481 , _sakType = Nothing
1482+ , _sakPublicData = Nothing
1519 }
1483 }
1520
1484
1521-- | Identifies what kind of resource this is. Value: the fixed string
1485-- | Identifies what kind of resource this is. Value: the fixed string
@@ -1538,6 +1502,15 @@ sakId = lens _sakId (\ s a -> s{_sakId = a})
1538sakType :: Lens' ServiceAccountKey (Maybe Text)
1502sakType :: Lens' ServiceAccountKey (Maybe Text)
1539sakType = lens _sakType (\ s a -> s{_sakType = a})
1503sakType = lens _sakType (\ s a -> s{_sakType = a})
1540
1504
1505+-- | Public key data for the credentials file. This is an X.509 cert. If you
1506+-- are using the googleCredentials key type, this is identical to the cert
1507+-- that can be retrieved by using the X.509 cert url inside of the
1508+-- credentials file.
1509+sakPublicData :: Lens' ServiceAccountKey (Maybe Text)
1510+sakPublicData
1511+ = lens _sakPublicData
1512+ (\ s a -> s{_sakPublicData = a})
1513+
1541instance FromJSON ServiceAccountKey where
1514instance FromJSON ServiceAccountKey where
1542 parseJSON
1515 parseJSON
1543 = withObject "ServiceAccountKey"
1516 = withObject "ServiceAccountKey"
@@ -1547,14 +1520,16 @@ instance FromJSON ServiceAccountKey where
1547 "androidenterprise#serviceAccountKey")
1520 "androidenterprise#serviceAccountKey")
1548 <*> (o .:? "data")
1521 <*> (o .:? "data")
1549 <*> (o .:? "id")
1522 <*> (o .:? "id")
1550− <*> (o .:? "type"))
1523+ <*> (o .:? "type")
1524+ <*> (o .:? "publicData"))
1551
1525
1552instance ToJSON ServiceAccountKey where
1526instance ToJSON ServiceAccountKey where
1553 toJSON ServiceAccountKey'{..}
1527 toJSON ServiceAccountKey'{..}
1554 = object
1528 = object
1555 (catMaybes
1529 (catMaybes
1556 [Just ("kind" .= _sakKind), ("data" .=) <$> _sakData,
1530 [Just ("kind" .= _sakKind), ("data" .=) <$> _sakData,
1557− ("id" .=) <$> _sakId, ("type" .=) <$> _sakType])
1531+ ("id" .=) <$> _sakId, ("type" .=) <$> _sakType,
1532+ ("publicData" .=) <$> _sakPublicData])
1558
1533
1559-- | The install resources for the device.
1534-- | The install resources for the device.
1560--
1535--
@@ -1743,8 +1718,8 @@ instance ToJSON AppRestrictionsSchemaRestriction
1743 ("description" .=) <$> _arsrDescription,
1718 ("description" .=) <$> _arsrDescription,
1744 ("nestedRestriction" .=) <$> _arsrNestedRestriction])
1719 ("nestedRestriction" .=) <$> _arsrNestedRestriction])
1745
1720
1746−-- | This represents an enterprise administrator who can manage the
1721+-- | This represents an enterprise admin who can manage the enterprise in the
1747−-- enterprise in the Google Play for Work Store.
1722+-- managed Google Play store.
1748--
1723--
1749-- /See:/ 'administrator' smart constructor.
1724-- /See:/ 'administrator' smart constructor.
1750newtype Administrator = Administrator'
1725newtype Administrator = Administrator'
@@ -1763,7 +1738,7 @@ administrator =
1763 { _aEmail = Nothing
1738 { _aEmail = Nothing
1764 }
1739 }
1765
1740
1766−-- | The administrator\'s email address.
1741+-- | The admin\'s email address.
1767aEmail :: Lens' Administrator (Maybe Text)
1742aEmail :: Lens' Administrator (Maybe Text)
1768aEmail = lens _aEmail (\ s a -> s{_aEmail = a})
1743aEmail = lens _aEmail (\ s a -> s{_aEmail = a})
1769
1744
@@ -1907,7 +1882,7 @@ avVersionCode
1907 (\ s a -> s{_avVersionCode = a})
1882 (\ s a -> s{_avVersionCode = a})
1908 . mapping _Coerce
1883 . mapping _Coerce
1909
1884
1910−-- | The string used in the Play Store by the app developer to identify the
1885+-- | The string used in the Play store by the app developer to identify the
1911-- version. The string is not necessarily unique or localized (for example,
1886-- version. The string is not necessarily unique or localized (for example,
1912-- the string could be \"1.4\").
1887-- the string could be \"1.4\").
1913avVersionString :: Lens' AppVersion (Maybe Text)
1888avVersionString :: Lens' AppVersion (Maybe Text)
@@ -2021,107 +1996,6 @@ instance ToJSON GroupLicensesListResponse where
2021 [("groupLicense" .=) <$> _gllrGroupLicense,
1996 [("groupLicense" .=) <$> _gllrGroupLicense,
2022 Just ("kind" .= _gllrKind)])
1997 Just ("kind" .= _gllrKind)])
2023
1998
2024−-- | A collection resource defines a named set of apps that is visible to a
2025−-- set of users in the Google Play Store app running on those users\'
2026−-- managed devices. Those users can then install any of those apps if they
2027−-- wish (which will trigger creation of install and entitlement resources).
2028−-- A user cannot install an app on a managed device unless the app is
2029−-- listed in at least one collection that is visible to that user. Note
2030−-- that the API can be used to directly install an app regardless of
2031−-- whether it is in any collection - so an enterprise has a choice of
2032−-- either directly pushing apps to users, or allowing users to install apps
2033−-- if they want. Which is appropriate will depend on the enterprise\'s
2034−-- policies and the purpose of the apps concerned.
2035−--
2036−-- /See:/ 'collection' smart constructor.
2037−data Collection = Collection'
2038− { _colKind :: !Text
2039− , _colCollectionId :: !(Maybe Text)
2040− , _colVisibility :: !(Maybe Text)
2041− , _colName :: !(Maybe Text)
2042− , _colProductId :: !(Maybe [Text])
2043− } deriving (Eq,Show,Data,Typeable,Generic)
2044−
2045−-- | Creates a value of 'Collection' with the minimum fields required to make a request.
2046−--
2047−-- Use one of the following lenses to modify other fields as desired:
2048−--
2049−-- * 'colKind'
2050−--
2051−-- * 'colCollectionId'
2052−--
2053−-- * 'colVisibility'
2054−--
2055−-- * 'colName'
2056−--
2057−-- * 'colProductId'
2058−collection
2059− :: Collection
2060−collection =
2061− Collection'
2062− { _colKind = "androidenterprise#collection"
2063− , _colCollectionId = Nothing
2064− , _colVisibility = Nothing
2065− , _colName = Nothing
2066− , _colProductId = Nothing
2067− }
2068−
2069−-- | Identifies what kind of resource this is. Value: the fixed string
2070−-- \"androidenterprise#collection\".
2071−colKind :: Lens' Collection Text
2072−colKind = lens _colKind (\ s a -> s{_colKind = a})
2073−
2074−-- | Arbitrary unique ID, allocated by the API on creation.
2075−colCollectionId :: Lens' Collection (Maybe Text)
2076−colCollectionId
2077− = lens _colCollectionId
2078− (\ s a -> s{_colCollectionId = a})
2079−
2080−-- | Whether this collection is visible to all users, or only to the users
2081−-- that have been granted access through the \"Collectionviewers\" API.
2082−-- With the launch of the \"setAvailableProductSet\" API, this property
2083−-- should always be set to \"viewersOnly\", as the \"allUsers\" option will
2084−-- bypass the \"availableProductSet\" for all users within a domain. The
2085−-- \"allUsers\" setting is deprecated, and will be removed.
2086−colVisibility :: Lens' Collection (Maybe Text)
2087−colVisibility
2088− = lens _colVisibility
2089− (\ s a -> s{_colVisibility = a})
2090−
2091−-- | A user-friendly name for the collection (should be unique), e.g.
2092−-- \"Accounting apps\".
2093−colName :: Lens' Collection (Maybe Text)
2094−colName = lens _colName (\ s a -> s{_colName = a})
2095−
2096−-- | The IDs of the products in the collection, in the order in which they
2097−-- should be displayed.
2098−colProductId :: Lens' Collection [Text]
2099−colProductId
2100− = lens _colProductId (\ s a -> s{_colProductId = a})
2101− . _Default
2102− . _Coerce
2103−
2104−instance FromJSON Collection where
2105− parseJSON
2106− = withObject "Collection"
2107− (\ o ->
2108− Collection' <$>
2109− (o .:? "kind" .!= "androidenterprise#collection") <*>
2110− (o .:? "collectionId")
2111− <*> (o .:? "visibility")
2112− <*> (o .:? "name")
2113− <*> (o .:? "productId" .!= mempty))
2114−
2115−instance ToJSON Collection where
2116− toJSON Collection'{..}
2117− = object
2118− (catMaybes
2119− [Just ("kind" .= _colKind),
2120− ("collectionId" .=) <$> _colCollectionId,
2121− ("visibility" .=) <$> _colVisibility,
2122− ("name" .=) <$> _colName,
2123− ("productId" .=) <$> _colProductId])
2124−
2125-- | A set of products.
1999-- | A set of products.
2126--
2000--
2127-- /See:/ 'productSet' smart constructor.
2001-- /See:/ 'productSet' smart constructor.
@@ -2157,8 +2031,10 @@ psKind = lens _psKind (\ s a -> s{_psKind = a})
2157-- | The interpretation of this product set. \"unknown\" should never be sent
2031-- | The interpretation of this product set. \"unknown\" should never be sent
2158-- and ignored if received. \"whitelist\" means that this product set
2032-- and ignored if received. \"whitelist\" means that this product set
2159-- constitutes a whitelist. \"includeAll\" means that all products are
2033-- constitutes a whitelist. \"includeAll\" means that all products are
2034+-- accessible, including products that are approved, not approved, and even
2035+-- products where approval has been revoked. If the value is
2160−-- accessible (the value of the productId field is therefore ignored). If a
2036+-- \"includeAll\", the value of the productId field is therefore ignored.
2161−-- value is not supplied, it is interpreted to be \"whitelist\" for
2037+-- If a value is not supplied, it is interpreted to be \"whitelist\" for
2162-- backwards compatibility.
2038-- backwards compatibility.
2163psProductSetBehavior :: Lens' ProductSet (Maybe Text)
2039psProductSetBehavior :: Lens' ProductSet (Maybe Text)
2164psProductSetBehavior
2040psProductSetBehavior
@@ -2328,12 +2204,13 @@ instance ToJSON ServiceAccountKeysListResponse where
2328-- | A Users resource represents an account associated with an enterprise.
2204-- | A Users resource represents an account associated with an enterprise.
2329-- The account may be specific to a device or to an individual user (who
2205-- The account may be specific to a device or to an individual user (who
2330-- can then use the account across multiple devices). The account may
2206-- can then use the account across multiple devices). The account may
2331−-- provide access to Google Play for Work only, or to other Google
2207+-- provide access to managed Google Play only, or to other Google services,
2332−-- services, depending on the identity model: - Google managed domain
2208+-- depending on the identity model: - The Google managed domain identity
2333−-- identity model requires synchronization to Google account sources (via
2209+-- model requires synchronization to Google account sources (via
2334−-- primaryEmail). - Android for Work Accounts identity model provides a
2210+-- primaryEmail). - The managed Google Play Accounts identity model
2335−-- dynamic means for enterprises to create user or device accounts as
2211+-- provides a dynamic means for enterprises to create user or device
2336−-- needed. These accounts provide access to Google Play for Work only.
2212+-- accounts as needed. These accounts provide access to managed Google
2213+-- Play.
2337--
2214--
2338-- /See:/ 'user' smart constructor.
2215-- /See:/ 'user' smart constructor.
2339data User = User'
2216data User = User'
@@ -2554,9 +2431,9 @@ instance ToJSON ProductsGenerateApprovalURLResponse
2554 toJSON ProductsGenerateApprovalURLResponse'{..}
2431 toJSON ProductsGenerateApprovalURLResponse'{..}
2555 = object (catMaybes [("url" .=) <$> _pgaurURL])
2432 = object (catMaybes [("url" .=) <$> _pgaurURL])
2556
2433
2557−-- | Definition of a Google Play for Work store page, made of a localized
2434+-- | Definition of a managed Google Play store page, made of a localized name
2558−-- name and links to other pages. A page also contains clusters defined as
2435+-- and links to other pages. A page also contains clusters defined as a
2559−-- a subcollection.
2436+-- subcollection.
2560--
2437--
2561-- /See:/ 'storePage' smart constructor.
2438-- /See:/ 'storePage' smart constructor.
2562data StorePage = StorePage'
2439data StorePage = StorePage'
@@ -3001,9 +2878,9 @@ instance ToJSON LocalizedText where
3001 ("locale" .=) <$> _ltLocale])
2878 ("locale" .=) <$> _ltLocale])
3002
2879
3003-- | A UserToken is used by a user when setting up a managed device or
2880-- | A UserToken is used by a user when setting up a managed device or
3004−-- profile with their work account on a device. When the user enters their
2881+-- profile with their managed Google Play account on a device. When the
3005−-- email address and token (activation code) the appropriate EMM app can be
2882+-- user enters their email address and token (activation code) the
3006−-- automatically downloaded.
2883+-- appropriate EMM app can be automatically downloaded.
3007--
2884--
3008-- /See:/ 'userToken' smart constructor.
2885-- /See:/ 'userToken' smart constructor.
3009data UserToken = UserToken'
2886data UserToken = UserToken'
@@ -3117,12 +2994,13 @@ instance ToJSON DevicesListResponse where
3117-- customers, the process involves using Enterprises.enroll and
2994-- customers, the process involves using Enterprises.enroll and
3118-- Enterprises.setAccount (in conjunction with artifacts obtained from the
2995-- Enterprises.setAccount (in conjunction with artifacts obtained from the
3119-- Admin console and the Google API Console) and submitted to the EMM
2996-- Admin console and the Google API Console) and submitted to the EMM
3120−-- through a more-or-less manual process. - For Android for Work Accounts
2997+-- through a more-or-less manual process. - For managed Google Play
3121−-- customers, the process involves using Enterprises.generateSignupUrl and
2998+-- Accounts customers, the process involves using
3122−-- Enterprises.completeSignup in conjunction with the Android for Work
2999+-- Enterprises.generateSignupUrl and Enterprises.completeSignup in
3000+-- conjunction with the managed Google Play sign-up UI (Google-provided
3123−-- Sign-up UI (Google-provided mechanism) to create the binding without
3001+-- mechanism) to create the binding without manual steps. As an EMM, you
3124−-- manual steps. As an EMM, you can support either or both approaches in
3002+-- can support either or both approaches in your EMM console. See Create an
3125−-- your EMM console. See Create an Enterprise for details.
3003+-- Enterprise for details.
3126--
3004--
3127-- /See:/ 'enterprise' smart constructor.
3005-- /See:/ 'enterprise' smart constructor.
3128data Enterprise = Enterprise'
3006data Enterprise = Enterprise'
@@ -3162,8 +3040,8 @@ enterprise =
3162eKind :: Lens' Enterprise Text
3040eKind :: Lens' Enterprise Text
3163eKind = lens _eKind (\ s a -> s{_eKind = a})
3041eKind = lens _eKind (\ s a -> s{_eKind = a})
3164
3042
3165−-- | Administrators of the enterprise. This is only supported for enterprises
3043+-- | Admins of the enterprise. This is only supported for enterprises created
3166−-- created via the EMM-initiated flow.
3044+-- via the EMM-initiated flow.
3167eAdministrator :: Lens' Enterprise [Administrator]
3045eAdministrator :: Lens' Enterprise [Administrator]
3168eAdministrator
3046eAdministrator
3169 = lens _eAdministrator
3047 = lens _eAdministrator
@@ -3346,8 +3224,8 @@ instance ToJSON
3346 _mcfulrManagedConfigurationForUser,
3224 _mcfulrManagedConfigurationForUser,
3347 Just ("kind" .= _mcfulrKind)])
3225 Just ("kind" .= _mcfulrKind)])
3348
3226
3349−-- | General setting for the Google Play for Work store layout, currently
3227+-- | General setting for the managed Google Play store layout, currently only
3350−-- only specifying the page to display the first time the store is opened.
3228+-- specifying the page to display the first time the store is opened.
3351--
3229--
3352-- /See:/ 'storeLayout' smart constructor.
3230-- /See:/ 'storeLayout' smart constructor.
3353data StoreLayout = StoreLayout'
3231data StoreLayout = StoreLayout'
@@ -3374,13 +3252,14 @@ storeLayout =
3374 , _slHomepageId = Nothing
3252 , _slHomepageId = Nothing
3375 }
3253 }
3376
3254
3255+-- | The store layout type. By default, this value is set to \"basic\". If
3377−-- | Sets a store layout type. If set to \"custom\", \"homepageId\" must be
3256+-- set to \"custom\", \"homepageId\" must be specified. If set to
3378−-- specified. If set to \"basic\", the layout will consist of all approved
3257+-- \"basic\", the layout will consist of all approved apps accessible by
3379−-- apps accessible by the user, split in pages of 100 each; in this case,
3258+-- the user, split in pages of 100 each; in this case, \"homepageId\" must
3380−-- \"homepageId\" must not be specified. The \"basic\" setting takes
3259+-- not be specified. The \"basic\" setting takes precedence over any
3381−-- precedence over any existing collections setup for this enterprise (if
3260+-- existing collections setup for this enterprise (if any). Should the
3382−-- any). Should the enterprise use collectionViewers for controlling access
3261+-- enterprise use collectionViewers for controlling access rights, these
3383−-- rights, these will still be respected.
3262+-- will still be respected.
3384slStoreLayoutType :: Lens' StoreLayout (Maybe Text)
3263slStoreLayoutType :: Lens' StoreLayout (Maybe Text)
3385slStoreLayoutType
3264slStoreLayoutType
3386 = lens _slStoreLayoutType
3265 = lens _slStoreLayoutType
@@ -3392,7 +3271,7 @@ slKind :: Lens' StoreLayout Text
3392slKind = lens _slKind (\ s a -> s{_slKind = a})
3271slKind = lens _slKind (\ s a -> s{_slKind = a})
3393
3272
3394-- | The ID of the store page to be used as the homepage. The homepage will
3273-- | The ID of the store page to be used as the homepage. The homepage will
3395−-- be used as the first page shown in the Google Play for Work store. If a
3274+-- be used as the first page shown in the managed Google Play store. If a
3396-- homepage has not been set, the Play store shown on devices will be
3275-- homepage has not been set, the Play store shown on devices will be
3397-- empty. Not specifying a homepage on a store layout effectively empties
3276-- empty. Not specifying a homepage on a store layout effectively empties
3398-- the store. If there exists at least one page, this field must be set to
3277-- the store. If there exists at least one page, this field must be set to
@@ -3460,7 +3339,71 @@ instance ToJSON AppRestrictionsSchemaChangeEvent
3460 = object
3339 = object
3461 (catMaybes [("productId" .=) <$> _arsceProductId])
3340 (catMaybes [("productId" .=) <$> _arsceProductId])
3462
3341
3342+-- | An event generated when a new device is ready to be managed.
3343+--
3344+-- /See:/ 'newDeviceEvent' smart constructor.
3345+data NewDeviceEvent = NewDeviceEvent'
3346+ { _ndeUserId :: !(Maybe Text)
3347+ , _ndeDeviceId :: !(Maybe Text)
3348+ , _ndeManagementType :: !(Maybe Text)
3349+ } deriving (Eq,Show,Data,Typeable,Generic)
3350+
3351+-- | Creates a value of 'NewDeviceEvent' with the minimum fields required to make a request.
3352+--
3353+-- Use one of the following lenses to modify other fields as desired:
3354+--
3355+-- * 'ndeUserId'
3356+--
3357+-- * 'ndeDeviceId'
3358+--
3359+-- * 'ndeManagementType'
3360+newDeviceEvent
3361+ :: NewDeviceEvent
3362+newDeviceEvent =
3363+ NewDeviceEvent'
3364+ { _ndeUserId = Nothing
3365+ , _ndeDeviceId = Nothing
3366+ , _ndeManagementType = Nothing
3367+ }
3368+
3369+-- | The ID of the user. This field will always be present.
3370+ndeUserId :: Lens' NewDeviceEvent (Maybe Text)
3371+ndeUserId
3372+ = lens _ndeUserId (\ s a -> s{_ndeUserId = a})
3373+
3374+-- | The Android ID of the device. This field will always be present.
3375+ndeDeviceId :: Lens' NewDeviceEvent (Maybe Text)
3376+ndeDeviceId
3377+ = lens _ndeDeviceId (\ s a -> s{_ndeDeviceId = a})
3378+
3379+-- | Identifies the extent to which the device is controlled by an Android
3380+-- for Work EMM in various deployment configurations. Possible values
3381+-- include: - \"managedDevice\", a device that has the EMM\'s device policy
3382+-- controller (DPC) as the device owner, - \"managedProfile\", a device
3383+-- that has a work profile managed by the DPC (DPC is profile owner) in
3384+-- addition to a separate, personal profile that is unavailable to the DPC,
3385+ndeManagementType :: Lens' NewDeviceEvent (Maybe Text)
3386+ndeManagementType
3387+ = lens _ndeManagementType
3388+ (\ s a -> s{_ndeManagementType = a})
3389+
3390+instance FromJSON NewDeviceEvent where
3391+ parseJSON
3392+ = withObject "NewDeviceEvent"
3393+ (\ o ->
3394+ NewDeviceEvent' <$>
3395+ (o .:? "userId") <*> (o .:? "deviceId") <*>
3396+ (o .:? "managementType"))
3397+
3398+instance ToJSON NewDeviceEvent where
3399+ toJSON NewDeviceEvent'{..}
3400+ = object
3401+ (catMaybes
3402+ [("userId" .=) <$> _ndeUserId,
3403+ ("deviceId" .=) <$> _ndeDeviceId,
3404+ ("managementType" .=) <$> _ndeManagementType])
3405+
3463−-- | A token authorizing an administrator to access an iframe.
3406+-- | A token authorizing an admin to access an iframe.
3464--
3407--
3465-- /See:/ 'administratorWebToken' smart constructor.
3408-- /See:/ 'administratorWebToken' smart constructor.
3466data AdministratorWebToken = AdministratorWebToken'
3409data AdministratorWebToken = AdministratorWebToken'
@@ -3570,7 +3513,7 @@ instance ToJSON SignupInfo where
3570 [("completionToken" .=) <$> _siCompletionToken,
3513 [("completionToken" .=) <$> _siCompletionToken,
3571 Just ("kind" .= _siKind), ("url" .=) <$> _siURL])
3514 Just ("kind" .= _siKind), ("url" .=) <$> _siURL])
3572
3515
3573−-- | A Products resource represents an app in the Google Play Store that is
3516+-- | A Products resource represents an app in the Google Play store that is
3574-- available to at least some users in the enterprise. (Some apps are
3517-- available to at least some users in the enterprise. (Some apps are
3575-- restricted to a single enterprise, and no information about them is made
3518-- restricted to a single enterprise, and no information about them is made
3576-- available outside that enterprise.) The information provided for each
3519-- available outside that enterprise.) The information provided for each
@@ -3656,15 +3599,15 @@ pAuthorName
3656pKind :: Lens' Product Text
3599pKind :: Lens' Product Text
3657pKind = lens _pKind (\ s a -> s{_pKind = a})
3600pKind = lens _pKind (\ s a -> s{_pKind = a})
3658
3601
3659−-- | A link to the Google Play for Work details page for the product, for use
3602+-- | A link to the managed Google Play details page for the product, for use
3660−-- by an Enterprise administrator.
3603+-- by an Enterprise admin.
3661pWorkDetailsURL :: Lens' Product (Maybe Text)
3604pWorkDetailsURL :: Lens' Product (Maybe Text)
3662pWorkDetailsURL
3605pWorkDetailsURL
3663 = lens _pWorkDetailsURL
3606 = lens _pWorkDetailsURL
3664 (\ s a -> s{_pWorkDetailsURL = a})
3607 (\ s a -> s{_pWorkDetailsURL = a})
3665
3608
3666−-- | Whether this app can only be installed on devices using the Android for
3609+-- | Whether this app can only be installed on devices using the Android
3667−-- Work container app.
3610+-- container app.
3668pRequiresContainerApp :: Lens' Product (Maybe Bool)
3611pRequiresContainerApp :: Lens' Product (Maybe Bool)
3669pRequiresContainerApp
3612pRequiresContainerApp
3670 = lens _pRequiresContainerApp
3613 = lens _pRequiresContainerApp
@@ -3689,7 +3632,7 @@ pProductPricing
3689
3632
3690-- | How and to whom the package is made available. The value
3633-- | How and to whom the package is made available. The value
3691-- publicGoogleHosted means that the package is available through the Play
3634-- publicGoogleHosted means that the package is available through the Play
3692−-- Store and not restricted to a specific enterprise. The value
3635+-- store and not restricted to a specific enterprise. The value
3693-- privateGoogleHosted means that the package is a private app (restricted
3636-- privateGoogleHosted means that the package is a private app (restricted
3694-- to an enterprise) but hosted by Google. The value privateSelfHosted
3637-- to an enterprise) but hosted by Google. The value privateSelfHosted
3695-- means that the package is a private app (restricted to an enterprise)
3638-- means that the package is a private app (restricted to an enterprise)
@@ -3991,57 +3934,6 @@ instance ToJSON ProductsApproveRequest where
3991 (catMaybes
3934 (catMaybes
3992 [("approvalUrlInfo" .=) <$> _parApprovalURLInfo])
3935 [("approvalUrlInfo" .=) <$> _parApprovalURLInfo])
3993
3936
3994−-- | The user resources for the collection.
3995−--
3996−-- /See:/ 'collectionViewersListResponse' smart constructor.
3997−data CollectionViewersListResponse = CollectionViewersListResponse'
3998− { _cvlrKind :: !Text
3999− , _cvlrUser :: !(Maybe [User])
4000− } deriving (Eq,Show,Data,Typeable,Generic)
4001−
4002−-- | Creates a value of 'CollectionViewersListResponse' with the minimum fields required to make a request.
4003−--
4004−-- Use one of the following lenses to modify other fields as desired:
4005−--
4006−-- * 'cvlrKind'
4007−--
4008−-- * 'cvlrUser'
4009−collectionViewersListResponse
4010− :: CollectionViewersListResponse
4011−collectionViewersListResponse =
4012− CollectionViewersListResponse'
4013− { _cvlrKind = "androidenterprise#collectionViewersListResponse"
4014− , _cvlrUser = Nothing
4015− }
4016−
4017−-- | Identifies what kind of resource this is. Value: the fixed string
4018−-- \"androidenterprise#collectionViewersListResponse\".
4019−cvlrKind :: Lens' CollectionViewersListResponse Text
4020−cvlrKind = lens _cvlrKind (\ s a -> s{_cvlrKind = a})
4021−
4022−-- | A user of an enterprise.
4023−cvlrUser :: Lens' CollectionViewersListResponse [User]
4024−cvlrUser
4025− = lens _cvlrUser (\ s a -> s{_cvlrUser = a}) .
4026− _Default
4027− . _Coerce
4028−
4029−instance FromJSON CollectionViewersListResponse where
4030− parseJSON
4031− = withObject "CollectionViewersListResponse"
4032− (\ o ->
4033− CollectionViewersListResponse' <$>
4034− (o .:? "kind" .!=
4035− "androidenterprise#collectionViewersListResponse")
4036− <*> (o .:? "user" .!= mempty))
4037−
4038−instance ToJSON CollectionViewersListResponse where
4039− toJSON CollectionViewersListResponse'{..}
4040− = object
4041− (catMaybes
4042− [Just ("kind" .= _cvlrKind),
4043− ("user" .=) <$> _cvlrUser])
4044−
4045-- | The existence of an entitlement resource means that a user has the right
3937-- | The existence of an entitlement resource means that a user has the right
4046-- to use a particular app on any of their devices. This might be because
3938-- to use a particular app on any of their devices. This might be because
4047-- the app is free or because they have been allocated a license to the app
3939-- the app is free or because they have been allocated a license to the app
@@ -4173,7 +4065,7 @@ plrPageInfo
4173plrKind :: Lens' ProductsListResponse Text
4065plrKind :: Lens' ProductsListResponse Text
4174plrKind = lens _plrKind (\ s a -> s{_plrKind = a})
4066plrKind = lens _plrKind (\ s a -> s{_plrKind = a})
4175
4067
4176−-- | Information about a product (e.g. an app) in the Google Play Store, for
4068+-- | Information about a product (e.g. an app) in the Google Play store, for
4177-- display to an enterprise admin.
4069-- display to an enterprise admin.
4178plrProduct :: Lens' ProductsListResponse [Product]
4070plrProduct :: Lens' ProductsListResponse [Product]
4179plrProduct
4071plrProduct
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Delete.hsdeleted−101
@@ -1,101 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collections.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Deletes a collection.
24−--
25−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.delete@.
26−module Network.Google.Resource.AndroidEnterprise.Collections.Delete
27− (
28− -- * REST Resource
29− CollectionsDeleteResource
30−
31− -- * Creating a Request
32− , collectionsDelete
33− , CollectionsDelete
34−
35− -- * Request Lenses
36− , cddEnterpriseId
37− , cddCollectionId
38− ) where
39−
40−import Network.Google.AndroidEnterprise.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @androidenterprise.collections.delete@ method which the
44−-- 'CollectionsDelete' request conforms to.
45−type CollectionsDeleteResource =
46− "androidenterprise" :>
47− "v1" :>
48− "enterprises" :>
49− Capture "enterpriseId" Text :>
50− "collections" :>
51− Capture "collectionId" Text :>
52− QueryParam "alt" AltJSON :> Delete '[JSON] ()
53−
54−-- | Deletes a collection.
55−--
56−-- /See:/ 'collectionsDelete' smart constructor.
57−data CollectionsDelete = CollectionsDelete'
58− { _cddEnterpriseId :: !Text
59− , _cddCollectionId :: !Text
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'CollectionsDelete' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'cddEnterpriseId'
67−--
68−-- * 'cddCollectionId'
69−collectionsDelete
70− :: Text -- ^ 'cddEnterpriseId'
71− -> Text -- ^ 'cddCollectionId'
72− -> CollectionsDelete
73−collectionsDelete pCddEnterpriseId_ pCddCollectionId_ =
74− CollectionsDelete'
75− { _cddEnterpriseId = pCddEnterpriseId_
76− , _cddCollectionId = pCddCollectionId_
77− }
78−
79−-- | The ID of the enterprise.
80−cddEnterpriseId :: Lens' CollectionsDelete Text
81−cddEnterpriseId
82− = lens _cddEnterpriseId
83− (\ s a -> s{_cddEnterpriseId = a})
84−
85−-- | The ID of the collection.
86−cddCollectionId :: Lens' CollectionsDelete Text
87−cddCollectionId
88− = lens _cddCollectionId
89− (\ s a -> s{_cddCollectionId = a})
90−
91−instance GoogleRequest CollectionsDelete where
92− type Rs CollectionsDelete = ()
93− type Scopes CollectionsDelete =
94− '["https://www.googleapis.com/auth/androidenterprise"]
95− requestClient CollectionsDelete'{..}
96− = go _cddEnterpriseId _cddCollectionId (Just AltJSON)
97− androidEnterpriseService
98− where go
99− = buildClient
100− (Proxy :: Proxy CollectionsDeleteResource)
101− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Get.hsdeleted−100
@@ -1,100 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collections.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Retrieves the details of a collection.
24−--
25−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.get@.
26−module Network.Google.Resource.AndroidEnterprise.Collections.Get
27− (
28− -- * REST Resource
29− CollectionsGetResource
30−
31− -- * Creating a Request
32− , collectionsGet
33− , CollectionsGet
34−
35− -- * Request Lenses
36− , cgEnterpriseId
37− , cgCollectionId
38− ) where
39−
40−import Network.Google.AndroidEnterprise.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @androidenterprise.collections.get@ method which the
44−-- 'CollectionsGet' request conforms to.
45−type CollectionsGetResource =
46− "androidenterprise" :>
47− "v1" :>
48− "enterprises" :>
49− Capture "enterpriseId" Text :>
50− "collections" :>
51− Capture "collectionId" Text :>
52− QueryParam "alt" AltJSON :> Get '[JSON] Collection
53−
54−-- | Retrieves the details of a collection.
55−--
56−-- /See:/ 'collectionsGet' smart constructor.
57−data CollectionsGet = CollectionsGet'
58− { _cgEnterpriseId :: !Text
59− , _cgCollectionId :: !Text
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'CollectionsGet' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'cgEnterpriseId'
67−--
68−-- * 'cgCollectionId'
69−collectionsGet
70− :: Text -- ^ 'cgEnterpriseId'
71− -> Text -- ^ 'cgCollectionId'
72− -> CollectionsGet
73−collectionsGet pCgEnterpriseId_ pCgCollectionId_ =
74− CollectionsGet'
75− { _cgEnterpriseId = pCgEnterpriseId_
76− , _cgCollectionId = pCgCollectionId_
77− }
78−
79−-- | The ID of the enterprise.
80−cgEnterpriseId :: Lens' CollectionsGet Text
81−cgEnterpriseId
82− = lens _cgEnterpriseId
83− (\ s a -> s{_cgEnterpriseId = a})
84−
85−-- | The ID of the collection.
86−cgCollectionId :: Lens' CollectionsGet Text
87−cgCollectionId
88− = lens _cgCollectionId
89− (\ s a -> s{_cgCollectionId = a})
90−
91−instance GoogleRequest CollectionsGet where
92− type Rs CollectionsGet = Collection
93− type Scopes CollectionsGet =
94− '["https://www.googleapis.com/auth/androidenterprise"]
95− requestClient CollectionsGet'{..}
96− = go _cgEnterpriseId _cgCollectionId (Just AltJSON)
97− androidEnterpriseService
98− where go
99− = buildClient (Proxy :: Proxy CollectionsGetResource)
100− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Insert.hsdeleted−100
@@ -1,100 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collections.Insert
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Creates a new collection.
24−--
25−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.insert@.
26−module Network.Google.Resource.AndroidEnterprise.Collections.Insert
27− (
28− -- * REST Resource
29− CollectionsInsertResource
30−
31− -- * Creating a Request
32− , collectionsInsert
33− , CollectionsInsert
34−
35− -- * Request Lenses
36− , ciEnterpriseId
37− , ciPayload
38− ) where
39−
40−import Network.Google.AndroidEnterprise.Types
41−import Network.Google.Prelude
42−
43−-- | A resource alias for @androidenterprise.collections.insert@ method which the
44−-- 'CollectionsInsert' request conforms to.
45−type CollectionsInsertResource =
46− "androidenterprise" :>
47− "v1" :>
48− "enterprises" :>
49− Capture "enterpriseId" Text :>
50− "collections" :>
51− QueryParam "alt" AltJSON :>
52− ReqBody '[JSON] Collection :> Post '[JSON] Collection
53−
54−-- | Creates a new collection.
55−--
56−-- /See:/ 'collectionsInsert' smart constructor.
57−data CollectionsInsert = CollectionsInsert'
58− { _ciEnterpriseId :: !Text
59− , _ciPayload :: !Collection
60− } deriving (Eq,Show,Data,Typeable,Generic)
61−
62−-- | Creates a value of 'CollectionsInsert' with the minimum fields required to make a request.
63−--
64−-- Use one of the following lenses to modify other fields as desired:
65−--
66−-- * 'ciEnterpriseId'
67−--
68−-- * 'ciPayload'
69−collectionsInsert
70− :: Text -- ^ 'ciEnterpriseId'
71− -> Collection -- ^ 'ciPayload'
72− -> CollectionsInsert
73−collectionsInsert pCiEnterpriseId_ pCiPayload_ =
74− CollectionsInsert'
75− { _ciEnterpriseId = pCiEnterpriseId_
76− , _ciPayload = pCiPayload_
77− }
78−
79−-- | The ID of the enterprise.
80−ciEnterpriseId :: Lens' CollectionsInsert Text
81−ciEnterpriseId
82− = lens _ciEnterpriseId
83− (\ s a -> s{_ciEnterpriseId = a})
84−
85−-- | Multipart request metadata.
86−ciPayload :: Lens' CollectionsInsert Collection
87−ciPayload
88− = lens _ciPayload (\ s a -> s{_ciPayload = a})
89−
90−instance GoogleRequest CollectionsInsert where
91− type Rs CollectionsInsert = Collection
92− type Scopes CollectionsInsert =
93− '["https://www.googleapis.com/auth/androidenterprise"]
94− requestClient CollectionsInsert'{..}
95− = go _ciEnterpriseId (Just AltJSON) _ciPayload
96− androidEnterpriseService
97− where go
98− = buildClient
99− (Proxy :: Proxy CollectionsInsertResource)
100− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/List.hsdeleted−89
@@ -1,89 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collections.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Retrieves the IDs of all the collections for an enterprise.
24−--
25−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.list@.
26−module Network.Google.Resource.AndroidEnterprise.Collections.List
27− (
28− -- * REST Resource
29− CollectionsListResource
30−
31− -- * Creating a Request
32− , collectionsList
33− , CollectionsList
34−
35− -- * Request Lenses
36− , clEnterpriseId
37− ) where
38−
39−import Network.Google.AndroidEnterprise.Types
40−import Network.Google.Prelude
41−
42−-- | A resource alias for @androidenterprise.collections.list@ method which the
43−-- 'CollectionsList' request conforms to.
44−type CollectionsListResource =
45− "androidenterprise" :>
46− "v1" :>
47− "enterprises" :>
48− Capture "enterpriseId" Text :>
49− "collections" :>
50− QueryParam "alt" AltJSON :>
51− Get '[JSON] CollectionsListResponse
52−
53−-- | Retrieves the IDs of all the collections for an enterprise.
54−--
55−-- /See:/ 'collectionsList' smart constructor.
56−newtype CollectionsList = CollectionsList'
57− { _clEnterpriseId :: Text
58− } deriving (Eq,Show,Data,Typeable,Generic)
59−
60−-- | Creates a value of 'CollectionsList' with the minimum fields required to make a request.
61−--
62−-- Use one of the following lenses to modify other fields as desired:
63−--
64−-- * 'clEnterpriseId'
65−collectionsList
66− :: Text -- ^ 'clEnterpriseId'
67− -> CollectionsList
68−collectionsList pClEnterpriseId_ =
69− CollectionsList'
70− { _clEnterpriseId = pClEnterpriseId_
71− }
72−
73−-- | The ID of the enterprise.
74−clEnterpriseId :: Lens' CollectionsList Text
75−clEnterpriseId
76− = lens _clEnterpriseId
77− (\ s a -> s{_clEnterpriseId = a})
78−
79−instance GoogleRequest CollectionsList where
80− type Rs CollectionsList = CollectionsListResponse
81− type Scopes CollectionsList =
82− '["https://www.googleapis.com/auth/androidenterprise"]
83− requestClient CollectionsList'{..}
84− = go _clEnterpriseId (Just AltJSON)
85− androidEnterpriseService
86− where go
87− = buildClient
88− (Proxy :: Proxy CollectionsListResource)
89− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Patch.hsdeleted−115
@@ -1,115 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collections.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates a collection. This method supports patch semantics.
24−--
25−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.patch@.
26−module Network.Google.Resource.AndroidEnterprise.Collections.Patch
27− (
28− -- * REST Resource
29− CollectionsPatchResource
30−
31− -- * Creating a Request
32− , collectionsPatch
33− , CollectionsPatch
34−
35− -- * Request Lenses
36− , cpEnterpriseId
37− , cpCollectionId
38− , cpPayload
39− ) where
40−
41−import Network.Google.AndroidEnterprise.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @androidenterprise.collections.patch@ method which the
45−-- 'CollectionsPatch' request conforms to.
46−type CollectionsPatchResource =
47− "androidenterprise" :>
48− "v1" :>
49− "enterprises" :>
50− Capture "enterpriseId" Text :>
51− "collections" :>
52− Capture "collectionId" Text :>
53− QueryParam "alt" AltJSON :>
54− ReqBody '[JSON] Collection :>
55− Patch '[JSON] Collection
56−
57−-- | Updates a collection. This method supports patch semantics.
58−--
59−-- /See:/ 'collectionsPatch' smart constructor.
60−data CollectionsPatch = CollectionsPatch'
61− { _cpEnterpriseId :: !Text
62− , _cpCollectionId :: !Text
63− , _cpPayload :: !Collection
64− } deriving (Eq,Show,Data,Typeable,Generic)
65−
66−-- | Creates a value of 'CollectionsPatch' with the minimum fields required to make a request.
67−--
68−-- Use one of the following lenses to modify other fields as desired:
69−--
70−-- * 'cpEnterpriseId'
71−--
72−-- * 'cpCollectionId'
73−--
74−-- * 'cpPayload'
75−collectionsPatch
76− :: Text -- ^ 'cpEnterpriseId'
77− -> Text -- ^ 'cpCollectionId'
78− -> Collection -- ^ 'cpPayload'
79− -> CollectionsPatch
80−collectionsPatch pCpEnterpriseId_ pCpCollectionId_ pCpPayload_ =
81− CollectionsPatch'
82− { _cpEnterpriseId = pCpEnterpriseId_
83− , _cpCollectionId = pCpCollectionId_
84− , _cpPayload = pCpPayload_
85− }
86−
87−-- | The ID of the enterprise.
88−cpEnterpriseId :: Lens' CollectionsPatch Text
89−cpEnterpriseId
90− = lens _cpEnterpriseId
91− (\ s a -> s{_cpEnterpriseId = a})
92−
93−-- | The ID of the collection.
94−cpCollectionId :: Lens' CollectionsPatch Text
95−cpCollectionId
96− = lens _cpCollectionId
97− (\ s a -> s{_cpCollectionId = a})
98−
99−-- | Multipart request metadata.
100−cpPayload :: Lens' CollectionsPatch Collection
101−cpPayload
102− = lens _cpPayload (\ s a -> s{_cpPayload = a})
103−
104−instance GoogleRequest CollectionsPatch where
105− type Rs CollectionsPatch = Collection
106− type Scopes CollectionsPatch =
107− '["https://www.googleapis.com/auth/androidenterprise"]
108− requestClient CollectionsPatch'{..}
109− = go _cpEnterpriseId _cpCollectionId (Just AltJSON)
110− _cpPayload
111− androidEnterpriseService
112− where go
113− = buildClient
114− (Proxy :: Proxy CollectionsPatchResource)
115− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Update.hsdeleted−114
@@ -1,114 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collections.Update
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Updates a collection.
24−--
25−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collections.update@.
26−module Network.Google.Resource.AndroidEnterprise.Collections.Update
27− (
28− -- * REST Resource
29− CollectionsUpdateResource
30−
31− -- * Creating a Request
32− , collectionsUpdate
33− , CollectionsUpdate
34−
35− -- * Request Lenses
36− , cuuEnterpriseId
37− , cuuCollectionId
38− , cuuPayload
39− ) where
40−
41−import Network.Google.AndroidEnterprise.Types
42−import Network.Google.Prelude
43−
44−-- | A resource alias for @androidenterprise.collections.update@ method which the
45−-- 'CollectionsUpdate' request conforms to.
46−type CollectionsUpdateResource =
47− "androidenterprise" :>
48− "v1" :>
49− "enterprises" :>
50− Capture "enterpriseId" Text :>
51− "collections" :>
52− Capture "collectionId" Text :>
53− QueryParam "alt" AltJSON :>
54− ReqBody '[JSON] Collection :> Put '[JSON] Collection
55−
56−-- | Updates a collection.
57−--
58−-- /See:/ 'collectionsUpdate' smart constructor.
59−data CollectionsUpdate = CollectionsUpdate'
60− { _cuuEnterpriseId :: !Text
61− , _cuuCollectionId :: !Text
62− , _cuuPayload :: !Collection
63− } deriving (Eq,Show,Data,Typeable,Generic)
64−
65−-- | Creates a value of 'CollectionsUpdate' with the minimum fields required to make a request.
66−--
67−-- Use one of the following lenses to modify other fields as desired:
68−--
69−-- * 'cuuEnterpriseId'
70−--
71−-- * 'cuuCollectionId'
72−--
73−-- * 'cuuPayload'
74−collectionsUpdate
75− :: Text -- ^ 'cuuEnterpriseId'
76− -> Text -- ^ 'cuuCollectionId'
77− -> Collection -- ^ 'cuuPayload'
78− -> CollectionsUpdate
79−collectionsUpdate pCuuEnterpriseId_ pCuuCollectionId_ pCuuPayload_ =
80− CollectionsUpdate'
81− { _cuuEnterpriseId = pCuuEnterpriseId_
82− , _cuuCollectionId = pCuuCollectionId_
83− , _cuuPayload = pCuuPayload_
84− }
85−
86−-- | The ID of the enterprise.
87−cuuEnterpriseId :: Lens' CollectionsUpdate Text
88−cuuEnterpriseId
89− = lens _cuuEnterpriseId
90− (\ s a -> s{_cuuEnterpriseId = a})
91−
92−-- | The ID of the collection.
93−cuuCollectionId :: Lens' CollectionsUpdate Text
94−cuuCollectionId
95− = lens _cuuCollectionId
96− (\ s a -> s{_cuuCollectionId = a})
97−
98−-- | Multipart request metadata.
99−cuuPayload :: Lens' CollectionsUpdate Collection
100−cuuPayload
101− = lens _cuuPayload (\ s a -> s{_cuuPayload = a})
102−
103−instance GoogleRequest CollectionsUpdate where
104− type Rs CollectionsUpdate = Collection
105− type Scopes CollectionsUpdate =
106− '["https://www.googleapis.com/auth/androidenterprise"]
107− requestClient CollectionsUpdate'{..}
108− = go _cuuEnterpriseId _cuuCollectionId (Just AltJSON)
109− _cuuPayload
110− androidEnterpriseService
111− where go
112− = buildClient
113− (Proxy :: Proxy CollectionsUpdateResource)
114− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Delete.hsdeleted−118
@@ -1,118 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Removes the user from the list of those specifically allowed to see the
24−-- collection. If the collection\'s visibility is set to viewersOnly then
25−-- only such users will see the collection.
26−--
27−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.delete@.
28−module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete
29− (
30− -- * REST Resource
31− CollectionviewersDeleteResource
32−
33− -- * Creating a Request
34− , collectionviewersDelete
35− , CollectionviewersDelete
36−
37− -- * Request Lenses
38− , cdEnterpriseId
39− , cdCollectionId
40− , cdUserId
41− ) where
42−
43−import Network.Google.AndroidEnterprise.Types
44−import Network.Google.Prelude
45−
46−-- | A resource alias for @androidenterprise.collectionviewers.delete@ method which the
47−-- 'CollectionviewersDelete' request conforms to.
48−type CollectionviewersDeleteResource =
49− "androidenterprise" :>
50− "v1" :>
51− "enterprises" :>
52− Capture "enterpriseId" Text :>
53− "collections" :>
54− Capture "collectionId" Text :>
55− "users" :>
56− Capture "userId" Text :>
57− QueryParam "alt" AltJSON :> Delete '[JSON] ()
58−
59−-- | Removes the user from the list of those specifically allowed to see the
60−-- collection. If the collection\'s visibility is set to viewersOnly then
61−-- only such users will see the collection.
62−--
63−-- /See:/ 'collectionviewersDelete' smart constructor.
64−data CollectionviewersDelete = CollectionviewersDelete'
65− { _cdEnterpriseId :: !Text
66− , _cdCollectionId :: !Text
67− , _cdUserId :: !Text
68− } deriving (Eq,Show,Data,Typeable,Generic)
69−
70−-- | Creates a value of 'CollectionviewersDelete' with the minimum fields required to make a request.
71−--
72−-- Use one of the following lenses to modify other fields as desired:
73−--
74−-- * 'cdEnterpriseId'
75−--
76−-- * 'cdCollectionId'
77−--
78−-- * 'cdUserId'
79−collectionviewersDelete
80− :: Text -- ^ 'cdEnterpriseId'
81− -> Text -- ^ 'cdCollectionId'
82− -> Text -- ^ 'cdUserId'
83− -> CollectionviewersDelete
84−collectionviewersDelete pCdEnterpriseId_ pCdCollectionId_ pCdUserId_ =
85− CollectionviewersDelete'
86− { _cdEnterpriseId = pCdEnterpriseId_
87− , _cdCollectionId = pCdCollectionId_
88− , _cdUserId = pCdUserId_
89− }
90−
91−-- | The ID of the enterprise.
92−cdEnterpriseId :: Lens' CollectionviewersDelete Text
93−cdEnterpriseId
94− = lens _cdEnterpriseId
95− (\ s a -> s{_cdEnterpriseId = a})
96−
97−-- | The ID of the collection.
98−cdCollectionId :: Lens' CollectionviewersDelete Text
99−cdCollectionId
100− = lens _cdCollectionId
101− (\ s a -> s{_cdCollectionId = a})
102−
103−-- | The ID of the user.
104−cdUserId :: Lens' CollectionviewersDelete Text
105−cdUserId = lens _cdUserId (\ s a -> s{_cdUserId = a})
106−
107−instance GoogleRequest CollectionviewersDelete where
108− type Rs CollectionviewersDelete = ()
109− type Scopes CollectionviewersDelete =
110− '["https://www.googleapis.com/auth/androidenterprise"]
111− requestClient CollectionviewersDelete'{..}
112− = go _cdEnterpriseId _cdCollectionId _cdUserId
113− (Just AltJSON)
114− androidEnterpriseService
115− where go
116− = buildClient
117− (Proxy :: Proxy CollectionviewersDeleteResource)
118− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Get.hsdeleted−119
@@ -1,119 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Retrieves the ID of the user if they have been specifically allowed to
24−-- see the collection. If the collection\'s visibility is set to
25−-- viewersOnly then only these users will see the collection.
26−--
27−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.get@.
28−module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get
29− (
30− -- * REST Resource
31− CollectionviewersGetResource
32−
33− -- * Creating a Request
34− , collectionviewersGet
35− , CollectionviewersGet
36−
37− -- * Request Lenses
38− , cggEnterpriseId
39− , cggCollectionId
40− , cggUserId
41− ) where
42−
43−import Network.Google.AndroidEnterprise.Types
44−import Network.Google.Prelude
45−
46−-- | A resource alias for @androidenterprise.collectionviewers.get@ method which the
47−-- 'CollectionviewersGet' request conforms to.
48−type CollectionviewersGetResource =
49− "androidenterprise" :>
50− "v1" :>
51− "enterprises" :>
52− Capture "enterpriseId" Text :>
53− "collections" :>
54− Capture "collectionId" Text :>
55− "users" :>
56− Capture "userId" Text :>
57− QueryParam "alt" AltJSON :> Get '[JSON] User
58−
59−-- | Retrieves the ID of the user if they have been specifically allowed to
60−-- see the collection. If the collection\'s visibility is set to
61−-- viewersOnly then only these users will see the collection.
62−--
63−-- /See:/ 'collectionviewersGet' smart constructor.
64−data CollectionviewersGet = CollectionviewersGet'
65− { _cggEnterpriseId :: !Text
66− , _cggCollectionId :: !Text
67− , _cggUserId :: !Text
68− } deriving (Eq,Show,Data,Typeable,Generic)
69−
70−-- | Creates a value of 'CollectionviewersGet' with the minimum fields required to make a request.
71−--
72−-- Use one of the following lenses to modify other fields as desired:
73−--
74−-- * 'cggEnterpriseId'
75−--
76−-- * 'cggCollectionId'
77−--
78−-- * 'cggUserId'
79−collectionviewersGet
80− :: Text -- ^ 'cggEnterpriseId'
81− -> Text -- ^ 'cggCollectionId'
82− -> Text -- ^ 'cggUserId'
83− -> CollectionviewersGet
84−collectionviewersGet pCggEnterpriseId_ pCggCollectionId_ pCggUserId_ =
85− CollectionviewersGet'
86− { _cggEnterpriseId = pCggEnterpriseId_
87− , _cggCollectionId = pCggCollectionId_
88− , _cggUserId = pCggUserId_
89− }
90−
91−-- | The ID of the enterprise.
92−cggEnterpriseId :: Lens' CollectionviewersGet Text
93−cggEnterpriseId
94− = lens _cggEnterpriseId
95− (\ s a -> s{_cggEnterpriseId = a})
96−
97−-- | The ID of the collection.
98−cggCollectionId :: Lens' CollectionviewersGet Text
99−cggCollectionId
100− = lens _cggCollectionId
101− (\ s a -> s{_cggCollectionId = a})
102−
103−-- | The ID of the user.
104−cggUserId :: Lens' CollectionviewersGet Text
105−cggUserId
106− = lens _cggUserId (\ s a -> s{_cggUserId = a})
107−
108−instance GoogleRequest CollectionviewersGet where
109− type Rs CollectionviewersGet = User
110− type Scopes CollectionviewersGet =
111− '["https://www.googleapis.com/auth/androidenterprise"]
112− requestClient CollectionviewersGet'{..}
113− = go _cggEnterpriseId _cggCollectionId _cggUserId
114− (Just AltJSON)
115− androidEnterpriseService
116− where go
117− = buildClient
118− (Proxy :: Proxy CollectionviewersGetResource)
119− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/List.hsdeleted−108
@@ -1,108 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.List
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Retrieves the IDs of the users who have been specifically allowed to see
24−-- the collection. If the collection\'s visibility is set to viewersOnly
25−-- then only these users will see the collection.
26−--
27−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.list@.
28−module Network.Google.Resource.AndroidEnterprise.Collectionviewers.List
29− (
30− -- * REST Resource
31− CollectionviewersListResource
32−
33− -- * Creating a Request
34− , collectionviewersList
35− , CollectionviewersList
36−
37− -- * Request Lenses
38− , cEnterpriseId
39− , cCollectionId
40− ) where
41−
42−import Network.Google.AndroidEnterprise.Types
43−import Network.Google.Prelude
44−
45−-- | A resource alias for @androidenterprise.collectionviewers.list@ method which the
46−-- 'CollectionviewersList' request conforms to.
47−type CollectionviewersListResource =
48− "androidenterprise" :>
49− "v1" :>
50− "enterprises" :>
51− Capture "enterpriseId" Text :>
52− "collections" :>
53− Capture "collectionId" Text :>
54− "users" :>
55− QueryParam "alt" AltJSON :>
56− Get '[JSON] CollectionViewersListResponse
57−
58−-- | Retrieves the IDs of the users who have been specifically allowed to see
59−-- the collection. If the collection\'s visibility is set to viewersOnly
60−-- then only these users will see the collection.
61−--
62−-- /See:/ 'collectionviewersList' smart constructor.
63−data CollectionviewersList = CollectionviewersList'
64− { _cEnterpriseId :: !Text
65− , _cCollectionId :: !Text
66− } deriving (Eq,Show,Data,Typeable,Generic)
67−
68−-- | Creates a value of 'CollectionviewersList' with the minimum fields required to make a request.
69−--
70−-- Use one of the following lenses to modify other fields as desired:
71−--
72−-- * 'cEnterpriseId'
73−--
74−-- * 'cCollectionId'
75−collectionviewersList
76− :: Text -- ^ 'cEnterpriseId'
77− -> Text -- ^ 'cCollectionId'
78− -> CollectionviewersList
79−collectionviewersList pCEnterpriseId_ pCCollectionId_ =
80− CollectionviewersList'
81− { _cEnterpriseId = pCEnterpriseId_
82− , _cCollectionId = pCCollectionId_
83− }
84−
85−-- | The ID of the enterprise.
86−cEnterpriseId :: Lens' CollectionviewersList Text
87−cEnterpriseId
88− = lens _cEnterpriseId
89− (\ s a -> s{_cEnterpriseId = a})
90−
91−-- | The ID of the collection.
92−cCollectionId :: Lens' CollectionviewersList Text
93−cCollectionId
94− = lens _cCollectionId
95− (\ s a -> s{_cCollectionId = a})
96−
97−instance GoogleRequest CollectionviewersList where
98− type Rs CollectionviewersList =
99− CollectionViewersListResponse
100− type Scopes CollectionviewersList =
101− '["https://www.googleapis.com/auth/androidenterprise"]
102− requestClient CollectionviewersList'{..}
103− = go _cEnterpriseId _cCollectionId (Just AltJSON)
104− androidEnterpriseService
105− where go
106− = buildClient
107− (Proxy :: Proxy CollectionviewersListResource)
108− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Patch.hsdeleted−134
@@ -1,134 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Adds the user to the list of those specifically allowed to see the
24−-- collection. If the collection\'s visibility is set to viewersOnly then
25−-- only such users will see the collection. This method supports patch
26−-- semantics.
27−--
28−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.patch@.
29−module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch
30− (
31− -- * REST Resource
32− CollectionviewersPatchResource
33−
34− -- * Creating a Request
35− , collectionviewersPatch
36− , CollectionviewersPatch
37−
38− -- * Request Lenses
39− , cppEnterpriseId
40− , cppCollectionId
41− , cppPayload
42− , cppUserId
43− ) where
44−
45−import Network.Google.AndroidEnterprise.Types
46−import Network.Google.Prelude
47−
48−-- | A resource alias for @androidenterprise.collectionviewers.patch@ method which the
49−-- 'CollectionviewersPatch' request conforms to.
50−type CollectionviewersPatchResource =
51− "androidenterprise" :>
52− "v1" :>
53− "enterprises" :>
54− Capture "enterpriseId" Text :>
55− "collections" :>
56− Capture "collectionId" Text :>
57− "users" :>
58− Capture "userId" Text :>
59− QueryParam "alt" AltJSON :>
60− ReqBody '[JSON] User :> Patch '[JSON] User
61−
62−-- | Adds the user to the list of those specifically allowed to see the
63−-- collection. If the collection\'s visibility is set to viewersOnly then
64−-- only such users will see the collection. This method supports patch
65−-- semantics.
66−--
67−-- /See:/ 'collectionviewersPatch' smart constructor.
68−data CollectionviewersPatch = CollectionviewersPatch'
69− { _cppEnterpriseId :: !Text
70− , _cppCollectionId :: !Text
71− , _cppPayload :: !User
72− , _cppUserId :: !Text
73− } deriving (Eq,Show,Data,Typeable,Generic)
74−
75−-- | Creates a value of 'CollectionviewersPatch' with the minimum fields required to make a request.
76−--
77−-- Use one of the following lenses to modify other fields as desired:
78−--
79−-- * 'cppEnterpriseId'
80−--
81−-- * 'cppCollectionId'
82−--
83−-- * 'cppPayload'
84−--
85−-- * 'cppUserId'
86−collectionviewersPatch
87− :: Text -- ^ 'cppEnterpriseId'
88− -> Text -- ^ 'cppCollectionId'
89− -> User -- ^ 'cppPayload'
90− -> Text -- ^ 'cppUserId'
91− -> CollectionviewersPatch
92−collectionviewersPatch pCppEnterpriseId_ pCppCollectionId_ pCppPayload_ pCppUserId_ =
93− CollectionviewersPatch'
94− { _cppEnterpriseId = pCppEnterpriseId_
95− , _cppCollectionId = pCppCollectionId_
96− , _cppPayload = pCppPayload_
97− , _cppUserId = pCppUserId_
98− }
99−
100−-- | The ID of the enterprise.
101−cppEnterpriseId :: Lens' CollectionviewersPatch Text
102−cppEnterpriseId
103− = lens _cppEnterpriseId
104− (\ s a -> s{_cppEnterpriseId = a})
105−
106−-- | The ID of the collection.
107−cppCollectionId :: Lens' CollectionviewersPatch Text
108−cppCollectionId
109− = lens _cppCollectionId
110− (\ s a -> s{_cppCollectionId = a})
111−
112−-- | Multipart request metadata.
113−cppPayload :: Lens' CollectionviewersPatch User
114−cppPayload
115− = lens _cppPayload (\ s a -> s{_cppPayload = a})
116−
117−-- | The ID of the user.
118−cppUserId :: Lens' CollectionviewersPatch Text
119−cppUserId
120− = lens _cppUserId (\ s a -> s{_cppUserId = a})
121−
122−instance GoogleRequest CollectionviewersPatch where
123− type Rs CollectionviewersPatch = User
124− type Scopes CollectionviewersPatch =
125− '["https://www.googleapis.com/auth/androidenterprise"]
126− requestClient CollectionviewersPatch'{..}
127− = go _cppEnterpriseId _cppCollectionId _cppUserId
128− (Just AltJSON)
129− _cppPayload
130− androidEnterpriseService
131− where go
132− = buildClient
133− (Proxy :: Proxy CollectionviewersPatchResource)
134− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Update.hsdeleted−131
@@ -1,131 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- Adds the user to the list of those specifically allowed to see the
24−-- collection. If the collection\'s visibility is set to viewersOnly then
25−-- only such users will see the collection.
26−--
27−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.collectionviewers.update@.
28−module Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update
29− (
30− -- * REST Resource
31− CollectionviewersUpdateResource
32−
33− -- * Creating a Request
34− , collectionviewersUpdate
35− , CollectionviewersUpdate
36−
37− -- * Request Lenses
38− , cuEnterpriseId
39− , cuCollectionId
40− , cuPayload
41− , cuUserId
42− ) where
43−
44−import Network.Google.AndroidEnterprise.Types
45−import Network.Google.Prelude
46−
47−-- | A resource alias for @androidenterprise.collectionviewers.update@ method which the
48−-- 'CollectionviewersUpdate' request conforms to.
49−type CollectionviewersUpdateResource =
50− "androidenterprise" :>
51− "v1" :>
52− "enterprises" :>
53− Capture "enterpriseId" Text :>
54− "collections" :>
55− Capture "collectionId" Text :>
56− "users" :>
57− Capture "userId" Text :>
58− QueryParam "alt" AltJSON :>
59− ReqBody '[JSON] User :> Put '[JSON] User
60−
61−-- | Adds the user to the list of those specifically allowed to see the
62−-- collection. If the collection\'s visibility is set to viewersOnly then
63−-- only such users will see the collection.
64−--
65−-- /See:/ 'collectionviewersUpdate' smart constructor.
66−data CollectionviewersUpdate = CollectionviewersUpdate'
67− { _cuEnterpriseId :: !Text
68− , _cuCollectionId :: !Text
69− , _cuPayload :: !User
70− , _cuUserId :: !Text
71− } deriving (Eq,Show,Data,Typeable,Generic)
72−
73−-- | Creates a value of 'CollectionviewersUpdate' with the minimum fields required to make a request.
74−--
75−-- Use one of the following lenses to modify other fields as desired:
76−--
77−-- * 'cuEnterpriseId'
78−--
79−-- * 'cuCollectionId'
80−--
81−-- * 'cuPayload'
82−--
83−-- * 'cuUserId'
84−collectionviewersUpdate
85− :: Text -- ^ 'cuEnterpriseId'
86− -> Text -- ^ 'cuCollectionId'
87− -> User -- ^ 'cuPayload'
88− -> Text -- ^ 'cuUserId'
89− -> CollectionviewersUpdate
90−collectionviewersUpdate pCuEnterpriseId_ pCuCollectionId_ pCuPayload_ pCuUserId_ =
91− CollectionviewersUpdate'
92− { _cuEnterpriseId = pCuEnterpriseId_
93− , _cuCollectionId = pCuCollectionId_
94− , _cuPayload = pCuPayload_
95− , _cuUserId = pCuUserId_
96− }
97−
98−-- | The ID of the enterprise.
99−cuEnterpriseId :: Lens' CollectionviewersUpdate Text
100−cuEnterpriseId
101− = lens _cuEnterpriseId
102− (\ s a -> s{_cuEnterpriseId = a})
103−
104−-- | The ID of the collection.
105−cuCollectionId :: Lens' CollectionviewersUpdate Text
106−cuCollectionId
107− = lens _cuCollectionId
108− (\ s a -> s{_cuCollectionId = a})
109−
110−-- | Multipart request metadata.
111−cuPayload :: Lens' CollectionviewersUpdate User
112−cuPayload
113− = lens _cuPayload (\ s a -> s{_cuPayload = a})
114−
115−-- | The ID of the user.
116−cuUserId :: Lens' CollectionviewersUpdate Text
117−cuUserId = lens _cuUserId (\ s a -> s{_cuUserId = a})
118−
119−instance GoogleRequest CollectionviewersUpdate where
120− type Rs CollectionviewersUpdate = User
121− type Scopes CollectionviewersUpdate =
122− '["https://www.googleapis.com/auth/androidenterprise"]
123− requestClient CollectionviewersUpdate'{..}
124− = go _cuEnterpriseId _cuCollectionId _cuUserId
125− (Just AltJSON)
126− _cuPayload
127− androidEnterpriseService
128− where go
129− = buildClient
130− (Proxy :: Proxy CollectionviewersUpdateResource)
131− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/CreateWebToken.hs+6−6
@@ -21,9 +21,9 @@
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23-- Returns a unique token to access an embeddable UI. To generate a web UI,
23-- Returns a unique token to access an embeddable UI. To generate a web UI,
24−-- pass the generated token into the Play for Work javascript API. Each
24+-- pass the generated token into the managed Google Play javascript API.
25−-- token may only be used to start one UI session. See the javascript API
25+-- Each token may only be used to start one UI session. See the javascript
26−-- documentation for further information.
26+-- API documentation for further information.
27--
27--
28-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.createWebToken@.
28-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.createWebToken@.
29module Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken
29module Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken
@@ -56,9 +56,9 @@ type EnterprisesCreateWebTokenResource =
56 Post '[JSON] AdministratorWebToken
56 Post '[JSON] AdministratorWebToken
57
57
58-- | Returns a unique token to access an embeddable UI. To generate a web UI,
58-- | Returns a unique token to access an embeddable UI. To generate a web UI,
59−-- pass the generated token into the Play for Work javascript API. Each
59+-- pass the generated token into the managed Google Play javascript API.
60−-- token may only be used to start one UI session. See the javascript API
60+-- Each token may only be used to start one UI session. See the javascript
61−-- documentation for further information.
61+-- API documentation for further information.
62--
62--
63-- /See:/ 'enterprisesCreateWebToken' smart constructor.
63-- /See:/ 'enterprisesCreateWebToken' smart constructor.
64data EnterprisesCreateWebToken = EnterprisesCreateWebToken'
64data EnterprisesCreateWebToken = EnterprisesCreateWebToken'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hs+14−2
@@ -20,7 +20,13 @@
20-- Stability : auto-generated
20-- Stability : auto-generated
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23−-- Sets the store layout for the enterprise.
23+-- Sets the store layout for the enterprise. By default, storeLayoutType is
24+-- set to \"basic\" and the basic store layout is enabled. The basic layout
25+-- only contains apps approved by the admin, and that have been added to
26+-- the available product set for a user (using the setAvailableProductSet
27+-- call). Apps on the page are sorted in order of their product ID value.
28+-- If you create a custom store layout (by setting storeLayoutType =
29+-- \"custom\"), the basic store layout is disabled.
24--
30--
25-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setStoreLayout@.
31-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setStoreLayout@.
26module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
32module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
@@ -52,7 +58,13 @@ type EnterprisesSetStoreLayoutResource =
52 ReqBody '[JSON] StoreLayout :>
58 ReqBody '[JSON] StoreLayout :>
53 Put '[JSON] StoreLayout
59 Put '[JSON] StoreLayout
54
60
55−-- | Sets the store layout for the enterprise.
61+-- | Sets the store layout for the enterprise. By default, storeLayoutType is
62+-- set to \"basic\" and the basic store layout is enabled. The basic layout
63+-- only contains apps approved by the admin, and that have been added to
64+-- the available product set for a user (using the setAvailableProductSet
65+-- call). Apps on the page are sorted in order of their product ID value.
66+-- If you create a custom store layout (by setting storeLayoutType =
67+-- \"custom\"), the basic store layout is disabled.
56--
68--
57-- /See:/ 'enterprisesSetStoreLayout' smart constructor.
69-- /See:/ 'enterprisesSetStoreLayout' smart constructor.
58data EnterprisesSetStoreLayout = EnterprisesSetStoreLayout'
70data EnterprisesSetStoreLayout = EnterprisesSetStoreLayout'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs+6−6
@@ -22,9 +22,9 @@
22--
22--
23-- Approves the specified product and the relevant app permissions, if 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
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
25+-- customer is 1,000. To learn how to use managed Google Play to design and
26−-- and create a store layout to display approved products to your users,
26+-- create a store layout to display approved products to your users, see
27−-- see Store Layout Design.
27+-- Store Layout Design.
28--
28--
29-- /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@.
30module Network.Google.Resource.AndroidEnterprise.Products.Approve
30module Network.Google.Resource.AndroidEnterprise.Products.Approve
@@ -61,9 +61,9 @@ type ProductsApproveResource =
61
61
62-- | Approves the specified product and the relevant app permissions, if 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
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
64+-- customer is 1,000. To learn how to use managed Google Play to design and
65−-- and create a store layout to display approved products to your users,
65+-- create a store layout to display approved products to your users, see
66−-- see Store Layout Design.
66+-- Store Layout Design.
67--
67--
68-- /See:/ 'productsApprove' smart constructor.
68-- /See:/ 'productsApprove' smart constructor.
69data ProductsApprove = ProductsApprove'
69data ProductsApprove = ProductsApprove'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs+6−6
@@ -23,9 +23,9 @@
23-- Retrieves the schema that defines the configurable properties for this
23-- Retrieves the schema that defines the configurable properties for this
24-- product. All products have a schema, but this schema may be empty if no
24-- product. All products have a schema, but this schema may be empty if no
25-- managed configurations have been defined. This schema can be used to
25-- managed configurations have been defined. This schema can be used to
26−-- populate a UI that allows an administrator to configure the product. To
26+-- populate a UI that allows an admin to configure the product. To apply a
27−-- apply a managed configuration based on the schema obtained using this
27+-- managed configuration based on the schema obtained using this API, see
28−-- API, see Managed Configurations through Play.
28+-- Managed Configurations through Play.
29--
29--
30-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.
30-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.
31module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
31module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
@@ -63,9 +63,9 @@ type ProductsGetAppRestrictionsSchemaResource =
63-- | Retrieves the schema that defines the configurable properties for this
63-- | Retrieves the schema that defines the configurable properties for this
64-- product. All products have a schema, but this schema may be empty if no
64-- product. All products have a schema, but this schema may be empty if no
65-- managed configurations have been defined. This schema can be used to
65-- managed configurations have been defined. This schema can be used to
66−-- populate a UI that allows an administrator to configure the product. To
66+-- populate a UI that allows an admin to configure the product. To apply a
67−-- apply a managed configuration based on the schema obtained using this
67+-- managed configuration based on the schema obtained using this API, see
68−-- API, see Managed Configurations through Play.
68+-- Managed Configurations through Play.
69--
69--
70-- /See:/ 'productsGetAppRestrictionsSchema' smart constructor.
70-- /See:/ 'productsGetAppRestrictionsSchema' smart constructor.
71data ProductsGetAppRestrictionsSchema = ProductsGetAppRestrictionsSchema'
71data ProductsGetAppRestrictionsSchema = ProductsGetAppRestrictionsSchema'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs+1−1
@@ -115,7 +115,7 @@ plEnterpriseId
115plToken :: Lens' ProductsList (Maybe Text)
115plToken :: Lens' ProductsList (Maybe Text)
116plToken = lens _plToken (\ s a -> s{_plToken = a})
116plToken = lens _plToken (\ s a -> s{_plToken = a})
117
117
118−-- | The search query as typed in the Google Play Store search box. If
118+-- | The search query as typed in the Google Play store search box. If
119-- omitted, all approved apps will be returned (using the pagination
119-- omitted, all approved apps will be returned (using the pagination
120-- parameters), including apps that are not available in the store (e.g.
120-- parameters), including apps that are not available in the store (e.g.
121-- unpublished apps).
121-- unpublished apps).
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/UpdatePermissions.hsdeleted−127
@@ -1,127 +0,0 @@
1−{-# LANGUAGE DataKinds #-}
2−{-# LANGUAGE DeriveDataTypeable #-}
3−{-# LANGUAGE DeriveGeneric #-}
4−{-# LANGUAGE FlexibleInstances #-}
5−{-# LANGUAGE NoImplicitPrelude #-}
6−{-# LANGUAGE OverloadedStrings #-}
7−{-# LANGUAGE RecordWildCards #-}
8−{-# LANGUAGE TypeFamilies #-}
9−{-# LANGUAGE TypeOperators #-}
10−
11−{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
12−{-# OPTIONS_GHC -fno-warn-unused-binds #-}
13−{-# OPTIONS_GHC -fno-warn-unused-imports #-}
14−
15−-- |
16−-- Module : Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
17−-- Copyright : (c) 2015-2016 Brendan Hay
18−-- License : Mozilla Public License, v. 2.0.
19−-- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>
20−-- Stability : auto-generated
21−-- Portability : non-portable (GHC extensions)
22−--
23−-- This method has been deprecated. To programmatically approve
24−-- applications, you must use the iframe mechanism via the
25−-- generateApprovalUrl and approve methods of the Products resource. For
26−-- more information, see the Play EMM API usage requirements. The
27−-- updatePermissions method (deprecated) updates the set of Android app
28−-- permissions for this app that have been accepted by the enterprise.
29−--
30−-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.updatePermissions@.
31−module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
32− (
33− -- * REST Resource
34− ProductsUpdatePermissionsResource
35−
36− -- * Creating a Request
37− , productsUpdatePermissions
38− , ProductsUpdatePermissions
39−
40− -- * Request Lenses
41− , pupEnterpriseId
42− , pupPayload
43− , pupProductId
44− ) where
45−
46−import Network.Google.AndroidEnterprise.Types
47−import Network.Google.Prelude
48−
49−-- | A resource alias for @androidenterprise.products.updatePermissions@ method which the
50−-- 'ProductsUpdatePermissions' request conforms to.
51−type ProductsUpdatePermissionsResource =
52− "androidenterprise" :>
53− "v1" :>
54− "enterprises" :>
55− Capture "enterpriseId" Text :>
56− "products" :>
57− Capture "productId" Text :>
58− "permissions" :>
59− QueryParam "alt" AltJSON :>
60− ReqBody '[JSON] ProductPermissions :>
61− Put '[JSON] ProductPermissions
62−
63−-- | This method has been deprecated. To programmatically approve
64−-- applications, you must use the iframe mechanism via the
65−-- generateApprovalUrl and approve methods of the Products resource. For
66−-- more information, see the Play EMM API usage requirements. The
67−-- updatePermissions method (deprecated) updates the set of Android app
68−-- permissions for this app that have been accepted by the enterprise.
69−--
70−-- /See:/ 'productsUpdatePermissions' smart constructor.
71−data ProductsUpdatePermissions = ProductsUpdatePermissions'
72− { _pupEnterpriseId :: !Text
73− , _pupPayload :: !ProductPermissions
74− , _pupProductId :: !Text
75− } deriving (Eq,Show,Data,Typeable,Generic)
76−
77−-- | Creates a value of 'ProductsUpdatePermissions' with the minimum fields required to make a request.
78−--
79−-- Use one of the following lenses to modify other fields as desired:
80−--
81−-- * 'pupEnterpriseId'
82−--
83−-- * 'pupPayload'
84−--
85−-- * 'pupProductId'
86−productsUpdatePermissions
87− :: Text -- ^ 'pupEnterpriseId'
88− -> ProductPermissions -- ^ 'pupPayload'
89− -> Text -- ^ 'pupProductId'
90− -> ProductsUpdatePermissions
91−productsUpdatePermissions pPupEnterpriseId_ pPupPayload_ pPupProductId_ =
92− ProductsUpdatePermissions'
93− { _pupEnterpriseId = pPupEnterpriseId_
94− , _pupPayload = pPupPayload_
95− , _pupProductId = pPupProductId_
96− }
97−
98−-- | The ID of the enterprise.
99−pupEnterpriseId :: Lens' ProductsUpdatePermissions Text
100−pupEnterpriseId
101− = lens _pupEnterpriseId
102− (\ s a -> s{_pupEnterpriseId = a})
103−
104−-- | Multipart request metadata.
105−pupPayload :: Lens' ProductsUpdatePermissions ProductPermissions
106−pupPayload
107− = lens _pupPayload (\ s a -> s{_pupPayload = a})
108−
109−-- | The ID of the product.
110−pupProductId :: Lens' ProductsUpdatePermissions Text
111−pupProductId
112− = lens _pupProductId (\ s a -> s{_pupProductId = a})
113−
114−instance GoogleRequest ProductsUpdatePermissions
115− where
116− type Rs ProductsUpdatePermissions =
117− ProductPermissions
118− type Scopes ProductsUpdatePermissions =
119− '["https://www.googleapis.com/auth/androidenterprise"]
120− requestClient ProductsUpdatePermissions'{..}
121− = go _pupEnterpriseId _pupProductId (Just AltJSON)
122− _pupPayload
123− androidEnterpriseService
124− where go
125− = buildClient
126− (Proxy :: Proxy ProductsUpdatePermissionsResource)
127− mempty
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateToken.hs+6−4
@@ -21,8 +21,9 @@
21-- Portability : non-portable (GHC extensions)
21-- Portability : non-portable (GHC extensions)
22--
22--
23-- Generates a token (activation code) to allow this user to configure
23-- Generates a token (activation code) to allow this user to configure
24−-- their work account in the Android Setup Wizard. Revokes any previously
24+-- their managed account in the Android Setup Wizard. Revokes any
25−-- generated token. This call only works with Google managed accounts.
25+-- previously generated token. This call only works with Google managed
26+-- accounts.
26--
27--
27-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateToken@.
28-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateToken@.
28module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
29module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
@@ -55,8 +56,9 @@ type UsersGenerateTokenResource =
55 QueryParam "alt" AltJSON :> Post '[JSON] UserToken
56 QueryParam "alt" AltJSON :> Post '[JSON] UserToken
56
57
57-- | Generates a token (activation code) to allow this user to configure
58-- | Generates a token (activation code) to allow this user to configure
58−-- their work account in the Android Setup Wizard. Revokes any previously
59+-- their managed account in the Android Setup Wizard. Revokes any
59−-- generated token. This call only works with Google managed accounts.
60+-- previously generated token. This call only works with Google managed
61+-- accounts.
60--
62--
61-- /See:/ 'usersGenerateToken' smart constructor.
63-- /See:/ 'usersGenerateToken' smart constructor.
62data UsersGenerateToken = UsersGenerateToken'
64data UsersGenerateToken = UsersGenerateToken'
gogol-android-enterprise/gogol-android-enterprise.cabal−12
@@ -35,17 +35,6 @@ library
35 exposed-modules:
35 exposed-modules:
36 Network.Google.AndroidEnterprise
36 Network.Google.AndroidEnterprise
37 , Network.Google.AndroidEnterprise.Types
37 , Network.Google.AndroidEnterprise.Types
38− , Network.Google.Resource.AndroidEnterprise.Collections.Delete
39− , Network.Google.Resource.AndroidEnterprise.Collections.Get
40− , Network.Google.Resource.AndroidEnterprise.Collections.Insert
41− , Network.Google.Resource.AndroidEnterprise.Collections.List
42− , Network.Google.Resource.AndroidEnterprise.Collections.Patch
43− , Network.Google.Resource.AndroidEnterprise.Collections.Update
44− , Network.Google.Resource.AndroidEnterprise.Collectionviewers.Delete
45− , Network.Google.Resource.AndroidEnterprise.Collectionviewers.Get
46− , Network.Google.Resource.AndroidEnterprise.Collectionviewers.List
47− , Network.Google.Resource.AndroidEnterprise.Collectionviewers.Patch
48− , Network.Google.Resource.AndroidEnterprise.Collectionviewers.Update
49 , Network.Google.Resource.AndroidEnterprise.Devices.Get
38 , Network.Google.Resource.AndroidEnterprise.Devices.Get
50 , Network.Google.Resource.AndroidEnterprise.Devices.GetState
39 , Network.Google.Resource.AndroidEnterprise.Devices.GetState
51 , Network.Google.Resource.AndroidEnterprise.Devices.List
40 , Network.Google.Resource.AndroidEnterprise.Devices.List
@@ -97,7 +86,6 @@ library
97 , Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
86 , Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
98 , Network.Google.Resource.AndroidEnterprise.Products.List
87 , Network.Google.Resource.AndroidEnterprise.Products.List
99 , Network.Google.Resource.AndroidEnterprise.Products.UnApprove
88 , Network.Google.Resource.AndroidEnterprise.Products.UnApprove
100− , Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
101 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
89 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
102 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert
90 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert
103 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List
91 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List