on develop help sign in
Regenerating gogol-android-enterprise from updated service defintions
commitf35afef5f25888e9f35f717b63ab82f124f26b8b authorBrendan Hay <brendan.g.hay@gmail.com> dateSat 11 Feb 2017, 11:36 (10 years ago) parent7aab37c
22 files changed+215−1761
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise.hs+9−81 gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types.hs+9−21 gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs+158−266 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Delete.hs−101 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Get.hs−100 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Insert.hs−100 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/List.hs−89 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Patch.hs−115 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collections/Update.hs−114 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Delete.hs−118 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Get.hs−119 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/List.hs−108 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Patch.hs−134 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Collectionviewers/Update.hs−131 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/CreateWebToken.hs+6−6 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hs+14−2 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs+6−6 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs+6−6 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs+1−1 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/UpdatePermissions.hs−127 gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateToken.hs+6−4 gogol-android-enterprise/gogol-android-enterprise.cabal−12
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise.hs+9−81
@@ -29,39 +29,6 @@ module Network.Google.AndroidEnterprise
2929
3030 -- * Resources
3131
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−
6532 -- ** androidenterprise.devices.get
6633 , module Network.Google.Resource.AndroidEnterprise.Devices.Get
6734
@@ -215,9 +182,6 @@ module Network.Google.AndroidEnterprise
215182 -- ** androidenterprise.products.unapprove
216183 , module Network.Google.Resource.AndroidEnterprise.Products.UnApprove
217184
218− -- ** androidenterprise.products.updatePermissions
219− , module Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
220−
221185 -- ** androidenterprise.serviceaccountkeys.delete
222186 , module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
223187
@@ -320,12 +284,6 @@ module Network.Google.AndroidEnterprise
320284 , eaKind
321285 , eaAccountEmail
322286
323− -- ** CollectionsListResponse
324− , CollectionsListResponse
325− , collectionsListResponse
326− , clrKind
327− , clrCollection
328−
329287 -- ** AppRestrictionsSchemaRestrictionRestrictionValue
330288 , AppRestrictionsSchemaRestrictionRestrictionValue
331289 , appRestrictionsSchemaRestrictionRestrictionValue
@@ -409,6 +367,7 @@ module Network.Google.AndroidEnterprise
409367 , nAppUpdateEvent
410368 , nInstallFailureEvent
411369 , nAppRestrictionsSchemaChangeEvent
370+ , nNewDeviceEvent
412371 , nTimestampMillis
413372
414373 -- ** PageInfo
@@ -457,6 +416,7 @@ module Network.Google.AndroidEnterprise
457416 , sakData
458417 , sakId
459418 , sakType
419+ , sakPublicData
460420
461421 -- ** InstallsListResponse
462422 , InstallsListResponse
@@ -513,15 +473,6 @@ module Network.Google.AndroidEnterprise
513473 , gllrGroupLicense
514474 , gllrKind
515475
516− -- ** Collection
517− , Collection
518− , collection
519− , colKind
520− , colCollectionId
521− , colVisibility
522− , colName
523− , colProductId
524−
525476 -- ** ProductSet
526477 , ProductSet
527478 , productSet
@@ -664,6 +615,13 @@ module Network.Google.AndroidEnterprise
664615 , appRestrictionsSchemaChangeEvent
665616 , arsceProductId
666617
618+ -- ** NewDeviceEvent
619+ , NewDeviceEvent
620+ , newDeviceEvent
621+ , ndeUserId
622+ , ndeDeviceId
623+ , ndeManagementType
624+
667625 -- ** AdministratorWebToken
668626 , AdministratorWebToken
669627 , administratorWebToken
@@ -722,12 +680,6 @@ module Network.Google.AndroidEnterprise
722680 , productsApproveRequest
723681 , parApprovalURLInfo
724682
725− -- ** CollectionViewersListResponse
726− , CollectionViewersListResponse
727− , collectionViewersListResponse
728− , cvlrKind
729− , cvlrUser
730−
731683 -- ** Entitlement
732684 , Entitlement
733685 , entitlement
@@ -746,17 +698,6 @@ module Network.Google.AndroidEnterprise
746698
747699import Network.Google.AndroidEnterprise.Types
748700import 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
760701import Network.Google.Resource.AndroidEnterprise.Devices.Get
761702import Network.Google.Resource.AndroidEnterprise.Devices.GetState
762703import Network.Google.Resource.AndroidEnterprise.Devices.List
@@ -808,7 +749,6 @@ import Network.Google.Resource.AndroidEnterprise.Products.GetAppRestri
808749import Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
809750import Network.Google.Resource.AndroidEnterprise.Products.List
810751import Network.Google.Resource.AndroidEnterprise.Products.UnApprove
811−import Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
812752import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
813753import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert
814754import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List
@@ -848,11 +788,6 @@ type AndroidEnterpriseAPI =
848788 :<|> StorelayoutclustersGetResource
849789 :<|> StorelayoutclustersDeleteResource
850790 :<|> StorelayoutclustersUpdateResource
851− :<|> CollectionviewersListResource
852− :<|> CollectionviewersPatchResource
853− :<|> CollectionviewersGetResource
854− :<|> CollectionviewersDeleteResource
855− :<|> CollectionviewersUpdateResource
856791 :<|> UsersInsertResource
857792 :<|> UsersListResource
858793 :<|> UsersGenerateTokenResource
@@ -875,12 +810,6 @@ type AndroidEnterpriseAPI =
875810 :<|> StorelayoutpagesGetResource
876811 :<|> StorelayoutpagesDeleteResource
877812 :<|> StorelayoutpagesUpdateResource
878− :<|> CollectionsInsertResource
879− :<|> CollectionsListResource
880− :<|> CollectionsPatchResource
881− :<|> CollectionsGetResource
882− :<|> CollectionsDeleteResource
883− :<|> CollectionsUpdateResource
884813 :<|> ServiceAccountkeysInsertResource
885814 :<|> ServiceAccountkeysListResource
886815 :<|> ServiceAccountkeysDeleteResource
@@ -925,7 +854,6 @@ type AndroidEnterpriseAPI =
925854 :<|> ProductsUnApproveResource
926855 :<|> ProductsApproveResource
927856 :<|> ProductsGetPermissionsResource
928− :<|> ProductsUpdatePermissionsResource
929857 :<|> DevicesListResource
930858 :<|> DevicesSetStateResource
931859 :<|> DevicesGetResource
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types.hs+9−21
@@ -44,12 +44,6 @@ module Network.Google.AndroidEnterprise.Types
4444 , eaKind
4545 , eaAccountEmail
4646
47− -- * CollectionsListResponse
48− , CollectionsListResponse
49− , collectionsListResponse
50− , clrKind
51− , clrCollection
52−
5347 -- * AppRestrictionsSchemaRestrictionRestrictionValue
5448 , AppRestrictionsSchemaRestrictionRestrictionValue
5549 , appRestrictionsSchemaRestrictionRestrictionValue
@@ -133,6 +127,7 @@ module Network.Google.AndroidEnterprise.Types
133127 , nAppUpdateEvent
134128 , nInstallFailureEvent
135129 , nAppRestrictionsSchemaChangeEvent
130+ , nNewDeviceEvent
136131 , nTimestampMillis
137132
138133 -- * PageInfo
@@ -181,6 +176,7 @@ module Network.Google.AndroidEnterprise.Types
181176 , sakData
182177 , sakId
183178 , sakType
179+ , sakPublicData
184180
185181 -- * InstallsListResponse
186182 , InstallsListResponse
@@ -237,15 +233,6 @@ module Network.Google.AndroidEnterprise.Types
237233 , gllrGroupLicense
238234 , gllrKind
239235
240− -- * Collection
241− , Collection
242− , collection
243− , colKind
244− , colCollectionId
245− , colVisibility
246− , colName
247− , colProductId
248−
249236 -- * ProductSet
250237 , ProductSet
251238 , productSet
@@ -388,6 +375,13 @@ module Network.Google.AndroidEnterprise.Types
388375 , appRestrictionsSchemaChangeEvent
389376 , arsceProductId
390377
378+ -- * NewDeviceEvent
379+ , NewDeviceEvent
380+ , newDeviceEvent
381+ , ndeUserId
382+ , ndeDeviceId
383+ , ndeManagementType
384+
391385 -- * AdministratorWebToken
392386 , AdministratorWebToken
393387 , administratorWebToken
@@ -446,12 +440,6 @@ module Network.Google.AndroidEnterprise.Types
446440 , productsApproveRequest
447441 , parApprovalURLInfo
448442
449− -- * CollectionViewersListResponse
450− , CollectionViewersListResponse
451− , collectionViewersListResponse
452− , cvlrKind
453− , cvlrUser
454−
455443 -- * Entitlement
456444 , Entitlement
457445 , entitlement
gogol-android-enterprise/gen/Network/Google/AndroidEnterprise/Types/Product.hs+158−266
@@ -248,59 +248,6 @@ instance ToJSON EnterpriseAccount where
248248 [Just ("kind" .= _eaKind),
249249 ("accountEmail" .=) <$> _eaAccountEmail])
250250
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−
304251-- | A typed value for the restriction.
305252--
306253-- /See:/ 'appRestrictionsSchemaRestrictionRestrictionValue' smart constructor.
@@ -841,7 +788,7 @@ instance ToJSON ManagedConfiguration where
841788 Just ("kind" .= _mcKind),
842789 ("productId" .=) <$> _mcProductId])
843790
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
845792-- displayed as part of a store page.
846793--
847794-- /See:/ 'storeCluster' smart constructor.
@@ -976,7 +923,8 @@ awtsKind = lens _awtsKind (\ s a -> s{_awtsKind = a})
976923
977924-- | The list of permissions the admin is granted within the iframe. The
978925-- 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.
980928awtsPermission :: Lens' AdministratorWebTokenSpec [Text]
981929awtsPermission
982930 = lens _awtsPermission
@@ -1013,6 +961,7 @@ data Notification = Notification'
1013961 , _nAppUpdateEvent :: !(Maybe AppUpdateEvent)
1014962 , _nInstallFailureEvent :: !(Maybe InstallFailureEvent)
1015963 , _nAppRestrictionsSchemaChangeEvent :: !(Maybe AppRestrictionsSchemaChangeEvent)
964+ , _nNewDeviceEvent :: !(Maybe NewDeviceEvent)
1016965 , _nTimestampMillis :: !(Maybe (Textual Int64))
1017966 } deriving (Eq,Show,Data,Typeable,Generic)
1018967
@@ -1034,6 +983,8 @@ data Notification = Notification'
1034983--
1035984-- * 'nAppRestrictionsSchemaChangeEvent'
1036985--
986+-- * 'nNewDeviceEvent'
987+--
1037988-- * 'nTimestampMillis'
1038989notification
1039990 :: Notification
@@ -1046,6 +997,7 @@ notification =
1046997 , _nAppUpdateEvent = Nothing
1047998 , _nInstallFailureEvent = Nothing
1048999 , _nAppRestrictionsSchemaChangeEvent = Nothing
1000+ , _nNewDeviceEvent = Nothing
10491001 , _nTimestampMillis = Nothing
10501002 }
10511003
@@ -1092,6 +1044,12 @@ nAppRestrictionsSchemaChangeEvent
10921044 = lens _nAppRestrictionsSchemaChangeEvent
10931045 (\ s a -> s{_nAppRestrictionsSchemaChangeEvent = a})
10941046
1047+-- | Notifications about new devices.
1048+nNewDeviceEvent :: Lens' Notification (Maybe NewDeviceEvent)
1049+nNewDeviceEvent
1050+ = lens _nNewDeviceEvent
1051+ (\ s a -> s{_nNewDeviceEvent = a})
1052+
10951053-- | The time when the notification was published in milliseconds since
10961054-- 1970-01-01T00:00:00Z. This will always be present.
10971055nTimestampMillis :: Lens' Notification (Maybe Int64)
@@ -1112,6 +1070,7 @@ instance FromJSON Notification where
11121070 <*> (o .:? "appUpdateEvent")
11131071 <*> (o .:? "installFailureEvent")
11141072 <*> (o .:? "appRestrictionsSchemaChangeEvent")
1073+ <*> (o .:? "newDeviceEvent")
11151074 <*> (o .:? "timestampMillis"))
11161075
11171076instance ToJSON Notification where
@@ -1128,6 +1087,7 @@ instance ToJSON Notification where
11281087 ("installFailureEvent" .=) <$> _nInstallFailureEvent,
11291088 ("appRestrictionsSchemaChangeEvent" .=) <$>
11301089 _nAppRestrictionsSchemaChangeEvent,
1090+ ("newDeviceEvent" .=) <$> _nNewDeviceEvent,
11311091 ("timestampMillis" .=) <$> _nTimestampMillis])
11321092
11331093--
@@ -1448,17 +1408,17 @@ device =
14481408dKind :: Lens' Device Text
14491409dKind = lens _dKind (\ s a -> s{_dKind = a})
14501410
1451−-- | Identifies the extent to which the device is controlled by an Android
1452−-- for Work EMM in various deployment configurations. Possible values
1411+-- | Identifies the extent to which the device is controlled by a managed
1412+-- Google Play EMM in various deployment configurations. Possible values
14531413-- include: - \"managedDevice\", a device that has the EMM\'s device policy
14541414-- controller (DPC) as the device owner, - \"managedProfile\", a device
1455−-- that has a work profile managed by the DPC (DPC is profile owner) in
1456−-- addition to a separate, personal profile that is unavailable to the DPC,
1457−-- - \"containerApp\", a device running the Android for Work App. The
1458−-- Android for Work App is managed by the DPC, - \"unmanagedProfile\", a
1459−-- device that has been allowed (by the domain\'s admin, using the Admin
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.
1415+-- that has a profile managed by the DPC (DPC is profile owner) in addition
1416+-- to a separate, personal profile that is unavailable to the DPC, -
1417+-- \"containerApp\", a device running the container App. The container App
1418+-- is managed by the DPC, - \"unmanagedProfile\", a device that has been
1419+-- allowed (by the domain\'s admin, using the Admin Console to enable the
1420+-- privilege) to use managed Google Play, but the profile is itself not
1421+-- owned by a DPC.
14621422dManagementType :: Lens' Device (Maybe Text)
14631423dManagementType
14641424 = lens _dManagementType
@@ -1491,10 +1451,11 @@ instance ToJSON Device where
14911451--
14921452-- /See:/ 'serviceAccountKey' smart constructor.
14931453data ServiceAccountKey = ServiceAccountKey'
1494− { _sakKind :: !Text
1495− , _sakData :: !(Maybe Text)
1496− , _sakId :: !(Maybe Text)
1497− , _sakType :: !(Maybe Text)
1454+ { _sakKind :: !Text
1455+ , _sakData :: !(Maybe Text)
1456+ , _sakId :: !(Maybe Text)
1457+ , _sakType :: !(Maybe Text)
1458+ , _sakPublicData :: !(Maybe Text)
14981459 } deriving (Eq,Show,Data,Typeable,Generic)
14991460
15001461-- | Creates a value of 'ServiceAccountKey' with the minimum fields required to make a request.
@@ -1508,6 +1469,8 @@ data ServiceAccountKey = ServiceAccountKey'
15081469-- * 'sakId'
15091470--
15101471-- * 'sakType'
1472+--
1473+-- * 'sakPublicData'
15111474serviceAccountKey
15121475 :: ServiceAccountKey
15131476serviceAccountKey =
@@ -1516,6 +1479,7 @@ serviceAccountKey =
15161479 , _sakData = Nothing
15171480 , _sakId = Nothing
15181481 , _sakType = Nothing
1482+ , _sakPublicData = Nothing
15191483 }
15201484
15211485-- | Identifies what kind of resource this is. Value: the fixed string
@@ -1538,6 +1502,15 @@ sakId = lens _sakId (\ s a -> s{_sakId = a})
15381502sakType :: Lens' ServiceAccountKey (Maybe Text)
15391503sakType = lens _sakType (\ s a -> s{_sakType = a})
15401504
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+
15411514instance FromJSON ServiceAccountKey where
15421515 parseJSON
15431516 = withObject "ServiceAccountKey"
@@ -1547,14 +1520,16 @@ instance FromJSON ServiceAccountKey where
15471520 "androidenterprise#serviceAccountKey")
15481521 <*> (o .:? "data")
15491522 <*> (o .:? "id")
1550− <*> (o .:? "type"))
1523+ <*> (o .:? "type")
1524+ <*> (o .:? "publicData"))
15511525
15521526instance ToJSON ServiceAccountKey where
15531527 toJSON ServiceAccountKey'{..}
15541528 = object
15551529 (catMaybes
15561530 [Just ("kind" .= _sakKind), ("data" .=) <$> _sakData,
1557− ("id" .=) <$> _sakId, ("type" .=) <$> _sakType])
1531+ ("id" .=) <$> _sakId, ("type" .=) <$> _sakType,
1532+ ("publicData" .=) <$> _sakPublicData])
15581533
15591534-- | The install resources for the device.
15601535--
@@ -1743,8 +1718,8 @@ instance ToJSON AppRestrictionsSchemaRestriction
17431718 ("description" .=) <$> _arsrDescription,
17441719 ("nestedRestriction" .=) <$> _arsrNestedRestriction])
17451720
1746−-- | This represents an enterprise administrator who can manage the
1747−-- enterprise in the Google Play for Work Store.
1721+-- | This represents an enterprise admin who can manage the enterprise in the
1722+-- managed Google Play store.
17481723--
17491724-- /See:/ 'administrator' smart constructor.
17501725newtype Administrator = Administrator'
@@ -1763,7 +1738,7 @@ administrator =
17631738 { _aEmail = Nothing
17641739 }
17651740
1766−-- | The administrator\'s email address.
1741+-- | The admin\'s email address.
17671742aEmail :: Lens' Administrator (Maybe Text)
17681743aEmail = lens _aEmail (\ s a -> s{_aEmail = a})
17691744
@@ -1907,7 +1882,7 @@ avVersionCode
19071882 (\ s a -> s{_avVersionCode = a})
19081883 . mapping _Coerce
19091884
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
19111886-- version. The string is not necessarily unique or localized (for example,
19121887-- the string could be \"1.4\").
19131888avVersionString :: Lens' AppVersion (Maybe Text)
@@ -2021,107 +1996,6 @@ instance ToJSON GroupLicensesListResponse where
20211996 [("groupLicense" .=) <$> _gllrGroupLicense,
20221997 Just ("kind" .= _gllrKind)])
20231998
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−
21251999-- | A set of products.
21262000--
21272001-- /See:/ 'productSet' smart constructor.
@@ -2157,8 +2031,10 @@ psKind = lens _psKind (\ s a -> s{_psKind = a})
21572031-- | The interpretation of this product set. \"unknown\" should never be sent
21582032-- and ignored if received. \"whitelist\" means that this product set
21592033-- constitutes a whitelist. \"includeAll\" means that all products are
2160−-- accessible (the value of the productId field is therefore ignored). If a
2161−-- value is not supplied, it is interpreted to be \"whitelist\" for
2034+-- accessible, including products that are approved, not approved, and even
2035+-- products where approval has been revoked. If the value is
2036+-- \"includeAll\", the value of the productId field is therefore ignored.
2037+-- If a value is not supplied, it is interpreted to be \"whitelist\" for
21622038-- backwards compatibility.
21632039psProductSetBehavior :: Lens' ProductSet (Maybe Text)
21642040psProductSetBehavior
@@ -2328,12 +2204,13 @@ instance ToJSON ServiceAccountKeysListResponse where
23282204-- | A Users resource represents an account associated with an enterprise.
23292205-- The account may be specific to a device or to an individual user (who
23302206-- can then use the account across multiple devices). The account may
2331−-- provide access to Google Play for Work only, or to other Google
2332−-- services, depending on the identity model: - Google managed domain
2333−-- identity model requires synchronization to Google account sources (via
2334−-- primaryEmail). - Android for Work Accounts identity model provides a
2335−-- dynamic means for enterprises to create user or device accounts as
2336−-- needed. These accounts provide access to Google Play for Work only.
2207+-- provide access to managed Google Play only, or to other Google services,
2208+-- depending on the identity model: - The Google managed domain identity
2209+-- model requires synchronization to Google account sources (via
2210+-- primaryEmail). - The managed Google Play Accounts identity model
2211+-- provides a dynamic means for enterprises to create user or device
2212+-- accounts as needed. These accounts provide access to managed Google
2213+-- Play.
23372214--
23382215-- /See:/ 'user' smart constructor.
23392216data User = User'
@@ -2554,9 +2431,9 @@ instance ToJSON ProductsGenerateApprovalURLResponse
25542431 toJSON ProductsGenerateApprovalURLResponse'{..}
25552432 = object (catMaybes [("url" .=) <$> _pgaurURL])
25562433
2557−-- | Definition of a Google Play for Work store page, made of a localized
2558−-- name and links to other pages. A page also contains clusters defined as
2559−-- a subcollection.
2434+-- | Definition of a managed Google Play store page, made of a localized name
2435+-- and links to other pages. A page also contains clusters defined as a
2436+-- subcollection.
25602437--
25612438-- /See:/ 'storePage' smart constructor.
25622439data StorePage = StorePage'
@@ -3001,9 +2878,9 @@ instance ToJSON LocalizedText where
30012878 ("locale" .=) <$> _ltLocale])
30022879
30032880-- | 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
3005−-- email address and token (activation code) the appropriate EMM app can be
3006−-- automatically downloaded.
2881+-- profile with their managed Google Play account on a device. When the
2882+-- user enters their email address and token (activation code) the
2883+-- appropriate EMM app can be automatically downloaded.
30072884--
30082885-- /See:/ 'userToken' smart constructor.
30092886data UserToken = UserToken'
@@ -3117,12 +2994,13 @@ instance ToJSON DevicesListResponse where
31172994-- customers, the process involves using Enterprises.enroll and
31182995-- Enterprises.setAccount (in conjunction with artifacts obtained from the
31192996-- 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
3121−-- customers, the process involves using Enterprises.generateSignupUrl and
3122−-- Enterprises.completeSignup in conjunction with the Android for Work
3123−-- Sign-up UI (Google-provided mechanism) to create the binding without
3124−-- manual steps. As an EMM, you can support either or both approaches in
3125−-- your EMM console. See Create an Enterprise for details.
2997+-- through a more-or-less manual process. - For managed Google Play
2998+-- Accounts customers, the process involves using
2999+-- Enterprises.generateSignupUrl and Enterprises.completeSignup in
3000+-- conjunction with the managed Google Play sign-up UI (Google-provided
3001+-- mechanism) to create the binding without manual steps. As an EMM, you
3002+-- can support either or both approaches in your EMM console. See Create an
3003+-- Enterprise for details.
31263004--
31273005-- /See:/ 'enterprise' smart constructor.
31283006data Enterprise = Enterprise'
@@ -3162,8 +3040,8 @@ enterprise =
31623040eKind :: Lens' Enterprise Text
31633041eKind = lens _eKind (\ s a -> s{_eKind = a})
31643042
3165−-- | Administrators of the enterprise. This is only supported for enterprises
3166−-- created via the EMM-initiated flow.
3043+-- | Admins of the enterprise. This is only supported for enterprises created
3044+-- via the EMM-initiated flow.
31673045eAdministrator :: Lens' Enterprise [Administrator]
31683046eAdministrator
31693047 = lens _eAdministrator
@@ -3346,8 +3224,8 @@ instance ToJSON
33463224 _mcfulrManagedConfigurationForUser,
33473225 Just ("kind" .= _mcfulrKind)])
33483226
3349−-- | General setting for the Google Play for Work store layout, currently
3350−-- only specifying the page to display the first time the store is opened.
3227+-- | General setting for the managed Google Play store layout, currently only
3228+-- specifying the page to display the first time the store is opened.
33513229--
33523230-- /See:/ 'storeLayout' smart constructor.
33533231data StoreLayout = StoreLayout'
@@ -3374,13 +3252,14 @@ storeLayout =
33743252 , _slHomepageId = Nothing
33753253 }
33763254
3377−-- | Sets a store layout type. If set to \"custom\", \"homepageId\" must be
3378−-- specified. If set to \"basic\", the layout will consist of all approved
3379−-- apps accessible by the user, split in pages of 100 each; in this case,
3380−-- \"homepageId\" must not be specified. The \"basic\" setting takes
3381−-- precedence over any existing collections setup for this enterprise (if
3382−-- any). Should the enterprise use collectionViewers for controlling access
3383−-- rights, these will still be respected.
3255+-- | The store layout type. By default, this value is set to \"basic\". If
3256+-- set to \"custom\", \"homepageId\" must be specified. If set to
3257+-- \"basic\", the layout will consist of all approved apps accessible by
3258+-- the user, split in pages of 100 each; in this case, \"homepageId\" must
3259+-- not be specified. The \"basic\" setting takes precedence over any
3260+-- existing collections setup for this enterprise (if any). Should the
3261+-- enterprise use collectionViewers for controlling access rights, these
3262+-- will still be respected.
33843263slStoreLayoutType :: Lens' StoreLayout (Maybe Text)
33853264slStoreLayoutType
33863265 = lens _slStoreLayoutType
@@ -3392,7 +3271,7 @@ slKind :: Lens' StoreLayout Text
33923271slKind = lens _slKind (\ s a -> s{_slKind = a})
33933272
33943273-- | 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
33963275-- homepage has not been set, the Play store shown on devices will be
33973276-- empty. Not specifying a homepage on a store layout effectively empties
33983277-- the store. If there exists at least one page, this field must be set to
@@ -3460,7 +3339,71 @@ instance ToJSON AppRestrictionsSchemaChangeEvent
34603339 = object
34613340 (catMaybes [("productId" .=) <$> _arsceProductId])
34623341
3463−-- | A token authorizing an administrator to access an iframe.
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+
3406+-- | A token authorizing an admin to access an iframe.
34643407--
34653408-- /See:/ 'administratorWebToken' smart constructor.
34663409data AdministratorWebToken = AdministratorWebToken'
@@ -3570,7 +3513,7 @@ instance ToJSON SignupInfo where
35703513 [("completionToken" .=) <$> _siCompletionToken,
35713514 Just ("kind" .= _siKind), ("url" .=) <$> _siURL])
35723515
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
35743517-- available to at least some users in the enterprise. (Some apps are
35753518-- restricted to a single enterprise, and no information about them is made
35763519-- available outside that enterprise.) The information provided for each
@@ -3656,15 +3599,15 @@ pAuthorName
36563599pKind :: Lens' Product Text
36573600pKind = lens _pKind (\ s a -> s{_pKind = a})
36583601
3659−-- | A link to the Google Play for Work details page for the product, for use
3660−-- by an Enterprise administrator.
3602+-- | A link to the managed Google Play details page for the product, for use
3603+-- by an Enterprise admin.
36613604pWorkDetailsURL :: Lens' Product (Maybe Text)
36623605pWorkDetailsURL
36633606 = lens _pWorkDetailsURL
36643607 (\ s a -> s{_pWorkDetailsURL = a})
36653608
3666−-- | Whether this app can only be installed on devices using the Android for
3667−-- Work container app.
3609+-- | Whether this app can only be installed on devices using the Android
3610+-- container app.
36683611pRequiresContainerApp :: Lens' Product (Maybe Bool)
36693612pRequiresContainerApp
36703613 = lens _pRequiresContainerApp
@@ -3689,7 +3632,7 @@ pProductPricing
36893632
36903633-- | How and to whom the package is made available. The value
36913634-- 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
36933636-- privateGoogleHosted means that the package is a private app (restricted
36943637-- to an enterprise) but hosted by Google. The value privateSelfHosted
36953638-- means that the package is a private app (restricted to an enterprise)
@@ -3991,57 +3934,6 @@ instance ToJSON ProductsApproveRequest where
39913934 (catMaybes
39923935 [("approvalUrlInfo" .=) <$> _parApprovalURLInfo])
39933936
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−
40453937-- | The existence of an entitlement resource means that a user has the right
40463938-- to use a particular app on any of their devices. This might be because
40473939-- the app is free or because they have been allocated a license to the app
@@ -4173,7 +4065,7 @@ plrPageInfo
41734065plrKind :: Lens' ProductsListResponse Text
41744066plrKind = lens _plrKind (\ s a -> s{_plrKind = a})
41754067
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
41774069-- display to an enterprise admin.
41784070plrProduct :: Lens' ProductsListResponse [Product]
41794071plrProduct
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 @@
2121-- Portability : non-portable (GHC extensions)
2222--
2323-- 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
25−-- token may only be used to start one UI session. See the javascript API
26−-- documentation for further information.
24+-- pass the generated token into the managed Google Play javascript API.
25+-- Each token may only be used to start one UI session. See the javascript
26+-- API documentation for further information.
2727--
2828-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.createWebToken@.
2929module Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken
@@ -56,9 +56,9 @@ type EnterprisesCreateWebTokenResource =
5656 Post '[JSON] AdministratorWebToken
5757
5858-- | 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
60−-- token may only be used to start one UI session. See the javascript API
61−-- documentation for further information.
59+-- pass the generated token into the managed Google Play javascript API.
60+-- Each token may only be used to start one UI session. See the javascript
61+-- API documentation for further information.
6262--
6363-- /See:/ 'enterprisesCreateWebToken' smart constructor.
6464data EnterprisesCreateWebToken = EnterprisesCreateWebToken'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hs+14−2
@@ -20,7 +20,13 @@
2020-- Stability : auto-generated
2121-- Portability : non-portable (GHC extensions)
2222--
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.
2430--
2531-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setStoreLayout@.
2632module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout
@@ -52,7 +58,13 @@ type EnterprisesSetStoreLayoutResource =
5258 ReqBody '[JSON] StoreLayout :>
5359 Put '[JSON] StoreLayout
5460
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.
5668--
5769-- /See:/ 'enterprisesSetStoreLayout' smart constructor.
5870data EnterprisesSetStoreLayout = EnterprisesSetStoreLayout'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs+6−6
@@ -22,9 +22,9 @@
2222--
2323-- Approves the specified product and the relevant app permissions, if any.
2424-- The maximum number of products that you can approve per enterprise
25−-- customer is 1,000. To learn how to use Google Play for Work to design
26−-- and create a store layout to display approved products to your users,
27−-- see Store Layout Design.
25+-- customer is 1,000. To learn how to use managed Google Play to design and
26+-- create a store layout to display approved products to your users, see
27+-- Store Layout Design.
2828--
2929-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@.
3030module Network.Google.Resource.AndroidEnterprise.Products.Approve
@@ -61,9 +61,9 @@ type ProductsApproveResource =
6161
6262-- | Approves the specified product and the relevant app permissions, if any.
6363-- The maximum number of products that you can approve per enterprise
64−-- customer is 1,000. To learn how to use Google Play for Work to design
65−-- and create a store layout to display approved products to your users,
66−-- see Store Layout Design.
64+-- customer is 1,000. To learn how to use managed Google Play to design and
65+-- create a store layout to display approved products to your users, see
66+-- Store Layout Design.
6767--
6868-- /See:/ 'productsApprove' smart constructor.
6969data ProductsApprove = ProductsApprove'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs+6−6
@@ -23,9 +23,9 @@
2323-- Retrieves the schema that defines the configurable properties for this
2424-- product. All products have a schema, but this schema may be empty if no
2525-- managed configurations have been defined. This schema can be used to
26−-- populate a UI that allows an administrator to configure the product. To
27−-- apply a managed configuration based on the schema obtained using this
28−-- API, see Managed Configurations through Play.
26+-- populate a UI that allows an admin to configure the product. To apply a
27+-- managed configuration based on the schema obtained using this API, see
28+-- Managed Configurations through Play.
2929--
3030-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.
3131module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema
@@ -63,9 +63,9 @@ type ProductsGetAppRestrictionsSchemaResource =
6363-- | Retrieves the schema that defines the configurable properties for this
6464-- product. All products have a schema, but this schema may be empty if no
6565-- managed configurations have been defined. This schema can be used to
66−-- populate a UI that allows an administrator to configure the product. To
67−-- apply a managed configuration based on the schema obtained using this
68−-- API, see Managed Configurations through Play.
66+-- populate a UI that allows an admin to configure the product. To apply a
67+-- managed configuration based on the schema obtained using this API, see
68+-- Managed Configurations through Play.
6969--
7070-- /See:/ 'productsGetAppRestrictionsSchema' smart constructor.
7171data ProductsGetAppRestrictionsSchema = ProductsGetAppRestrictionsSchema'
gogol-android-enterprise/gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs+1−1
@@ -115,7 +115,7 @@ plEnterpriseId
115115plToken :: Lens' ProductsList (Maybe Text)
116116plToken = lens _plToken (\ s a -> s{_plToken = a})
117117
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
119119-- omitted, all approved apps will be returned (using the pagination
120120-- parameters), including apps that are not available in the store (e.g.
121121-- 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 @@
2121-- Portability : non-portable (GHC extensions)
2222--
2323-- Generates a token (activation code) to allow this user to configure
24−-- their work account in the Android Setup Wizard. Revokes any previously
25−-- generated token. This call only works with Google managed accounts.
24+-- their managed account in the Android Setup Wizard. Revokes any
25+-- previously generated token. This call only works with Google managed
26+-- accounts.
2627--
2728-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateToken@.
2829module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken
@@ -55,8 +56,9 @@ type UsersGenerateTokenResource =
5556 QueryParam "alt" AltJSON :> Post '[JSON] UserToken
5657
5758-- | Generates a token (activation code) to allow this user to configure
58−-- their work account in the Android Setup Wizard. Revokes any previously
59−-- generated token. This call only works with Google managed accounts.
59+-- their managed account in the Android Setup Wizard. Revokes any
60+-- previously generated token. This call only works with Google managed
61+-- accounts.
6062--
6163-- /See:/ 'usersGenerateToken' smart constructor.
6264data UsersGenerateToken = UsersGenerateToken'
gogol-android-enterprise/gogol-android-enterprise.cabal−12
@@ -35,17 +35,6 @@ library
3535 exposed-modules:
3636 Network.Google.AndroidEnterprise
3737 , 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
4938 , Network.Google.Resource.AndroidEnterprise.Devices.Get
5039 , Network.Google.Resource.AndroidEnterprise.Devices.GetState
5140 , Network.Google.Resource.AndroidEnterprise.Devices.List
@@ -97,7 +86,6 @@ library
9786 , Network.Google.Resource.AndroidEnterprise.Products.GetPermissions
9887 , Network.Google.Resource.AndroidEnterprise.Products.List
9988 , Network.Google.Resource.AndroidEnterprise.Products.UnApprove
100− , Network.Google.Resource.AndroidEnterprise.Products.UpdatePermissions
10189 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete
10290 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert
10391 , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List