@@ -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