gogol-android-enterprise 0.5.0 → 1.0.0
raw patch · 173 files changed
+17676/−17796 lines, 173 filesdep −basedep ~gogol-coresetup-changed
Dependencies removed: base
Dependency ranges changed: gogol-core
Files
- README.md +1/−1
- Setup.hs +2/−1
- gen/Gogol/AndroidEnterprise.hs +1008/−0
- gen/Gogol/AndroidEnterprise/Devices/ForceReportUpload.hs +136/−0
- gen/Gogol/AndroidEnterprise/Devices/Get.hs +127/−0
- gen/Gogol/AndroidEnterprise/Devices/GetState.hs +128/−0
- gen/Gogol/AndroidEnterprise/Devices/List.hs +120/−0
- gen/Gogol/AndroidEnterprise/Devices/SetState.hs +139/−0
- gen/Gogol/AndroidEnterprise/Devices/Update.hs +143/−0
- gen/Gogol/AndroidEnterprise/EnrollmentTokens/Create.hs +121/−0
- gen/Gogol/AndroidEnterprise/Enterprises/AcknowledgeNotificationSet.hs +118/−0
- gen/Gogol/AndroidEnterprise/Enterprises/CompleteSignup.hs +120/−0
- gen/Gogol/AndroidEnterprise/Enterprises/CreateWebToken.hs +126/−0
- gen/Gogol/AndroidEnterprise/Enterprises/Enroll.hs +121/−0
- gen/Gogol/AndroidEnterprise/Enterprises/GenerateEnterpriseUpgradeUrl.hs +134/−0
- gen/Gogol/AndroidEnterprise/Enterprises/GenerateSignupUrl.hs +126/−0
- gen/Gogol/AndroidEnterprise/Enterprises/Get.hs +111/−0
- gen/Gogol/AndroidEnterprise/Enterprises/GetServiceAccount.hs +125/−0
- gen/Gogol/AndroidEnterprise/Enterprises/GetStoreLayout.hs +117/−0
- gen/Gogol/AndroidEnterprise/Enterprises/List.hs +111/−0
- gen/Gogol/AndroidEnterprise/Enterprises/PullNotificationSet.hs +120/−0
- gen/Gogol/AndroidEnterprise/Enterprises/SendTestPushNotification.hs +123/−0
- gen/Gogol/AndroidEnterprise/Enterprises/SetAccount.hs +121/−0
- gen/Gogol/AndroidEnterprise/Enterprises/SetStoreLayout.hs +124/−0
- gen/Gogol/AndroidEnterprise/Enterprises/Unenroll.hs +114/−0
- gen/Gogol/AndroidEnterprise/Entitlements/Delete.hs +132/−0
- gen/Gogol/AndroidEnterprise/Entitlements/Get.hs +130/−0
- gen/Gogol/AndroidEnterprise/Entitlements/List.hs +124/−0
- gen/Gogol/AndroidEnterprise/Entitlements/Update.hs +145/−0
- gen/Gogol/AndroidEnterprise/Grouplicenses/Get.hs +121/−0
- gen/Gogol/AndroidEnterprise/Grouplicenses/List.hs +116/−0
- gen/Gogol/AndroidEnterprise/Grouplicenseusers/List.hs +126/−0
- gen/Gogol/AndroidEnterprise/Installs/Delete.hs +139/−0
- gen/Gogol/AndroidEnterprise/Installs/Get.hs +139/−0
- gen/Gogol/AndroidEnterprise/Installs/List.hs +128/−0
- gen/Gogol/AndroidEnterprise/Installs/Update.hs +147/−0
- gen/Gogol/AndroidEnterprise/Internal/Product.hs +4106/−0
- gen/Gogol/AndroidEnterprise/Internal/Sum.hs +2025/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/Delete.hs +148/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/Get.hs +150/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/List.hs +141/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/Update.hs +158/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/Delete.hs +139/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/Get.hs +140/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/List.hs +131/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/Update.hs +149/−0
- gen/Gogol/AndroidEnterprise/Managedconfigurationssettings/List.hs +132/−0
- gen/Gogol/AndroidEnterprise/Permissions/Get.hs +116/−0
- gen/Gogol/AndroidEnterprise/Products/Approve.hs +127/−0
- gen/Gogol/AndroidEnterprise/Products/GenerateApprovalUrl.hs +135/−0
- gen/Gogol/AndroidEnterprise/Products/Get.hs +124/−0
- gen/Gogol/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs +136/−0
- gen/Gogol/AndroidEnterprise/Products/GetPermissions.hs +124/−0
- gen/Gogol/AndroidEnterprise/Products/List.hs +137/−0
- gen/Gogol/AndroidEnterprise/Products/Unapprove.hs +122/−0
- gen/Gogol/AndroidEnterprise/Serviceaccountkeys/Delete.hs +124/−0
- gen/Gogol/AndroidEnterprise/Serviceaccountkeys/Insert.hs +126/−0
- gen/Gogol/AndroidEnterprise/Serviceaccountkeys/List.hs +116/−0
- gen/Gogol/AndroidEnterprise/Storelayoutclusters/Delete.hs +136/−0
- gen/Gogol/AndroidEnterprise/Storelayoutclusters/Get.hs +133/−0
- gen/Gogol/AndroidEnterprise/Storelayoutclusters/Insert.hs +136/−0
- gen/Gogol/AndroidEnterprise/Storelayoutclusters/List.hs +128/−0
- gen/Gogol/AndroidEnterprise/Storelayoutclusters/Update.hs +144/−0
- gen/Gogol/AndroidEnterprise/Storelayoutpages/Delete.hs +122/−0
- gen/Gogol/AndroidEnterprise/Storelayoutpages/Get.hs +122/−0
- gen/Gogol/AndroidEnterprise/Storelayoutpages/Insert.hs +122/−0
- gen/Gogol/AndroidEnterprise/Storelayoutpages/List.hs +117/−0
- gen/Gogol/AndroidEnterprise/Storelayoutpages/Update.hs +132/−0
- gen/Gogol/AndroidEnterprise/Types.hs +553/−0
- gen/Gogol/AndroidEnterprise/Users/Delete.hs +119/−0
- gen/Gogol/AndroidEnterprise/Users/GenerateAuthenticationToken.hs +131/−0
- gen/Gogol/AndroidEnterprise/Users/Get.hs +119/−0
- gen/Gogol/AndroidEnterprise/Users/GetAvailableProductSet.hs +126/−0
- gen/Gogol/AndroidEnterprise/Users/Insert.hs +119/−0
- gen/Gogol/AndroidEnterprise/Users/List.hs +119/−0
- gen/Gogol/AndroidEnterprise/Users/RevokeDeviceAccess.hs +125/−0
- gen/Gogol/AndroidEnterprise/Users/SetAvailableProductSet.hs +136/−0
- gen/Gogol/AndroidEnterprise/Users/Update.hs +126/−0
- gen/Gogol/AndroidEnterprise/Webapps/Delete.hs +119/−0
- gen/Gogol/AndroidEnterprise/Webapps/Get.hs +119/−0
- gen/Gogol/AndroidEnterprise/Webapps/Insert.hs +119/−0
- gen/Gogol/AndroidEnterprise/Webapps/List.hs +112/−0
- gen/Gogol/AndroidEnterprise/Webapps/Update.hs +126/−0
- gen/Network/Google/AndroidEnterprise.hs +0/−1062
- gen/Network/Google/AndroidEnterprise/Types.hs +0/−632
- gen/Network/Google/AndroidEnterprise/Types/Product.hs +0/−5934
- gen/Network/Google/AndroidEnterprise/Types/Sum.hs +0/−79
- gen/Network/Google/Resource/AndroidEnterprise/Devices/Get.hs +0/−116
- gen/Network/Google/Resource/AndroidEnterprise/Devices/GetState.hs +0/−127
- gen/Network/Google/Resource/AndroidEnterprise/Devices/List.hs +0/−101
- gen/Network/Google/Resource/AndroidEnterprise/Devices/Patch.hs +0/−143
- gen/Network/Google/Resource/AndroidEnterprise/Devices/SetState.hs +0/−141
- gen/Network/Google/Resource/AndroidEnterprise/Devices/Update.hs +0/−143
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/AcknowledgeNotificationSet.hs +0/−98
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/CompleteSignup.hs +0/−107
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/CreateWebToken.hs +0/−111
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Enroll.hs +0/−99
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GenerateSignupURL.hs +0/−97
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Get.hs +0/−88
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GetServiceAccount.hs +0/−125
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GetStoreLayout.hs +0/−93
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/List.hs +0/−95
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/PullNotificationSet.hs +0/−127
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SendTestPushNotification.hs +0/−100
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetAccount.hs +0/−105
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hs +0/−116
- gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Unenroll.hs +0/−90
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Delete.hs +0/−119
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Get.hs +0/−119
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/List.hs +0/−102
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Patch.hs +0/−150
- gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Update.hs +0/−148
- gen/Network/Google/Resource/AndroidEnterprise/GrouplicenseUsers/List.hs +0/−112
- gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/Get.hs +0/−104
- gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/List.hs +0/−93
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Delete.hs +0/−135
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Get.hs +0/−131
- gen/Network/Google/Resource/AndroidEnterprise/Installs/List.hs +0/−118
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Patch.hs +0/−148
- gen/Network/Google/Resource/AndroidEnterprise/Installs/Update.hs +0/−148
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Delete.hs +0/−142
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Get.hs +0/−141
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/List.hs +0/−127
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Patch.hs +0/−157
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Update.hs +0/−157
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Delete.hs +0/−126
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Get.hs +0/−128
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/List.hs +0/−110
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Patch.hs +0/−149
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Update.hs +0/−149
- gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationssettings/List.hs +0/−111
- gen/Network/Google/Resource/AndroidEnterprise/Permissions/Get.hs +0/−101
- gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs +0/−127
- gen/Network/Google/Resource/AndroidEnterprise/Products/GenerateApprovalURL.hs +0/−138
- gen/Network/Google/Resource/AndroidEnterprise/Products/Get.hs +0/−116
- gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs +0/−136
- gen/Network/Google/Resource/AndroidEnterprise/Products/GetPermissions.hs +0/−104
- gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs +0/−163
- gen/Network/Google/Resource/AndroidEnterprise/Products/UnApprove.hs +0/−105
- gen/Network/Google/Resource/AndroidEnterprise/ServiceAccountkeys/Delete.hs +0/−109
- gen/Network/Google/Resource/AndroidEnterprise/ServiceAccountkeys/Insert.hs +0/−111
- gen/Network/Google/Resource/AndroidEnterprise/ServiceAccountkeys/List.hs +0/−100
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Delete.hs +0/−120
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Get.hs +0/−119
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Insert.hs +0/−118
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/List.hs +0/−106
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Patch.hs +0/−133
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Update.hs +0/−134
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Delete.hs +0/−102
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Get.hs +0/−102
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Insert.hs +0/−103
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/List.hs +0/−93
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Patch.hs +0/−119
- gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Update.hs +0/−117
- gen/Network/Google/Resource/AndroidEnterprise/Users/Delete.hs +0/−99
- gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateAuthenticationToken.hs +0/−116
- gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateToken.hs +0/−109
- gen/Network/Google/Resource/AndroidEnterprise/Users/Get.hs +0/−99
- gen/Network/Google/Resource/AndroidEnterprise/Users/GetAvailableProductSet.hs +0/−104
- gen/Network/Google/Resource/AndroidEnterprise/Users/Insert.hs +0/−108
- gen/Network/Google/Resource/AndroidEnterprise/Users/List.hs +0/−106
- gen/Network/Google/Resource/AndroidEnterprise/Users/Patch.hs +0/−123
- gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeDeviceAccess.hs +0/−107
- gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeToken.hs +0/−103
- gen/Network/Google/Resource/AndroidEnterprise/Users/SetAvailableProductSet.hs +0/−125
- gen/Network/Google/Resource/AndroidEnterprise/Users/Update.hs +0/−121
- gen/Network/Google/Resource/AndroidEnterprise/WebApps/Delete.hs +0/−101
- gen/Network/Google/Resource/AndroidEnterprise/WebApps/Get.hs +0/−101
- gen/Network/Google/Resource/AndroidEnterprise/WebApps/Insert.hs +0/−101
- gen/Network/Google/Resource/AndroidEnterprise/WebApps/List.hs +0/−90
- gen/Network/Google/Resource/AndroidEnterprise/WebApps/Patch.hs +0/−116
- gen/Network/Google/Resource/AndroidEnterprise/WebApps/Update.hs +0/−116
- gogol-android-enterprise.cabal +127/−120
README.md view
@@ -8,7 +8,7 @@ ## Version -`0.5.0`+`1.0.0` ## Description
Setup.hs view
@@ -1,2 +1,3 @@-import Distribution.Simple+import Distribution.Simple+ main = defaultMain
+ gen/Gogol/AndroidEnterprise.hs view
@@ -0,0 +1,1008 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Manages the deployment of apps to Android Enterprise devices.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference>+module Gogol.AndroidEnterprise+ ( -- * Configuration+ androidEnterpriseService,++ -- * OAuth Scopes+ Androidenterprise'FullControl,++ -- * Resources++ -- ** androidenterprise.devices.forceReportUpload+ AndroidEnterpriseDevicesForceReportUploadResource,+ AndroidEnterpriseDevicesForceReportUpload (..),+ newAndroidEnterpriseDevicesForceReportUpload,++ -- ** androidenterprise.devices.get+ AndroidEnterpriseDevicesGetResource,+ AndroidEnterpriseDevicesGet (..),+ newAndroidEnterpriseDevicesGet,++ -- ** androidenterprise.devices.getState+ AndroidEnterpriseDevicesGetStateResource,+ AndroidEnterpriseDevicesGetState (..),+ newAndroidEnterpriseDevicesGetState,++ -- ** androidenterprise.devices.list+ AndroidEnterpriseDevicesListResource,+ AndroidEnterpriseDevicesList (..),+ newAndroidEnterpriseDevicesList,++ -- ** androidenterprise.devices.setState+ AndroidEnterpriseDevicesSetStateResource,+ AndroidEnterpriseDevicesSetState (..),+ newAndroidEnterpriseDevicesSetState,++ -- ** androidenterprise.devices.update+ AndroidEnterpriseDevicesUpdateResource,+ AndroidEnterpriseDevicesUpdate (..),+ newAndroidEnterpriseDevicesUpdate,++ -- ** androidenterprise.enrollmentTokens.create+ AndroidEnterpriseEnrollmentTokensCreateResource,+ AndroidEnterpriseEnrollmentTokensCreate (..),+ newAndroidEnterpriseEnrollmentTokensCreate,++ -- ** androidenterprise.enterprises.acknowledgeNotificationSet+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSetResource,+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSet (..),+ newAndroidEnterpriseEnterprisesAcknowledgeNotificationSet,++ -- ** androidenterprise.enterprises.completeSignup+ AndroidEnterpriseEnterprisesCompleteSignupResource,+ AndroidEnterpriseEnterprisesCompleteSignup (..),+ newAndroidEnterpriseEnterprisesCompleteSignup,++ -- ** androidenterprise.enterprises.createWebToken+ AndroidEnterpriseEnterprisesCreateWebTokenResource,+ AndroidEnterpriseEnterprisesCreateWebToken (..),+ newAndroidEnterpriseEnterprisesCreateWebToken,++ -- ** androidenterprise.enterprises.enroll+ AndroidEnterpriseEnterprisesEnrollResource,+ AndroidEnterpriseEnterprisesEnroll (..),+ newAndroidEnterpriseEnterprisesEnroll,++ -- ** androidenterprise.enterprises.generateEnterpriseUpgradeUrl+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrlResource,+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl (..),+ newAndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl,++ -- ** androidenterprise.enterprises.generateSignupUrl+ AndroidEnterpriseEnterprisesGenerateSignupUrlResource,+ AndroidEnterpriseEnterprisesGenerateSignupUrl (..),+ newAndroidEnterpriseEnterprisesGenerateSignupUrl,++ -- ** androidenterprise.enterprises.get+ AndroidEnterpriseEnterprisesGetResource,+ AndroidEnterpriseEnterprisesGet (..),+ newAndroidEnterpriseEnterprisesGet,++ -- ** androidenterprise.enterprises.getServiceAccount+ AndroidEnterpriseEnterprisesGetServiceAccountResource,+ AndroidEnterpriseEnterprisesGetServiceAccount (..),+ newAndroidEnterpriseEnterprisesGetServiceAccount,++ -- ** androidenterprise.enterprises.getStoreLayout+ AndroidEnterpriseEnterprisesGetStoreLayoutResource,+ AndroidEnterpriseEnterprisesGetStoreLayout (..),+ newAndroidEnterpriseEnterprisesGetStoreLayout,++ -- ** androidenterprise.enterprises.list+ AndroidEnterpriseEnterprisesListResource,+ AndroidEnterpriseEnterprisesList (..),+ newAndroidEnterpriseEnterprisesList,++ -- ** androidenterprise.enterprises.pullNotificationSet+ AndroidEnterpriseEnterprisesPullNotificationSetResource,+ AndroidEnterpriseEnterprisesPullNotificationSet (..),+ newAndroidEnterpriseEnterprisesPullNotificationSet,++ -- ** androidenterprise.enterprises.sendTestPushNotification+ AndroidEnterpriseEnterprisesSendTestPushNotificationResource,+ AndroidEnterpriseEnterprisesSendTestPushNotification (..),+ newAndroidEnterpriseEnterprisesSendTestPushNotification,++ -- ** androidenterprise.enterprises.setAccount+ AndroidEnterpriseEnterprisesSetAccountResource,+ AndroidEnterpriseEnterprisesSetAccount (..),+ newAndroidEnterpriseEnterprisesSetAccount,++ -- ** androidenterprise.enterprises.setStoreLayout+ AndroidEnterpriseEnterprisesSetStoreLayoutResource,+ AndroidEnterpriseEnterprisesSetStoreLayout (..),+ newAndroidEnterpriseEnterprisesSetStoreLayout,++ -- ** androidenterprise.enterprises.unenroll+ AndroidEnterpriseEnterprisesUnenrollResource,+ AndroidEnterpriseEnterprisesUnenroll (..),+ newAndroidEnterpriseEnterprisesUnenroll,++ -- ** androidenterprise.entitlements.delete+ AndroidEnterpriseEntitlementsDeleteResource,+ AndroidEnterpriseEntitlementsDelete (..),+ newAndroidEnterpriseEntitlementsDelete,++ -- ** androidenterprise.entitlements.get+ AndroidEnterpriseEntitlementsGetResource,+ AndroidEnterpriseEntitlementsGet (..),+ newAndroidEnterpriseEntitlementsGet,++ -- ** androidenterprise.entitlements.list+ AndroidEnterpriseEntitlementsListResource,+ AndroidEnterpriseEntitlementsList (..),+ newAndroidEnterpriseEntitlementsList,++ -- ** androidenterprise.entitlements.update+ AndroidEnterpriseEntitlementsUpdateResource,+ AndroidEnterpriseEntitlementsUpdate (..),+ newAndroidEnterpriseEntitlementsUpdate,++ -- ** androidenterprise.grouplicenses.get+ AndroidEnterpriseGrouplicensesGetResource,+ AndroidEnterpriseGrouplicensesGet (..),+ newAndroidEnterpriseGrouplicensesGet,++ -- ** androidenterprise.grouplicenses.list+ AndroidEnterpriseGrouplicensesListResource,+ AndroidEnterpriseGrouplicensesList (..),+ newAndroidEnterpriseGrouplicensesList,++ -- ** androidenterprise.grouplicenseusers.list+ AndroidEnterpriseGrouplicenseusersListResource,+ AndroidEnterpriseGrouplicenseusersList (..),+ newAndroidEnterpriseGrouplicenseusersList,++ -- ** androidenterprise.installs.delete+ AndroidEnterpriseInstallsDeleteResource,+ AndroidEnterpriseInstallsDelete (..),+ newAndroidEnterpriseInstallsDelete,++ -- ** androidenterprise.installs.get+ AndroidEnterpriseInstallsGetResource,+ AndroidEnterpriseInstallsGet (..),+ newAndroidEnterpriseInstallsGet,++ -- ** androidenterprise.installs.list+ AndroidEnterpriseInstallsListResource,+ AndroidEnterpriseInstallsList (..),+ newAndroidEnterpriseInstallsList,++ -- ** androidenterprise.installs.update+ AndroidEnterpriseInstallsUpdateResource,+ AndroidEnterpriseInstallsUpdate (..),+ newAndroidEnterpriseInstallsUpdate,++ -- ** androidenterprise.managedconfigurationsfordevice.delete+ AndroidEnterpriseManagedconfigurationsfordeviceDeleteResource,+ AndroidEnterpriseManagedconfigurationsfordeviceDelete (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceDelete,++ -- ** androidenterprise.managedconfigurationsfordevice.get+ AndroidEnterpriseManagedconfigurationsfordeviceGetResource,+ AndroidEnterpriseManagedconfigurationsfordeviceGet (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceGet,++ -- ** androidenterprise.managedconfigurationsfordevice.list+ AndroidEnterpriseManagedconfigurationsfordeviceListResource,+ AndroidEnterpriseManagedconfigurationsfordeviceList (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceList,++ -- ** androidenterprise.managedconfigurationsfordevice.update+ AndroidEnterpriseManagedconfigurationsfordeviceUpdateResource,+ AndroidEnterpriseManagedconfigurationsfordeviceUpdate (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceUpdate,++ -- ** androidenterprise.managedconfigurationsforuser.delete+ AndroidEnterpriseManagedconfigurationsforuserDeleteResource,+ AndroidEnterpriseManagedconfigurationsforuserDelete (..),+ newAndroidEnterpriseManagedconfigurationsforuserDelete,++ -- ** androidenterprise.managedconfigurationsforuser.get+ AndroidEnterpriseManagedconfigurationsforuserGetResource,+ AndroidEnterpriseManagedconfigurationsforuserGet (..),+ newAndroidEnterpriseManagedconfigurationsforuserGet,++ -- ** androidenterprise.managedconfigurationsforuser.list+ AndroidEnterpriseManagedconfigurationsforuserListResource,+ AndroidEnterpriseManagedconfigurationsforuserList (..),+ newAndroidEnterpriseManagedconfigurationsforuserList,++ -- ** androidenterprise.managedconfigurationsforuser.update+ AndroidEnterpriseManagedconfigurationsforuserUpdateResource,+ AndroidEnterpriseManagedconfigurationsforuserUpdate (..),+ newAndroidEnterpriseManagedconfigurationsforuserUpdate,++ -- ** androidenterprise.managedconfigurationssettings.list+ AndroidEnterpriseManagedconfigurationssettingsListResource,+ AndroidEnterpriseManagedconfigurationssettingsList (..),+ newAndroidEnterpriseManagedconfigurationssettingsList,++ -- ** androidenterprise.permissions.get+ AndroidEnterprisePermissionsGetResource,+ AndroidEnterprisePermissionsGet (..),+ newAndroidEnterprisePermissionsGet,++ -- ** androidenterprise.products.approve+ AndroidEnterpriseProductsApproveResource,+ AndroidEnterpriseProductsApprove (..),+ newAndroidEnterpriseProductsApprove,++ -- ** androidenterprise.products.generateApprovalUrl+ AndroidEnterpriseProductsGenerateApprovalUrlResource,+ AndroidEnterpriseProductsGenerateApprovalUrl (..),+ newAndroidEnterpriseProductsGenerateApprovalUrl,++ -- ** androidenterprise.products.get+ AndroidEnterpriseProductsGetResource,+ AndroidEnterpriseProductsGet (..),+ newAndroidEnterpriseProductsGet,++ -- ** androidenterprise.products.getAppRestrictionsSchema+ AndroidEnterpriseProductsGetAppRestrictionsSchemaResource,+ AndroidEnterpriseProductsGetAppRestrictionsSchema (..),+ newAndroidEnterpriseProductsGetAppRestrictionsSchema,++ -- ** androidenterprise.products.getPermissions+ AndroidEnterpriseProductsGetPermissionsResource,+ AndroidEnterpriseProductsGetPermissions (..),+ newAndroidEnterpriseProductsGetPermissions,++ -- ** androidenterprise.products.list+ AndroidEnterpriseProductsListResource,+ AndroidEnterpriseProductsList (..),+ newAndroidEnterpriseProductsList,++ -- ** androidenterprise.products.unapprove+ AndroidEnterpriseProductsUnapproveResource,+ AndroidEnterpriseProductsUnapprove (..),+ newAndroidEnterpriseProductsUnapprove,++ -- ** androidenterprise.serviceaccountkeys.delete+ AndroidEnterpriseServiceaccountkeysDeleteResource,+ AndroidEnterpriseServiceaccountkeysDelete (..),+ newAndroidEnterpriseServiceaccountkeysDelete,++ -- ** androidenterprise.serviceaccountkeys.insert+ AndroidEnterpriseServiceaccountkeysInsertResource,+ AndroidEnterpriseServiceaccountkeysInsert (..),+ newAndroidEnterpriseServiceaccountkeysInsert,++ -- ** androidenterprise.serviceaccountkeys.list+ AndroidEnterpriseServiceaccountkeysListResource,+ AndroidEnterpriseServiceaccountkeysList (..),+ newAndroidEnterpriseServiceaccountkeysList,++ -- ** androidenterprise.storelayoutclusters.delete+ AndroidEnterpriseStorelayoutclustersDeleteResource,+ AndroidEnterpriseStorelayoutclustersDelete (..),+ newAndroidEnterpriseStorelayoutclustersDelete,++ -- ** androidenterprise.storelayoutclusters.get+ AndroidEnterpriseStorelayoutclustersGetResource,+ AndroidEnterpriseStorelayoutclustersGet (..),+ newAndroidEnterpriseStorelayoutclustersGet,++ -- ** androidenterprise.storelayoutclusters.insert+ AndroidEnterpriseStorelayoutclustersInsertResource,+ AndroidEnterpriseStorelayoutclustersInsert (..),+ newAndroidEnterpriseStorelayoutclustersInsert,++ -- ** androidenterprise.storelayoutclusters.list+ AndroidEnterpriseStorelayoutclustersListResource,+ AndroidEnterpriseStorelayoutclustersList (..),+ newAndroidEnterpriseStorelayoutclustersList,++ -- ** androidenterprise.storelayoutclusters.update+ AndroidEnterpriseStorelayoutclustersUpdateResource,+ AndroidEnterpriseStorelayoutclustersUpdate (..),+ newAndroidEnterpriseStorelayoutclustersUpdate,++ -- ** androidenterprise.storelayoutpages.delete+ AndroidEnterpriseStorelayoutpagesDeleteResource,+ AndroidEnterpriseStorelayoutpagesDelete (..),+ newAndroidEnterpriseStorelayoutpagesDelete,++ -- ** androidenterprise.storelayoutpages.get+ AndroidEnterpriseStorelayoutpagesGetResource,+ AndroidEnterpriseStorelayoutpagesGet (..),+ newAndroidEnterpriseStorelayoutpagesGet,++ -- ** androidenterprise.storelayoutpages.insert+ AndroidEnterpriseStorelayoutpagesInsertResource,+ AndroidEnterpriseStorelayoutpagesInsert (..),+ newAndroidEnterpriseStorelayoutpagesInsert,++ -- ** androidenterprise.storelayoutpages.list+ AndroidEnterpriseStorelayoutpagesListResource,+ AndroidEnterpriseStorelayoutpagesList (..),+ newAndroidEnterpriseStorelayoutpagesList,++ -- ** androidenterprise.storelayoutpages.update+ AndroidEnterpriseStorelayoutpagesUpdateResource,+ AndroidEnterpriseStorelayoutpagesUpdate (..),+ newAndroidEnterpriseStorelayoutpagesUpdate,++ -- ** androidenterprise.users.delete+ AndroidEnterpriseUsersDeleteResource,+ AndroidEnterpriseUsersDelete (..),+ newAndroidEnterpriseUsersDelete,++ -- ** androidenterprise.users.generateAuthenticationToken+ AndroidEnterpriseUsersGenerateAuthenticationTokenResource,+ AndroidEnterpriseUsersGenerateAuthenticationToken (..),+ newAndroidEnterpriseUsersGenerateAuthenticationToken,++ -- ** androidenterprise.users.get+ AndroidEnterpriseUsersGetResource,+ AndroidEnterpriseUsersGet (..),+ newAndroidEnterpriseUsersGet,++ -- ** androidenterprise.users.getAvailableProductSet+ AndroidEnterpriseUsersGetAvailableProductSetResource,+ AndroidEnterpriseUsersGetAvailableProductSet (..),+ newAndroidEnterpriseUsersGetAvailableProductSet,++ -- ** androidenterprise.users.insert+ AndroidEnterpriseUsersInsertResource,+ AndroidEnterpriseUsersInsert (..),+ newAndroidEnterpriseUsersInsert,++ -- ** androidenterprise.users.list+ AndroidEnterpriseUsersListResource,+ AndroidEnterpriseUsersList (..),+ newAndroidEnterpriseUsersList,++ -- ** androidenterprise.users.revokeDeviceAccess+ AndroidEnterpriseUsersRevokeDeviceAccessResource,+ AndroidEnterpriseUsersRevokeDeviceAccess (..),+ newAndroidEnterpriseUsersRevokeDeviceAccess,++ -- ** androidenterprise.users.setAvailableProductSet+ AndroidEnterpriseUsersSetAvailableProductSetResource,+ AndroidEnterpriseUsersSetAvailableProductSet (..),+ newAndroidEnterpriseUsersSetAvailableProductSet,++ -- ** androidenterprise.users.update+ AndroidEnterpriseUsersUpdateResource,+ AndroidEnterpriseUsersUpdate (..),+ newAndroidEnterpriseUsersUpdate,++ -- ** androidenterprise.webapps.delete+ AndroidEnterpriseWebappsDeleteResource,+ AndroidEnterpriseWebappsDelete (..),+ newAndroidEnterpriseWebappsDelete,++ -- ** androidenterprise.webapps.get+ AndroidEnterpriseWebappsGetResource,+ AndroidEnterpriseWebappsGet (..),+ newAndroidEnterpriseWebappsGet,++ -- ** androidenterprise.webapps.insert+ AndroidEnterpriseWebappsInsertResource,+ AndroidEnterpriseWebappsInsert (..),+ newAndroidEnterpriseWebappsInsert,++ -- ** androidenterprise.webapps.list+ AndroidEnterpriseWebappsListResource,+ AndroidEnterpriseWebappsList (..),+ newAndroidEnterpriseWebappsList,++ -- ** androidenterprise.webapps.update+ AndroidEnterpriseWebappsUpdateResource,+ AndroidEnterpriseWebappsUpdate (..),+ newAndroidEnterpriseWebappsUpdate,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** Administrator+ Administrator (..),+ newAdministrator,++ -- ** AdministratorWebToken+ AdministratorWebToken (..),+ newAdministratorWebToken,++ -- ** AdministratorWebTokenSpec+ AdministratorWebTokenSpec (..),+ newAdministratorWebTokenSpec,++ -- ** AdministratorWebTokenSpec_PermissionItem+ AdministratorWebTokenSpec_PermissionItem (..),++ -- ** AdministratorWebTokenSpecManagedConfigurations+ AdministratorWebTokenSpecManagedConfigurations (..),+ newAdministratorWebTokenSpecManagedConfigurations,++ -- ** AdministratorWebTokenSpecPlaySearch+ AdministratorWebTokenSpecPlaySearch (..),+ newAdministratorWebTokenSpecPlaySearch,++ -- ** AdministratorWebTokenSpecPrivateApps+ AdministratorWebTokenSpecPrivateApps (..),+ newAdministratorWebTokenSpecPrivateApps,++ -- ** AdministratorWebTokenSpecStoreBuilder+ AdministratorWebTokenSpecStoreBuilder (..),+ newAdministratorWebTokenSpecStoreBuilder,++ -- ** AdministratorWebTokenSpecWebApps+ AdministratorWebTokenSpecWebApps (..),+ newAdministratorWebTokenSpecWebApps,++ -- ** AdministratorWebTokenSpecZeroTouch+ AdministratorWebTokenSpecZeroTouch (..),+ newAdministratorWebTokenSpecZeroTouch,++ -- ** AppRestrictionsSchema+ AppRestrictionsSchema (..),+ newAppRestrictionsSchema,++ -- ** AppRestrictionsSchemaChangeEvent+ AppRestrictionsSchemaChangeEvent (..),+ newAppRestrictionsSchemaChangeEvent,++ -- ** AppRestrictionsSchemaRestriction+ AppRestrictionsSchemaRestriction (..),+ newAppRestrictionsSchemaRestriction,++ -- ** AppRestrictionsSchemaRestriction_RestrictionType+ AppRestrictionsSchemaRestriction_RestrictionType (..),++ -- ** AppRestrictionsSchemaRestrictionRestrictionValue+ AppRestrictionsSchemaRestrictionRestrictionValue (..),+ newAppRestrictionsSchemaRestrictionRestrictionValue,++ -- ** AppRestrictionsSchemaRestrictionRestrictionValue_Type+ AppRestrictionsSchemaRestrictionRestrictionValue_Type (..),++ -- ** AppState+ AppState (..),+ newAppState,++ -- ** AppUpdateEvent+ AppUpdateEvent (..),+ newAppUpdateEvent,++ -- ** AppVersion+ AppVersion (..),+ newAppVersion,++ -- ** AppVersion_Track+ AppVersion_Track (..),++ -- ** ApprovalUrlInfo+ ApprovalUrlInfo (..),+ newApprovalUrlInfo,++ -- ** AuthenticationToken+ AuthenticationToken (..),+ newAuthenticationToken,++ -- ** AutoInstallConstraint+ AutoInstallConstraint (..),+ newAutoInstallConstraint,++ -- ** AutoInstallConstraint_ChargingStateConstraint+ AutoInstallConstraint_ChargingStateConstraint (..),++ -- ** AutoInstallConstraint_DeviceIdleStateConstraint+ AutoInstallConstraint_DeviceIdleStateConstraint (..),++ -- ** AutoInstallConstraint_NetworkTypeConstraint+ AutoInstallConstraint_NetworkTypeConstraint (..),++ -- ** AutoInstallPolicy+ AutoInstallPolicy (..),+ newAutoInstallPolicy,++ -- ** AutoInstallPolicy_AutoInstallMode+ AutoInstallPolicy_AutoInstallMode (..),++ -- ** ConfigurationVariables+ ConfigurationVariables (..),+ newConfigurationVariables,++ -- ** Device+ Device (..),+ newDevice,++ -- ** Device_ManagementType+ Device_ManagementType (..),++ -- ** DeviceReport+ DeviceReport (..),+ newDeviceReport,++ -- ** DeviceReportUpdateEvent+ DeviceReportUpdateEvent (..),+ newDeviceReportUpdateEvent,++ -- ** DeviceState+ DeviceState (..),+ newDeviceState,++ -- ** DeviceState_AccountState+ DeviceState_AccountState (..),++ -- ** DevicesListResponse+ DevicesListResponse (..),+ newDevicesListResponse,++ -- ** EnrollmentToken+ EnrollmentToken (..),+ newEnrollmentToken,++ -- ** EnrollmentToken_EnrollmentTokenType+ EnrollmentToken_EnrollmentTokenType (..),++ -- ** Enterprise+ Enterprise (..),+ newEnterprise,++ -- ** Enterprise_EnterpriseType+ Enterprise_EnterpriseType (..),++ -- ** Enterprise_ManagedGoogleDomainType+ Enterprise_ManagedGoogleDomainType (..),++ -- ** EnterpriseAccount+ EnterpriseAccount (..),+ newEnterpriseAccount,++ -- ** EnterpriseAuthenticationAppLinkConfig+ EnterpriseAuthenticationAppLinkConfig (..),+ newEnterpriseAuthenticationAppLinkConfig,++ -- ** EnterpriseUpgradeEvent+ EnterpriseUpgradeEvent (..),+ newEnterpriseUpgradeEvent,++ -- ** EnterpriseUpgradeEvent_UpgradeState+ EnterpriseUpgradeEvent_UpgradeState (..),++ -- ** EnterprisesListResponse+ EnterprisesListResponse (..),+ newEnterprisesListResponse,++ -- ** EnterprisesSendTestPushNotificationResponse+ EnterprisesSendTestPushNotificationResponse (..),+ newEnterprisesSendTestPushNotificationResponse,++ -- ** Entitlement+ Entitlement (..),+ newEntitlement,++ -- ** Entitlement_Reason+ Entitlement_Reason (..),++ -- ** EntitlementsListResponse+ EntitlementsListResponse (..),+ newEntitlementsListResponse,++ -- ** GenerateEnterpriseUpgradeUrlResponse+ GenerateEnterpriseUpgradeUrlResponse (..),+ newGenerateEnterpriseUpgradeUrlResponse,++ -- ** GoogleAuthenticationSettings+ GoogleAuthenticationSettings (..),+ newGoogleAuthenticationSettings,++ -- ** GoogleAuthenticationSettings_DedicatedDevicesAllowed+ GoogleAuthenticationSettings_DedicatedDevicesAllowed (..),++ -- ** GoogleAuthenticationSettings_GoogleAuthenticationRequired+ GoogleAuthenticationSettings_GoogleAuthenticationRequired (..),++ -- ** GroupLicense+ GroupLicense (..),+ newGroupLicense,++ -- ** GroupLicense_AcquisitionKind+ GroupLicense_AcquisitionKind (..),++ -- ** GroupLicense_Approval+ GroupLicense_Approval (..),++ -- ** GroupLicense_Permissions+ GroupLicense_Permissions (..),++ -- ** GroupLicenseUsersListResponse+ GroupLicenseUsersListResponse (..),+ newGroupLicenseUsersListResponse,++ -- ** GroupLicensesListResponse+ GroupLicensesListResponse (..),+ newGroupLicensesListResponse,++ -- ** Install+ Install (..),+ newInstall,++ -- ** Install_InstallState+ Install_InstallState (..),++ -- ** InstallFailureEvent+ InstallFailureEvent (..),+ newInstallFailureEvent,++ -- ** InstallFailureEvent_FailureReason+ InstallFailureEvent_FailureReason (..),++ -- ** InstallsListResponse+ InstallsListResponse (..),+ newInstallsListResponse,++ -- ** KeyedAppState+ KeyedAppState (..),+ newKeyedAppState,++ -- ** KeyedAppState_Severity+ KeyedAppState_Severity (..),++ -- ** LocalizedText+ LocalizedText (..),+ newLocalizedText,++ -- ** MaintenanceWindow+ MaintenanceWindow (..),+ newMaintenanceWindow,++ -- ** ManagedConfiguration+ ManagedConfiguration (..),+ newManagedConfiguration,++ -- ** ManagedConfigurationsForDeviceListResponse+ ManagedConfigurationsForDeviceListResponse (..),+ newManagedConfigurationsForDeviceListResponse,++ -- ** ManagedConfigurationsForUserListResponse+ ManagedConfigurationsForUserListResponse (..),+ newManagedConfigurationsForUserListResponse,++ -- ** ManagedConfigurationsSettings+ ManagedConfigurationsSettings (..),+ newManagedConfigurationsSettings,++ -- ** ManagedConfigurationsSettingsListResponse+ ManagedConfigurationsSettingsListResponse (..),+ newManagedConfigurationsSettingsListResponse,++ -- ** ManagedProperty+ ManagedProperty (..),+ newManagedProperty,++ -- ** ManagedPropertyBundle+ ManagedPropertyBundle (..),+ newManagedPropertyBundle,++ -- ** NewDeviceEvent+ NewDeviceEvent (..),+ newNewDeviceEvent,++ -- ** NewDeviceEvent_ManagementType+ NewDeviceEvent_ManagementType (..),++ -- ** NewPermissionsEvent+ NewPermissionsEvent (..),+ newNewPermissionsEvent,++ -- ** Notification+ Notification (..),+ newNotification,++ -- ** Notification_NotificationType+ Notification_NotificationType (..),++ -- ** NotificationSet+ NotificationSet (..),+ newNotificationSet,++ -- ** PageInfo+ PageInfo (..),+ newPageInfo,++ -- ** Permission+ Permission (..),+ newPermission,++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** Policy_AutoUpdatePolicy+ Policy_AutoUpdatePolicy (..),++ -- ** Policy_DeviceReportPolicy+ Policy_DeviceReportPolicy (..),++ -- ** Policy_ProductAvailabilityPolicy+ Policy_ProductAvailabilityPolicy (..),++ -- ** Product+ Product (..),+ newProduct,++ -- ** Product_AvailableTracksItem+ Product_AvailableTracksItem (..),++ -- ** Product_ContentRating+ Product_ContentRating (..),++ -- ** Product_DistributionChannel+ Product_DistributionChannel (..),++ -- ** Product_FeaturesItem+ Product_FeaturesItem (..),++ -- ** Product_ProductPricing+ Product_ProductPricing (..),++ -- ** ProductApprovalEvent+ ProductApprovalEvent (..),+ newProductApprovalEvent,++ -- ** ProductApprovalEvent_Approved+ ProductApprovalEvent_Approved (..),++ -- ** ProductAvailabilityChangeEvent+ ProductAvailabilityChangeEvent (..),+ newProductAvailabilityChangeEvent,++ -- ** ProductAvailabilityChangeEvent_AvailabilityStatus+ ProductAvailabilityChangeEvent_AvailabilityStatus (..),++ -- ** ProductPermission+ ProductPermission (..),+ newProductPermission,++ -- ** ProductPermission_State+ ProductPermission_State (..),++ -- ** ProductPermissions+ ProductPermissions (..),+ newProductPermissions,++ -- ** ProductPolicy+ ProductPolicy (..),+ newProductPolicy,++ -- ** ProductPolicy_AutoUpdateMode+ ProductPolicy_AutoUpdateMode (..),++ -- ** ProductPolicy_TracksItem+ ProductPolicy_TracksItem (..),++ -- ** ProductSet+ ProductSet (..),+ newProductSet,++ -- ** ProductSet_ProductSetBehavior+ ProductSet_ProductSetBehavior (..),++ -- ** ProductSigningCertificate+ ProductSigningCertificate (..),+ newProductSigningCertificate,++ -- ** ProductVisibility+ ProductVisibility (..),+ newProductVisibility,++ -- ** ProductVisibility_TracksItem+ ProductVisibility_TracksItem (..),++ -- ** ProductsApproveRequest+ ProductsApproveRequest (..),+ newProductsApproveRequest,++ -- ** ProductsApproveRequest_ApprovedPermissions+ ProductsApproveRequest_ApprovedPermissions (..),++ -- ** ProductsGenerateApprovalUrlResponse+ ProductsGenerateApprovalUrlResponse (..),+ newProductsGenerateApprovalUrlResponse,++ -- ** ProductsListResponse+ ProductsListResponse (..),+ newProductsListResponse,++ -- ** ServiceAccount+ ServiceAccount (..),+ newServiceAccount,++ -- ** ServiceAccountKey+ ServiceAccountKey (..),+ newServiceAccountKey,++ -- ** ServiceAccountKey_Type+ ServiceAccountKey_Type (..),++ -- ** ServiceAccountKeysListResponse+ ServiceAccountKeysListResponse (..),+ newServiceAccountKeysListResponse,++ -- ** SignupInfo+ SignupInfo (..),+ newSignupInfo,++ -- ** StoreCluster+ StoreCluster (..),+ newStoreCluster,++ -- ** StoreLayout+ StoreLayout (..),+ newStoreLayout,++ -- ** StoreLayout_StoreLayoutType+ StoreLayout_StoreLayoutType (..),++ -- ** StoreLayoutClustersListResponse+ StoreLayoutClustersListResponse (..),+ newStoreLayoutClustersListResponse,++ -- ** StoreLayoutPagesListResponse+ StoreLayoutPagesListResponse (..),+ newStoreLayoutPagesListResponse,++ -- ** StorePage+ StorePage (..),+ newStorePage,++ -- ** TokenPagination+ TokenPagination (..),+ newTokenPagination,++ -- ** TrackInfo+ TrackInfo (..),+ newTrackInfo,++ -- ** User+ User (..),+ newUser,++ -- ** User_AccountType+ User_AccountType (..),++ -- ** User_ManagementType+ User_ManagementType (..),++ -- ** UsersListResponse+ UsersListResponse (..),+ newUsersListResponse,++ -- ** VariableSet+ VariableSet (..),+ newVariableSet,++ -- ** WebApp+ WebApp (..),+ newWebApp,++ -- ** WebApp_DisplayMode+ WebApp_DisplayMode (..),++ -- ** WebAppIcon+ WebAppIcon (..),+ newWebAppIcon,++ -- ** WebAppsListResponse+ WebAppsListResponse (..),+ newWebAppsListResponse,++ -- ** EnterprisesGetServiceAccountKeyType+ EnterprisesGetServiceAccountKeyType (..),++ -- ** EnterprisesPullNotificationSetRequestMode+ EnterprisesPullNotificationSetRequestMode (..),+ )+where++import Gogol.AndroidEnterprise.Devices.ForceReportUpload+import Gogol.AndroidEnterprise.Devices.Get+import Gogol.AndroidEnterprise.Devices.GetState+import Gogol.AndroidEnterprise.Devices.List+import Gogol.AndroidEnterprise.Devices.SetState+import Gogol.AndroidEnterprise.Devices.Update+import Gogol.AndroidEnterprise.EnrollmentTokens.Create+import Gogol.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet+import Gogol.AndroidEnterprise.Enterprises.CompleteSignup+import Gogol.AndroidEnterprise.Enterprises.CreateWebToken+import Gogol.AndroidEnterprise.Enterprises.Enroll+import Gogol.AndroidEnterprise.Enterprises.GenerateEnterpriseUpgradeUrl+import Gogol.AndroidEnterprise.Enterprises.GenerateSignupUrl+import Gogol.AndroidEnterprise.Enterprises.Get+import Gogol.AndroidEnterprise.Enterprises.GetServiceAccount+import Gogol.AndroidEnterprise.Enterprises.GetStoreLayout+import Gogol.AndroidEnterprise.Enterprises.List+import Gogol.AndroidEnterprise.Enterprises.PullNotificationSet+import Gogol.AndroidEnterprise.Enterprises.SendTestPushNotification+import Gogol.AndroidEnterprise.Enterprises.SetAccount+import Gogol.AndroidEnterprise.Enterprises.SetStoreLayout+import Gogol.AndroidEnterprise.Enterprises.Unenroll+import Gogol.AndroidEnterprise.Entitlements.Delete+import Gogol.AndroidEnterprise.Entitlements.Get+import Gogol.AndroidEnterprise.Entitlements.List+import Gogol.AndroidEnterprise.Entitlements.Update+import Gogol.AndroidEnterprise.Grouplicenses.Get+import Gogol.AndroidEnterprise.Grouplicenses.List+import Gogol.AndroidEnterprise.Grouplicenseusers.List+import Gogol.AndroidEnterprise.Installs.Delete+import Gogol.AndroidEnterprise.Installs.Get+import Gogol.AndroidEnterprise.Installs.List+import Gogol.AndroidEnterprise.Installs.Update+import Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Delete+import Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Get+import Gogol.AndroidEnterprise.Managedconfigurationsfordevice.List+import Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Update+import Gogol.AndroidEnterprise.Managedconfigurationsforuser.Delete+import Gogol.AndroidEnterprise.Managedconfigurationsforuser.Get+import Gogol.AndroidEnterprise.Managedconfigurationsforuser.List+import Gogol.AndroidEnterprise.Managedconfigurationsforuser.Update+import Gogol.AndroidEnterprise.Managedconfigurationssettings.List+import Gogol.AndroidEnterprise.Permissions.Get+import Gogol.AndroidEnterprise.Products.Approve+import Gogol.AndroidEnterprise.Products.GenerateApprovalUrl+import Gogol.AndroidEnterprise.Products.Get+import Gogol.AndroidEnterprise.Products.GetAppRestrictionsSchema+import Gogol.AndroidEnterprise.Products.GetPermissions+import Gogol.AndroidEnterprise.Products.List+import Gogol.AndroidEnterprise.Products.Unapprove+import Gogol.AndroidEnterprise.Serviceaccountkeys.Delete+import Gogol.AndroidEnterprise.Serviceaccountkeys.Insert+import Gogol.AndroidEnterprise.Serviceaccountkeys.List+import Gogol.AndroidEnterprise.Storelayoutclusters.Delete+import Gogol.AndroidEnterprise.Storelayoutclusters.Get+import Gogol.AndroidEnterprise.Storelayoutclusters.Insert+import Gogol.AndroidEnterprise.Storelayoutclusters.List+import Gogol.AndroidEnterprise.Storelayoutclusters.Update+import Gogol.AndroidEnterprise.Storelayoutpages.Delete+import Gogol.AndroidEnterprise.Storelayoutpages.Get+import Gogol.AndroidEnterprise.Storelayoutpages.Insert+import Gogol.AndroidEnterprise.Storelayoutpages.List+import Gogol.AndroidEnterprise.Storelayoutpages.Update+import Gogol.AndroidEnterprise.Types+import Gogol.AndroidEnterprise.Users.Delete+import Gogol.AndroidEnterprise.Users.GenerateAuthenticationToken+import Gogol.AndroidEnterprise.Users.Get+import Gogol.AndroidEnterprise.Users.GetAvailableProductSet+import Gogol.AndroidEnterprise.Users.Insert+import Gogol.AndroidEnterprise.Users.List+import Gogol.AndroidEnterprise.Users.RevokeDeviceAccess+import Gogol.AndroidEnterprise.Users.SetAvailableProductSet+import Gogol.AndroidEnterprise.Users.Update+import Gogol.AndroidEnterprise.Webapps.Delete+import Gogol.AndroidEnterprise.Webapps.Get+import Gogol.AndroidEnterprise.Webapps.Insert+import Gogol.AndroidEnterprise.Webapps.List+import Gogol.AndroidEnterprise.Webapps.Update
+ gen/Gogol/AndroidEnterprise/Devices/ForceReportUpload.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Devices.ForceReportUpload+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device. If you exceed the quota, then the Google Play EMM API returns HTTP 429 Too Many Requests.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.forceReportUpload@.+module Gogol.AndroidEnterprise.Devices.ForceReportUpload+ ( -- * Resource+ AndroidEnterpriseDevicesForceReportUploadResource,++ -- ** Constructing a Request+ AndroidEnterpriseDevicesForceReportUpload (..),+ newAndroidEnterpriseDevicesForceReportUpload,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.devices.forceReportUpload@ method which the+-- 'AndroidEnterpriseDevicesForceReportUpload' request conforms to.+type AndroidEnterpriseDevicesForceReportUploadResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "forceReportUpload"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] ()++-- | Uploads a report containing any changes in app states on the device since the last report was generated. You can call this method up to 3 times every 24 hours for a given device. If you exceed the quota, then the Google Play EMM API returns HTTP 429 Too Many Requests.+--+-- /See:/ 'newAndroidEnterpriseDevicesForceReportUpload' smart constructor.+data AndroidEnterpriseDevicesForceReportUpload = AndroidEnterpriseDevicesForceReportUpload+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseDevicesForceReportUpload' with the minimum fields required to make a request.+newAndroidEnterpriseDevicesForceReportUpload ::+ -- | The ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseDevicesForceReportUpload+newAndroidEnterpriseDevicesForceReportUpload+ deviceId+ enterpriseId+ userId =+ AndroidEnterpriseDevicesForceReportUpload+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseDevicesForceReportUpload+ where+ type Rs AndroidEnterpriseDevicesForceReportUpload = ()+ type+ Scopes AndroidEnterpriseDevicesForceReportUpload =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseDevicesForceReportUpload {..} =+ go+ enterpriseId+ userId+ deviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseDevicesForceReportUploadResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Devices/Get.hs view
@@ -0,0 +1,127 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Devices.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the details of a device.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.get@.+module Gogol.AndroidEnterprise.Devices.Get+ ( -- * Resource+ AndroidEnterpriseDevicesGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseDevicesGet (..),+ newAndroidEnterpriseDevicesGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.devices.get@ method which the+-- 'AndroidEnterpriseDevicesGet' request conforms to.+type AndroidEnterpriseDevicesGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Device++-- | Retrieves the details of a device.+--+-- /See:/ 'newAndroidEnterpriseDevicesGet' smart constructor.+data AndroidEnterpriseDevicesGet = AndroidEnterpriseDevicesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseDevicesGet' with the minimum fields required to make a request.+newAndroidEnterpriseDevicesGet ::+ -- | The ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseDevicesGet+newAndroidEnterpriseDevicesGet deviceId enterpriseId userId =+ AndroidEnterpriseDevicesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseDevicesGet where+ type Rs AndroidEnterpriseDevicesGet = Device+ type+ Scopes AndroidEnterpriseDevicesGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseDevicesGet {..} =+ go+ enterpriseId+ userId+ deviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseDevicesGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Devices/GetState.hs view
@@ -0,0 +1,128 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Devices.GetState+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves whether a device\'s access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.getState@.+module Gogol.AndroidEnterprise.Devices.GetState+ ( -- * Resource+ AndroidEnterpriseDevicesGetStateResource,++ -- ** Constructing a Request+ AndroidEnterpriseDevicesGetState (..),+ newAndroidEnterpriseDevicesGetState,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.devices.getState@ method which the+-- 'AndroidEnterpriseDevicesGetState' request conforms to.+type AndroidEnterpriseDevicesGetStateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "state"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] DeviceState++-- | Retrieves whether a device\'s access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.+--+-- /See:/ 'newAndroidEnterpriseDevicesGetState' smart constructor.+data AndroidEnterpriseDevicesGetState = AndroidEnterpriseDevicesGetState+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseDevicesGetState' with the minimum fields required to make a request.+newAndroidEnterpriseDevicesGetState ::+ -- | The ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseDevicesGetState+newAndroidEnterpriseDevicesGetState deviceId enterpriseId userId =+ AndroidEnterpriseDevicesGetState+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseDevicesGetState where+ type Rs AndroidEnterpriseDevicesGetState = DeviceState+ type+ Scopes AndroidEnterpriseDevicesGetState =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseDevicesGetState {..} =+ go+ enterpriseId+ userId+ deviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseDevicesGetStateResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Devices/List.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Devices.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the IDs of all of a user\'s devices.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.list@.+module Gogol.AndroidEnterprise.Devices.List+ ( -- * Resource+ AndroidEnterpriseDevicesListResource,++ -- ** Constructing a Request+ AndroidEnterpriseDevicesList (..),+ newAndroidEnterpriseDevicesList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.devices.list@ method which the+-- 'AndroidEnterpriseDevicesList' request conforms to.+type AndroidEnterpriseDevicesListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] DevicesListResponse++-- | Retrieves the IDs of all of a user\'s devices.+--+-- /See:/ 'newAndroidEnterpriseDevicesList' smart constructor.+data AndroidEnterpriseDevicesList = AndroidEnterpriseDevicesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseDevicesList' with the minimum fields required to make a request.+newAndroidEnterpriseDevicesList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseDevicesList+newAndroidEnterpriseDevicesList enterpriseId userId =+ AndroidEnterpriseDevicesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseDevicesList where+ type Rs AndroidEnterpriseDevicesList = DevicesListResponse+ type+ Scopes AndroidEnterpriseDevicesList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseDevicesList {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseDevicesListResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Devices/SetState.hs view
@@ -0,0 +1,139 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Devices.SetState+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets whether a device\'s access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.setState@.+module Gogol.AndroidEnterprise.Devices.SetState+ ( -- * Resource+ AndroidEnterpriseDevicesSetStateResource,++ -- ** Constructing a Request+ AndroidEnterpriseDevicesSetState (..),+ newAndroidEnterpriseDevicesSetState,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.devices.setState@ method which the+-- 'AndroidEnterpriseDevicesSetState' request conforms to.+type AndroidEnterpriseDevicesSetStateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "state"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] DeviceState+ Core.:> Core.Put '[Core.JSON] DeviceState++-- | Sets whether a device\'s access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.+--+-- /See:/ 'newAndroidEnterpriseDevicesSetState' smart constructor.+data AndroidEnterpriseDevicesSetState = AndroidEnterpriseDevicesSetState+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: DeviceState,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseDevicesSetState' with the minimum fields required to make a request.+newAndroidEnterpriseDevicesSetState ::+ -- | The ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ DeviceState ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseDevicesSetState+newAndroidEnterpriseDevicesSetState+ deviceId+ enterpriseId+ payload+ userId =+ AndroidEnterpriseDevicesSetState+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseDevicesSetState where+ type Rs AndroidEnterpriseDevicesSetState = DeviceState+ type+ Scopes AndroidEnterpriseDevicesSetState =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseDevicesSetState {..} =+ go+ enterpriseId+ userId+ deviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseDevicesSetStateResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Devices/Update.hs view
@@ -0,0 +1,143 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Devices.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the device policy. To ensure the policy is properly enforced, you need to prevent unmanaged accounts from accessing Google Play by setting the allowed_accounts in the managed configuration for the Google Play package. See restrict accounts in Google Play. When provisioning a new device, you should set the device policy using this method before adding the managed Google Play Account to the device, otherwise the policy will not be applied for a short period of time after adding the account to the device.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.update@.+module Gogol.AndroidEnterprise.Devices.Update+ ( -- * Resource+ AndroidEnterpriseDevicesUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseDevicesUpdate (..),+ newAndroidEnterpriseDevicesUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.devices.update@ method which the+-- 'AndroidEnterpriseDevicesUpdate' request conforms to.+type AndroidEnterpriseDevicesUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "updateMask" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Device+ Core.:> Core.Put '[Core.JSON] Device++-- | Updates the device policy. To ensure the policy is properly enforced, you need to prevent unmanaged accounts from accessing Google Play by setting the allowed_accounts in the managed configuration for the Google Play package. See restrict accounts in Google Play. When provisioning a new device, you should set the device policy using this method before adding the managed Google Play Account to the device, otherwise the policy will not be applied for a short period of time after adding the account to the device.+--+-- /See:/ 'newAndroidEnterpriseDevicesUpdate' smart constructor.+data AndroidEnterpriseDevicesUpdate = AndroidEnterpriseDevicesUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: Device,+ -- | Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=\<field1>,\<field2>,...+ updateMask :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseDevicesUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseDevicesUpdate ::+ -- | The ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Device ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseDevicesUpdate+newAndroidEnterpriseDevicesUpdate+ deviceId+ enterpriseId+ payload+ userId =+ AndroidEnterpriseDevicesUpdate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseDevicesUpdate where+ type Rs AndroidEnterpriseDevicesUpdate = Device+ type+ Scopes AndroidEnterpriseDevicesUpdate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseDevicesUpdate {..} =+ go+ enterpriseId+ userId+ deviceId+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseDevicesUpdateResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/EnrollmentTokens/Create.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.EnrollmentTokens.Create+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a token for device enrollment. The DPC can encode this token within the QR\/NFC\/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enrollmentTokens.create@.+module Gogol.AndroidEnterprise.EnrollmentTokens.Create+ ( -- * Resource+ AndroidEnterpriseEnrollmentTokensCreateResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnrollmentTokensCreate (..),+ newAndroidEnterpriseEnrollmentTokensCreate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enrollmentTokens.create@ method which the+-- 'AndroidEnterpriseEnrollmentTokensCreate' request conforms to.+type AndroidEnterpriseEnrollmentTokensCreateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "enrollmentTokens"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] EnrollmentToken+ Core.:> Core.Post '[Core.JSON] EnrollmentToken++-- | Returns a token for device enrollment. The DPC can encode this token within the QR\/NFC\/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.+--+-- /See:/ 'newAndroidEnterpriseEnrollmentTokensCreate' smart constructor.+data AndroidEnterpriseEnrollmentTokensCreate = AndroidEnterpriseEnrollmentTokensCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: EnrollmentToken,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnrollmentTokensCreate' with the minimum fields required to make a request.+newAndroidEnterpriseEnrollmentTokensCreate ::+ -- | Required. The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ EnrollmentToken ->+ AndroidEnterpriseEnrollmentTokensCreate+newAndroidEnterpriseEnrollmentTokensCreate enterpriseId payload =+ AndroidEnterpriseEnrollmentTokensCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseEnrollmentTokensCreate where+ type Rs AndroidEnterpriseEnrollmentTokensCreate = EnrollmentToken+ type+ Scopes AndroidEnterpriseEnrollmentTokensCreate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnrollmentTokensCreate {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnrollmentTokensCreateResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/AcknowledgeNotificationSet.hs view
@@ -0,0 +1,118 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.acknowledgeNotificationSet@.+module Gogol.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet+ ( -- * Resource+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSetResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSet (..),+ newAndroidEnterpriseEnterprisesAcknowledgeNotificationSet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.acknowledgeNotificationSet@ method which the+-- 'AndroidEnterpriseEnterprisesAcknowledgeNotificationSet' request conforms to.+type AndroidEnterpriseEnterprisesAcknowledgeNotificationSetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> "acknowledgeNotificationSet"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "notificationSetId" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] ()++-- | Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesAcknowledgeNotificationSet' smart constructor.+data AndroidEnterpriseEnterprisesAcknowledgeNotificationSet = AndroidEnterpriseEnterprisesAcknowledgeNotificationSet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided.+ notificationSetId :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesAcknowledgeNotificationSet' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesAcknowledgeNotificationSet ::+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSet+newAndroidEnterpriseEnterprisesAcknowledgeNotificationSet =+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ notificationSetId = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSet+ where+ type Rs AndroidEnterpriseEnterprisesAcknowledgeNotificationSet = ()+ type+ Scopes AndroidEnterpriseEnterprisesAcknowledgeNotificationSet =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSet {..} =+ go+ xgafv+ accessToken+ callback+ notificationSetId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseEnterprisesAcknowledgeNotificationSetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/CompleteSignup.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.CompleteSignup+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.completeSignup@.+module Gogol.AndroidEnterprise.Enterprises.CompleteSignup+ ( -- * Resource+ AndroidEnterpriseEnterprisesCompleteSignupResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesCompleteSignup (..),+ newAndroidEnterpriseEnterprisesCompleteSignup,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.completeSignup@ method which the+-- 'AndroidEnterpriseEnterprisesCompleteSignup' request conforms to.+type AndroidEnterpriseEnterprisesCompleteSignupResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> "completeSignup"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "completionToken" Core.Text+ Core.:> Core.QueryParam "enterpriseToken" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] Enterprise++-- | Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesCompleteSignup' smart constructor.+data AndroidEnterpriseEnterprisesCompleteSignup = AndroidEnterpriseEnterprisesCompleteSignup+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Completion token initially returned by GenerateSignupUrl.+ completionToken :: (Core.Maybe Core.Text),+ -- | The Enterprise token appended to the Callback URL.+ enterpriseToken :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesCompleteSignup' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesCompleteSignup ::+ AndroidEnterpriseEnterprisesCompleteSignup+newAndroidEnterpriseEnterprisesCompleteSignup =+ AndroidEnterpriseEnterprisesCompleteSignup+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ completionToken = Core.Nothing,+ enterpriseToken = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesCompleteSignup+ where+ type Rs AndroidEnterpriseEnterprisesCompleteSignup = Enterprise+ type+ Scopes AndroidEnterpriseEnterprisesCompleteSignup =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesCompleteSignup {..} =+ go+ xgafv+ accessToken+ callback+ completionToken+ enterpriseToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesCompleteSignupResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/CreateWebToken.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.CreateWebToken+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the JavaScript API documentation for further information.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.createWebToken@.+module Gogol.AndroidEnterprise.Enterprises.CreateWebToken+ ( -- * Resource+ AndroidEnterpriseEnterprisesCreateWebTokenResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesCreateWebToken (..),+ newAndroidEnterpriseEnterprisesCreateWebToken,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.createWebToken@ method which the+-- 'AndroidEnterpriseEnterprisesCreateWebToken' request conforms to.+type AndroidEnterpriseEnterprisesCreateWebTokenResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "createWebToken"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] AdministratorWebTokenSpec+ Core.:> Core.Post '[Core.JSON] AdministratorWebToken++-- | Returns a unique token to access an embeddable UI. To generate a web UI, pass the generated token into the managed Google Play javascript API. Each token may only be used to start one UI session. See the JavaScript API documentation for further information.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesCreateWebToken' smart constructor.+data AndroidEnterpriseEnterprisesCreateWebToken = AndroidEnterpriseEnterprisesCreateWebToken+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: AdministratorWebTokenSpec,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesCreateWebToken' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesCreateWebToken ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ AdministratorWebTokenSpec ->+ AndroidEnterpriseEnterprisesCreateWebToken+newAndroidEnterpriseEnterprisesCreateWebToken enterpriseId payload =+ AndroidEnterpriseEnterprisesCreateWebToken+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesCreateWebToken+ where+ type+ Rs AndroidEnterpriseEnterprisesCreateWebToken =+ AdministratorWebToken+ type+ Scopes AndroidEnterpriseEnterprisesCreateWebToken =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesCreateWebToken {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesCreateWebTokenResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/Enroll.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.Enroll+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Enrolls an enterprise with the calling EMM.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.enroll@.+module Gogol.AndroidEnterprise.Enterprises.Enroll+ ( -- * Resource+ AndroidEnterpriseEnterprisesEnrollResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesEnroll (..),+ newAndroidEnterpriseEnterprisesEnroll,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.enroll@ method which the+-- 'AndroidEnterpriseEnterprisesEnroll' request conforms to.+type AndroidEnterpriseEnterprisesEnrollResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> "enroll"+ Core.:> Core.QueryParam "token" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Enterprise+ Core.:> Core.Post '[Core.JSON] Enterprise++-- | Enrolls an enterprise with the calling EMM.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesEnroll' smart constructor.+data AndroidEnterpriseEnterprisesEnroll = AndroidEnterpriseEnterprisesEnroll+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: Enterprise,+ -- | Required. The token provided by the enterprise to register the EMM.+ token :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesEnroll' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesEnroll ::+ -- | Multipart request metadata. See 'payload'.+ Enterprise ->+ -- | Required. The token provided by the enterprise to register the EMM. See 'token'.+ Core.Text ->+ AndroidEnterpriseEnterprisesEnroll+newAndroidEnterpriseEnterprisesEnroll payload token =+ AndroidEnterpriseEnterprisesEnroll+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ payload = payload,+ token = token,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseEnterprisesEnroll where+ type Rs AndroidEnterpriseEnterprisesEnroll = Enterprise+ type+ Scopes AndroidEnterpriseEnterprisesEnroll =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesEnroll {..} =+ go+ (Core.Just token)+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesEnrollResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/GenerateEnterpriseUpgradeUrl.hs view
@@ -0,0 +1,134 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.GenerateEnterpriseUpgradeUrl+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. __Note:__ This feature is not generally available.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.generateEnterpriseUpgradeUrl@.+module Gogol.AndroidEnterprise.Enterprises.GenerateEnterpriseUpgradeUrl+ ( -- * Resource+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrlResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl (..),+ newAndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.generateEnterpriseUpgradeUrl@ method which the+-- 'AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl' request conforms to.+type AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrlResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "generateEnterpriseUpgradeUrl"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "adminEmail" Core.Text+ Core.:> Core.QueryParams "allowedDomains" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] GenerateEnterpriseUpgradeUrlResponse++-- | Generates an enterprise upgrade URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. __Note:__ This feature is not generally available.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl' smart constructor.+data AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl = AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | Optional. Email address used to prefill the admin field of the enterprise signup form as part of the upgrade process. This value is a hint only and can be altered by the user. Personal email addresses are not allowed. If @allowedDomains@ is non-empty then this must belong to one of the @allowedDomains@.+ adminEmail :: (Core.Maybe Core.Text),+ -- | Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has @*.@ prefixed to the domain name (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are not allowed.+ allowedDomains :: (Core.Maybe [Core.Text]),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl ::+ -- | Required. The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl+newAndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl+ enterpriseId =+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ adminEmail = Core.Nothing,+ allowedDomains = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl+ where+ type+ Rs AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl =+ GenerateEnterpriseUpgradeUrlResponse+ type+ Scopes+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrl {..} =+ go+ enterpriseId+ xgafv+ accessToken+ adminEmail+ (allowedDomains Core.^. Core._Default)+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseEnterprisesGenerateEnterpriseUpgradeUrlResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/GenerateSignupUrl.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.GenerateSignupUrl+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Generates a sign-up URL.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.generateSignupUrl@.+module Gogol.AndroidEnterprise.Enterprises.GenerateSignupUrl+ ( -- * Resource+ AndroidEnterpriseEnterprisesGenerateSignupUrlResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesGenerateSignupUrl (..),+ newAndroidEnterpriseEnterprisesGenerateSignupUrl,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.generateSignupUrl@ method which the+-- 'AndroidEnterpriseEnterprisesGenerateSignupUrl' request conforms to.+type AndroidEnterpriseEnterprisesGenerateSignupUrlResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> "signupUrl"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "adminEmail" Core.Text+ Core.:> Core.QueryParams "allowedDomains" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "callbackUrl" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] SignupInfo++-- | Generates a sign-up URL.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesGenerateSignupUrl' smart constructor.+data AndroidEnterpriseEnterprisesGenerateSignupUrl = AndroidEnterpriseEnterprisesGenerateSignupUrl+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | Optional. Email address used to prefill the admin field of the enterprise signup form. This value is a hint only and can be altered by the user. If @allowedDomains@ is non-empty then this must belong to one of the @allowedDomains@.+ adminEmail :: (Core.Maybe Core.Text),+ -- | Optional. A list of domains that are permitted for the admin email. The IT admin cannot enter an email address with a domain name that is not in this list. Subdomains of domains in this list are not allowed but can be allowed by adding a second entry which has @*.@ prefixed to the domain name (e.g. *.example.com). If the field is not present or is an empty list then the IT admin is free to use any valid domain name. Personal email domains are always allowed, but will result in the creation of a managed Google Play Accounts enterprise.+ allowedDomains :: (Core.Maybe [Core.Text]),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The callback URL to which the Admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a single query parameter to this URL named \"enterpriseToken\" which will contain an opaque token to be used for the CompleteSignup request. Beware that this means that the URL will be parsed, the parameter added and then a new URL formatted, i.e. there may be some minor formatting changes and, more importantly, the URL must be well-formed so that it can be parsed.+ callbackUrl :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesGenerateSignupUrl' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesGenerateSignupUrl ::+ AndroidEnterpriseEnterprisesGenerateSignupUrl+newAndroidEnterpriseEnterprisesGenerateSignupUrl =+ AndroidEnterpriseEnterprisesGenerateSignupUrl+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ adminEmail = Core.Nothing,+ allowedDomains = Core.Nothing,+ callback = Core.Nothing,+ callbackUrl = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesGenerateSignupUrl+ where+ type Rs AndroidEnterpriseEnterprisesGenerateSignupUrl = SignupInfo+ type+ Scopes AndroidEnterpriseEnterprisesGenerateSignupUrl =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesGenerateSignupUrl {..} =+ go+ xgafv+ accessToken+ adminEmail+ (allowedDomains Core.^. Core._Default)+ callback+ callbackUrl+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesGenerateSignupUrlResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/Get.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the name and domain of an enterprise.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.get@.+module Gogol.AndroidEnterprise.Enterprises.Get+ ( -- * Resource+ AndroidEnterpriseEnterprisesGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesGet (..),+ newAndroidEnterpriseEnterprisesGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.get@ method which the+-- 'AndroidEnterpriseEnterprisesGet' request conforms to.+type AndroidEnterpriseEnterprisesGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Enterprise++-- | Retrieves the name and domain of an enterprise.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesGet' smart constructor.+data AndroidEnterpriseEnterprisesGet = AndroidEnterpriseEnterprisesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesGet' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseEnterprisesGet+newAndroidEnterpriseEnterprisesGet enterpriseId =+ AndroidEnterpriseEnterprisesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseEnterprisesGet where+ type Rs AndroidEnterpriseEnterprisesGet = Enterprise+ type+ Scopes AndroidEnterpriseEnterprisesGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesGet {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseEnterprisesGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/GetServiceAccount.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.GetServiceAccount+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.getServiceAccount@.+module Gogol.AndroidEnterprise.Enterprises.GetServiceAccount+ ( -- * Resource+ AndroidEnterpriseEnterprisesGetServiceAccountResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesGetServiceAccount (..),+ newAndroidEnterpriseEnterprisesGetServiceAccount,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.getServiceAccount@ method which the+-- 'AndroidEnterpriseEnterprisesGetServiceAccount' request conforms to.+type AndroidEnterpriseEnterprisesGetServiceAccountResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "serviceAccount"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "keyType" EnterprisesGetServiceAccountKeyType+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ServiceAccount++-- | Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side. This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error. Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials. Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesGetServiceAccount' smart constructor.+data AndroidEnterpriseEnterprisesGetServiceAccount = AndroidEnterpriseEnterprisesGetServiceAccount+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The type of credential to return with the service account. Required.+ keyType :: (Core.Maybe EnterprisesGetServiceAccountKeyType),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesGetServiceAccount' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesGetServiceAccount ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseEnterprisesGetServiceAccount+newAndroidEnterpriseEnterprisesGetServiceAccount enterpriseId =+ AndroidEnterpriseEnterprisesGetServiceAccount+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ keyType = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesGetServiceAccount+ where+ type+ Rs AndroidEnterpriseEnterprisesGetServiceAccount =+ ServiceAccount+ type+ Scopes AndroidEnterpriseEnterprisesGetServiceAccount =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesGetServiceAccount {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ keyType+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesGetServiceAccountResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/GetStoreLayout.hs view
@@ -0,0 +1,117 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.GetStoreLayout+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Returns the store layout for the enterprise. If the store layout has not been set, returns \"basic\" as the store layout type and no homepage.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.getStoreLayout@.+module Gogol.AndroidEnterprise.Enterprises.GetStoreLayout+ ( -- * Resource+ AndroidEnterpriseEnterprisesGetStoreLayoutResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesGetStoreLayout (..),+ newAndroidEnterpriseEnterprisesGetStoreLayout,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.getStoreLayout@ method which the+-- 'AndroidEnterpriseEnterprisesGetStoreLayout' request conforms to.+type AndroidEnterpriseEnterprisesGetStoreLayoutResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] StoreLayout++-- | Returns the store layout for the enterprise. If the store layout has not been set, returns \"basic\" as the store layout type and no homepage.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesGetStoreLayout' smart constructor.+data AndroidEnterpriseEnterprisesGetStoreLayout = AndroidEnterpriseEnterprisesGetStoreLayout+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesGetStoreLayout' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesGetStoreLayout ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseEnterprisesGetStoreLayout+newAndroidEnterpriseEnterprisesGetStoreLayout enterpriseId =+ AndroidEnterpriseEnterprisesGetStoreLayout+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesGetStoreLayout+ where+ type Rs AndroidEnterpriseEnterprisesGetStoreLayout = StoreLayout+ type+ Scopes AndroidEnterpriseEnterprisesGetStoreLayout =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesGetStoreLayout {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesGetStoreLayoutResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/List.hs view
@@ -0,0 +1,111 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Looks up an enterprise by domain name. This is only supported for enterprises created via the Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the Enterprises.generateSignupUrl call.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.list@.+module Gogol.AndroidEnterprise.Enterprises.List+ ( -- * Resource+ AndroidEnterpriseEnterprisesListResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesList (..),+ newAndroidEnterpriseEnterprisesList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.list@ method which the+-- 'AndroidEnterpriseEnterprisesList' request conforms to.+type AndroidEnterpriseEnterprisesListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.QueryParam "domain" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] EnterprisesListResponse++-- | Looks up an enterprise by domain name. This is only supported for enterprises created via the Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the Enterprises.generateSignupUrl call.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesList' smart constructor.+data AndroidEnterpriseEnterprisesList = AndroidEnterpriseEnterprisesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The exact primary domain name of the enterprise to look up.+ domain :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesList' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesList ::+ -- | Required. The exact primary domain name of the enterprise to look up. See 'domain'.+ Core.Text ->+ AndroidEnterpriseEnterprisesList+newAndroidEnterpriseEnterprisesList domain =+ AndroidEnterpriseEnterprisesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ domain = domain,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseEnterprisesList where+ type Rs AndroidEnterpriseEnterprisesList = EnterprisesListResponse+ type+ Scopes AndroidEnterpriseEnterprisesList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesList {..} =+ go+ (Core.Just domain)+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseEnterprisesListResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/PullNotificationSet.hs view
@@ -0,0 +1,120 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.PullNotificationSet+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub\/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.pullNotificationSet@.+module Gogol.AndroidEnterprise.Enterprises.PullNotificationSet+ ( -- * Resource+ AndroidEnterpriseEnterprisesPullNotificationSetResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesPullNotificationSet (..),+ newAndroidEnterpriseEnterprisesPullNotificationSet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.pullNotificationSet@ method which the+-- 'AndroidEnterpriseEnterprisesPullNotificationSet' request conforms to.+type AndroidEnterpriseEnterprisesPullNotificationSetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> "pullNotificationSet"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam+ "requestMode"+ EnterprisesPullNotificationSetRequestMode+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] NotificationSet++-- | Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub\/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesPullNotificationSet' smart constructor.+data AndroidEnterpriseEnterprisesPullNotificationSet = AndroidEnterpriseEnterprisesPullNotificationSet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Specifying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.+ requestMode :: (Core.Maybe EnterprisesPullNotificationSetRequestMode),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesPullNotificationSet' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesPullNotificationSet ::+ AndroidEnterpriseEnterprisesPullNotificationSet+newAndroidEnterpriseEnterprisesPullNotificationSet =+ AndroidEnterpriseEnterprisesPullNotificationSet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ requestMode = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesPullNotificationSet+ where+ type+ Rs AndroidEnterpriseEnterprisesPullNotificationSet =+ NotificationSet+ type+ Scopes AndroidEnterpriseEnterprisesPullNotificationSet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesPullNotificationSet {..} =+ go+ xgafv+ accessToken+ callback+ requestMode+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesPullNotificationSetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/SendTestPushNotification.hs view
@@ -0,0 +1,123 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.SendTestPushNotification+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sends a test notification to validate the EMM integration with the Google Cloud Pub\/Sub service for this enterprise.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.sendTestPushNotification@.+module Gogol.AndroidEnterprise.Enterprises.SendTestPushNotification+ ( -- * Resource+ AndroidEnterpriseEnterprisesSendTestPushNotificationResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesSendTestPushNotification (..),+ newAndroidEnterpriseEnterprisesSendTestPushNotification,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.sendTestPushNotification@ method which the+-- 'AndroidEnterpriseEnterprisesSendTestPushNotification' request conforms to.+type AndroidEnterpriseEnterprisesSendTestPushNotificationResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "sendTestPushNotification"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] EnterprisesSendTestPushNotificationResponse++-- | Sends a test notification to validate the EMM integration with the Google Cloud Pub\/Sub service for this enterprise.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesSendTestPushNotification' smart constructor.+data AndroidEnterpriseEnterprisesSendTestPushNotification = AndroidEnterpriseEnterprisesSendTestPushNotification+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesSendTestPushNotification' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesSendTestPushNotification ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseEnterprisesSendTestPushNotification+newAndroidEnterpriseEnterprisesSendTestPushNotification+ enterpriseId =+ AndroidEnterpriseEnterprisesSendTestPushNotification+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesSendTestPushNotification+ where+ type+ Rs AndroidEnterpriseEnterprisesSendTestPushNotification =+ EnterprisesSendTestPushNotificationResponse+ type+ Scopes AndroidEnterpriseEnterprisesSendTestPushNotification =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseEnterprisesSendTestPushNotification {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseEnterprisesSendTestPushNotificationResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/SetAccount.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.SetAccount+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the account that will be used to authenticate to the API as the enterprise.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setAccount@.+module Gogol.AndroidEnterprise.Enterprises.SetAccount+ ( -- * Resource+ AndroidEnterpriseEnterprisesSetAccountResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesSetAccount (..),+ newAndroidEnterpriseEnterprisesSetAccount,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.setAccount@ method which the+-- 'AndroidEnterpriseEnterprisesSetAccount' request conforms to.+type AndroidEnterpriseEnterprisesSetAccountResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "account"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] EnterpriseAccount+ Core.:> Core.Put '[Core.JSON] EnterpriseAccount++-- | Sets the account that will be used to authenticate to the API as the enterprise.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesSetAccount' smart constructor.+data AndroidEnterpriseEnterprisesSetAccount = AndroidEnterpriseEnterprisesSetAccount+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: EnterpriseAccount,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesSetAccount' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesSetAccount ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ EnterpriseAccount ->+ AndroidEnterpriseEnterprisesSetAccount+newAndroidEnterpriseEnterprisesSetAccount enterpriseId payload =+ AndroidEnterpriseEnterprisesSetAccount+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseEnterprisesSetAccount where+ type Rs AndroidEnterpriseEnterprisesSetAccount = EnterpriseAccount+ type+ Scopes AndroidEnterpriseEnterprisesSetAccount =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesSetAccount {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesSetAccountResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/SetStoreLayout.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.SetStoreLayout+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Sets the store layout for the enterprise. By default, storeLayoutType is set to \"basic\" and the basic store layout is enabled. The basic layout only contains apps approved by the admin, and that have been added to the available product set for a user (using the setAvailableProductSet call). Apps on the page are sorted in order of their product ID value. If you create a custom store layout (by setting storeLayoutType = \"custom\" and setting a homepage), the basic store layout is disabled.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setStoreLayout@.+module Gogol.AndroidEnterprise.Enterprises.SetStoreLayout+ ( -- * Resource+ AndroidEnterpriseEnterprisesSetStoreLayoutResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesSetStoreLayout (..),+ newAndroidEnterpriseEnterprisesSetStoreLayout,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.setStoreLayout@ method which the+-- 'AndroidEnterpriseEnterprisesSetStoreLayout' request conforms to.+type AndroidEnterpriseEnterprisesSetStoreLayoutResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] StoreLayout+ Core.:> Core.Put '[Core.JSON] StoreLayout++-- | Sets the store layout for the enterprise. By default, storeLayoutType is set to \"basic\" and the basic store layout is enabled. The basic layout only contains apps approved by the admin, and that have been added to the available product set for a user (using the setAvailableProductSet call). Apps on the page are sorted in order of their product ID value. If you create a custom store layout (by setting storeLayoutType = \"custom\" and setting a homepage), the basic store layout is disabled.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesSetStoreLayout' smart constructor.+data AndroidEnterpriseEnterprisesSetStoreLayout = AndroidEnterpriseEnterprisesSetStoreLayout+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: StoreLayout,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesSetStoreLayout' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesSetStoreLayout ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ StoreLayout ->+ AndroidEnterpriseEnterprisesSetStoreLayout+newAndroidEnterpriseEnterprisesSetStoreLayout enterpriseId payload =+ AndroidEnterpriseEnterprisesSetStoreLayout+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseEnterprisesSetStoreLayout+ where+ type Rs AndroidEnterpriseEnterprisesSetStoreLayout = StoreLayout+ type+ Scopes AndroidEnterpriseEnterprisesSetStoreLayout =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesSetStoreLayout {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesSetStoreLayoutResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Enterprises/Unenroll.hs view
@@ -0,0 +1,114 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Enterprises.Unenroll+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Unenrolls an enterprise from the calling EMM.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.unenroll@.+module Gogol.AndroidEnterprise.Enterprises.Unenroll+ ( -- * Resource+ AndroidEnterpriseEnterprisesUnenrollResource,++ -- ** Constructing a Request+ AndroidEnterpriseEnterprisesUnenroll (..),+ newAndroidEnterpriseEnterprisesUnenroll,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.enterprises.unenroll@ method which the+-- 'AndroidEnterpriseEnterprisesUnenroll' request conforms to.+type AndroidEnterpriseEnterprisesUnenrollResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "unenroll"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] ()++-- | Unenrolls an enterprise from the calling EMM.+--+-- /See:/ 'newAndroidEnterpriseEnterprisesUnenroll' smart constructor.+data AndroidEnterpriseEnterprisesUnenroll = AndroidEnterpriseEnterprisesUnenroll+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEnterprisesUnenroll' with the minimum fields required to make a request.+newAndroidEnterpriseEnterprisesUnenroll ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseEnterprisesUnenroll+newAndroidEnterpriseEnterprisesUnenroll enterpriseId =+ AndroidEnterpriseEnterprisesUnenroll+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseEnterprisesUnenroll where+ type Rs AndroidEnterpriseEnterprisesUnenroll = ()+ type+ Scopes AndroidEnterpriseEnterprisesUnenroll =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEnterprisesUnenroll {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEnterprisesUnenrollResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Entitlements/Delete.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Entitlements.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes an entitlement to an app for a user. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.delete@.+module Gogol.AndroidEnterprise.Entitlements.Delete+ ( -- * Resource+ AndroidEnterpriseEntitlementsDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseEntitlementsDelete (..),+ newAndroidEnterpriseEntitlementsDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.entitlements.delete@ method which the+-- 'AndroidEnterpriseEntitlementsDelete' request conforms to.+type AndroidEnterpriseEntitlementsDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "entitlements"+ Core.:> Core.Capture "entitlementId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Removes an entitlement to an app for a user. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseEntitlementsDelete' smart constructor.+data AndroidEnterpriseEntitlementsDelete = AndroidEnterpriseEntitlementsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the entitlement (a product ID), e.g. \"app:com.google.android.gm\".+ entitlementId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEntitlementsDelete' with the minimum fields required to make a request.+newAndroidEnterpriseEntitlementsDelete ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the entitlement (a product ID), e.g. \"app:com.google.android.gm\". See 'entitlementId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseEntitlementsDelete+newAndroidEnterpriseEntitlementsDelete+ enterpriseId+ entitlementId+ userId =+ AndroidEnterpriseEntitlementsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ entitlementId = entitlementId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseEntitlementsDelete where+ type Rs AndroidEnterpriseEntitlementsDelete = ()+ type+ Scopes AndroidEnterpriseEntitlementsDelete =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEntitlementsDelete {..} =+ go+ enterpriseId+ userId+ entitlementId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEntitlementsDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Entitlements/Get.hs view
@@ -0,0 +1,130 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Entitlements.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of an entitlement. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.get@.+module Gogol.AndroidEnterprise.Entitlements.Get+ ( -- * Resource+ AndroidEnterpriseEntitlementsGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseEntitlementsGet (..),+ newAndroidEnterpriseEntitlementsGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.entitlements.get@ method which the+-- 'AndroidEnterpriseEntitlementsGet' request conforms to.+type AndroidEnterpriseEntitlementsGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "entitlements"+ Core.:> Core.Capture "entitlementId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Entitlement++-- | Retrieves details of an entitlement. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseEntitlementsGet' smart constructor.+data AndroidEnterpriseEntitlementsGet = AndroidEnterpriseEntitlementsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the entitlement (a product ID), e.g. \"app:com.google.android.gm\".+ entitlementId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEntitlementsGet' with the minimum fields required to make a request.+newAndroidEnterpriseEntitlementsGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the entitlement (a product ID), e.g. \"app:com.google.android.gm\". See 'entitlementId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseEntitlementsGet+newAndroidEnterpriseEntitlementsGet+ enterpriseId+ entitlementId+ userId =+ AndroidEnterpriseEntitlementsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ entitlementId = entitlementId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseEntitlementsGet where+ type Rs AndroidEnterpriseEntitlementsGet = Entitlement+ type+ Scopes AndroidEnterpriseEntitlementsGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEntitlementsGet {..} =+ go+ enterpriseId+ userId+ entitlementId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseEntitlementsGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Entitlements/List.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Entitlements.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all entitlements for the specified user. Only the ID is set. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.list@.+module Gogol.AndroidEnterprise.Entitlements.List+ ( -- * Resource+ AndroidEnterpriseEntitlementsListResource,++ -- ** Constructing a Request+ AndroidEnterpriseEntitlementsList (..),+ newAndroidEnterpriseEntitlementsList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.entitlements.list@ method which the+-- 'AndroidEnterpriseEntitlementsList' request conforms to.+type AndroidEnterpriseEntitlementsListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "entitlements"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] EntitlementsListResponse++-- | Lists all entitlements for the specified user. Only the ID is set. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseEntitlementsList' smart constructor.+data AndroidEnterpriseEntitlementsList = AndroidEnterpriseEntitlementsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEntitlementsList' with the minimum fields required to make a request.+newAndroidEnterpriseEntitlementsList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseEntitlementsList+newAndroidEnterpriseEntitlementsList enterpriseId userId =+ AndroidEnterpriseEntitlementsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseEntitlementsList where+ type+ Rs AndroidEnterpriseEntitlementsList =+ EntitlementsListResponse+ type+ Scopes AndroidEnterpriseEntitlementsList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEntitlementsList {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEntitlementsListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Entitlements/Update.hs view
@@ -0,0 +1,145 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Entitlements.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds or updates an entitlement to an app for a user. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.update@.+module Gogol.AndroidEnterprise.Entitlements.Update+ ( -- * Resource+ AndroidEnterpriseEntitlementsUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseEntitlementsUpdate (..),+ newAndroidEnterpriseEntitlementsUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.entitlements.update@ method which the+-- 'AndroidEnterpriseEntitlementsUpdate' request conforms to.+type AndroidEnterpriseEntitlementsUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "entitlements"+ Core.:> Core.Capture "entitlementId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "install" Core.Bool+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Entitlement+ Core.:> Core.Put '[Core.JSON] Entitlement++-- | Adds or updates an entitlement to an app for a user. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseEntitlementsUpdate' smart constructor.+data AndroidEnterpriseEntitlementsUpdate = AndroidEnterpriseEntitlementsUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the entitlement (a product ID), e.g. \"app:com.google.android.gm\".+ entitlementId :: Core.Text,+ -- | Set to true to also install the product on all the user\'s devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.+ install :: (Core.Maybe Core.Bool),+ -- | Multipart request metadata.+ payload :: Entitlement,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseEntitlementsUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseEntitlementsUpdate ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the entitlement (a product ID), e.g. \"app:com.google.android.gm\". See 'entitlementId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Entitlement ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseEntitlementsUpdate+newAndroidEnterpriseEntitlementsUpdate+ enterpriseId+ entitlementId+ payload+ userId =+ AndroidEnterpriseEntitlementsUpdate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ entitlementId = entitlementId,+ install = Core.Nothing,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseEntitlementsUpdate where+ type Rs AndroidEnterpriseEntitlementsUpdate = Entitlement+ type+ Scopes AndroidEnterpriseEntitlementsUpdate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseEntitlementsUpdate {..} =+ go+ enterpriseId+ userId+ entitlementId+ xgafv+ accessToken+ callback+ install+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseEntitlementsUpdateResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Grouplicenses/Get.hs view
@@ -0,0 +1,121 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Grouplicenses.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of an enterprise\'s group license for a product. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.get@.+module Gogol.AndroidEnterprise.Grouplicenses.Get+ ( -- * Resource+ AndroidEnterpriseGrouplicensesGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseGrouplicensesGet (..),+ newAndroidEnterpriseGrouplicensesGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.grouplicenses.get@ method which the+-- 'AndroidEnterpriseGrouplicensesGet' request conforms to.+type AndroidEnterpriseGrouplicensesGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "groupLicenses"+ Core.:> Core.Capture "groupLicenseId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GroupLicense++-- | Retrieves details of an enterprise\'s group license for a product. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseGrouplicensesGet' smart constructor.+data AndroidEnterpriseGrouplicensesGet = AndroidEnterpriseGrouplicensesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product the group license is for, e.g. \"app:com.google.android.gm\".+ groupLicenseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseGrouplicensesGet' with the minimum fields required to make a request.+newAndroidEnterpriseGrouplicensesGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product the group license is for, e.g. \"app:com.google.android.gm\". See 'groupLicenseId'.+ Core.Text ->+ AndroidEnterpriseGrouplicensesGet+newAndroidEnterpriseGrouplicensesGet enterpriseId groupLicenseId =+ AndroidEnterpriseGrouplicensesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ groupLicenseId = groupLicenseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseGrouplicensesGet where+ type Rs AndroidEnterpriseGrouplicensesGet = GroupLicense+ type+ Scopes AndroidEnterpriseGrouplicensesGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseGrouplicensesGet {..} =+ go+ enterpriseId+ groupLicenseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseGrouplicensesGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Grouplicenses/List.hs view
@@ -0,0 +1,116 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Grouplicenses.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves IDs of all products for which the enterprise has a group license. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.list@.+module Gogol.AndroidEnterprise.Grouplicenses.List+ ( -- * Resource+ AndroidEnterpriseGrouplicensesListResource,++ -- ** Constructing a Request+ AndroidEnterpriseGrouplicensesList (..),+ newAndroidEnterpriseGrouplicensesList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.grouplicenses.list@ method which the+-- 'AndroidEnterpriseGrouplicensesList' request conforms to.+type AndroidEnterpriseGrouplicensesListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "groupLicenses"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GroupLicensesListResponse++-- | Retrieves IDs of all products for which the enterprise has a group license. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseGrouplicensesList' smart constructor.+data AndroidEnterpriseGrouplicensesList = AndroidEnterpriseGrouplicensesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseGrouplicensesList' with the minimum fields required to make a request.+newAndroidEnterpriseGrouplicensesList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseGrouplicensesList+newAndroidEnterpriseGrouplicensesList enterpriseId =+ AndroidEnterpriseGrouplicensesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseGrouplicensesList where+ type+ Rs AndroidEnterpriseGrouplicensesList =+ GroupLicensesListResponse+ type+ Scopes AndroidEnterpriseGrouplicensesList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseGrouplicensesList {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseGrouplicensesListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Grouplicenseusers/List.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Grouplicenseusers.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the IDs of the users who have been granted entitlements under the license. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenseusers.list@.+module Gogol.AndroidEnterprise.Grouplicenseusers.List+ ( -- * Resource+ AndroidEnterpriseGrouplicenseusersListResource,++ -- ** Constructing a Request+ AndroidEnterpriseGrouplicenseusersList (..),+ newAndroidEnterpriseGrouplicenseusersList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.grouplicenseusers.list@ method which the+-- 'AndroidEnterpriseGrouplicenseusersList' request conforms to.+type AndroidEnterpriseGrouplicenseusersListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "groupLicenses"+ Core.:> Core.Capture "groupLicenseId" Core.Text+ Core.:> "users"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] GroupLicenseUsersListResponse++-- | Retrieves the IDs of the users who have been granted entitlements under the license. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseGrouplicenseusersList' smart constructor.+data AndroidEnterpriseGrouplicenseusersList = AndroidEnterpriseGrouplicenseusersList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product the group license is for, e.g. \"app:com.google.android.gm\".+ groupLicenseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseGrouplicenseusersList' with the minimum fields required to make a request.+newAndroidEnterpriseGrouplicenseusersList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product the group license is for, e.g. \"app:com.google.android.gm\". See 'groupLicenseId'.+ Core.Text ->+ AndroidEnterpriseGrouplicenseusersList+newAndroidEnterpriseGrouplicenseusersList+ enterpriseId+ groupLicenseId =+ AndroidEnterpriseGrouplicenseusersList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ groupLicenseId = groupLicenseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseGrouplicenseusersList where+ type+ Rs AndroidEnterpriseGrouplicenseusersList =+ GroupLicenseUsersListResponse+ type+ Scopes AndroidEnterpriseGrouplicenseusersList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseGrouplicenseusersList {..} =+ go+ enterpriseId+ groupLicenseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseGrouplicenseusersListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Installs/Delete.hs view
@@ -0,0 +1,139 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Installs.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Requests to remove an app from a device. A call to get or list will still show the app as installed on the device until it is actually removed. A successful response indicates that a removal request has been sent to the device. The call will be considered successful even if the app is not present on the device (e.g. it was never installed, or was removed by the user).+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.delete@.+module Gogol.AndroidEnterprise.Installs.Delete+ ( -- * Resource+ AndroidEnterpriseInstallsDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseInstallsDelete (..),+ newAndroidEnterpriseInstallsDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.installs.delete@ method which the+-- 'AndroidEnterpriseInstallsDelete' request conforms to.+type AndroidEnterpriseInstallsDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "installs"+ Core.:> Core.Capture "installId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Requests to remove an app from a device. A call to get or list will still show the app as installed on the device until it is actually removed. A successful response indicates that a removal request has been sent to the device. The call will be considered successful even if the app is not present on the device (e.g. it was never installed, or was removed by the user).+--+-- /See:/ 'newAndroidEnterpriseInstallsDelete' smart constructor.+data AndroidEnterpriseInstallsDelete = AndroidEnterpriseInstallsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product represented by the install, e.g. \"app:com.google.android.gm\".+ installId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseInstallsDelete' with the minimum fields required to make a request.+newAndroidEnterpriseInstallsDelete ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product represented by the install, e.g. \"app:com.google.android.gm\". See 'installId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseInstallsDelete+newAndroidEnterpriseInstallsDelete+ deviceId+ enterpriseId+ installId+ userId =+ AndroidEnterpriseInstallsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ installId = installId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseInstallsDelete where+ type Rs AndroidEnterpriseInstallsDelete = ()+ type+ Scopes AndroidEnterpriseInstallsDelete =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseInstallsDelete {..} =+ go+ enterpriseId+ userId+ deviceId+ installId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseInstallsDeleteResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Installs/Get.hs view
@@ -0,0 +1,139 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Installs.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of an installation of an app on a device.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.get@.+module Gogol.AndroidEnterprise.Installs.Get+ ( -- * Resource+ AndroidEnterpriseInstallsGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseInstallsGet (..),+ newAndroidEnterpriseInstallsGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.installs.get@ method which the+-- 'AndroidEnterpriseInstallsGet' request conforms to.+type AndroidEnterpriseInstallsGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "installs"+ Core.:> Core.Capture "installId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Install++-- | Retrieves details of an installation of an app on a device.+--+-- /See:/ 'newAndroidEnterpriseInstallsGet' smart constructor.+data AndroidEnterpriseInstallsGet = AndroidEnterpriseInstallsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product represented by the install, e.g. \"app:com.google.android.gm\".+ installId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseInstallsGet' with the minimum fields required to make a request.+newAndroidEnterpriseInstallsGet ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product represented by the install, e.g. \"app:com.google.android.gm\". See 'installId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseInstallsGet+newAndroidEnterpriseInstallsGet+ deviceId+ enterpriseId+ installId+ userId =+ AndroidEnterpriseInstallsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ installId = installId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseInstallsGet where+ type Rs AndroidEnterpriseInstallsGet = Install+ type+ Scopes AndroidEnterpriseInstallsGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseInstallsGet {..} =+ go+ enterpriseId+ userId+ deviceId+ installId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseInstallsGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Installs/List.hs view
@@ -0,0 +1,128 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Installs.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the details of all apps installed on the specified device.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.list@.+module Gogol.AndroidEnterprise.Installs.List+ ( -- * Resource+ AndroidEnterpriseInstallsListResource,++ -- ** Constructing a Request+ AndroidEnterpriseInstallsList (..),+ newAndroidEnterpriseInstallsList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.installs.list@ method which the+-- 'AndroidEnterpriseInstallsList' request conforms to.+type AndroidEnterpriseInstallsListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "installs"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] InstallsListResponse++-- | Retrieves the details of all apps installed on the specified device.+--+-- /See:/ 'newAndroidEnterpriseInstallsList' smart constructor.+data AndroidEnterpriseInstallsList = AndroidEnterpriseInstallsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseInstallsList' with the minimum fields required to make a request.+newAndroidEnterpriseInstallsList ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseInstallsList+newAndroidEnterpriseInstallsList deviceId enterpriseId userId =+ AndroidEnterpriseInstallsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseInstallsList where+ type Rs AndroidEnterpriseInstallsList = InstallsListResponse+ type+ Scopes AndroidEnterpriseInstallsList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseInstallsList {..} =+ go+ enterpriseId+ userId+ deviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseInstallsListResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Installs/Update.hs view
@@ -0,0 +1,147 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Installs.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Requests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.update@.+module Gogol.AndroidEnterprise.Installs.Update+ ( -- * Resource+ AndroidEnterpriseInstallsUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseInstallsUpdate (..),+ newAndroidEnterpriseInstallsUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.installs.update@ method which the+-- 'AndroidEnterpriseInstallsUpdate' request conforms to.+type AndroidEnterpriseInstallsUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "installs"+ Core.:> Core.Capture "installId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Install+ Core.:> Core.Put '[Core.JSON] Install++-- | Requests to install the latest version of an app to a device. If the app is already installed, then it is updated to the latest version if necessary.+--+-- /See:/ 'newAndroidEnterpriseInstallsUpdate' smart constructor.+data AndroidEnterpriseInstallsUpdate = AndroidEnterpriseInstallsUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product represented by the install, e.g. \"app:com.google.android.gm\".+ installId :: Core.Text,+ -- | Multipart request metadata.+ payload :: Install,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseInstallsUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseInstallsUpdate ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product represented by the install, e.g. \"app:com.google.android.gm\". See 'installId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Install ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseInstallsUpdate+newAndroidEnterpriseInstallsUpdate+ deviceId+ enterpriseId+ installId+ payload+ userId =+ AndroidEnterpriseInstallsUpdate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ installId = installId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseInstallsUpdate where+ type Rs AndroidEnterpriseInstallsUpdate = Install+ type+ Scopes AndroidEnterpriseInstallsUpdate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseInstallsUpdate {..} =+ go+ enterpriseId+ userId+ deviceId+ installId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseInstallsUpdateResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Internal/Product.hs view
@@ -0,0 +1,4106 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Internal.Product+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.AndroidEnterprise.Internal.Product+ ( -- * Administrator+ Administrator (..),+ newAdministrator,++ -- * AdministratorWebToken+ AdministratorWebToken (..),+ newAdministratorWebToken,++ -- * AdministratorWebTokenSpec+ AdministratorWebTokenSpec (..),+ newAdministratorWebTokenSpec,++ -- * AdministratorWebTokenSpecManagedConfigurations+ AdministratorWebTokenSpecManagedConfigurations (..),+ newAdministratorWebTokenSpecManagedConfigurations,++ -- * AdministratorWebTokenSpecPlaySearch+ AdministratorWebTokenSpecPlaySearch (..),+ newAdministratorWebTokenSpecPlaySearch,++ -- * AdministratorWebTokenSpecPrivateApps+ AdministratorWebTokenSpecPrivateApps (..),+ newAdministratorWebTokenSpecPrivateApps,++ -- * AdministratorWebTokenSpecStoreBuilder+ AdministratorWebTokenSpecStoreBuilder (..),+ newAdministratorWebTokenSpecStoreBuilder,++ -- * AdministratorWebTokenSpecWebApps+ AdministratorWebTokenSpecWebApps (..),+ newAdministratorWebTokenSpecWebApps,++ -- * AdministratorWebTokenSpecZeroTouch+ AdministratorWebTokenSpecZeroTouch (..),+ newAdministratorWebTokenSpecZeroTouch,++ -- * AppRestrictionsSchema+ AppRestrictionsSchema (..),+ newAppRestrictionsSchema,++ -- * AppRestrictionsSchemaChangeEvent+ AppRestrictionsSchemaChangeEvent (..),+ newAppRestrictionsSchemaChangeEvent,++ -- * AppRestrictionsSchemaRestriction+ AppRestrictionsSchemaRestriction (..),+ newAppRestrictionsSchemaRestriction,++ -- * AppRestrictionsSchemaRestrictionRestrictionValue+ AppRestrictionsSchemaRestrictionRestrictionValue (..),+ newAppRestrictionsSchemaRestrictionRestrictionValue,++ -- * AppState+ AppState (..),+ newAppState,++ -- * AppUpdateEvent+ AppUpdateEvent (..),+ newAppUpdateEvent,++ -- * AppVersion+ AppVersion (..),+ newAppVersion,++ -- * ApprovalUrlInfo+ ApprovalUrlInfo (..),+ newApprovalUrlInfo,++ -- * AuthenticationToken+ AuthenticationToken (..),+ newAuthenticationToken,++ -- * AutoInstallConstraint+ AutoInstallConstraint (..),+ newAutoInstallConstraint,++ -- * AutoInstallPolicy+ AutoInstallPolicy (..),+ newAutoInstallPolicy,++ -- * ConfigurationVariables+ ConfigurationVariables (..),+ newConfigurationVariables,++ -- * Device+ Device (..),+ newDevice,++ -- * DeviceReport+ DeviceReport (..),+ newDeviceReport,++ -- * DeviceReportUpdateEvent+ DeviceReportUpdateEvent (..),+ newDeviceReportUpdateEvent,++ -- * DeviceState+ DeviceState (..),+ newDeviceState,++ -- * DevicesListResponse+ DevicesListResponse (..),+ newDevicesListResponse,++ -- * EnrollmentToken+ EnrollmentToken (..),+ newEnrollmentToken,++ -- * Enterprise+ Enterprise (..),+ newEnterprise,++ -- * EnterpriseAccount+ EnterpriseAccount (..),+ newEnterpriseAccount,++ -- * EnterpriseAuthenticationAppLinkConfig+ EnterpriseAuthenticationAppLinkConfig (..),+ newEnterpriseAuthenticationAppLinkConfig,++ -- * EnterpriseUpgradeEvent+ EnterpriseUpgradeEvent (..),+ newEnterpriseUpgradeEvent,++ -- * EnterprisesListResponse+ EnterprisesListResponse (..),+ newEnterprisesListResponse,++ -- * EnterprisesSendTestPushNotificationResponse+ EnterprisesSendTestPushNotificationResponse (..),+ newEnterprisesSendTestPushNotificationResponse,++ -- * Entitlement+ Entitlement (..),+ newEntitlement,++ -- * EntitlementsListResponse+ EntitlementsListResponse (..),+ newEntitlementsListResponse,++ -- * GenerateEnterpriseUpgradeUrlResponse+ GenerateEnterpriseUpgradeUrlResponse (..),+ newGenerateEnterpriseUpgradeUrlResponse,++ -- * GoogleAuthenticationSettings+ GoogleAuthenticationSettings (..),+ newGoogleAuthenticationSettings,++ -- * GroupLicense+ GroupLicense (..),+ newGroupLicense,++ -- * GroupLicenseUsersListResponse+ GroupLicenseUsersListResponse (..),+ newGroupLicenseUsersListResponse,++ -- * GroupLicensesListResponse+ GroupLicensesListResponse (..),+ newGroupLicensesListResponse,++ -- * Install+ Install (..),+ newInstall,++ -- * InstallFailureEvent+ InstallFailureEvent (..),+ newInstallFailureEvent,++ -- * InstallsListResponse+ InstallsListResponse (..),+ newInstallsListResponse,++ -- * KeyedAppState+ KeyedAppState (..),+ newKeyedAppState,++ -- * LocalizedText+ LocalizedText (..),+ newLocalizedText,++ -- * MaintenanceWindow+ MaintenanceWindow (..),+ newMaintenanceWindow,++ -- * ManagedConfiguration+ ManagedConfiguration (..),+ newManagedConfiguration,++ -- * ManagedConfigurationsForDeviceListResponse+ ManagedConfigurationsForDeviceListResponse (..),+ newManagedConfigurationsForDeviceListResponse,++ -- * ManagedConfigurationsForUserListResponse+ ManagedConfigurationsForUserListResponse (..),+ newManagedConfigurationsForUserListResponse,++ -- * ManagedConfigurationsSettings+ ManagedConfigurationsSettings (..),+ newManagedConfigurationsSettings,++ -- * ManagedConfigurationsSettingsListResponse+ ManagedConfigurationsSettingsListResponse (..),+ newManagedConfigurationsSettingsListResponse,++ -- * ManagedProperty+ ManagedProperty (..),+ newManagedProperty,++ -- * ManagedPropertyBundle+ ManagedPropertyBundle (..),+ newManagedPropertyBundle,++ -- * NewDeviceEvent+ NewDeviceEvent (..),+ newNewDeviceEvent,++ -- * NewPermissionsEvent+ NewPermissionsEvent (..),+ newNewPermissionsEvent,++ -- * Notification+ Notification (..),+ newNotification,++ -- * NotificationSet+ NotificationSet (..),+ newNotificationSet,++ -- * PageInfo+ PageInfo (..),+ newPageInfo,++ -- * Permission+ Permission (..),+ newPermission,++ -- * Policy+ Policy (..),+ newPolicy,++ -- * Product+ Product (..),+ newProduct,++ -- * ProductApprovalEvent+ ProductApprovalEvent (..),+ newProductApprovalEvent,++ -- * ProductAvailabilityChangeEvent+ ProductAvailabilityChangeEvent (..),+ newProductAvailabilityChangeEvent,++ -- * ProductPermission+ ProductPermission (..),+ newProductPermission,++ -- * ProductPermissions+ ProductPermissions (..),+ newProductPermissions,++ -- * ProductPolicy+ ProductPolicy (..),+ newProductPolicy,++ -- * ProductSet+ ProductSet (..),+ newProductSet,++ -- * ProductSigningCertificate+ ProductSigningCertificate (..),+ newProductSigningCertificate,++ -- * ProductVisibility+ ProductVisibility (..),+ newProductVisibility,++ -- * ProductsApproveRequest+ ProductsApproveRequest (..),+ newProductsApproveRequest,++ -- * ProductsGenerateApprovalUrlResponse+ ProductsGenerateApprovalUrlResponse (..),+ newProductsGenerateApprovalUrlResponse,++ -- * ProductsListResponse+ ProductsListResponse (..),+ newProductsListResponse,++ -- * ServiceAccount+ ServiceAccount (..),+ newServiceAccount,++ -- * ServiceAccountKey+ ServiceAccountKey (..),+ newServiceAccountKey,++ -- * ServiceAccountKeysListResponse+ ServiceAccountKeysListResponse (..),+ newServiceAccountKeysListResponse,++ -- * SignupInfo+ SignupInfo (..),+ newSignupInfo,++ -- * StoreCluster+ StoreCluster (..),+ newStoreCluster,++ -- * StoreLayout+ StoreLayout (..),+ newStoreLayout,++ -- * StoreLayoutClustersListResponse+ StoreLayoutClustersListResponse (..),+ newStoreLayoutClustersListResponse,++ -- * StoreLayoutPagesListResponse+ StoreLayoutPagesListResponse (..),+ newStoreLayoutPagesListResponse,++ -- * StorePage+ StorePage (..),+ newStorePage,++ -- * TokenPagination+ TokenPagination (..),+ newTokenPagination,++ -- * TrackInfo+ TrackInfo (..),+ newTrackInfo,++ -- * User+ User (..),+ newUser,++ -- * UsersListResponse+ UsersListResponse (..),+ newUsersListResponse,++ -- * VariableSet+ VariableSet (..),+ newVariableSet,++ -- * WebApp+ WebApp (..),+ newWebApp,++ -- * WebAppIcon+ WebAppIcon (..),+ newWebAppIcon,++ -- * WebAppsListResponse+ WebAppsListResponse (..),+ newWebAppsListResponse,+ )+where++import Gogol.AndroidEnterprise.Internal.Sum+import Gogol.Prelude qualified as Core++-- | This represents an enterprise admin who can manage the enterprise in the managed Google Play store.+--+-- /See:/ 'newAdministrator' smart constructor.+newtype Administrator = Administrator+ { -- | The admin\'s email address.+ email :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Administrator' with the minimum fields required to make a request.+newAdministrator ::+ Administrator+newAdministrator = Administrator {email = Core.Nothing}++instance Core.FromJSON Administrator where+ parseJSON =+ Core.withObject+ "Administrator"+ (\o -> Administrator Core.<$> (o Core..:? "email"))++instance Core.ToJSON Administrator where+ toJSON Administrator {..} =+ Core.object (Core.catMaybes [("email" Core..=) Core.<$> email])++-- | A token authorizing an admin to access an iframe.+--+-- /See:/ 'newAdministratorWebToken' smart constructor.+newtype AdministratorWebToken = AdministratorWebToken+ { -- | An opaque token to be passed to the Play front-end to generate an iframe.+ token :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebToken' with the minimum fields required to make a request.+newAdministratorWebToken ::+ AdministratorWebToken+newAdministratorWebToken =+ AdministratorWebToken {token = Core.Nothing}++instance Core.FromJSON AdministratorWebToken where+ parseJSON =+ Core.withObject+ "AdministratorWebToken"+ (\o -> AdministratorWebToken Core.<$> (o Core..:? "token"))++instance Core.ToJSON AdministratorWebToken where+ toJSON AdministratorWebToken {..} =+ Core.object (Core.catMaybes [("token" Core..=) Core.<$> token])++-- | Specification for a token used to generate iframes. The token specifies what data the admin is allowed to modify and the URI the iframe is allowed to communiate with.+--+-- /See:/ 'newAdministratorWebTokenSpec' smart constructor.+data AdministratorWebTokenSpec = AdministratorWebTokenSpec+ { -- | Options for displaying the Managed Configuration page.+ managedConfigurations :: (Core.Maybe AdministratorWebTokenSpecManagedConfigurations),+ -- | The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https. Use whitespaces to separate multiple parent URIs.+ parent :: (Core.Maybe Core.Text),+ -- | Deprecated. Use PlaySearch.approveApps.+ permission :: (Core.Maybe [AdministratorWebTokenSpec_PermissionItem]),+ -- | Options for displaying the managed Play Search apps page.+ playSearch :: (Core.Maybe AdministratorWebTokenSpecPlaySearch),+ -- | Options for displaying the Private Apps page.+ privateApps :: (Core.Maybe AdministratorWebTokenSpecPrivateApps),+ -- | Options for displaying the Organize apps page.+ storeBuilder :: (Core.Maybe AdministratorWebTokenSpecStoreBuilder),+ -- | Options for displaying the Web Apps page.+ webApps :: (Core.Maybe AdministratorWebTokenSpecWebApps),+ -- | Options for displaying the Zero Touch page.+ zeroTouch :: (Core.Maybe AdministratorWebTokenSpecZeroTouch)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebTokenSpec' with the minimum fields required to make a request.+newAdministratorWebTokenSpec ::+ AdministratorWebTokenSpec+newAdministratorWebTokenSpec =+ AdministratorWebTokenSpec+ { managedConfigurations = Core.Nothing,+ parent = Core.Nothing,+ permission = Core.Nothing,+ playSearch = Core.Nothing,+ privateApps = Core.Nothing,+ storeBuilder = Core.Nothing,+ webApps = Core.Nothing,+ zeroTouch = Core.Nothing+ }++instance Core.FromJSON AdministratorWebTokenSpec where+ parseJSON =+ Core.withObject+ "AdministratorWebTokenSpec"+ ( \o ->+ AdministratorWebTokenSpec+ Core.<$> (o Core..:? "managedConfigurations")+ Core.<*> (o Core..:? "parent")+ Core.<*> (o Core..:? "permission")+ Core.<*> (o Core..:? "playSearch")+ Core.<*> (o Core..:? "privateApps")+ Core.<*> (o Core..:? "storeBuilder")+ Core.<*> (o Core..:? "webApps")+ Core.<*> (o Core..:? "zeroTouch")+ )++instance Core.ToJSON AdministratorWebTokenSpec where+ toJSON AdministratorWebTokenSpec {..} =+ Core.object+ ( Core.catMaybes+ [ ("managedConfigurations" Core..=) Core.<$> managedConfigurations,+ ("parent" Core..=) Core.<$> parent,+ ("permission" Core..=) Core.<$> permission,+ ("playSearch" Core..=) Core.<$> playSearch,+ ("privateApps" Core..=) Core.<$> privateApps,+ ("storeBuilder" Core..=) Core.<$> storeBuilder,+ ("webApps" Core..=) Core.<$> webApps,+ ("zeroTouch" Core..=) Core.<$> zeroTouch+ ]+ )++--+-- /See:/ 'newAdministratorWebTokenSpecManagedConfigurations' smart constructor.+newtype AdministratorWebTokenSpecManagedConfigurations = AdministratorWebTokenSpecManagedConfigurations+ { -- | Whether the Managed Configuration page is displayed. Default is true.+ enabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebTokenSpecManagedConfigurations' with the minimum fields required to make a request.+newAdministratorWebTokenSpecManagedConfigurations ::+ AdministratorWebTokenSpecManagedConfigurations+newAdministratorWebTokenSpecManagedConfigurations =+ AdministratorWebTokenSpecManagedConfigurations+ { enabled =+ Core.Nothing+ }++instance+ Core.FromJSON+ AdministratorWebTokenSpecManagedConfigurations+ where+ parseJSON =+ Core.withObject+ "AdministratorWebTokenSpecManagedConfigurations"+ ( \o ->+ AdministratorWebTokenSpecManagedConfigurations+ Core.<$> (o Core..:? "enabled")+ )++instance Core.ToJSON AdministratorWebTokenSpecManagedConfigurations where+ toJSON AdministratorWebTokenSpecManagedConfigurations {..} =+ Core.object+ (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++--+-- /See:/ 'newAdministratorWebTokenSpecPlaySearch' smart constructor.+data AdministratorWebTokenSpecPlaySearch = AdministratorWebTokenSpecPlaySearch+ { -- | Allow access to the iframe in approve mode. Default is false.+ approveApps :: (Core.Maybe Core.Bool),+ -- | Whether the managed Play Search apps page is displayed. Default is true.+ enabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebTokenSpecPlaySearch' with the minimum fields required to make a request.+newAdministratorWebTokenSpecPlaySearch ::+ AdministratorWebTokenSpecPlaySearch+newAdministratorWebTokenSpecPlaySearch =+ AdministratorWebTokenSpecPlaySearch+ { approveApps = Core.Nothing,+ enabled = Core.Nothing+ }++instance Core.FromJSON AdministratorWebTokenSpecPlaySearch where+ parseJSON =+ Core.withObject+ "AdministratorWebTokenSpecPlaySearch"+ ( \o ->+ AdministratorWebTokenSpecPlaySearch+ Core.<$> (o Core..:? "approveApps")+ Core.<*> (o Core..:? "enabled")+ )++instance Core.ToJSON AdministratorWebTokenSpecPlaySearch where+ toJSON AdministratorWebTokenSpecPlaySearch {..} =+ Core.object+ ( Core.catMaybes+ [ ("approveApps" Core..=) Core.<$> approveApps,+ ("enabled" Core..=) Core.<$> enabled+ ]+ )++--+-- /See:/ 'newAdministratorWebTokenSpecPrivateApps' smart constructor.+newtype AdministratorWebTokenSpecPrivateApps = AdministratorWebTokenSpecPrivateApps+ { -- | Whether the Private Apps page is displayed. Default is true.+ enabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebTokenSpecPrivateApps' with the minimum fields required to make a request.+newAdministratorWebTokenSpecPrivateApps ::+ AdministratorWebTokenSpecPrivateApps+newAdministratorWebTokenSpecPrivateApps =+ AdministratorWebTokenSpecPrivateApps {enabled = Core.Nothing}++instance Core.FromJSON AdministratorWebTokenSpecPrivateApps where+ parseJSON =+ Core.withObject+ "AdministratorWebTokenSpecPrivateApps"+ ( \o ->+ AdministratorWebTokenSpecPrivateApps+ Core.<$> (o Core..:? "enabled")+ )++instance Core.ToJSON AdministratorWebTokenSpecPrivateApps where+ toJSON AdministratorWebTokenSpecPrivateApps {..} =+ Core.object+ (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++--+-- /See:/ 'newAdministratorWebTokenSpecStoreBuilder' smart constructor.+newtype AdministratorWebTokenSpecStoreBuilder = AdministratorWebTokenSpecStoreBuilder+ { -- | Whether the Organize apps page is displayed. Default is true.+ enabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebTokenSpecStoreBuilder' with the minimum fields required to make a request.+newAdministratorWebTokenSpecStoreBuilder ::+ AdministratorWebTokenSpecStoreBuilder+newAdministratorWebTokenSpecStoreBuilder =+ AdministratorWebTokenSpecStoreBuilder {enabled = Core.Nothing}++instance Core.FromJSON AdministratorWebTokenSpecStoreBuilder where+ parseJSON =+ Core.withObject+ "AdministratorWebTokenSpecStoreBuilder"+ ( \o ->+ AdministratorWebTokenSpecStoreBuilder+ Core.<$> (o Core..:? "enabled")+ )++instance Core.ToJSON AdministratorWebTokenSpecStoreBuilder where+ toJSON AdministratorWebTokenSpecStoreBuilder {..} =+ Core.object+ (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++--+-- /See:/ 'newAdministratorWebTokenSpecWebApps' smart constructor.+newtype AdministratorWebTokenSpecWebApps = AdministratorWebTokenSpecWebApps+ { -- | Whether the Web Apps page is displayed. Default is true.+ enabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebTokenSpecWebApps' with the minimum fields required to make a request.+newAdministratorWebTokenSpecWebApps ::+ AdministratorWebTokenSpecWebApps+newAdministratorWebTokenSpecWebApps =+ AdministratorWebTokenSpecWebApps {enabled = Core.Nothing}++instance Core.FromJSON AdministratorWebTokenSpecWebApps where+ parseJSON =+ Core.withObject+ "AdministratorWebTokenSpecWebApps"+ ( \o ->+ AdministratorWebTokenSpecWebApps Core.<$> (o Core..:? "enabled")+ )++instance Core.ToJSON AdministratorWebTokenSpecWebApps where+ toJSON AdministratorWebTokenSpecWebApps {..} =+ Core.object+ (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++--+-- /See:/ 'newAdministratorWebTokenSpecZeroTouch' smart constructor.+newtype AdministratorWebTokenSpecZeroTouch = AdministratorWebTokenSpecZeroTouch+ { -- | Whether zero-touch embedded UI is usable with this token. If enabled, the admin can link zero-touch customers to this enterprise.+ enabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdministratorWebTokenSpecZeroTouch' with the minimum fields required to make a request.+newAdministratorWebTokenSpecZeroTouch ::+ AdministratorWebTokenSpecZeroTouch+newAdministratorWebTokenSpecZeroTouch =+ AdministratorWebTokenSpecZeroTouch {enabled = Core.Nothing}++instance Core.FromJSON AdministratorWebTokenSpecZeroTouch where+ parseJSON =+ Core.withObject+ "AdministratorWebTokenSpecZeroTouch"+ ( \o ->+ AdministratorWebTokenSpecZeroTouch Core.<$> (o Core..:? "enabled")+ )++instance Core.ToJSON AdministratorWebTokenSpecZeroTouch where+ toJSON AdministratorWebTokenSpecZeroTouch {..} =+ Core.object+ (Core.catMaybes [("enabled" Core..=) Core.<$> enabled])++-- | Represents the list of app restrictions available to be pre-configured for the product.+--+-- /See:/ 'newAppRestrictionsSchema' smart constructor.+data AppRestrictionsSchema = AppRestrictionsSchema+ { -- | Deprecated.+ kind :: (Core.Maybe Core.Text),+ -- | The set of restrictions that make up this schema.+ restrictions :: (Core.Maybe [AppRestrictionsSchemaRestriction])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppRestrictionsSchema' with the minimum fields required to make a request.+newAppRestrictionsSchema ::+ AppRestrictionsSchema+newAppRestrictionsSchema =+ AppRestrictionsSchema+ { kind = Core.Nothing,+ restrictions = Core.Nothing+ }++instance Core.FromJSON AppRestrictionsSchema where+ parseJSON =+ Core.withObject+ "AppRestrictionsSchema"+ ( \o ->+ AppRestrictionsSchema+ Core.<$> (o Core..:? "kind")+ Core.<*> (o Core..:? "restrictions")+ )++instance Core.ToJSON AppRestrictionsSchema where+ toJSON AppRestrictionsSchema {..} =+ Core.object+ ( Core.catMaybes+ [ ("kind" Core..=) Core.<$> kind,+ ("restrictions" Core..=) Core.<$> restrictions+ ]+ )++-- | An event generated when a new app version is uploaded to Google Play and its app restrictions schema changed. To fetch the app restrictions schema for an app, use Products.getAppRestrictionsSchema on the EMM API.+--+-- /See:/ 'newAppRestrictionsSchemaChangeEvent' smart constructor.+newtype AppRestrictionsSchemaChangeEvent = AppRestrictionsSchemaChangeEvent+ { -- | The id of the product (e.g. \"app:com.google.android.gm\") for which the app restriction schema changed. This field will always be present.+ productId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppRestrictionsSchemaChangeEvent' with the minimum fields required to make a request.+newAppRestrictionsSchemaChangeEvent ::+ AppRestrictionsSchemaChangeEvent+newAppRestrictionsSchemaChangeEvent =+ AppRestrictionsSchemaChangeEvent {productId = Core.Nothing}++instance Core.FromJSON AppRestrictionsSchemaChangeEvent where+ parseJSON =+ Core.withObject+ "AppRestrictionsSchemaChangeEvent"+ ( \o ->+ AppRestrictionsSchemaChangeEvent Core.<$> (o Core..:? "productId")+ )++instance Core.ToJSON AppRestrictionsSchemaChangeEvent where+ toJSON AppRestrictionsSchemaChangeEvent {..} =+ Core.object+ (Core.catMaybes [("productId" Core..=) Core.<$> productId])++-- | A restriction in the App Restriction Schema represents a piece of configuration that may be pre-applied.+--+-- /See:/ 'newAppRestrictionsSchemaRestriction' smart constructor.+data AppRestrictionsSchemaRestriction = AppRestrictionsSchemaRestriction+ { -- | The default value of the restriction. bundle and bundleArray restrictions never have a default value.+ defaultValue :: (Core.Maybe AppRestrictionsSchemaRestrictionRestrictionValue),+ -- | A longer description of the restriction, giving more detail of what it affects.+ description :: (Core.Maybe Core.Text),+ -- | For choice or multiselect restrictions, the list of possible entries\' human-readable names.+ entry :: (Core.Maybe [Core.Text]),+ -- | For choice or multiselect restrictions, the list of possible entries\' machine-readable values. These values should be used in the configuration, either as a single string value for a choice restriction or in a stringArray for a multiselect restriction.+ entryValue :: (Core.Maybe [Core.Text]),+ -- | The unique key that the product uses to identify the restriction, e.g. \"com.google.android.gm.fieldname\".+ key :: (Core.Maybe Core.Text),+ -- | For bundle or bundleArray restrictions, the list of nested restrictions. A bundle restriction is always nested within a bundleArray restriction, and a bundleArray restriction is at most two levels deep.+ nestedRestriction :: (Core.Maybe [AppRestrictionsSchemaRestriction]),+ -- | The type of the restriction.+ restrictionType :: (Core.Maybe AppRestrictionsSchemaRestriction_RestrictionType),+ -- | The name of the restriction.+ title :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppRestrictionsSchemaRestriction' with the minimum fields required to make a request.+newAppRestrictionsSchemaRestriction ::+ AppRestrictionsSchemaRestriction+newAppRestrictionsSchemaRestriction =+ AppRestrictionsSchemaRestriction+ { defaultValue = Core.Nothing,+ description = Core.Nothing,+ entry = Core.Nothing,+ entryValue = Core.Nothing,+ key = Core.Nothing,+ nestedRestriction = Core.Nothing,+ restrictionType = Core.Nothing,+ title = Core.Nothing+ }++instance Core.FromJSON AppRestrictionsSchemaRestriction where+ parseJSON =+ Core.withObject+ "AppRestrictionsSchemaRestriction"+ ( \o ->+ AppRestrictionsSchemaRestriction+ Core.<$> (o Core..:? "defaultValue")+ Core.<*> (o Core..:? "description")+ Core.<*> (o Core..:? "entry")+ Core.<*> (o Core..:? "entryValue")+ Core.<*> (o Core..:? "key")+ Core.<*> (o Core..:? "nestedRestriction")+ Core.<*> (o Core..:? "restrictionType")+ Core.<*> (o Core..:? "title")+ )++instance Core.ToJSON AppRestrictionsSchemaRestriction where+ toJSON AppRestrictionsSchemaRestriction {..} =+ Core.object+ ( Core.catMaybes+ [ ("defaultValue" Core..=) Core.<$> defaultValue,+ ("description" Core..=) Core.<$> description,+ ("entry" Core..=) Core.<$> entry,+ ("entryValue" Core..=) Core.<$> entryValue,+ ("key" Core..=) Core.<$> key,+ ("nestedRestriction" Core..=) Core.<$> nestedRestriction,+ ("restrictionType" Core..=) Core.<$> restrictionType,+ ("title" Core..=) Core.<$> title+ ]+ )++-- | A typed value for the restriction.+--+-- /See:/ 'newAppRestrictionsSchemaRestrictionRestrictionValue' smart constructor.+data AppRestrictionsSchemaRestrictionRestrictionValue = AppRestrictionsSchemaRestrictionRestrictionValue+ { -- | The type of the value being provided.+ type' :: (Core.Maybe AppRestrictionsSchemaRestrictionRestrictionValue_Type),+ -- | The boolean value - this will only be present if type is bool.+ valueBool :: (Core.Maybe Core.Bool),+ -- | The integer value - this will only be present if type is integer.+ valueInteger :: (Core.Maybe Core.Int32),+ -- | The list of string values - this will only be present if type is multiselect.+ valueMultiselect :: (Core.Maybe [Core.Text]),+ -- | The string value - this will be present for types string, choice and hidden.+ valueString :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppRestrictionsSchemaRestrictionRestrictionValue' with the minimum fields required to make a request.+newAppRestrictionsSchemaRestrictionRestrictionValue ::+ AppRestrictionsSchemaRestrictionRestrictionValue+newAppRestrictionsSchemaRestrictionRestrictionValue =+ AppRestrictionsSchemaRestrictionRestrictionValue+ { type' =+ Core.Nothing,+ valueBool = Core.Nothing,+ valueInteger = Core.Nothing,+ valueMultiselect = Core.Nothing,+ valueString = Core.Nothing+ }++instance+ Core.FromJSON+ AppRestrictionsSchemaRestrictionRestrictionValue+ where+ parseJSON =+ Core.withObject+ "AppRestrictionsSchemaRestrictionRestrictionValue"+ ( \o ->+ AppRestrictionsSchemaRestrictionRestrictionValue+ Core.<$> (o Core..:? "type")+ Core.<*> (o Core..:? "valueBool")+ Core.<*> (o Core..:? "valueInteger")+ Core.<*> (o Core..:? "valueMultiselect")+ Core.<*> (o Core..:? "valueString")+ )++instance+ Core.ToJSON+ AppRestrictionsSchemaRestrictionRestrictionValue+ where+ toJSON AppRestrictionsSchemaRestrictionRestrictionValue {..} =+ Core.object+ ( Core.catMaybes+ [ ("type" Core..=) Core.<$> type',+ ("valueBool" Core..=) Core.<$> valueBool,+ ("valueInteger" Core..=) Core.<$> valueInteger,+ ("valueMultiselect" Core..=) Core.<$> valueMultiselect,+ ("valueString" Core..=) Core.<$> valueString+ ]+ )++-- | List of states set by the app.+--+-- /See:/ 'newAppState' smart constructor.+data AppState = AppState+ { -- | List of keyed app states. This field will always be present.+ keyedAppState :: (Core.Maybe [KeyedAppState]),+ -- | The package name of the app. This field will always be present.+ packageName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppState' with the minimum fields required to make a request.+newAppState ::+ AppState+newAppState =+ AppState+ { keyedAppState = Core.Nothing,+ packageName = Core.Nothing+ }++instance Core.FromJSON AppState where+ parseJSON =+ Core.withObject+ "AppState"+ ( \o ->+ AppState+ Core.<$> (o Core..:? "keyedAppState")+ Core.<*> (o Core..:? "packageName")+ )++instance Core.ToJSON AppState where+ toJSON AppState {..} =+ Core.object+ ( Core.catMaybes+ [ ("keyedAppState" Core..=) Core.<$> keyedAppState,+ ("packageName" Core..=) Core.<$> packageName+ ]+ )++-- | An event generated when a new version of an app is uploaded to Google Play. Notifications are sent for new public versions only: alpha, beta, or canary versions do not generate this event. To fetch up-to-date version history for an app, use Products.Get on the EMM API.+--+-- /See:/ 'newAppUpdateEvent' smart constructor.+newtype AppUpdateEvent = AppUpdateEvent+ { -- | The id of the product (e.g. \"app:com.google.android.gm\") that was updated. This field will always be present.+ productId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppUpdateEvent' with the minimum fields required to make a request.+newAppUpdateEvent ::+ AppUpdateEvent+newAppUpdateEvent = AppUpdateEvent {productId = Core.Nothing}++instance Core.FromJSON AppUpdateEvent where+ parseJSON =+ Core.withObject+ "AppUpdateEvent"+ (\o -> AppUpdateEvent Core.<$> (o Core..:? "productId"))++instance Core.ToJSON AppUpdateEvent where+ toJSON AppUpdateEvent {..} =+ Core.object+ (Core.catMaybes [("productId" Core..=) Core.<$> productId])++-- | This represents a single version of the app.+--+-- /See:/ 'newAppVersion' smart constructor.+data AppVersion = AppVersion+ { -- | True if this version is a production APK.+ isProduction :: (Core.Maybe Core.Bool),+ -- | The SDK version this app targets, as specified in the manifest of the APK. See http:\/\/developer.android.com\/guide\/topics\/manifest\/uses-sdk-element.html+ targetSdkVersion :: (Core.Maybe Core.Int32),+ -- | Deprecated, use trackId instead.+ track :: (Core.Maybe AppVersion_Track),+ -- | Track ids that the app version is published in. Replaces the track field (deprecated), but doesn\'t include the production track (see isProduction instead).+ trackId :: (Core.Maybe [Core.Text]),+ -- | Unique increasing identifier for the app version.+ versionCode :: (Core.Maybe Core.Int32),+ -- | The string used in the Play store by the app developer to identify the version. The string is not necessarily unique or localized (for example, the string could be \"1.4\").+ versionString :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppVersion' with the minimum fields required to make a request.+newAppVersion ::+ AppVersion+newAppVersion =+ AppVersion+ { isProduction = Core.Nothing,+ targetSdkVersion = Core.Nothing,+ track = Core.Nothing,+ trackId = Core.Nothing,+ versionCode = Core.Nothing,+ versionString = Core.Nothing+ }++instance Core.FromJSON AppVersion where+ parseJSON =+ Core.withObject+ "AppVersion"+ ( \o ->+ AppVersion+ Core.<$> (o Core..:? "isProduction")+ Core.<*> (o Core..:? "targetSdkVersion")+ Core.<*> (o Core..:? "track")+ Core.<*> (o Core..:? "trackId")+ Core.<*> (o Core..:? "versionCode")+ Core.<*> (o Core..:? "versionString")+ )++instance Core.ToJSON AppVersion where+ toJSON AppVersion {..} =+ Core.object+ ( Core.catMaybes+ [ ("isProduction" Core..=) Core.<$> isProduction,+ ("targetSdkVersion" Core..=) Core.<$> targetSdkVersion,+ ("track" Core..=) Core.<$> track,+ ("trackId" Core..=) Core.<$> trackId,+ ("versionCode" Core..=) Core.<$> versionCode,+ ("versionString" Core..=) Core.<$> versionString+ ]+ )++-- | Information on an approval URL.+--+-- /See:/ 'newApprovalUrlInfo' smart constructor.+newtype ApprovalUrlInfo = ApprovalUrlInfo+ { -- | A URL that displays a product\'s permissions and that can also be used to approve the product with the Products.approve call.+ approvalUrl :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApprovalUrlInfo' with the minimum fields required to make a request.+newApprovalUrlInfo ::+ ApprovalUrlInfo+newApprovalUrlInfo = ApprovalUrlInfo {approvalUrl = Core.Nothing}++instance Core.FromJSON ApprovalUrlInfo where+ parseJSON =+ Core.withObject+ "ApprovalUrlInfo"+ (\o -> ApprovalUrlInfo Core.<$> (o Core..:? "approvalUrl"))++instance Core.ToJSON ApprovalUrlInfo where+ toJSON ApprovalUrlInfo {..} =+ Core.object+ (Core.catMaybes [("approvalUrl" Core..=) Core.<$> approvalUrl])++-- | An AuthenticationToken is used by the EMM\'s device policy client on a device to provision the given EMM-managed user on that device.+--+-- /See:/ 'newAuthenticationToken' smart constructor.+newtype AuthenticationToken = AuthenticationToken+ { -- | The authentication token to be passed to the device policy client on the device where it can be used to provision the account for which this token was generated.+ token :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AuthenticationToken' with the minimum fields required to make a request.+newAuthenticationToken ::+ AuthenticationToken+newAuthenticationToken = AuthenticationToken {token = Core.Nothing}++instance Core.FromJSON AuthenticationToken where+ parseJSON =+ Core.withObject+ "AuthenticationToken"+ (\o -> AuthenticationToken Core.<$> (o Core..:? "token"))++instance Core.ToJSON AuthenticationToken where+ toJSON AuthenticationToken {..} =+ Core.object (Core.catMaybes [("token" Core..=) Core.<$> token])++-- | The auto-install constraint. Defines a set of restrictions for installation. At least one of the fields must be set.+--+-- /See:/ 'newAutoInstallConstraint' smart constructor.+data AutoInstallConstraint = AutoInstallConstraint+ { -- | Charging state constraint.+ chargingStateConstraint :: (Core.Maybe AutoInstallConstraint_ChargingStateConstraint),+ -- | Device idle state constraint.+ deviceIdleStateConstraint :: (Core.Maybe AutoInstallConstraint_DeviceIdleStateConstraint),+ -- | Network type constraint.+ networkTypeConstraint :: (Core.Maybe AutoInstallConstraint_NetworkTypeConstraint)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AutoInstallConstraint' with the minimum fields required to make a request.+newAutoInstallConstraint ::+ AutoInstallConstraint+newAutoInstallConstraint =+ AutoInstallConstraint+ { chargingStateConstraint = Core.Nothing,+ deviceIdleStateConstraint = Core.Nothing,+ networkTypeConstraint = Core.Nothing+ }++instance Core.FromJSON AutoInstallConstraint where+ parseJSON =+ Core.withObject+ "AutoInstallConstraint"+ ( \o ->+ AutoInstallConstraint+ Core.<$> (o Core..:? "chargingStateConstraint")+ Core.<*> (o Core..:? "deviceIdleStateConstraint")+ Core.<*> (o Core..:? "networkTypeConstraint")+ )++instance Core.ToJSON AutoInstallConstraint where+ toJSON AutoInstallConstraint {..} =+ Core.object+ ( Core.catMaybes+ [ ("chargingStateConstraint" Core..=)+ Core.<$> chargingStateConstraint,+ ("deviceIdleStateConstraint" Core..=)+ Core.<$> deviceIdleStateConstraint,+ ("networkTypeConstraint" Core..=) Core.<$> networkTypeConstraint+ ]+ )++--+-- /See:/ 'newAutoInstallPolicy' smart constructor.+data AutoInstallPolicy = AutoInstallPolicy+ { -- | The constraints for auto-installing the app. You can specify a maximum of one constraint.+ autoInstallConstraint :: (Core.Maybe [AutoInstallConstraint]),+ -- | The auto-install mode. If unset, defaults to \"doNotAutoInstall\". An app is automatically installed regardless of a set maintenance window.+ autoInstallMode :: (Core.Maybe AutoInstallPolicy_AutoInstallMode),+ -- | The priority of the install, as an unsigned integer. A lower number means higher priority.+ autoInstallPriority :: (Core.Maybe Core.Int32),+ -- | The minimum version of the app. If a lower version of the app is installed, then the app will be auto-updated according to the auto-install constraints, instead of waiting for the regular auto-update. You can set a minimum version code for at most 20 apps per device.+ minimumVersionCode :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AutoInstallPolicy' with the minimum fields required to make a request.+newAutoInstallPolicy ::+ AutoInstallPolicy+newAutoInstallPolicy =+ AutoInstallPolicy+ { autoInstallConstraint = Core.Nothing,+ autoInstallMode = Core.Nothing,+ autoInstallPriority = Core.Nothing,+ minimumVersionCode = Core.Nothing+ }++instance Core.FromJSON AutoInstallPolicy where+ parseJSON =+ Core.withObject+ "AutoInstallPolicy"+ ( \o ->+ AutoInstallPolicy+ Core.<$> (o Core..:? "autoInstallConstraint")+ Core.<*> (o Core..:? "autoInstallMode")+ Core.<*> (o Core..:? "autoInstallPriority")+ Core.<*> (o Core..:? "minimumVersionCode")+ )++instance Core.ToJSON AutoInstallPolicy where+ toJSON AutoInstallPolicy {..} =+ Core.object+ ( Core.catMaybes+ [ ("autoInstallConstraint" Core..=) Core.<$> autoInstallConstraint,+ ("autoInstallMode" Core..=) Core.<$> autoInstallMode,+ ("autoInstallPriority" Core..=) Core.<$> autoInstallPriority,+ ("minimumVersionCode" Core..=) Core.<$> minimumVersionCode+ ]+ )++-- | A configuration variables resource contains the managed configuration settings ID to be applied to a single user, as well as the variable set that is attributed to the user. The variable set will be used to replace placeholders in the managed configuration settings.+--+-- /See:/ 'newConfigurationVariables' smart constructor.+data ConfigurationVariables = ConfigurationVariables+ { -- | The ID of the managed configurations settings.+ mcmId :: (Core.Maybe Core.Text),+ -- | The variable set that is attributed to the user.+ variableSet :: (Core.Maybe [VariableSet])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ConfigurationVariables' with the minimum fields required to make a request.+newConfigurationVariables ::+ ConfigurationVariables+newConfigurationVariables =+ ConfigurationVariables+ { mcmId = Core.Nothing,+ variableSet = Core.Nothing+ }++instance Core.FromJSON ConfigurationVariables where+ parseJSON =+ Core.withObject+ "ConfigurationVariables"+ ( \o ->+ ConfigurationVariables+ Core.<$> (o Core..:? "mcmId")+ Core.<*> (o Core..:? "variableSet")+ )++instance Core.ToJSON ConfigurationVariables where+ toJSON ConfigurationVariables {..} =+ Core.object+ ( Core.catMaybes+ [ ("mcmId" Core..=) Core.<$> mcmId,+ ("variableSet" Core..=) Core.<$> variableSet+ ]+ )++-- | A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.+--+-- /See:/ 'newDevice' smart constructor.+data Device = Device+ { -- | The Google Play Services Android ID for the device encoded as a lowercase hex string. For example, \"123456789abcdef0\".+ androidId :: (Core.Maybe Core.Text),+ -- | The internal hardware codename of the device. This comes from android.os.Build.DEVICE. (field named \"device\" per logs\/wireless\/android\/android_checkin.proto)+ device :: (Core.Maybe Core.Text),+ -- | The build fingerprint of the device if known.+ latestBuildFingerprint :: (Core.Maybe Core.Text),+ -- | The manufacturer of the device. This comes from android.os.Build.MANUFACTURER.+ maker :: (Core.Maybe Core.Text),+ -- | Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - \"managedDevice\", a device that has the EMM\'s device policy controller (DPC) as the device owner. - \"managedProfile\", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - \"containerApp\", no longer used (deprecated). - \"unmanagedProfile\", a device that has been allowed (by the domain\'s admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.+ managementType :: (Core.Maybe Device_ManagementType),+ -- | The model name of the device. This comes from android.os.Build.MODEL.+ model :: (Core.Maybe Core.Text),+ -- | The policy enforced on the device.+ policy :: (Core.Maybe Policy),+ -- | The product name of the device. This comes from android.os.Build.PRODUCT.+ product :: (Core.Maybe Core.Text),+ -- | The device report updated with the latest app states.+ report :: (Core.Maybe DeviceReport),+ -- | Retail brand for the device, if set. See android.os.Build.BRAND+ retailBrand :: (Core.Maybe Core.Text),+ -- | API compatibility version.+ sdkVersion :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Device' with the minimum fields required to make a request.+newDevice ::+ Device+newDevice =+ Device+ { androidId = Core.Nothing,+ device = Core.Nothing,+ latestBuildFingerprint = Core.Nothing,+ maker = Core.Nothing,+ managementType = Core.Nothing,+ model = Core.Nothing,+ policy = Core.Nothing,+ product = Core.Nothing,+ report = Core.Nothing,+ retailBrand = Core.Nothing,+ sdkVersion = Core.Nothing+ }++instance Core.FromJSON Device where+ parseJSON =+ Core.withObject+ "Device"+ ( \o ->+ Device+ Core.<$> (o Core..:? "androidId")+ Core.<*> (o Core..:? "device")+ Core.<*> (o Core..:? "latestBuildFingerprint")+ Core.<*> (o Core..:? "maker")+ Core.<*> (o Core..:? "managementType")+ Core.<*> (o Core..:? "model")+ Core.<*> (o Core..:? "policy")+ Core.<*> (o Core..:? "product")+ Core.<*> (o Core..:? "report")+ Core.<*> (o Core..:? "retailBrand")+ Core.<*> (o Core..:? "sdkVersion")+ )++instance Core.ToJSON Device where+ toJSON Device {..} =+ Core.object+ ( Core.catMaybes+ [ ("androidId" Core..=) Core.<$> androidId,+ ("device" Core..=) Core.<$> device,+ ("latestBuildFingerprint" Core..=) Core.<$> latestBuildFingerprint,+ ("maker" Core..=) Core.<$> maker,+ ("managementType" Core..=) Core.<$> managementType,+ ("model" Core..=) Core.<$> model,+ ("policy" Core..=) Core.<$> policy,+ ("product" Core..=) Core.<$> product,+ ("report" Core..=) Core.<$> report,+ ("retailBrand" Core..=) Core.<$> retailBrand,+ ("sdkVersion" Core..=) Core.<$> sdkVersion+ ]+ )++-- | Device report updated with the latest app states for managed apps on the device.+--+-- /See:/ 'newDeviceReport' smart constructor.+data DeviceReport = DeviceReport+ { -- | List of app states set by managed apps on the device. App states are defined by the app\'s developers. This field will always be present.+ appState :: (Core.Maybe [AppState]),+ -- | The timestamp of the last report update in milliseconds since epoch. This field will always be present.+ lastUpdatedTimestampMillis :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DeviceReport' with the minimum fields required to make a request.+newDeviceReport ::+ DeviceReport+newDeviceReport =+ DeviceReport+ { appState = Core.Nothing,+ lastUpdatedTimestampMillis = Core.Nothing+ }++instance Core.FromJSON DeviceReport where+ parseJSON =+ Core.withObject+ "DeviceReport"+ ( \o ->+ DeviceReport+ Core.<$> (o Core..:? "appState")+ Core.<*> ( o+ Core..:? "lastUpdatedTimestampMillis"+ Core.<&> Core.fmap Core.fromAsText+ )+ )++instance Core.ToJSON DeviceReport where+ toJSON DeviceReport {..} =+ Core.object+ ( Core.catMaybes+ [ ("appState" Core..=) Core.<$> appState,+ ("lastUpdatedTimestampMillis" Core..=)+ Core.. Core.AsText+ Core.<$> lastUpdatedTimestampMillis+ ]+ )++-- | An event generated when an updated device report is available.+--+-- /See:/ 'newDeviceReportUpdateEvent' smart constructor.+data DeviceReportUpdateEvent = DeviceReportUpdateEvent+ { -- | The Android ID of the device. This field will always be present.+ deviceId :: (Core.Maybe Core.Text),+ -- | The device report updated with the latest app states. This field will always be present.+ report :: (Core.Maybe DeviceReport),+ -- | The ID of the user. This field will always be present.+ userId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DeviceReportUpdateEvent' with the minimum fields required to make a request.+newDeviceReportUpdateEvent ::+ DeviceReportUpdateEvent+newDeviceReportUpdateEvent =+ DeviceReportUpdateEvent+ { deviceId = Core.Nothing,+ report = Core.Nothing,+ userId = Core.Nothing+ }++instance Core.FromJSON DeviceReportUpdateEvent where+ parseJSON =+ Core.withObject+ "DeviceReportUpdateEvent"+ ( \o ->+ DeviceReportUpdateEvent+ Core.<$> (o Core..:? "deviceId")+ Core.<*> (o Core..:? "report")+ Core.<*> (o Core..:? "userId")+ )++instance Core.ToJSON DeviceReportUpdateEvent where+ toJSON DeviceReportUpdateEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("deviceId" Core..=) Core.<$> deviceId,+ ("report" Core..=) Core.<$> report,+ ("userId" Core..=) Core.<$> userId+ ]+ )++-- | The state of a user\'s device, as accessed by the getState and setState methods on device resources.+--+-- /See:/ 'newDeviceState' smart constructor.+newtype DeviceState = DeviceState+ { -- | The state of the Google account on the device. \"enabled\" indicates that the Google account on the device can be used to access Google services (including Google Play), while \"disabled\" means that it cannot. A new device is initially in the \"disabled\" state.+ accountState :: (Core.Maybe DeviceState_AccountState)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DeviceState' with the minimum fields required to make a request.+newDeviceState ::+ DeviceState+newDeviceState = DeviceState {accountState = Core.Nothing}++instance Core.FromJSON DeviceState where+ parseJSON =+ Core.withObject+ "DeviceState"+ (\o -> DeviceState Core.<$> (o Core..:? "accountState"))++instance Core.ToJSON DeviceState where+ toJSON DeviceState {..} =+ Core.object+ (Core.catMaybes [("accountState" Core..=) Core.<$> accountState])++--+-- /See:/ 'newDevicesListResponse' smart constructor.+newtype DevicesListResponse = DevicesListResponse+ { -- | A managed device.+ device :: (Core.Maybe [Device])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DevicesListResponse' with the minimum fields required to make a request.+newDevicesListResponse ::+ DevicesListResponse+newDevicesListResponse = DevicesListResponse {device = Core.Nothing}++instance Core.FromJSON DevicesListResponse where+ parseJSON =+ Core.withObject+ "DevicesListResponse"+ (\o -> DevicesListResponse Core.<$> (o Core..:? "device"))++instance Core.ToJSON DevicesListResponse where+ toJSON DevicesListResponse {..} =+ Core.object (Core.catMaybes [("device" Core..=) Core.<$> device])++-- | A token used to enroll a device.+--+-- /See:/ 'newEnrollmentToken' smart constructor.+data EnrollmentToken = EnrollmentToken+ { -- | [Optional] The length of time the enrollment token is valid, ranging from 1 minute to <https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE Durations.MAX_VALUE>, approximately 10,000 years. If not specified, the default duration is 1 hour.+ duration :: (Core.Maybe Core.Duration),+ -- | [Required] The type of the enrollment token.+ enrollmentTokenType :: (Core.Maybe EnrollmentToken_EnrollmentTokenType),+ -- | The token value that\'s passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.+ token :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EnrollmentToken' with the minimum fields required to make a request.+newEnrollmentToken ::+ EnrollmentToken+newEnrollmentToken =+ EnrollmentToken+ { duration = Core.Nothing,+ enrollmentTokenType = Core.Nothing,+ token = Core.Nothing+ }++instance Core.FromJSON EnrollmentToken where+ parseJSON =+ Core.withObject+ "EnrollmentToken"+ ( \o ->+ EnrollmentToken+ Core.<$> (o Core..:? "duration")+ Core.<*> (o Core..:? "enrollmentTokenType")+ Core.<*> (o Core..:? "token")+ )++instance Core.ToJSON EnrollmentToken where+ toJSON EnrollmentToken {..} =+ Core.object+ ( Core.catMaybes+ [ ("duration" Core..=) Core.<$> duration,+ ("enrollmentTokenType" Core..=) Core.<$> enrollmentTokenType,+ ("token" Core..=) Core.<$> token+ ]+ )++-- | An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.+--+-- /See:/ 'newEnterprise' smart constructor.+data Enterprise = Enterprise+ { -- | Admins of the enterprise. This is only supported for enterprises created via the EMM-initiated flow.+ administrator :: (Core.Maybe [Administrator]),+ -- | The type of the enterprise.+ enterpriseType :: (Core.Maybe Enterprise_EnterpriseType),+ -- | Output only. Settings for Google-provided user authentication.+ googleAuthenticationSettings :: (Core.Maybe GoogleAuthenticationSettings),+ -- | The unique ID for the enterprise.+ id :: (Core.Maybe Core.Text),+ -- | The type of managed Google domain+ managedGoogleDomainType :: (Core.Maybe Enterprise_ManagedGoogleDomainType),+ -- | The name of the enterprise, for example, \"Example, Inc\".+ name :: (Core.Maybe Core.Text),+ -- | The enterprise\'s primary domain, such as \"example.com\".+ primaryDomain :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Enterprise' with the minimum fields required to make a request.+newEnterprise ::+ Enterprise+newEnterprise =+ Enterprise+ { administrator = Core.Nothing,+ enterpriseType = Core.Nothing,+ googleAuthenticationSettings = Core.Nothing,+ id = Core.Nothing,+ managedGoogleDomainType = Core.Nothing,+ name = Core.Nothing,+ primaryDomain = Core.Nothing+ }++instance Core.FromJSON Enterprise where+ parseJSON =+ Core.withObject+ "Enterprise"+ ( \o ->+ Enterprise+ Core.<$> (o Core..:? "administrator")+ Core.<*> (o Core..:? "enterpriseType")+ Core.<*> (o Core..:? "googleAuthenticationSettings")+ Core.<*> (o Core..:? "id")+ Core.<*> (o Core..:? "managedGoogleDomainType")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "primaryDomain")+ )++instance Core.ToJSON Enterprise where+ toJSON Enterprise {..} =+ Core.object+ ( Core.catMaybes+ [ ("administrator" Core..=) Core.<$> administrator,+ ("enterpriseType" Core..=) Core.<$> enterpriseType,+ ("googleAuthenticationSettings" Core..=)+ Core.<$> googleAuthenticationSettings,+ ("id" Core..=) Core.<$> id,+ ("managedGoogleDomainType" Core..=)+ Core.<$> managedGoogleDomainType,+ ("name" Core..=) Core.<$> name,+ ("primaryDomain" Core..=) Core.<$> primaryDomain+ ]+ )++-- | A service account that can be used to authenticate as the enterprise to API calls that require such authentication.+--+-- /See:/ 'newEnterpriseAccount' smart constructor.+newtype EnterpriseAccount = EnterpriseAccount+ { -- | The email address of the service account.+ accountEmail :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EnterpriseAccount' with the minimum fields required to make a request.+newEnterpriseAccount ::+ EnterpriseAccount+newEnterpriseAccount =+ EnterpriseAccount {accountEmail = Core.Nothing}++instance Core.FromJSON EnterpriseAccount where+ parseJSON =+ Core.withObject+ "EnterpriseAccount"+ (\o -> EnterpriseAccount Core.<$> (o Core..:? "accountEmail"))++instance Core.ToJSON EnterpriseAccount where+ toJSON EnterpriseAccount {..} =+ Core.object+ (Core.catMaybes [("accountEmail" Core..=) Core.<$> accountEmail])++-- | An authentication URL configuration for the authenticator app of an identity provider.+--+-- /See:/ 'newEnterpriseAuthenticationAppLinkConfig' smart constructor.+newtype EnterpriseAuthenticationAppLinkConfig = EnterpriseAuthenticationAppLinkConfig+ { -- | An authentication url.+ uri :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EnterpriseAuthenticationAppLinkConfig' with the minimum fields required to make a request.+newEnterpriseAuthenticationAppLinkConfig ::+ EnterpriseAuthenticationAppLinkConfig+newEnterpriseAuthenticationAppLinkConfig =+ EnterpriseAuthenticationAppLinkConfig {uri = Core.Nothing}++instance Core.FromJSON EnterpriseAuthenticationAppLinkConfig where+ parseJSON =+ Core.withObject+ "EnterpriseAuthenticationAppLinkConfig"+ ( \o ->+ EnterpriseAuthenticationAppLinkConfig Core.<$> (o Core..:? "uri")+ )++instance Core.ToJSON EnterpriseAuthenticationAppLinkConfig where+ toJSON EnterpriseAuthenticationAppLinkConfig {..} =+ Core.object (Core.catMaybes [("uri" Core..=) Core.<$> uri])++-- | An event generated when an enterprise is upgraded. __Note:__ This feature is not generally available.+--+-- /See:/ 'newEnterpriseUpgradeEvent' smart constructor.+newtype EnterpriseUpgradeEvent = EnterpriseUpgradeEvent+ { -- | The upgrade state.+ upgradeState :: (Core.Maybe EnterpriseUpgradeEvent_UpgradeState)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EnterpriseUpgradeEvent' with the minimum fields required to make a request.+newEnterpriseUpgradeEvent ::+ EnterpriseUpgradeEvent+newEnterpriseUpgradeEvent =+ EnterpriseUpgradeEvent {upgradeState = Core.Nothing}++instance Core.FromJSON EnterpriseUpgradeEvent where+ parseJSON =+ Core.withObject+ "EnterpriseUpgradeEvent"+ ( \o ->+ EnterpriseUpgradeEvent Core.<$> (o Core..:? "upgradeState")+ )++instance Core.ToJSON EnterpriseUpgradeEvent where+ toJSON EnterpriseUpgradeEvent {..} =+ Core.object+ (Core.catMaybes [("upgradeState" Core..=) Core.<$> upgradeState])++--+-- /See:/ 'newEnterprisesListResponse' smart constructor.+newtype EnterprisesListResponse = EnterprisesListResponse+ { -- | An enterprise.+ enterprise :: (Core.Maybe [Enterprise])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EnterprisesListResponse' with the minimum fields required to make a request.+newEnterprisesListResponse ::+ EnterprisesListResponse+newEnterprisesListResponse =+ EnterprisesListResponse {enterprise = Core.Nothing}++instance Core.FromJSON EnterprisesListResponse where+ parseJSON =+ Core.withObject+ "EnterprisesListResponse"+ (\o -> EnterprisesListResponse Core.<$> (o Core..:? "enterprise"))++instance Core.ToJSON EnterprisesListResponse where+ toJSON EnterprisesListResponse {..} =+ Core.object+ (Core.catMaybes [("enterprise" Core..=) Core.<$> enterprise])++--+-- /See:/ 'newEnterprisesSendTestPushNotificationResponse' smart constructor.+data EnterprisesSendTestPushNotificationResponse = EnterprisesSendTestPushNotificationResponse+ { -- | The message ID of the test push notification that was sent.+ messageId :: (Core.Maybe Core.Text),+ -- | The name of the Cloud Pub\/Sub topic to which notifications for this enterprise\'s enrolled account will be sent.+ topicName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EnterprisesSendTestPushNotificationResponse' with the minimum fields required to make a request.+newEnterprisesSendTestPushNotificationResponse ::+ EnterprisesSendTestPushNotificationResponse+newEnterprisesSendTestPushNotificationResponse =+ EnterprisesSendTestPushNotificationResponse+ { messageId =+ Core.Nothing,+ topicName = Core.Nothing+ }++instance Core.FromJSON EnterprisesSendTestPushNotificationResponse where+ parseJSON =+ Core.withObject+ "EnterprisesSendTestPushNotificationResponse"+ ( \o ->+ EnterprisesSendTestPushNotificationResponse+ Core.<$> (o Core..:? "messageId")+ Core.<*> (o Core..:? "topicName")+ )++instance Core.ToJSON EnterprisesSendTestPushNotificationResponse where+ toJSON EnterprisesSendTestPushNotificationResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("messageId" Core..=) Core.<$> messageId,+ ("topicName" Core..=) Core.<$> topicName+ ]+ )++-- | /Deprecated:/ New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newEntitlement' smart constructor.+data Entitlement = Entitlement+ { -- | The ID of the product that the entitlement is for. For example, \"app:com.google.android.gm\".+ productId :: (Core.Maybe Core.Text),+ -- | The reason for the entitlement. For example, \"free\" for free apps. This property is temporary: it will be replaced by the acquisition kind field of group licenses.+ reason :: (Core.Maybe Entitlement_Reason)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Entitlement' with the minimum fields required to make a request.+newEntitlement ::+ Entitlement+newEntitlement =+ Entitlement {productId = Core.Nothing, reason = Core.Nothing}++instance Core.FromJSON Entitlement where+ parseJSON =+ Core.withObject+ "Entitlement"+ ( \o ->+ Entitlement+ Core.<$> (o Core..:? "productId")+ Core.<*> (o Core..:? "reason")+ )++instance Core.ToJSON Entitlement where+ toJSON Entitlement {..} =+ Core.object+ ( Core.catMaybes+ [ ("productId" Core..=) Core.<$> productId,+ ("reason" Core..=) Core.<$> reason+ ]+ )++--+-- /See:/ 'newEntitlementsListResponse' smart constructor.+newtype EntitlementsListResponse = EntitlementsListResponse+ { -- | An entitlement of a user to a product (e.g. an app). For example, a free app that they have installed, or a paid app that they have been allocated a license to.+ entitlement :: (Core.Maybe [Entitlement])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EntitlementsListResponse' with the minimum fields required to make a request.+newEntitlementsListResponse ::+ EntitlementsListResponse+newEntitlementsListResponse =+ EntitlementsListResponse {entitlement = Core.Nothing}++instance Core.FromJSON EntitlementsListResponse where+ parseJSON =+ Core.withObject+ "EntitlementsListResponse"+ ( \o ->+ EntitlementsListResponse Core.<$> (o Core..:? "entitlement")+ )++instance Core.ToJSON EntitlementsListResponse where+ toJSON EntitlementsListResponse {..} =+ Core.object+ (Core.catMaybes [("entitlement" Core..=) Core.<$> entitlement])++-- | Response message for generating a URL to upgrade an existing managed Google Play Accounts enterprise to a managed Google domain. __Note:__ This feature is not generally available.+--+-- /See:/ 'newGenerateEnterpriseUpgradeUrlResponse' smart constructor.+newtype GenerateEnterpriseUpgradeUrlResponse = GenerateEnterpriseUpgradeUrlResponse+ { -- | A URL for an enterprise admin to upgrade their enterprise. The page can\'t be rendered in an iframe.+ url :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateEnterpriseUpgradeUrlResponse' with the minimum fields required to make a request.+newGenerateEnterpriseUpgradeUrlResponse ::+ GenerateEnterpriseUpgradeUrlResponse+newGenerateEnterpriseUpgradeUrlResponse =+ GenerateEnterpriseUpgradeUrlResponse {url = Core.Nothing}++instance Core.FromJSON GenerateEnterpriseUpgradeUrlResponse where+ parseJSON =+ Core.withObject+ "GenerateEnterpriseUpgradeUrlResponse"+ ( \o ->+ GenerateEnterpriseUpgradeUrlResponse Core.<$> (o Core..:? "url")+ )++instance Core.ToJSON GenerateEnterpriseUpgradeUrlResponse where+ toJSON GenerateEnterpriseUpgradeUrlResponse {..} =+ Core.object (Core.catMaybes [("url" Core..=) Core.<$> url])++-- | Contains settings for Google-provided user authentication.+--+-- /See:/ 'newGoogleAuthenticationSettings' smart constructor.+data GoogleAuthenticationSettings = GoogleAuthenticationSettings+ { -- | Whether dedicated devices are allowed.+ dedicatedDevicesAllowed :: (Core.Maybe GoogleAuthenticationSettings_DedicatedDevicesAllowed),+ -- | Whether Google authentication is required.+ googleAuthenticationRequired ::+ ( Core.Maybe+ GoogleAuthenticationSettings_GoogleAuthenticationRequired+ )+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GoogleAuthenticationSettings' with the minimum fields required to make a request.+newGoogleAuthenticationSettings ::+ GoogleAuthenticationSettings+newGoogleAuthenticationSettings =+ GoogleAuthenticationSettings+ { dedicatedDevicesAllowed =+ Core.Nothing,+ googleAuthenticationRequired = Core.Nothing+ }++instance Core.FromJSON GoogleAuthenticationSettings where+ parseJSON =+ Core.withObject+ "GoogleAuthenticationSettings"+ ( \o ->+ GoogleAuthenticationSettings+ Core.<$> (o Core..:? "dedicatedDevicesAllowed")+ Core.<*> (o Core..:? "googleAuthenticationRequired")+ )++instance Core.ToJSON GoogleAuthenticationSettings where+ toJSON GoogleAuthenticationSettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("dedicatedDevicesAllowed" Core..=)+ Core.<$> dedicatedDevicesAllowed,+ ("googleAuthenticationRequired" Core..=)+ Core.<$> googleAuthenticationRequired+ ]+ )++-- | /Deprecated:/ New integrations cannot use this method and can refer to our new recommendations+--+-- /See:/ 'newGroupLicense' smart constructor.+data GroupLicense = GroupLicense+ { -- | How this group license was acquired. \"bulkPurchase\" means that this Grouplicenses resource was created because the enterprise purchased licenses for this product; otherwise, the value is \"free\" (for free products).+ acquisitionKind :: (Core.Maybe GroupLicense_AcquisitionKind),+ -- | Whether the product to which this group license relates is currently approved by the enterprise. Products are approved when a group license is first created, but this approval may be revoked by an enterprise admin via Google Play. Unapproved products will not be visible to end users in collections, and new entitlements to them should not normally be created.+ approval :: (Core.Maybe GroupLicense_Approval),+ -- | The total number of provisioned licenses for this product. Returned by read operations, but ignored in write operations.+ numProvisioned :: (Core.Maybe Core.Int32),+ -- | The number of purchased licenses (possibly in multiple purchases). If this field is omitted, then there is no limit on the number of licenses that can be provisioned (for example, if the acquisition kind is \"free\").+ numPurchased :: (Core.Maybe Core.Int32),+ -- | The permission approval status of the product. This field is only set if the product is approved. Possible states are: - \"currentApproved\", the current set of permissions is approved, but additional permissions will require the administrator to reapprove the product (If the product was approved without specifying the approved permissions setting, then this is the default behavior.), - \"needsReapproval\", the product has unapproved permissions. No additional product licenses can be assigned until the product is reapproved, - \"allCurrentAndFutureApproved\", the current permissions are approved and any future permission updates will be automatically approved without administrator review.+ permissions :: (Core.Maybe GroupLicense_Permissions),+ -- | The ID of the product that the license is for. For example, \"app:com.google.android.gm\".+ productId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GroupLicense' with the minimum fields required to make a request.+newGroupLicense ::+ GroupLicense+newGroupLicense =+ GroupLicense+ { acquisitionKind = Core.Nothing,+ approval = Core.Nothing,+ numProvisioned = Core.Nothing,+ numPurchased = Core.Nothing,+ permissions = Core.Nothing,+ productId = Core.Nothing+ }++instance Core.FromJSON GroupLicense where+ parseJSON =+ Core.withObject+ "GroupLicense"+ ( \o ->+ GroupLicense+ Core.<$> (o Core..:? "acquisitionKind")+ Core.<*> (o Core..:? "approval")+ Core.<*> (o Core..:? "numProvisioned")+ Core.<*> (o Core..:? "numPurchased")+ Core.<*> (o Core..:? "permissions")+ Core.<*> (o Core..:? "productId")+ )++instance Core.ToJSON GroupLicense where+ toJSON GroupLicense {..} =+ Core.object+ ( Core.catMaybes+ [ ("acquisitionKind" Core..=) Core.<$> acquisitionKind,+ ("approval" Core..=) Core.<$> approval,+ ("numProvisioned" Core..=) Core.<$> numProvisioned,+ ("numPurchased" Core..=) Core.<$> numPurchased,+ ("permissions" Core..=) Core.<$> permissions,+ ("productId" Core..=) Core.<$> productId+ ]+ )++--+-- /See:/ 'newGroupLicenseUsersListResponse' smart constructor.+newtype GroupLicenseUsersListResponse = GroupLicenseUsersListResponse+ { -- | A user of an enterprise.+ user :: (Core.Maybe [User])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GroupLicenseUsersListResponse' with the minimum fields required to make a request.+newGroupLicenseUsersListResponse ::+ GroupLicenseUsersListResponse+newGroupLicenseUsersListResponse =+ GroupLicenseUsersListResponse {user = Core.Nothing}++instance Core.FromJSON GroupLicenseUsersListResponse where+ parseJSON =+ Core.withObject+ "GroupLicenseUsersListResponse"+ (\o -> GroupLicenseUsersListResponse Core.<$> (o Core..:? "user"))++instance Core.ToJSON GroupLicenseUsersListResponse where+ toJSON GroupLicenseUsersListResponse {..} =+ Core.object (Core.catMaybes [("user" Core..=) Core.<$> user])++--+-- /See:/ 'newGroupLicensesListResponse' smart constructor.+newtype GroupLicensesListResponse = GroupLicensesListResponse+ { -- | A group license for a product approved for use in the enterprise.+ groupLicense :: (Core.Maybe [GroupLicense])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GroupLicensesListResponse' with the minimum fields required to make a request.+newGroupLicensesListResponse ::+ GroupLicensesListResponse+newGroupLicensesListResponse =+ GroupLicensesListResponse {groupLicense = Core.Nothing}++instance Core.FromJSON GroupLicensesListResponse where+ parseJSON =+ Core.withObject+ "GroupLicensesListResponse"+ ( \o ->+ GroupLicensesListResponse Core.<$> (o Core..:? "groupLicense")+ )++instance Core.ToJSON GroupLicensesListResponse where+ toJSON GroupLicensesListResponse {..} =+ Core.object+ (Core.catMaybes [("groupLicense" Core..=) Core.<$> groupLicense])++-- | The existence of an Installs resource indicates that an app is installed on a particular device (or that an install is pending). The API can be used to create an install resource using the update method. This triggers the actual install of the app on the device. If the user does not already have an entitlement for the app, then an attempt is made to create one. If this fails (for example, because the app is not free and there is no available license), then the creation of the install fails. The API can also be used to update an installed app. If the update method is used on an existing install, then the app will be updated to the latest available version. Note that it is not possible to force the installation of a specific version of an app: the version code is read-only. If a user installs an app themselves (as permitted by the enterprise), then again an install resource and possibly an entitlement resource are automatically created. The API can also be used to delete an install resource, which triggers the+-- removal of the app from the device. Note that deleting an install does not automatically remove the corresponding entitlement, even if there are no remaining installs. The install resource will also be deleted if the user uninstalls the app themselves.+--+-- /See:/ 'newInstall' smart constructor.+data Install = Install+ { -- | Install state. The state \"installPending\" means that an install request has recently been made and download to the device is in progress. The state \"installed\" means that the app has been installed. This field is read-only.+ installState :: (Core.Maybe Install_InstallState),+ -- | The ID of the product that the install is for. For example, \"app:com.google.android.gm\".+ productId :: (Core.Maybe Core.Text),+ -- | The version of the installed product. Guaranteed to be set only if the install state is \"installed\".+ versionCode :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Install' with the minimum fields required to make a request.+newInstall ::+ Install+newInstall =+ Install+ { installState = Core.Nothing,+ productId = Core.Nothing,+ versionCode = Core.Nothing+ }++instance Core.FromJSON Install where+ parseJSON =+ Core.withObject+ "Install"+ ( \o ->+ Install+ Core.<$> (o Core..:? "installState")+ Core.<*> (o Core..:? "productId")+ Core.<*> (o Core..:? "versionCode")+ )++instance Core.ToJSON Install where+ toJSON Install {..} =+ Core.object+ ( Core.catMaybes+ [ ("installState" Core..=) Core.<$> installState,+ ("productId" Core..=) Core.<$> productId,+ ("versionCode" Core..=) Core.<$> versionCode+ ]+ )++-- | An event generated when an app installation failed on a device+--+-- /See:/ 'newInstallFailureEvent' smart constructor.+data InstallFailureEvent = InstallFailureEvent+ { -- | The Android ID of the device. This field will always be present.+ deviceId :: (Core.Maybe Core.Text),+ -- | Additional details on the failure if applicable.+ failureDetails :: (Core.Maybe Core.Text),+ -- | The reason for the installation failure. This field will always be present.+ failureReason :: (Core.Maybe InstallFailureEvent_FailureReason),+ -- | The id of the product (e.g. \"app:com.google.android.gm\") for which the install failure event occured. This field will always be present.+ productId :: (Core.Maybe Core.Text),+ -- | The ID of the user. This field will always be present.+ userId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'InstallFailureEvent' with the minimum fields required to make a request.+newInstallFailureEvent ::+ InstallFailureEvent+newInstallFailureEvent =+ InstallFailureEvent+ { deviceId = Core.Nothing,+ failureDetails = Core.Nothing,+ failureReason = Core.Nothing,+ productId = Core.Nothing,+ userId = Core.Nothing+ }++instance Core.FromJSON InstallFailureEvent where+ parseJSON =+ Core.withObject+ "InstallFailureEvent"+ ( \o ->+ InstallFailureEvent+ Core.<$> (o Core..:? "deviceId")+ Core.<*> (o Core..:? "failureDetails")+ Core.<*> (o Core..:? "failureReason")+ Core.<*> (o Core..:? "productId")+ Core.<*> (o Core..:? "userId")+ )++instance Core.ToJSON InstallFailureEvent where+ toJSON InstallFailureEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("deviceId" Core..=) Core.<$> deviceId,+ ("failureDetails" Core..=) Core.<$> failureDetails,+ ("failureReason" Core..=) Core.<$> failureReason,+ ("productId" Core..=) Core.<$> productId,+ ("userId" Core..=) Core.<$> userId+ ]+ )++--+-- /See:/ 'newInstallsListResponse' smart constructor.+newtype InstallsListResponse = InstallsListResponse+ { -- | An installation of an app for a user on a specific device. The existence of an install implies that the user must have an entitlement to the app.+ install :: (Core.Maybe [Install])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'InstallsListResponse' with the minimum fields required to make a request.+newInstallsListResponse ::+ InstallsListResponse+newInstallsListResponse =+ InstallsListResponse {install = Core.Nothing}++instance Core.FromJSON InstallsListResponse where+ parseJSON =+ Core.withObject+ "InstallsListResponse"+ (\o -> InstallsListResponse Core.<$> (o Core..:? "install"))++instance Core.ToJSON InstallsListResponse where+ toJSON InstallsListResponse {..} =+ Core.object+ (Core.catMaybes [("install" Core..=) Core.<$> install])++-- | Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.+--+-- /See:/ 'newKeyedAppState' smart constructor.+data KeyedAppState = KeyedAppState+ { -- | Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it.+ data' :: (Core.Maybe Core.Text),+ -- | Key indicating what the app is providing a state for. The content of the key is set by the app\'s developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present.+ key :: (Core.Maybe Core.Text),+ -- | Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it.+ message :: (Core.Maybe Core.Text),+ -- | Severity of the app state. This field will always be present.+ severity :: (Core.Maybe KeyedAppState_Severity),+ -- | Timestamp of when the app set the state in milliseconds since epoch. This field will always be present.+ stateTimestampMillis :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyedAppState' with the minimum fields required to make a request.+newKeyedAppState ::+ KeyedAppState+newKeyedAppState =+ KeyedAppState+ { data' = Core.Nothing,+ key = Core.Nothing,+ message = Core.Nothing,+ severity = Core.Nothing,+ stateTimestampMillis = Core.Nothing+ }++instance Core.FromJSON KeyedAppState where+ parseJSON =+ Core.withObject+ "KeyedAppState"+ ( \o ->+ KeyedAppState+ Core.<$> (o Core..:? "data")+ Core.<*> (o Core..:? "key")+ Core.<*> (o Core..:? "message")+ Core.<*> (o Core..:? "severity")+ Core.<*> ( o+ Core..:? "stateTimestampMillis"+ Core.<&> Core.fmap Core.fromAsText+ )+ )++instance Core.ToJSON KeyedAppState where+ toJSON KeyedAppState {..} =+ Core.object+ ( Core.catMaybes+ [ ("data" Core..=) Core.<$> data',+ ("key" Core..=) Core.<$> key,+ ("message" Core..=) Core.<$> message,+ ("severity" Core..=) Core.<$> severity,+ ("stateTimestampMillis" Core..=)+ Core.. Core.AsText+ Core.<$> stateTimestampMillis+ ]+ )++-- | A localized string with its locale.+--+-- /See:/ 'newLocalizedText' smart constructor.+data LocalizedText = LocalizedText+ { -- | The BCP47 tag for a locale. (e.g. \"en-US\", \"de\").+ locale :: (Core.Maybe Core.Text),+ -- | The text localized in the associated locale.+ text :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LocalizedText' with the minimum fields required to make a request.+newLocalizedText ::+ LocalizedText+newLocalizedText =+ LocalizedText {locale = Core.Nothing, text = Core.Nothing}++instance Core.FromJSON LocalizedText where+ parseJSON =+ Core.withObject+ "LocalizedText"+ ( \o ->+ LocalizedText+ Core.<$> (o Core..:? "locale")+ Core.<*> (o Core..:? "text")+ )++instance Core.ToJSON LocalizedText where+ toJSON LocalizedText {..} =+ Core.object+ ( Core.catMaybes+ [ ("locale" Core..=) Core.<$> locale,+ ("text" Core..=) Core.<$> text+ ]+ )++-- | Maintenance window for managed Google Play Accounts. This allows Play store to update the apps on the foreground in the designated window.+--+-- /See:/ 'newMaintenanceWindow' smart constructor.+data MaintenanceWindow = MaintenanceWindow+ { -- | Duration of the maintenance window, in milliseconds. The duration must be between 30 minutes and 24 hours (inclusive).+ durationMs :: (Core.Maybe Core.Int64),+ -- | Start time of the maintenance window, in milliseconds after midnight on the device. Windows can span midnight.+ startTimeAfterMidnightMs :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MaintenanceWindow' with the minimum fields required to make a request.+newMaintenanceWindow ::+ MaintenanceWindow+newMaintenanceWindow =+ MaintenanceWindow+ { durationMs = Core.Nothing,+ startTimeAfterMidnightMs = Core.Nothing+ }++instance Core.FromJSON MaintenanceWindow where+ parseJSON =+ Core.withObject+ "MaintenanceWindow"+ ( \o ->+ MaintenanceWindow+ Core.<$> (o Core..:? "durationMs" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> ( o+ Core..:? "startTimeAfterMidnightMs"+ Core.<&> Core.fmap Core.fromAsText+ )+ )++instance Core.ToJSON MaintenanceWindow where+ toJSON MaintenanceWindow {..} =+ Core.object+ ( Core.catMaybes+ [ ("durationMs" Core..=) Core.. Core.AsText Core.<$> durationMs,+ ("startTimeAfterMidnightMs" Core..=)+ Core.. Core.AsText+ Core.<$> startTimeAfterMidnightMs+ ]+ )++-- | /Deprecated:/ New integrations cannot use this method and can refer to our new recommendations+--+-- /See:/ 'newManagedConfiguration' smart constructor.+data ManagedConfiguration = ManagedConfiguration+ { -- | Contains the ID of the managed configuration profile and the set of configuration variables (if any) defined for the user.+ configurationVariables :: (Core.Maybe ConfigurationVariables),+ -- | Deprecated.+ kind :: (Core.Maybe Core.Text),+ -- | The set of managed properties for this configuration.+ managedProperty :: (Core.Maybe [ManagedProperty]),+ -- | The ID of the product that the managed configuration is for, e.g. \"app:com.google.android.gm\".+ productId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedConfiguration' with the minimum fields required to make a request.+newManagedConfiguration ::+ ManagedConfiguration+newManagedConfiguration =+ ManagedConfiguration+ { configurationVariables = Core.Nothing,+ kind = Core.Nothing,+ managedProperty = Core.Nothing,+ productId = Core.Nothing+ }++instance Core.FromJSON ManagedConfiguration where+ parseJSON =+ Core.withObject+ "ManagedConfiguration"+ ( \o ->+ ManagedConfiguration+ Core.<$> (o Core..:? "configurationVariables")+ Core.<*> (o Core..:? "kind")+ Core.<*> (o Core..:? "managedProperty")+ Core.<*> (o Core..:? "productId")+ )++instance Core.ToJSON ManagedConfiguration where+ toJSON ManagedConfiguration {..} =+ Core.object+ ( Core.catMaybes+ [ ("configurationVariables" Core..=)+ Core.<$> configurationVariables,+ ("kind" Core..=) Core.<$> kind,+ ("managedProperty" Core..=) Core.<$> managedProperty,+ ("productId" Core..=) Core.<$> productId+ ]+ )++--+-- /See:/ 'newManagedConfigurationsForDeviceListResponse' smart constructor.+newtype ManagedConfigurationsForDeviceListResponse = ManagedConfigurationsForDeviceListResponse+ { -- | A managed configuration for an app on a specific device.+ managedConfigurationForDevice :: (Core.Maybe [ManagedConfiguration])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedConfigurationsForDeviceListResponse' with the minimum fields required to make a request.+newManagedConfigurationsForDeviceListResponse ::+ ManagedConfigurationsForDeviceListResponse+newManagedConfigurationsForDeviceListResponse =+ ManagedConfigurationsForDeviceListResponse+ { managedConfigurationForDevice =+ Core.Nothing+ }++instance Core.FromJSON ManagedConfigurationsForDeviceListResponse where+ parseJSON =+ Core.withObject+ "ManagedConfigurationsForDeviceListResponse"+ ( \o ->+ ManagedConfigurationsForDeviceListResponse+ Core.<$> (o Core..:? "managedConfigurationForDevice")+ )++instance Core.ToJSON ManagedConfigurationsForDeviceListResponse where+ toJSON ManagedConfigurationsForDeviceListResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("managedConfigurationForDevice" Core..=)+ Core.<$> managedConfigurationForDevice+ ]+ )++--+-- /See:/ 'newManagedConfigurationsForUserListResponse' smart constructor.+newtype ManagedConfigurationsForUserListResponse = ManagedConfigurationsForUserListResponse+ { -- | A managed configuration for an app for a specific user.+ managedConfigurationForUser :: (Core.Maybe [ManagedConfiguration])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedConfigurationsForUserListResponse' with the minimum fields required to make a request.+newManagedConfigurationsForUserListResponse ::+ ManagedConfigurationsForUserListResponse+newManagedConfigurationsForUserListResponse =+ ManagedConfigurationsForUserListResponse+ { managedConfigurationForUser =+ Core.Nothing+ }++instance Core.FromJSON ManagedConfigurationsForUserListResponse where+ parseJSON =+ Core.withObject+ "ManagedConfigurationsForUserListResponse"+ ( \o ->+ ManagedConfigurationsForUserListResponse+ Core.<$> (o Core..:? "managedConfigurationForUser")+ )++instance Core.ToJSON ManagedConfigurationsForUserListResponse where+ toJSON ManagedConfigurationsForUserListResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("managedConfigurationForUser" Core..=)+ Core.<$> managedConfigurationForUser+ ]+ )++-- | A managed configurations settings resource contains the set of managed properties that have been configured for an Android app to be applied to a set of users. The app\'s developer would have defined configurable properties in the managed configurations schema.+--+-- /See:/ 'newManagedConfigurationsSettings' smart constructor.+data ManagedConfigurationsSettings = ManagedConfigurationsSettings+ { -- | The last updated time of the managed configuration settings in milliseconds since 1970-01-01T00:00:00Z.+ lastUpdatedTimestampMillis :: (Core.Maybe Core.Int64),+ -- | The ID of the managed configurations settings.+ mcmId :: (Core.Maybe Core.Text),+ -- | The name of the managed configurations settings.+ name :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedConfigurationsSettings' with the minimum fields required to make a request.+newManagedConfigurationsSettings ::+ ManagedConfigurationsSettings+newManagedConfigurationsSettings =+ ManagedConfigurationsSettings+ { lastUpdatedTimestampMillis =+ Core.Nothing,+ mcmId = Core.Nothing,+ name = Core.Nothing+ }++instance Core.FromJSON ManagedConfigurationsSettings where+ parseJSON =+ Core.withObject+ "ManagedConfigurationsSettings"+ ( \o ->+ ManagedConfigurationsSettings+ Core.<$> ( o+ Core..:? "lastUpdatedTimestampMillis"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "mcmId")+ Core.<*> (o Core..:? "name")+ )++instance Core.ToJSON ManagedConfigurationsSettings where+ toJSON ManagedConfigurationsSettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("lastUpdatedTimestampMillis" Core..=)+ Core.. Core.AsText+ Core.<$> lastUpdatedTimestampMillis,+ ("mcmId" Core..=) Core.<$> mcmId,+ ("name" Core..=) Core.<$> name+ ]+ )++--+-- /See:/ 'newManagedConfigurationsSettingsListResponse' smart constructor.+newtype ManagedConfigurationsSettingsListResponse = ManagedConfigurationsSettingsListResponse+ { -- | A managed configurations settings for an app that may be assigned to a group of users in an enterprise.+ managedConfigurationsSettings :: (Core.Maybe [ManagedConfigurationsSettings])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedConfigurationsSettingsListResponse' with the minimum fields required to make a request.+newManagedConfigurationsSettingsListResponse ::+ ManagedConfigurationsSettingsListResponse+newManagedConfigurationsSettingsListResponse =+ ManagedConfigurationsSettingsListResponse+ { managedConfigurationsSettings =+ Core.Nothing+ }++instance Core.FromJSON ManagedConfigurationsSettingsListResponse where+ parseJSON =+ Core.withObject+ "ManagedConfigurationsSettingsListResponse"+ ( \o ->+ ManagedConfigurationsSettingsListResponse+ Core.<$> (o Core..:? "managedConfigurationsSettings")+ )++instance Core.ToJSON ManagedConfigurationsSettingsListResponse where+ toJSON ManagedConfigurationsSettingsListResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("managedConfigurationsSettings" Core..=)+ Core.<$> managedConfigurationsSettings+ ]+ )++-- | A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property\'s type in the app restrictions schema.+--+-- /See:/ 'newManagedProperty' smart constructor.+data ManagedProperty = ManagedProperty+ { -- | The unique key that identifies the property.+ key :: (Core.Maybe Core.Text),+ -- | The boolean value - this will only be present if type of the property is bool.+ valueBool :: (Core.Maybe Core.Bool),+ -- | The bundle of managed properties - this will only be present if type of the property is bundle.+ valueBundle :: (Core.Maybe ManagedPropertyBundle),+ -- | The list of bundles of properties - this will only be present if type of the property is bundle_array.+ valueBundleArray :: (Core.Maybe [ManagedPropertyBundle]),+ -- | The integer value - this will only be present if type of the property is integer.+ valueInteger :: (Core.Maybe Core.Int32),+ -- | The string value - this will only be present if type of the property is string, choice or hidden.+ valueString :: (Core.Maybe Core.Text),+ -- | The list of string values - this will only be present if type of the property is multiselect.+ valueStringArray :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedProperty' with the minimum fields required to make a request.+newManagedProperty ::+ ManagedProperty+newManagedProperty =+ ManagedProperty+ { key = Core.Nothing,+ valueBool = Core.Nothing,+ valueBundle = Core.Nothing,+ valueBundleArray = Core.Nothing,+ valueInteger = Core.Nothing,+ valueString = Core.Nothing,+ valueStringArray = Core.Nothing+ }++instance Core.FromJSON ManagedProperty where+ parseJSON =+ Core.withObject+ "ManagedProperty"+ ( \o ->+ ManagedProperty+ Core.<$> (o Core..:? "key")+ Core.<*> (o Core..:? "valueBool")+ Core.<*> (o Core..:? "valueBundle")+ Core.<*> (o Core..:? "valueBundleArray")+ Core.<*> (o Core..:? "valueInteger")+ Core.<*> (o Core..:? "valueString")+ Core.<*> (o Core..:? "valueStringArray")+ )++instance Core.ToJSON ManagedProperty where+ toJSON ManagedProperty {..} =+ Core.object+ ( Core.catMaybes+ [ ("key" Core..=) Core.<$> key,+ ("valueBool" Core..=) Core.<$> valueBool,+ ("valueBundle" Core..=) Core.<$> valueBundle,+ ("valueBundleArray" Core..=) Core.<$> valueBundleArray,+ ("valueInteger" Core..=) Core.<$> valueInteger,+ ("valueString" Core..=) Core.<$> valueString,+ ("valueStringArray" Core..=) Core.<$> valueStringArray+ ]+ )++-- | A bundle of managed properties.+--+-- /See:/ 'newManagedPropertyBundle' smart constructor.+newtype ManagedPropertyBundle = ManagedPropertyBundle+ { -- | The list of managed properties.+ managedProperty :: (Core.Maybe [ManagedProperty])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedPropertyBundle' with the minimum fields required to make a request.+newManagedPropertyBundle ::+ ManagedPropertyBundle+newManagedPropertyBundle =+ ManagedPropertyBundle {managedProperty = Core.Nothing}++instance Core.FromJSON ManagedPropertyBundle where+ parseJSON =+ Core.withObject+ "ManagedPropertyBundle"+ ( \o ->+ ManagedPropertyBundle Core.<$> (o Core..:? "managedProperty")+ )++instance Core.ToJSON ManagedPropertyBundle where+ toJSON ManagedPropertyBundle {..} =+ Core.object+ ( Core.catMaybes+ [("managedProperty" Core..=) Core.<$> managedProperty]+ )++-- | An event generated when a new device is ready to be managed.+--+-- /See:/ 'newNewDeviceEvent' smart constructor.+data NewDeviceEvent = NewDeviceEvent+ { -- | The Android ID of the device. This field will always be present.+ deviceId :: (Core.Maybe Core.Text),+ -- | Policy app on the device.+ dpcPackageName :: (Core.Maybe Core.Text),+ -- | Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. Possible values include: - \"managedDevice\", a device where the DPC is set as device owner, - \"managedProfile\", a device where the DPC is set as profile owner.+ managementType :: (Core.Maybe NewDeviceEvent_ManagementType),+ -- | The ID of the user. This field will always be present.+ userId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'NewDeviceEvent' with the minimum fields required to make a request.+newNewDeviceEvent ::+ NewDeviceEvent+newNewDeviceEvent =+ NewDeviceEvent+ { deviceId = Core.Nothing,+ dpcPackageName = Core.Nothing,+ managementType = Core.Nothing,+ userId = Core.Nothing+ }++instance Core.FromJSON NewDeviceEvent where+ parseJSON =+ Core.withObject+ "NewDeviceEvent"+ ( \o ->+ NewDeviceEvent+ Core.<$> (o Core..:? "deviceId")+ Core.<*> (o Core..:? "dpcPackageName")+ Core.<*> (o Core..:? "managementType")+ Core.<*> (o Core..:? "userId")+ )++instance Core.ToJSON NewDeviceEvent where+ toJSON NewDeviceEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("deviceId" Core..=) Core.<$> deviceId,+ ("dpcPackageName" Core..=) Core.<$> dpcPackageName,+ ("managementType" Core..=) Core.<$> managementType,+ ("userId" Core..=) Core.<$> userId+ ]+ )++-- | An event generated when new permissions are added to an app.+--+-- /See:/ 'newNewPermissionsEvent' smart constructor.+data NewPermissionsEvent = NewPermissionsEvent+ { -- | The set of permissions that the enterprise admin has already approved for this application. Use Permissions.Get on the EMM API to retrieve details about these permissions.+ approvedPermissions :: (Core.Maybe [Core.Text]),+ -- | The id of the product (e.g. \"app:com.google.android.gm\") for which new permissions were added. This field will always be present.+ productId :: (Core.Maybe Core.Text),+ -- | The set of permissions that the app is currently requesting. Use Permissions.Get on the EMM API to retrieve details about these permissions.+ requestedPermissions :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'NewPermissionsEvent' with the minimum fields required to make a request.+newNewPermissionsEvent ::+ NewPermissionsEvent+newNewPermissionsEvent =+ NewPermissionsEvent+ { approvedPermissions = Core.Nothing,+ productId = Core.Nothing,+ requestedPermissions = Core.Nothing+ }++instance Core.FromJSON NewPermissionsEvent where+ parseJSON =+ Core.withObject+ "NewPermissionsEvent"+ ( \o ->+ NewPermissionsEvent+ Core.<$> (o Core..:? "approvedPermissions")+ Core.<*> (o Core..:? "productId")+ Core.<*> (o Core..:? "requestedPermissions")+ )++instance Core.ToJSON NewPermissionsEvent where+ toJSON NewPermissionsEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("approvedPermissions" Core..=) Core.<$> approvedPermissions,+ ("productId" Core..=) Core.<$> productId,+ ("requestedPermissions" Core..=) Core.<$> requestedPermissions+ ]+ )++-- | A notification of one event relating to an enterprise.+--+-- /See:/ 'newNotification' smart constructor.+data Notification = Notification+ { -- | Notifications about new app restrictions schema changes.+ appRestrictionsSchemaChangeEvent :: (Core.Maybe AppRestrictionsSchemaChangeEvent),+ -- | Notifications about app updates.+ appUpdateEvent :: (Core.Maybe AppUpdateEvent),+ -- | Notifications about device report updates.+ deviceReportUpdateEvent :: (Core.Maybe DeviceReportUpdateEvent),+ -- | The ID of the enterprise for which the notification is sent. This will always be present.+ enterpriseId :: (Core.Maybe Core.Text),+ -- | Notifications about enterprise upgrade. __Note:__ This feature is not generally available.+ enterpriseUpgradeEvent :: (Core.Maybe EnterpriseUpgradeEvent),+ -- | Notifications about an app installation failure.+ installFailureEvent :: (Core.Maybe InstallFailureEvent),+ -- | Notifications about new devices.+ newDeviceEvent' :: (Core.Maybe NewDeviceEvent),+ -- | Notifications about new app permissions.+ newPermissionsEvent' :: (Core.Maybe NewPermissionsEvent),+ -- | Type of the notification.+ notificationType :: (Core.Maybe Notification_NotificationType),+ -- | Notifications about changes to a product\'s approval status.+ productApprovalEvent :: (Core.Maybe ProductApprovalEvent),+ -- | Notifications about product availability changes.+ productAvailabilityChangeEvent :: (Core.Maybe ProductAvailabilityChangeEvent),+ -- | The time when the notification was published in milliseconds since 1970-01-01T00:00:00Z. This will always be present.+ timestampMillis :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Notification' with the minimum fields required to make a request.+newNotification ::+ Notification+newNotification =+ Notification+ { appRestrictionsSchemaChangeEvent = Core.Nothing,+ appUpdateEvent = Core.Nothing,+ deviceReportUpdateEvent = Core.Nothing,+ enterpriseId = Core.Nothing,+ enterpriseUpgradeEvent = Core.Nothing,+ installFailureEvent = Core.Nothing,+ newDeviceEvent' = Core.Nothing,+ newPermissionsEvent' = Core.Nothing,+ notificationType = Core.Nothing,+ productApprovalEvent = Core.Nothing,+ productAvailabilityChangeEvent = Core.Nothing,+ timestampMillis = Core.Nothing+ }++instance Core.FromJSON Notification where+ parseJSON =+ Core.withObject+ "Notification"+ ( \o ->+ Notification+ Core.<$> (o Core..:? "appRestrictionsSchemaChangeEvent")+ Core.<*> (o Core..:? "appUpdateEvent")+ Core.<*> (o Core..:? "deviceReportUpdateEvent")+ Core.<*> (o Core..:? "enterpriseId")+ Core.<*> (o Core..:? "enterpriseUpgradeEvent")+ Core.<*> (o Core..:? "installFailureEvent")+ Core.<*> (o Core..:? "newDeviceEvent")+ Core.<*> (o Core..:? "newPermissionsEvent")+ Core.<*> (o Core..:? "notificationType")+ Core.<*> (o Core..:? "productApprovalEvent")+ Core.<*> (o Core..:? "productAvailabilityChangeEvent")+ Core.<*> (o Core..:? "timestampMillis" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON Notification where+ toJSON Notification {..} =+ Core.object+ ( Core.catMaybes+ [ ("appRestrictionsSchemaChangeEvent" Core..=)+ Core.<$> appRestrictionsSchemaChangeEvent,+ ("appUpdateEvent" Core..=) Core.<$> appUpdateEvent,+ ("deviceReportUpdateEvent" Core..=)+ Core.<$> deviceReportUpdateEvent,+ ("enterpriseId" Core..=) Core.<$> enterpriseId,+ ("enterpriseUpgradeEvent" Core..=) Core.<$> enterpriseUpgradeEvent,+ ("installFailureEvent" Core..=) Core.<$> installFailureEvent,+ ("newDeviceEvent" Core..=) Core.<$> newDeviceEvent',+ ("newPermissionsEvent" Core..=) Core.<$> newPermissionsEvent',+ ("notificationType" Core..=) Core.<$> notificationType,+ ("productApprovalEvent" Core..=) Core.<$> productApprovalEvent,+ ("productAvailabilityChangeEvent" Core..=)+ Core.<$> productAvailabilityChangeEvent,+ ("timestampMillis" Core..=)+ Core.. Core.AsText+ Core.<$> timestampMillis+ ]+ )++-- | A resource returned by the PullNotificationSet API, which contains a collection of notifications for enterprises associated with the service account authenticated for the request.+--+-- /See:/ 'newNotificationSet' smart constructor.+data NotificationSet = NotificationSet+ { -- | The notifications received, or empty if no notifications are present.+ notification :: (Core.Maybe [Notification]),+ -- | The notification set ID, required to mark the notification as received with the Enterprises.AcknowledgeNotification API. This will be omitted if no notifications are present.+ notificationSetId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'NotificationSet' with the minimum fields required to make a request.+newNotificationSet ::+ NotificationSet+newNotificationSet =+ NotificationSet+ { notification = Core.Nothing,+ notificationSetId = Core.Nothing+ }++instance Core.FromJSON NotificationSet where+ parseJSON =+ Core.withObject+ "NotificationSet"+ ( \o ->+ NotificationSet+ Core.<$> (o Core..:? "notification")+ Core.<*> (o Core..:? "notificationSetId")+ )++instance Core.ToJSON NotificationSet where+ toJSON NotificationSet {..} =+ Core.object+ ( Core.catMaybes+ [ ("notification" Core..=) Core.<$> notification,+ ("notificationSetId" Core..=) Core.<$> notificationSetId+ ]+ )++-- | Information about the current page. List operations that supports paging return only one \"page\" of results. This protocol buffer message describes the page that has been returned.+--+-- /See:/ 'newPageInfo' smart constructor.+data PageInfo = PageInfo+ { -- | Maximum number of results returned in one page. ! The number of results included in the API response.+ resultPerPage :: (Core.Maybe Core.Int32),+ -- | Index of the first result returned in the current page.+ startIndex :: (Core.Maybe Core.Int32),+ -- | Total number of results available on the backend ! The total number of results in the result set.+ totalResults :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PageInfo' with the minimum fields required to make a request.+newPageInfo ::+ PageInfo+newPageInfo =+ PageInfo+ { resultPerPage = Core.Nothing,+ startIndex = Core.Nothing,+ totalResults = Core.Nothing+ }++instance Core.FromJSON PageInfo where+ parseJSON =+ Core.withObject+ "PageInfo"+ ( \o ->+ PageInfo+ Core.<$> (o Core..:? "resultPerPage")+ Core.<*> (o Core..:? "startIndex")+ Core.<*> (o Core..:? "totalResults")+ )++instance Core.ToJSON PageInfo where+ toJSON PageInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("resultPerPage" Core..=) Core.<$> resultPerPage,+ ("startIndex" Core..=) Core.<$> startIndex,+ ("totalResults" Core..=) Core.<$> totalResults+ ]+ )++-- | A Permissions resource represents some extra capability, to be granted to an Android app, which requires explicit consent. An enterprise admin must consent to these permissions on behalf of their users before an entitlement for the app can be created. The permissions collection is read-only. The information provided for each permission (localized name and description) is intended to be used in the MDM user interface when obtaining consent from the enterprise.+--+-- /See:/ 'newPermission' smart constructor.+data Permission = Permission+ { -- | A longer description of the Permissions resource, giving more details of what it affects.+ description :: (Core.Maybe Core.Text),+ -- | The name of the permission.+ name :: (Core.Maybe Core.Text),+ -- | An opaque string uniquely identifying the permission.+ permissionId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Permission' with the minimum fields required to make a request.+newPermission ::+ Permission+newPermission =+ Permission+ { description = Core.Nothing,+ name = Core.Nothing,+ permissionId = Core.Nothing+ }++instance Core.FromJSON Permission where+ parseJSON =+ Core.withObject+ "Permission"+ ( \o ->+ Permission+ Core.<$> (o Core..:? "description")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "permissionId")+ )++instance Core.ToJSON Permission where+ toJSON Permission {..} =+ Core.object+ ( Core.catMaybes+ [ ("description" Core..=) Core.<$> description,+ ("name" Core..=) Core.<$> name,+ ("permissionId" Core..=) Core.<$> permissionId+ ]+ )++-- | The device policy for a given managed device.+--+-- /See:/ 'newPolicy' smart constructor.+data Policy = Policy+ { -- | Controls when automatic app updates on the device can be applied. Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency. When autoUpdateMode is set to AUTO/UPDATE/POSTPONED or AUTO/UPDATE/HIGH_PRIORITY, autoUpdatePolicy has no effect. - choiceToTheUser allows the device\'s user to configure the app update policy. - always enables auto updates. - never disables auto updates. - wifiOnly enables auto updates only when the device is connected to wifi. /Important:/ Changes to app update policies don\'t affect updates that are in progress. Any policy changes will apply to subsequent app updates.+ autoUpdatePolicy :: (Core.Maybe Policy_AutoUpdatePolicy),+ -- | Whether the device reports app states to the EMM. The default value is \"deviceReportDisabled\".+ deviceReportPolicy :: (Core.Maybe Policy_DeviceReportPolicy),+ -- | The maintenance window defining when apps running in the foreground should be updated.+ maintenanceWindow :: (Core.Maybe MaintenanceWindow),+ -- | An identifier for the policy that will be passed with the app install feedback sent from the Play Store.+ policyId :: (Core.Maybe Core.Text),+ -- | The availability granted to the device for the specified products. \"all\" gives the device access to all products, regardless of approval status. \"all\" does not enable automatic visibility of \"alpha\" or \"beta\" tracks. \"whitelist\" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.+ productAvailabilityPolicy :: (Core.Maybe Policy_ProductAvailabilityPolicy),+ -- | The list of product policies. The productAvailabilityPolicy needs to be set to WHITELIST or ALL for the product policies to be applied.+ productPolicy :: (Core.Maybe [ProductPolicy])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Policy' with the minimum fields required to make a request.+newPolicy ::+ Policy+newPolicy =+ Policy+ { autoUpdatePolicy = Core.Nothing,+ deviceReportPolicy = Core.Nothing,+ maintenanceWindow = Core.Nothing,+ policyId = Core.Nothing,+ productAvailabilityPolicy = Core.Nothing,+ productPolicy = Core.Nothing+ }++instance Core.FromJSON Policy where+ parseJSON =+ Core.withObject+ "Policy"+ ( \o ->+ Policy+ Core.<$> (o Core..:? "autoUpdatePolicy")+ Core.<*> (o Core..:? "deviceReportPolicy")+ Core.<*> (o Core..:? "maintenanceWindow")+ Core.<*> (o Core..:? "policyId")+ Core.<*> (o Core..:? "productAvailabilityPolicy")+ Core.<*> (o Core..:? "productPolicy")+ )++instance Core.ToJSON Policy where+ toJSON Policy {..} =+ Core.object+ ( Core.catMaybes+ [ ("autoUpdatePolicy" Core..=) Core.<$> autoUpdatePolicy,+ ("deviceReportPolicy" Core..=) Core.<$> deviceReportPolicy,+ ("maintenanceWindow" Core..=) Core.<$> maintenanceWindow,+ ("policyId" Core..=) Core.<$> policyId,+ ("productAvailabilityPolicy" Core..=)+ Core.<$> productAvailabilityPolicy,+ ("productPolicy" Core..=) Core.<$> productPolicy+ ]+ )++-- | A Products resource represents an app in the Google Play store that is available to at least some users in the enterprise. (Some apps are restricted to a single enterprise, and no information about them is made available outside that enterprise.) The information provided for each product (localized name, icon, link to the full Google Play details page) is intended to allow a basic representation of the product within an EMM user interface.+--+-- /See:/ 'newProduct' smart constructor.+data Product = Product+ { -- | The app restriction schema+ appRestrictionsSchema :: (Core.Maybe AppRestrictionsSchema),+ -- | The tracks visible to the enterprise.+ appTracks :: (Core.Maybe [TrackInfo]),+ -- | App versions currently available for this product.+ appVersion :: (Core.Maybe [AppVersion]),+ -- | The name of the author of the product (for example, the app developer).+ authorName :: (Core.Maybe Core.Text),+ -- | The countries which this app is available in.+ availableCountries :: (Core.Maybe [Core.Text]),+ -- | Deprecated, use appTracks instead.+ availableTracks :: (Core.Maybe [Product_AvailableTracksItem]),+ -- | The app category (e.g. RACING, SOCIAL, etc.)+ category :: (Core.Maybe Core.Text),+ -- | The content rating for this app.+ contentRating :: (Core.Maybe Product_ContentRating),+ -- | The localized promotional description, if available.+ description :: (Core.Maybe Core.Text),+ -- | A link to the (consumer) Google Play details page for the product.+ detailsUrl :: (Core.Maybe Core.Text),+ -- | How and to whom the package is made available. The value publicGoogleHosted means that the package is available through the Play store and not restricted to a specific enterprise. The value privateGoogleHosted means that the package is a private app (restricted to an enterprise) but hosted by Google. The value privateSelfHosted means that the package is a private app (restricted to an enterprise) and is privately hosted.+ distributionChannel :: (Core.Maybe Product_DistributionChannel),+ -- | Noteworthy features (if any) of this product.+ features :: (Core.Maybe [Product_FeaturesItem]),+ -- | The localized full app store description, if available.+ fullDescription :: (Core.Maybe Core.Text),+ -- | A link to an image that can be used as an icon for the product. This image is suitable for use at up to 512px x 512px.+ iconUrl :: (Core.Maybe Core.Text),+ -- | The approximate time (within 7 days) the app was last published, expressed in milliseconds since epoch.+ lastUpdatedTimestampMillis :: (Core.Maybe Core.Int64),+ -- | The minimum Android SDK necessary to run the app.+ minAndroidSdkVersion :: (Core.Maybe Core.Int32),+ -- | A list of permissions required by the app.+ permissions :: (Core.Maybe [ProductPermission]),+ -- | A string of the form /app:\<package name>/. For example, app:com.google.android.gm represents the Gmail app.+ productId :: (Core.Maybe Core.Text),+ -- | Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown, this means the product is not generally available anymore (even though it might still be available to people who own it).+ productPricing :: (Core.Maybe Product_ProductPricing),+ -- | A description of the recent changes made to the app.+ recentChanges :: (Core.Maybe Core.Text),+ -- | Deprecated.+ requiresContainerApp :: (Core.Maybe Core.Bool),+ -- | A list of screenshot links representing the app.+ screenshotUrls :: (Core.Maybe [Core.Text]),+ -- | The certificate used to sign this product.+ signingCertificate :: (Core.Maybe ProductSigningCertificate),+ -- | A link to a smaller image that can be used as an icon for the product. This image is suitable for use at up to 128px x 128px.+ smallIconUrl :: (Core.Maybe Core.Text),+ -- | The name of the product.+ title :: (Core.Maybe Core.Text),+ -- | A link to the managed Google Play details page for the product, for use by an Enterprise admin.+ workDetailsUrl :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Product' with the minimum fields required to make a request.+newProduct ::+ Product+newProduct =+ Product+ { appRestrictionsSchema = Core.Nothing,+ appTracks = Core.Nothing,+ appVersion = Core.Nothing,+ authorName = Core.Nothing,+ availableCountries = Core.Nothing,+ availableTracks = Core.Nothing,+ category = Core.Nothing,+ contentRating = Core.Nothing,+ description = Core.Nothing,+ detailsUrl = Core.Nothing,+ distributionChannel = Core.Nothing,+ features = Core.Nothing,+ fullDescription = Core.Nothing,+ iconUrl = Core.Nothing,+ lastUpdatedTimestampMillis = Core.Nothing,+ minAndroidSdkVersion = Core.Nothing,+ permissions = Core.Nothing,+ productId = Core.Nothing,+ productPricing = Core.Nothing,+ recentChanges = Core.Nothing,+ requiresContainerApp = Core.Nothing,+ screenshotUrls = Core.Nothing,+ signingCertificate = Core.Nothing,+ smallIconUrl = Core.Nothing,+ title = Core.Nothing,+ workDetailsUrl = Core.Nothing+ }++instance Core.FromJSON Product where+ parseJSON =+ Core.withObject+ "Product"+ ( \o ->+ Product+ Core.<$> (o Core..:? "appRestrictionsSchema")+ Core.<*> (o Core..:? "appTracks")+ Core.<*> (o Core..:? "appVersion")+ Core.<*> (o Core..:? "authorName")+ Core.<*> (o Core..:? "availableCountries")+ Core.<*> (o Core..:? "availableTracks")+ Core.<*> (o Core..:? "category")+ Core.<*> (o Core..:? "contentRating")+ Core.<*> (o Core..:? "description")+ Core.<*> (o Core..:? "detailsUrl")+ Core.<*> (o Core..:? "distributionChannel")+ Core.<*> (o Core..:? "features")+ Core.<*> (o Core..:? "fullDescription")+ Core.<*> (o Core..:? "iconUrl")+ Core.<*> ( o+ Core..:? "lastUpdatedTimestampMillis"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "minAndroidSdkVersion")+ Core.<*> (o Core..:? "permissions")+ Core.<*> (o Core..:? "productId")+ Core.<*> (o Core..:? "productPricing")+ Core.<*> (o Core..:? "recentChanges")+ Core.<*> (o Core..:? "requiresContainerApp")+ Core.<*> (o Core..:? "screenshotUrls")+ Core.<*> (o Core..:? "signingCertificate")+ Core.<*> (o Core..:? "smallIconUrl")+ Core.<*> (o Core..:? "title")+ Core.<*> (o Core..:? "workDetailsUrl")+ )++instance Core.ToJSON Product where+ toJSON Product {..} =+ Core.object+ ( Core.catMaybes+ [ ("appRestrictionsSchema" Core..=) Core.<$> appRestrictionsSchema,+ ("appTracks" Core..=) Core.<$> appTracks,+ ("appVersion" Core..=) Core.<$> appVersion,+ ("authorName" Core..=) Core.<$> authorName,+ ("availableCountries" Core..=) Core.<$> availableCountries,+ ("availableTracks" Core..=) Core.<$> availableTracks,+ ("category" Core..=) Core.<$> category,+ ("contentRating" Core..=) Core.<$> contentRating,+ ("description" Core..=) Core.<$> description,+ ("detailsUrl" Core..=) Core.<$> detailsUrl,+ ("distributionChannel" Core..=) Core.<$> distributionChannel,+ ("features" Core..=) Core.<$> features,+ ("fullDescription" Core..=) Core.<$> fullDescription,+ ("iconUrl" Core..=) Core.<$> iconUrl,+ ("lastUpdatedTimestampMillis" Core..=)+ Core.. Core.AsText+ Core.<$> lastUpdatedTimestampMillis,+ ("minAndroidSdkVersion" Core..=) Core.<$> minAndroidSdkVersion,+ ("permissions" Core..=) Core.<$> permissions,+ ("productId" Core..=) Core.<$> productId,+ ("productPricing" Core..=) Core.<$> productPricing,+ ("recentChanges" Core..=) Core.<$> recentChanges,+ ("requiresContainerApp" Core..=) Core.<$> requiresContainerApp,+ ("screenshotUrls" Core..=) Core.<$> screenshotUrls,+ ("signingCertificate" Core..=) Core.<$> signingCertificate,+ ("smallIconUrl" Core..=) Core.<$> smallIconUrl,+ ("title" Core..=) Core.<$> title,+ ("workDetailsUrl" Core..=) Core.<$> workDetailsUrl+ ]+ )++-- | An event generated when a product\'s approval status is changed.+--+-- /See:/ 'newProductApprovalEvent' smart constructor.+data ProductApprovalEvent = ProductApprovalEvent+ { -- | Whether the product was approved or unapproved. This field will always be present.+ approved :: (Core.Maybe ProductApprovalEvent_Approved),+ -- | The id of the product (e.g. \"app:com.google.android.gm\") for which the approval status has changed. This field will always be present.+ productId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductApprovalEvent' with the minimum fields required to make a request.+newProductApprovalEvent ::+ ProductApprovalEvent+newProductApprovalEvent =+ ProductApprovalEvent+ { approved = Core.Nothing,+ productId = Core.Nothing+ }++instance Core.FromJSON ProductApprovalEvent where+ parseJSON =+ Core.withObject+ "ProductApprovalEvent"+ ( \o ->+ ProductApprovalEvent+ Core.<$> (o Core..:? "approved")+ Core.<*> (o Core..:? "productId")+ )++instance Core.ToJSON ProductApprovalEvent where+ toJSON ProductApprovalEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("approved" Core..=) Core.<$> approved,+ ("productId" Core..=) Core.<$> productId+ ]+ )++-- | An event generated whenever a product\'s availability changes.+--+-- /See:/ 'newProductAvailabilityChangeEvent' smart constructor.+data ProductAvailabilityChangeEvent = ProductAvailabilityChangeEvent+ { -- | The new state of the product. This field will always be present.+ availabilityStatus :: (Core.Maybe ProductAvailabilityChangeEvent_AvailabilityStatus),+ -- | The id of the product (e.g. \"app:com.google.android.gm\") for which the product availability changed. This field will always be present.+ productId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductAvailabilityChangeEvent' with the minimum fields required to make a request.+newProductAvailabilityChangeEvent ::+ ProductAvailabilityChangeEvent+newProductAvailabilityChangeEvent =+ ProductAvailabilityChangeEvent+ { availabilityStatus = Core.Nothing,+ productId = Core.Nothing+ }++instance Core.FromJSON ProductAvailabilityChangeEvent where+ parseJSON =+ Core.withObject+ "ProductAvailabilityChangeEvent"+ ( \o ->+ ProductAvailabilityChangeEvent+ Core.<$> (o Core..:? "availabilityStatus")+ Core.<*> (o Core..:? "productId")+ )++instance Core.ToJSON ProductAvailabilityChangeEvent where+ toJSON ProductAvailabilityChangeEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("availabilityStatus" Core..=) Core.<$> availabilityStatus,+ ("productId" Core..=) Core.<$> productId+ ]+ )++-- | A product permissions resource represents the set of permissions required by a specific app and whether or not they have been accepted by an enterprise admin. The API can be used to read the set of permissions, and also to update the set to indicate that permissions have been accepted.+--+-- /See:/ 'newProductPermission' smart constructor.+data ProductPermission = ProductPermission+ { -- | An opaque string uniquely identifying the permission.+ permissionId :: (Core.Maybe Core.Text),+ -- | Whether the permission has been accepted or not.+ state :: (Core.Maybe ProductPermission_State)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductPermission' with the minimum fields required to make a request.+newProductPermission ::+ ProductPermission+newProductPermission =+ ProductPermission+ { permissionId = Core.Nothing,+ state = Core.Nothing+ }++instance Core.FromJSON ProductPermission where+ parseJSON =+ Core.withObject+ "ProductPermission"+ ( \o ->+ ProductPermission+ Core.<$> (o Core..:? "permissionId")+ Core.<*> (o Core..:? "state")+ )++instance Core.ToJSON ProductPermission where+ toJSON ProductPermission {..} =+ Core.object+ ( Core.catMaybes+ [ ("permissionId" Core..=) Core.<$> permissionId,+ ("state" Core..=) Core.<$> state+ ]+ )++-- | Information about the permissions required by a specific app and whether they have been accepted by the enterprise.+--+-- /See:/ 'newProductPermissions' smart constructor.+data ProductPermissions = ProductPermissions+ { -- | The permissions required by the app.+ permission :: (Core.Maybe [ProductPermission]),+ -- | The ID of the app that the permissions relate to, e.g. \"app:com.google.android.gm\".+ productId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductPermissions' with the minimum fields required to make a request.+newProductPermissions ::+ ProductPermissions+newProductPermissions =+ ProductPermissions+ { permission = Core.Nothing,+ productId = Core.Nothing+ }++instance Core.FromJSON ProductPermissions where+ parseJSON =+ Core.withObject+ "ProductPermissions"+ ( \o ->+ ProductPermissions+ Core.<$> (o Core..:? "permission")+ Core.<*> (o Core..:? "productId")+ )++instance Core.ToJSON ProductPermissions where+ toJSON ProductPermissions {..} =+ Core.object+ ( Core.catMaybes+ [ ("permission" Core..=) Core.<$> permission,+ ("productId" Core..=) Core.<$> productId+ ]+ )++-- | The policy for a product.+--+-- /See:/ 'newProductPolicy' smart constructor.+data ProductPolicy = ProductPolicy+ { -- | The auto-install policy for the product.+ autoInstallPolicy :: (Core.Maybe AutoInstallPolicy),+ -- | The auto-update mode for the product. When autoUpdateMode is used, it always takes precedence over the user\'s choice. So when a user makes changes to the device settings manually, these changes are ignored.+ autoUpdateMode :: (Core.Maybe ProductPolicy_AutoUpdateMode),+ -- | An authentication URL configuration for the authenticator app of an identity provider. This helps to launch the identity provider\'s authenticator app during the authentication happening in a private app using Android WebView. Authenticator app should already be the default handler for the authentication url on the device.+ enterpriseAuthenticationAppLinkConfigs :: (Core.Maybe [EnterpriseAuthenticationAppLinkConfig]),+ -- | The managed configuration for the product.+ managedConfiguration :: (Core.Maybe ManagedConfiguration),+ -- | The ID of the product. For example, \"app:com.google.android.gm\".+ productId :: (Core.Maybe Core.Text),+ -- | Grants the device visibility to the specified product release track(s), identified by trackIds. The list of release tracks of a product can be obtained by calling Products.Get.+ trackIds :: (Core.Maybe [Core.Text]),+ -- | Deprecated. Use trackIds instead.+ tracks :: (Core.Maybe [ProductPolicy_TracksItem])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductPolicy' with the minimum fields required to make a request.+newProductPolicy ::+ ProductPolicy+newProductPolicy =+ ProductPolicy+ { autoInstallPolicy = Core.Nothing,+ autoUpdateMode = Core.Nothing,+ enterpriseAuthenticationAppLinkConfigs = Core.Nothing,+ managedConfiguration = Core.Nothing,+ productId = Core.Nothing,+ trackIds = Core.Nothing,+ tracks = Core.Nothing+ }++instance Core.FromJSON ProductPolicy where+ parseJSON =+ Core.withObject+ "ProductPolicy"+ ( \o ->+ ProductPolicy+ Core.<$> (o Core..:? "autoInstallPolicy")+ Core.<*> (o Core..:? "autoUpdateMode")+ Core.<*> (o Core..:? "enterpriseAuthenticationAppLinkConfigs")+ Core.<*> (o Core..:? "managedConfiguration")+ Core.<*> (o Core..:? "productId")+ Core.<*> (o Core..:? "trackIds")+ Core.<*> (o Core..:? "tracks")+ )++instance Core.ToJSON ProductPolicy where+ toJSON ProductPolicy {..} =+ Core.object+ ( Core.catMaybes+ [ ("autoInstallPolicy" Core..=) Core.<$> autoInstallPolicy,+ ("autoUpdateMode" Core..=) Core.<$> autoUpdateMode,+ ("enterpriseAuthenticationAppLinkConfigs" Core..=)+ Core.<$> enterpriseAuthenticationAppLinkConfigs,+ ("managedConfiguration" Core..=) Core.<$> managedConfiguration,+ ("productId" Core..=) Core.<$> productId,+ ("trackIds" Core..=) Core.<$> trackIds,+ ("tracks" Core..=) Core.<$> tracks+ ]+ )++-- | A set of products.+--+-- /See:/ 'newProductSet' smart constructor.+data ProductSet = ProductSet+ { -- | The list of product IDs making up the set of products.+ productId :: (Core.Maybe [Core.Text]),+ -- | The interpretation of this product set. \"unknown\" should never be sent and is ignored if received. \"whitelist\" means that the user is entitled to access the product set. \"includeAll\" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. \"allApproved\" means that the user is entitled to access all products that are approved for the enterprise. If the value is \"allApproved\" or \"includeAll\", the productId field is ignored. If no value is provided, it is interpreted as \"whitelist\" for backwards compatibility. Further \"allApproved\" or \"includeAll\" does not enable automatic visibility of \"alpha\" or \"beta\" tracks for Android app. Use ProductVisibility to enable \"alpha\" or \"beta\" tracks per user.+ productSetBehavior :: (Core.Maybe ProductSet_ProductSetBehavior),+ -- | Additional list of product IDs making up the product set. Unlike the productID array, in this list It\'s possible to specify which tracks (alpha, beta, production) of a product are visible to the user. See ProductVisibility and its fields for more information. Specifying the same product ID both here and in the productId array is not allowed and it will result in an error.+ productVisibility :: (Core.Maybe [ProductVisibility])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductSet' with the minimum fields required to make a request.+newProductSet ::+ ProductSet+newProductSet =+ ProductSet+ { productId = Core.Nothing,+ productSetBehavior = Core.Nothing,+ productVisibility = Core.Nothing+ }++instance Core.FromJSON ProductSet where+ parseJSON =+ Core.withObject+ "ProductSet"+ ( \o ->+ ProductSet+ Core.<$> (o Core..:? "productId")+ Core.<*> (o Core..:? "productSetBehavior")+ Core.<*> (o Core..:? "productVisibility")+ )++instance Core.ToJSON ProductSet where+ toJSON ProductSet {..} =+ Core.object+ ( Core.catMaybes+ [ ("productId" Core..=) Core.<$> productId,+ ("productSetBehavior" Core..=) Core.<$> productSetBehavior,+ ("productVisibility" Core..=) Core.<$> productVisibility+ ]+ )++--+-- /See:/ 'newProductSigningCertificate' smart constructor.+data ProductSigningCertificate = ProductSigningCertificate+ { -- | The base64 urlsafe encoded SHA1 hash of the certificate. (This field is deprecated in favor of SHA2-256. It should not be used and may be removed at any time.)+ certificateHashSha1 :: (Core.Maybe Core.Text),+ -- | The base64 urlsafe encoded SHA2-256 hash of the certificate.+ certificateHashSha256 :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductSigningCertificate' with the minimum fields required to make a request.+newProductSigningCertificate ::+ ProductSigningCertificate+newProductSigningCertificate =+ ProductSigningCertificate+ { certificateHashSha1 = Core.Nothing,+ certificateHashSha256 = Core.Nothing+ }++instance Core.FromJSON ProductSigningCertificate where+ parseJSON =+ Core.withObject+ "ProductSigningCertificate"+ ( \o ->+ ProductSigningCertificate+ Core.<$> (o Core..:? "certificateHashSha1")+ Core.<*> (o Core..:? "certificateHashSha256")+ )++instance Core.ToJSON ProductSigningCertificate where+ toJSON ProductSigningCertificate {..} =+ Core.object+ ( Core.catMaybes+ [ ("certificateHashSha1" Core..=) Core.<$> certificateHashSha1,+ ("certificateHashSha256" Core..=) Core.<$> certificateHashSha256+ ]+ )++-- | A product to be made visible to a user.+--+-- /See:/ 'newProductVisibility' smart constructor.+data ProductVisibility = ProductVisibility+ { -- | The product ID to make visible to the user. Required for each item in the productVisibility list.+ productId :: (Core.Maybe Core.Text),+ -- | Grants the user visibility to the specified product track(s), identified by trackIds.+ trackIds :: (Core.Maybe [Core.Text]),+ -- | Deprecated. Use trackIds instead.+ tracks :: (Core.Maybe [ProductVisibility_TracksItem])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductVisibility' with the minimum fields required to make a request.+newProductVisibility ::+ ProductVisibility+newProductVisibility =+ ProductVisibility+ { productId = Core.Nothing,+ trackIds = Core.Nothing,+ tracks = Core.Nothing+ }++instance Core.FromJSON ProductVisibility where+ parseJSON =+ Core.withObject+ "ProductVisibility"+ ( \o ->+ ProductVisibility+ Core.<$> (o Core..:? "productId")+ Core.<*> (o Core..:? "trackIds")+ Core.<*> (o Core..:? "tracks")+ )++instance Core.ToJSON ProductVisibility where+ toJSON ProductVisibility {..} =+ Core.object+ ( Core.catMaybes+ [ ("productId" Core..=) Core.<$> productId,+ ("trackIds" Core..=) Core.<$> trackIds,+ ("tracks" Core..=) Core.<$> tracks+ ]+ )++--+-- /See:/ 'newProductsApproveRequest' smart constructor.+data ProductsApproveRequest = ProductsApproveRequest+ { -- | The approval URL that was shown to the user. Only the permissions shown to the user with that URL will be accepted, which may not be the product\'s entire set of permissions. For example, the URL may only display new permissions from an update after the product was approved, or not include new permissions if the product was updated since the URL was generated.+ approvalUrlInfo :: (Core.Maybe ApprovalUrlInfo),+ -- | Sets how new permission requests for the product are handled. \"allPermissions\" automatically approves all current and future permissions for the product. \"currentPermissionsOnly\" approves the current set of permissions for the product, but any future permissions added through updates will require manual reapproval. If not specified, only the current set of permissions will be approved.+ approvedPermissions :: (Core.Maybe ProductsApproveRequest_ApprovedPermissions)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductsApproveRequest' with the minimum fields required to make a request.+newProductsApproveRequest ::+ ProductsApproveRequest+newProductsApproveRequest =+ ProductsApproveRequest+ { approvalUrlInfo = Core.Nothing,+ approvedPermissions = Core.Nothing+ }++instance Core.FromJSON ProductsApproveRequest where+ parseJSON =+ Core.withObject+ "ProductsApproveRequest"+ ( \o ->+ ProductsApproveRequest+ Core.<$> (o Core..:? "approvalUrlInfo")+ Core.<*> (o Core..:? "approvedPermissions")+ )++instance Core.ToJSON ProductsApproveRequest where+ toJSON ProductsApproveRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("approvalUrlInfo" Core..=) Core.<$> approvalUrlInfo,+ ("approvedPermissions" Core..=) Core.<$> approvedPermissions+ ]+ )++--+-- /See:/ 'newProductsGenerateApprovalUrlResponse' smart constructor.+newtype ProductsGenerateApprovalUrlResponse = ProductsGenerateApprovalUrlResponse+ { -- | A URL that can be rendered in an iframe to display the permissions (if any) of a product. This URL can be used to approve the product only once and only within 24 hours of being generated, using the Products.approve call. If the product is currently unapproved and has no permissions, this URL will point to an empty page. If the product is currently approved, a URL will only be generated if that product has added permissions since it was last approved, and the URL will only display those new permissions that have not yet been accepted.+ url :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductsGenerateApprovalUrlResponse' with the minimum fields required to make a request.+newProductsGenerateApprovalUrlResponse ::+ ProductsGenerateApprovalUrlResponse+newProductsGenerateApprovalUrlResponse =+ ProductsGenerateApprovalUrlResponse {url = Core.Nothing}++instance Core.FromJSON ProductsGenerateApprovalUrlResponse where+ parseJSON =+ Core.withObject+ "ProductsGenerateApprovalUrlResponse"+ ( \o ->+ ProductsGenerateApprovalUrlResponse Core.<$> (o Core..:? "url")+ )++instance Core.ToJSON ProductsGenerateApprovalUrlResponse where+ toJSON ProductsGenerateApprovalUrlResponse {..} =+ Core.object (Core.catMaybes [("url" Core..=) Core.<$> url])++--+-- /See:/ 'newProductsListResponse' smart constructor.+data ProductsListResponse = ProductsListResponse+ { -- | General pagination information.+ pageInfo :: (Core.Maybe PageInfo),+ -- | Information about a product (e.g. an app) in the Google Play store, for display to an enterprise admin.+ product :: (Core.Maybe [Product]),+ -- | Pagination information for token pagination.+ tokenPagination :: (Core.Maybe TokenPagination)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProductsListResponse' with the minimum fields required to make a request.+newProductsListResponse ::+ ProductsListResponse+newProductsListResponse =+ ProductsListResponse+ { pageInfo = Core.Nothing,+ product = Core.Nothing,+ tokenPagination = Core.Nothing+ }++instance Core.FromJSON ProductsListResponse where+ parseJSON =+ Core.withObject+ "ProductsListResponse"+ ( \o ->+ ProductsListResponse+ Core.<$> (o Core..:? "pageInfo")+ Core.<*> (o Core..:? "product")+ Core.<*> (o Core..:? "tokenPagination")+ )++instance Core.ToJSON ProductsListResponse where+ toJSON ProductsListResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("pageInfo" Core..=) Core.<$> pageInfo,+ ("product" Core..=) Core.<$> product,+ ("tokenPagination" Core..=) Core.<$> tokenPagination+ ]+ )++-- | A service account identity, including the name and credentials that can be used to authenticate as the service account.+--+-- /See:/ 'newServiceAccount' smart constructor.+data ServiceAccount = ServiceAccount+ { -- | Credentials that can be used to authenticate as this ServiceAccount.+ key :: (Core.Maybe ServiceAccountKey),+ -- | The account name of the service account, in the form of an email address. Assigned by the server.+ name :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ServiceAccount' with the minimum fields required to make a request.+newServiceAccount ::+ ServiceAccount+newServiceAccount =+ ServiceAccount {key = Core.Nothing, name = Core.Nothing}++instance Core.FromJSON ServiceAccount where+ parseJSON =+ Core.withObject+ "ServiceAccount"+ ( \o ->+ ServiceAccount+ Core.<$> (o Core..:? "key")+ Core.<*> (o Core..:? "name")+ )++instance Core.ToJSON ServiceAccount where+ toJSON ServiceAccount {..} =+ Core.object+ ( Core.catMaybes+ [("key" Core..=) Core.<$> key, ("name" Core..=) Core.<$> name]+ )++-- | /Deprecated:/ New integrations cannot use this method and can refer to our new recommendations+--+-- /See:/ 'newServiceAccountKey' smart constructor.+data ServiceAccountKey = ServiceAccountKey+ { -- | The body of the private key credentials file, in string format. This is only populated when the ServiceAccountKey is created, and is not stored by Google.+ data' :: (Core.Maybe Core.Text),+ -- | An opaque, unique identifier for this ServiceAccountKey. Assigned by the server.+ id :: (Core.Maybe Core.Text),+ -- | Public key data for the credentials file. This is an X.509 cert. If you are using the googleCredentials key type, this is identical to the cert that can be retrieved by using the X.509 cert url inside of the credentials file.+ publicData :: (Core.Maybe Core.Text),+ -- | The file format of the generated key data.+ type' :: (Core.Maybe ServiceAccountKey_Type)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ServiceAccountKey' with the minimum fields required to make a request.+newServiceAccountKey ::+ ServiceAccountKey+newServiceAccountKey =+ ServiceAccountKey+ { data' = Core.Nothing,+ id = Core.Nothing,+ publicData = Core.Nothing,+ type' = Core.Nothing+ }++instance Core.FromJSON ServiceAccountKey where+ parseJSON =+ Core.withObject+ "ServiceAccountKey"+ ( \o ->+ ServiceAccountKey+ Core.<$> (o Core..:? "data")+ Core.<*> (o Core..:? "id")+ Core.<*> (o Core..:? "publicData")+ Core.<*> (o Core..:? "type")+ )++instance Core.ToJSON ServiceAccountKey where+ toJSON ServiceAccountKey {..} =+ Core.object+ ( Core.catMaybes+ [ ("data" Core..=) Core.<$> data',+ ("id" Core..=) Core.<$> id,+ ("publicData" Core..=) Core.<$> publicData,+ ("type" Core..=) Core.<$> type'+ ]+ )++--+-- /See:/ 'newServiceAccountKeysListResponse' smart constructor.+newtype ServiceAccountKeysListResponse = ServiceAccountKeysListResponse+ { -- | The service account credentials.+ serviceAccountKey :: (Core.Maybe [ServiceAccountKey])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ServiceAccountKeysListResponse' with the minimum fields required to make a request.+newServiceAccountKeysListResponse ::+ ServiceAccountKeysListResponse+newServiceAccountKeysListResponse =+ ServiceAccountKeysListResponse {serviceAccountKey = Core.Nothing}++instance Core.FromJSON ServiceAccountKeysListResponse where+ parseJSON =+ Core.withObject+ "ServiceAccountKeysListResponse"+ ( \o ->+ ServiceAccountKeysListResponse+ Core.<$> (o Core..:? "serviceAccountKey")+ )++instance Core.ToJSON ServiceAccountKeysListResponse where+ toJSON ServiceAccountKeysListResponse {..} =+ Core.object+ ( Core.catMaybes+ [("serviceAccountKey" Core..=) Core.<$> serviceAccountKey]+ )++-- | A resource returned by the GenerateSignupUrl API, which contains the Signup URL and Completion Token.+--+-- /See:/ 'newSignupInfo' smart constructor.+data SignupInfo = SignupInfo+ { -- | An opaque token that will be required, along with the Enterprise Token, for obtaining the enterprise resource from CompleteSignup.+ completionToken :: (Core.Maybe Core.Text),+ -- | Deprecated.+ kind :: (Core.Maybe Core.Text),+ -- | A URL under which the Admin can sign up for an enterprise. The page pointed to cannot be rendered in an iframe.+ url :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SignupInfo' with the minimum fields required to make a request.+newSignupInfo ::+ SignupInfo+newSignupInfo =+ SignupInfo+ { completionToken = Core.Nothing,+ kind = Core.Nothing,+ url = Core.Nothing+ }++instance Core.FromJSON SignupInfo where+ parseJSON =+ Core.withObject+ "SignupInfo"+ ( \o ->+ SignupInfo+ Core.<$> (o Core..:? "completionToken")+ Core.<*> (o Core..:? "kind")+ Core.<*> (o Core..:? "url")+ )++instance Core.ToJSON SignupInfo where+ toJSON SignupInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("completionToken" Core..=) Core.<$> completionToken,+ ("kind" Core..=) Core.<$> kind,+ ("url" Core..=) Core.<$> url+ ]+ )++-- | Definition of a managed Google Play store cluster, a list of products displayed as part of a store page.+--+-- /See:/ 'newStoreCluster' smart constructor.+data StoreCluster = StoreCluster+ { -- | Unique ID of this cluster. Assigned by the server. Immutable once assigned.+ id :: (Core.Maybe Core.Text),+ -- | Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.+ name :: (Core.Maybe [LocalizedText]),+ -- | String (US-ASCII only) used to determine order of this cluster within the parent page\'s elements. Page elements are sorted in lexicographic order of this field. Duplicated values are allowed, but ordering between elements with duplicate order is undefined. The value of this field is never visible to a user, it is used solely for the purpose of defining an ordering. Maximum length is 256 characters.+ orderInPage :: (Core.Maybe Core.Text),+ -- | List of products in the order they are displayed in the cluster. There should not be duplicates within a cluster.+ productId :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StoreCluster' with the minimum fields required to make a request.+newStoreCluster ::+ StoreCluster+newStoreCluster =+ StoreCluster+ { id = Core.Nothing,+ name = Core.Nothing,+ orderInPage = Core.Nothing,+ productId = Core.Nothing+ }++instance Core.FromJSON StoreCluster where+ parseJSON =+ Core.withObject+ "StoreCluster"+ ( \o ->+ StoreCluster+ Core.<$> (o Core..:? "id")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "orderInPage")+ Core.<*> (o Core..:? "productId")+ )++instance Core.ToJSON StoreCluster where+ toJSON StoreCluster {..} =+ Core.object+ ( Core.catMaybes+ [ ("id" Core..=) Core.<$> id,+ ("name" Core..=) Core.<$> name,+ ("orderInPage" Core..=) Core.<$> orderInPage,+ ("productId" Core..=) Core.<$> productId+ ]+ )++-- | General setting for the managed Google Play store layout, currently only specifying the page to display the first time the store is opened.+--+-- /See:/ 'newStoreLayout' smart constructor.+data StoreLayout = StoreLayout+ { -- | The ID of the store page to be used as the homepage. The homepage is the first page shown in the managed Google Play Store. Not specifying a homepage is equivalent to setting the store layout type to \"basic\".+ homepageId :: (Core.Maybe Core.Text),+ -- | The store layout type. By default, this value is set to \"basic\" if the homepageId field is not set, and to \"custom\" otherwise. If set to \"basic\", the layout will consist of all approved apps that have been whitelisted for the user.+ storeLayoutType :: (Core.Maybe StoreLayout_StoreLayoutType)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StoreLayout' with the minimum fields required to make a request.+newStoreLayout ::+ StoreLayout+newStoreLayout =+ StoreLayout+ { homepageId = Core.Nothing,+ storeLayoutType = Core.Nothing+ }++instance Core.FromJSON StoreLayout where+ parseJSON =+ Core.withObject+ "StoreLayout"+ ( \o ->+ StoreLayout+ Core.<$> (o Core..:? "homepageId")+ Core.<*> (o Core..:? "storeLayoutType")+ )++instance Core.ToJSON StoreLayout where+ toJSON StoreLayout {..} =+ Core.object+ ( Core.catMaybes+ [ ("homepageId" Core..=) Core.<$> homepageId,+ ("storeLayoutType" Core..=) Core.<$> storeLayoutType+ ]+ )++--+-- /See:/ 'newStoreLayoutClustersListResponse' smart constructor.+newtype StoreLayoutClustersListResponse = StoreLayoutClustersListResponse+ { -- | A store cluster of an enterprise.+ cluster :: (Core.Maybe [StoreCluster])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StoreLayoutClustersListResponse' with the minimum fields required to make a request.+newStoreLayoutClustersListResponse ::+ StoreLayoutClustersListResponse+newStoreLayoutClustersListResponse =+ StoreLayoutClustersListResponse {cluster = Core.Nothing}++instance Core.FromJSON StoreLayoutClustersListResponse where+ parseJSON =+ Core.withObject+ "StoreLayoutClustersListResponse"+ ( \o ->+ StoreLayoutClustersListResponse Core.<$> (o Core..:? "cluster")+ )++instance Core.ToJSON StoreLayoutClustersListResponse where+ toJSON StoreLayoutClustersListResponse {..} =+ Core.object+ (Core.catMaybes [("cluster" Core..=) Core.<$> cluster])++--+-- /See:/ 'newStoreLayoutPagesListResponse' smart constructor.+newtype StoreLayoutPagesListResponse = StoreLayoutPagesListResponse+ { -- | A store page of an enterprise.+ page :: (Core.Maybe [StorePage])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StoreLayoutPagesListResponse' with the minimum fields required to make a request.+newStoreLayoutPagesListResponse ::+ StoreLayoutPagesListResponse+newStoreLayoutPagesListResponse =+ StoreLayoutPagesListResponse {page = Core.Nothing}++instance Core.FromJSON StoreLayoutPagesListResponse where+ parseJSON =+ Core.withObject+ "StoreLayoutPagesListResponse"+ (\o -> StoreLayoutPagesListResponse Core.<$> (o Core..:? "page"))++instance Core.ToJSON StoreLayoutPagesListResponse where+ toJSON StoreLayoutPagesListResponse {..} =+ Core.object (Core.catMaybes [("page" Core..=) Core.<$> page])++-- | Definition of a managed Google Play store page, made of a localized name and links to other pages. A page also contains clusters defined as a subcollection.+--+-- /See:/ 'newStorePage' smart constructor.+data StorePage = StorePage+ { -- | Unique ID of this page. Assigned by the server. Immutable once assigned.+ id :: (Core.Maybe Core.Text),+ -- | Ordered list of pages a user should be able to reach from this page. The list can\'t include this page. It is recommended that the basic pages are created first, before adding the links between pages. The API doesn\'t verify that the pages exist or the pages are reachable.+ link :: (Core.Maybe [Core.Text]),+ -- | Ordered list of localized strings giving the name of this page. The text displayed is the one that best matches the user locale, or the first entry if there is no good match. There needs to be at least one entry.+ name :: (Core.Maybe [LocalizedText])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StorePage' with the minimum fields required to make a request.+newStorePage ::+ StorePage+newStorePage =+ StorePage+ { id = Core.Nothing,+ link = Core.Nothing,+ name = Core.Nothing+ }++instance Core.FromJSON StorePage where+ parseJSON =+ Core.withObject+ "StorePage"+ ( \o ->+ StorePage+ Core.<$> (o Core..:? "id")+ Core.<*> (o Core..:? "link")+ Core.<*> (o Core..:? "name")+ )++instance Core.ToJSON StorePage where+ toJSON StorePage {..} =+ Core.object+ ( Core.catMaybes+ [ ("id" Core..=) Core.<$> id,+ ("link" Core..=) Core.<$> link,+ ("name" Core..=) Core.<$> name+ ]+ )++-- | Pagination information returned by a List operation when token pagination is enabled. List operations that supports paging return only one \"page\" of results. This protocol buffer message describes the page that has been returned. When using token pagination, clients should use the next\/previous token to get another page of the result. The presence or absence of next\/previous token indicates whether a next\/previous page is available and provides a mean of accessing this page. ListRequest.page/token should be set to either next/page/token or previous/page_token to access another page.+--+-- /See:/ 'newTokenPagination' smart constructor.+data TokenPagination = TokenPagination+ { -- | Tokens to pass to the standard list field \'page/token\'. Whenever available, tokens are preferred over manipulating start/index.+ nextPageToken :: (Core.Maybe Core.Text),+ previousPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TokenPagination' with the minimum fields required to make a request.+newTokenPagination ::+ TokenPagination+newTokenPagination =+ TokenPagination+ { nextPageToken = Core.Nothing,+ previousPageToken = Core.Nothing+ }++instance Core.FromJSON TokenPagination where+ parseJSON =+ Core.withObject+ "TokenPagination"+ ( \o ->+ TokenPagination+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "previousPageToken")+ )++instance Core.ToJSON TokenPagination where+ toJSON TokenPagination {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("previousPageToken" Core..=) Core.<$> previousPageToken+ ]+ )++-- | Id to name association of a track.+--+-- /See:/ 'newTrackInfo' smart constructor.+data TrackInfo = TrackInfo+ { -- | A modifiable name for a track. This is the visible name in the play developer console.+ trackAlias :: (Core.Maybe Core.Text),+ -- | Unmodifiable, unique track identifier. This identifier is the releaseTrackId in the url of the play developer console page that displays the track information.+ trackId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TrackInfo' with the minimum fields required to make a request.+newTrackInfo ::+ TrackInfo+newTrackInfo =+ TrackInfo {trackAlias = Core.Nothing, trackId = Core.Nothing}++instance Core.FromJSON TrackInfo where+ parseJSON =+ Core.withObject+ "TrackInfo"+ ( \o ->+ TrackInfo+ Core.<$> (o Core..:? "trackAlias")+ Core.<*> (o Core..:? "trackId")+ )++instance Core.ToJSON TrackInfo where+ toJSON TrackInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("trackAlias" Core..=) Core.<$> trackAlias,+ ("trackId" Core..=) Core.<$> trackId+ ]+ )++-- | A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to managed Google Play only, or to other Google services, depending on the identity model: - The Google managed domain identity model requires synchronization to Google account sources (via primaryEmail). - The managed Google Play Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to managed Google Play.+--+-- /See:/ 'newUser' smart constructor.+data User = User+ { -- | A unique identifier you create for this user, such as \"user342\" or \"asset#44418\". Do not use personally identifiable information (PII) for this property. Must always be set for EMM-managed users. Not set for Google-managed users.+ accountIdentifier :: (Core.Maybe Core.Text),+ -- | The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.+ accountType :: (Core.Maybe User_AccountType),+ -- | The name that will appear in user interfaces. Setting this property is optional when creating EMM-managed users. If you do set this property, use something generic about the organization (such as \"Example, Inc.\") or your name (as EMM). Not used for Google-managed user accounts. \@mutable androidenterprise.users.update+ displayName :: (Core.Maybe Core.Text),+ -- | The unique ID for the user.+ id :: (Core.Maybe Core.Text),+ -- | The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.+ managementType :: (Core.Maybe User_ManagementType),+ -- | The user\'s primary email address, for example, \"jsmith\@example.com\". Will always be set for Google managed users and not set for EMM managed users.+ primaryEmail :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'User' with the minimum fields required to make a request.+newUser ::+ User+newUser =+ User+ { accountIdentifier = Core.Nothing,+ accountType = Core.Nothing,+ displayName = Core.Nothing,+ id = Core.Nothing,+ managementType = Core.Nothing,+ primaryEmail = Core.Nothing+ }++instance Core.FromJSON User where+ parseJSON =+ Core.withObject+ "User"+ ( \o ->+ User+ Core.<$> (o Core..:? "accountIdentifier")+ Core.<*> (o Core..:? "accountType")+ Core.<*> (o Core..:? "displayName")+ Core.<*> (o Core..:? "id")+ Core.<*> (o Core..:? "managementType")+ Core.<*> (o Core..:? "primaryEmail")+ )++instance Core.ToJSON User where+ toJSON User {..} =+ Core.object+ ( Core.catMaybes+ [ ("accountIdentifier" Core..=) Core.<$> accountIdentifier,+ ("accountType" Core..=) Core.<$> accountType,+ ("displayName" Core..=) Core.<$> displayName,+ ("id" Core..=) Core.<$> id,+ ("managementType" Core..=) Core.<$> managementType,+ ("primaryEmail" Core..=) Core.<$> primaryEmail+ ]+ )++--+-- /See:/ 'newUsersListResponse' smart constructor.+newtype UsersListResponse = UsersListResponse+ { -- | A user of an enterprise.+ user :: (Core.Maybe [User])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UsersListResponse' with the minimum fields required to make a request.+newUsersListResponse ::+ UsersListResponse+newUsersListResponse = UsersListResponse {user = Core.Nothing}++instance Core.FromJSON UsersListResponse where+ parseJSON =+ Core.withObject+ "UsersListResponse"+ (\o -> UsersListResponse Core.<$> (o Core..:? "user"))++instance Core.ToJSON UsersListResponse where+ toJSON UsersListResponse {..} =+ Core.object (Core.catMaybes [("user" Core..=) Core.<$> user])++-- | A variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a \'$\' sign and should be alphanumeric only.+--+-- /See:/ 'newVariableSet' smart constructor.+data VariableSet = VariableSet+ { -- | The placeholder string; defined by EMM.+ placeholder :: (Core.Maybe Core.Text),+ -- | The value of the placeholder, specific to the user.+ userValue :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'VariableSet' with the minimum fields required to make a request.+newVariableSet ::+ VariableSet+newVariableSet =+ VariableSet {placeholder = Core.Nothing, userValue = Core.Nothing}++instance Core.FromJSON VariableSet where+ parseJSON =+ Core.withObject+ "VariableSet"+ ( \o ->+ VariableSet+ Core.<$> (o Core..:? "placeholder")+ Core.<*> (o Core..:? "userValue")+ )++instance Core.ToJSON VariableSet where+ toJSON VariableSet {..} =+ Core.object+ ( Core.catMaybes+ [ ("placeholder" Core..=) Core.<$> placeholder,+ ("userValue" Core..=) Core.<$> userValue+ ]+ )++-- | A WebApps resource represents a web app created for an enterprise. Web apps are published to managed Google Play and can be distributed like other Android apps. On a user\'s device, a web app opens its specified URL.+--+-- /See:/ 'newWebApp' smart constructor.+data WebApp = WebApp+ { -- | The display mode of the web app. Possible values include: - \"minimalUi\", the device\'s status bar, navigation bar, the app\'s URL, and a refresh button are visible when the app is open. For HTTP URLs, you can only select this option. - \"standalone\", the device\'s status bar and navigation bar are visible when the app is open. - \"fullScreen\", the app opens in full screen mode, hiding the device\'s status and navigation bars. All browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area.+ displayMode :: (Core.Maybe WebApp_DisplayMode),+ -- | A list of icons representing this website. If absent, a default icon (for create) or the current icon (for update) will be used.+ icons :: (Core.Maybe [WebAppIcon]),+ -- | A flag whether the app has been published to the Play store yet.+ isPublished :: (Core.Maybe Core.Bool),+ -- | The start URL, i.e. the URL that should load when the user opens the application.+ startUrl :: (Core.Maybe Core.Text),+ -- | The title of the web app as displayed to the user (e.g., amongst a list of other applications, or as a label for an icon).+ title :: (Core.Maybe Core.Text),+ -- | The current version of the app. Note that the version can automatically increase during the lifetime of the web app, while Google does internal housekeeping to keep the web app up-to-date.+ versionCode :: (Core.Maybe Core.Int64),+ -- | The ID of the application. A string of the form \"app:\<package name>\" where the package name always starts with the prefix \"com.google.enterprise.webapp.\" followed by a random id.+ webAppId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WebApp' with the minimum fields required to make a request.+newWebApp ::+ WebApp+newWebApp =+ WebApp+ { displayMode = Core.Nothing,+ icons = Core.Nothing,+ isPublished = Core.Nothing,+ startUrl = Core.Nothing,+ title = Core.Nothing,+ versionCode = Core.Nothing,+ webAppId = Core.Nothing+ }++instance Core.FromJSON WebApp where+ parseJSON =+ Core.withObject+ "WebApp"+ ( \o ->+ WebApp+ Core.<$> (o Core..:? "displayMode")+ Core.<*> (o Core..:? "icons")+ Core.<*> (o Core..:? "isPublished")+ Core.<*> (o Core..:? "startUrl")+ Core.<*> (o Core..:? "title")+ Core.<*> (o Core..:? "versionCode" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "webAppId")+ )++instance Core.ToJSON WebApp where+ toJSON WebApp {..} =+ Core.object+ ( Core.catMaybes+ [ ("displayMode" Core..=) Core.<$> displayMode,+ ("icons" Core..=) Core.<$> icons,+ ("isPublished" Core..=) Core.<$> isPublished,+ ("startUrl" Core..=) Core.<$> startUrl,+ ("title" Core..=) Core.<$> title,+ ("versionCode" Core..=) Core.. Core.AsText Core.<$> versionCode,+ ("webAppId" Core..=) Core.<$> webAppId+ ]+ )++-- | Icon for a web app.+--+-- /See:/ 'newWebAppIcon' smart constructor.+newtype WebAppIcon = WebAppIcon+ { -- | The actual bytes of the image in a base64url encoded string (c.f. RFC4648, section 5 \"Base 64 Encoding with URL and Filename Safe Alphabet\"). - The image type can be png or jpg. - The image should ideally be square. - The image should ideally have a size of 512x512.+ imageData :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WebAppIcon' with the minimum fields required to make a request.+newWebAppIcon ::+ WebAppIcon+newWebAppIcon = WebAppIcon {imageData = Core.Nothing}++instance Core.FromJSON WebAppIcon where+ parseJSON =+ Core.withObject+ "WebAppIcon"+ (\o -> WebAppIcon Core.<$> (o Core..:? "imageData"))++instance Core.ToJSON WebAppIcon where+ toJSON WebAppIcon {..} =+ Core.object+ (Core.catMaybes [("imageData" Core..=) Core.<$> imageData])++--+-- /See:/ 'newWebAppsListResponse' smart constructor.+newtype WebAppsListResponse = WebAppsListResponse+ { -- | The manifest describing a web app.+ webApp :: (Core.Maybe [WebApp])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WebAppsListResponse' with the minimum fields required to make a request.+newWebAppsListResponse ::+ WebAppsListResponse+newWebAppsListResponse = WebAppsListResponse {webApp = Core.Nothing}++instance Core.FromJSON WebAppsListResponse where+ parseJSON =+ Core.withObject+ "WebAppsListResponse"+ (\o -> WebAppsListResponse Core.<$> (o Core..:? "webApp"))++instance Core.ToJSON WebAppsListResponse where+ toJSON WebAppsListResponse {..} =+ Core.object (Core.catMaybes [("webApp" Core..=) Core.<$> webApp])
+ gen/Gogol/AndroidEnterprise/Internal/Sum.hs view
@@ -0,0 +1,2025 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Internal.Sum+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.AndroidEnterprise.Internal.Sum+ ( -- * Xgafv+ Xgafv+ ( Xgafv_1,+ Xgafv_2,+ ..+ ),++ -- * AdministratorWebTokenSpec_PermissionItem+ AdministratorWebTokenSpec_PermissionItem+ ( AdministratorWebTokenSpec_PermissionItem_Unknown,+ AdministratorWebTokenSpec_PermissionItem_ApproveApps,+ AdministratorWebTokenSpec_PermissionItem_ManageMcm,+ ..+ ),++ -- * AppRestrictionsSchemaRestriction_RestrictionType+ AppRestrictionsSchemaRestriction_RestrictionType+ ( AppRestrictionsSchemaRestriction_RestrictionType_Bool,+ AppRestrictionsSchemaRestriction_RestrictionType_String,+ AppRestrictionsSchemaRestriction_RestrictionType_Integer,+ AppRestrictionsSchemaRestriction_RestrictionType_Choice,+ AppRestrictionsSchemaRestriction_RestrictionType_Multiselect,+ AppRestrictionsSchemaRestriction_RestrictionType_Hidden,+ AppRestrictionsSchemaRestriction_RestrictionType_Bundle,+ AppRestrictionsSchemaRestriction_RestrictionType_BundleArray,+ ..+ ),++ -- * AppRestrictionsSchemaRestrictionRestrictionValue_Type+ AppRestrictionsSchemaRestrictionRestrictionValue_Type+ ( AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bool,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_String,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Integer,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Choice,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Multiselect,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Hidden,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bundle,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_BundleArray,+ ..+ ),++ -- * AppVersion_Track+ AppVersion_Track+ ( AppVersion_Track_AppTrackUnspecified,+ AppVersion_Track_Production,+ AppVersion_Track_Beta,+ AppVersion_Track_Alpha,+ ..+ ),++ -- * AutoInstallConstraint_ChargingStateConstraint+ AutoInstallConstraint_ChargingStateConstraint+ ( AutoInstallConstraint_ChargingStateConstraint_ChargingStateConstraintUnspecified,+ AutoInstallConstraint_ChargingStateConstraint_ChargingNotRequired,+ AutoInstallConstraint_ChargingStateConstraint_ChargingRequired,+ ..+ ),++ -- * AutoInstallConstraint_DeviceIdleStateConstraint+ AutoInstallConstraint_DeviceIdleStateConstraint+ ( AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleStateConstraintUnspecified,+ AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleNotRequired,+ AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleRequired,+ ..+ ),++ -- * AutoInstallConstraint_NetworkTypeConstraint+ AutoInstallConstraint_NetworkTypeConstraint+ ( AutoInstallConstraint_NetworkTypeConstraint_NetworkTypeConstraintUnspecified,+ AutoInstallConstraint_NetworkTypeConstraint_AnyNetwork,+ AutoInstallConstraint_NetworkTypeConstraint_UnmeteredNetwork,+ ..+ ),++ -- * AutoInstallPolicy_AutoInstallMode+ AutoInstallPolicy_AutoInstallMode+ ( AutoInstallPolicy_AutoInstallMode_AutoInstallModeUnspecified,+ AutoInstallPolicy_AutoInstallMode_DoNotAutoInstall,+ AutoInstallPolicy_AutoInstallMode_AutoInstallOnce,+ AutoInstallPolicy_AutoInstallMode_ForceAutoInstall,+ ..+ ),++ -- * Device_ManagementType+ Device_ManagementType+ ( Device_ManagementType_ManagedDevice,+ Device_ManagementType_ManagedProfile,+ Device_ManagementType_ContainerApp,+ Device_ManagementType_UnmanagedProfile,+ ..+ ),++ -- * DeviceState_AccountState+ DeviceState_AccountState+ ( DeviceState_AccountState_Enabled,+ DeviceState_AccountState_Disabled,+ ..+ ),++ -- * EnrollmentToken_EnrollmentTokenType+ EnrollmentToken_EnrollmentTokenType+ ( EnrollmentToken_EnrollmentTokenType_EnrollmentTokenTypeUnspecified,+ EnrollmentToken_EnrollmentTokenType_UserlessDevice,+ EnrollmentToken_EnrollmentTokenType_UserDevice,+ ..+ ),++ -- * Enterprise_EnterpriseType+ Enterprise_EnterpriseType+ ( Enterprise_EnterpriseType_EnterpriseTypeUnspecified,+ Enterprise_EnterpriseType_ManagedGoogleDomain,+ Enterprise_EnterpriseType_ManagedGooglePlayAccountsEnterprise,+ ..+ ),++ -- * Enterprise_ManagedGoogleDomainType+ Enterprise_ManagedGoogleDomainType+ ( Enterprise_ManagedGoogleDomainType_ManagedGoogleDomainTypeUnspecified,+ Enterprise_ManagedGoogleDomainType_TypeTeam,+ Enterprise_ManagedGoogleDomainType_TypeDomain,+ ..+ ),++ -- * EnterpriseUpgradeEvent_UpgradeState+ EnterpriseUpgradeEvent_UpgradeState+ ( EnterpriseUpgradeEvent_UpgradeState_UpgradeStateUnspecified,+ EnterpriseUpgradeEvent_UpgradeState_UpgradeStateSucceeded,+ ..+ ),++ -- * Entitlement_Reason+ Entitlement_Reason+ ( Entitlement_Reason_Free,+ Entitlement_Reason_GroupLicense,+ Entitlement_Reason_UserPurchase,+ ..+ ),++ -- * GoogleAuthenticationSettings_DedicatedDevicesAllowed+ GoogleAuthenticationSettings_DedicatedDevicesAllowed+ ( GoogleAuthenticationSettings_DedicatedDevicesAllowed_DedicatedDevicesAllowedUnspecified,+ GoogleAuthenticationSettings_DedicatedDevicesAllowed_Disallowed,+ GoogleAuthenticationSettings_DedicatedDevicesAllowed_Allowed,+ ..+ ),++ -- * GoogleAuthenticationSettings_GoogleAuthenticationRequired+ GoogleAuthenticationSettings_GoogleAuthenticationRequired+ ( GoogleAuthenticationSettings_GoogleAuthenticationRequired_GoogleAuthenticationRequiredUnspecified,+ GoogleAuthenticationSettings_GoogleAuthenticationRequired_NotRequired,+ GoogleAuthenticationSettings_GoogleAuthenticationRequired_Required,+ ..+ ),++ -- * GroupLicense_AcquisitionKind+ GroupLicense_AcquisitionKind+ ( GroupLicense_AcquisitionKind_Free,+ GroupLicense_AcquisitionKind_BulkPurchase,+ ..+ ),++ -- * GroupLicense_Approval+ GroupLicense_Approval+ ( GroupLicense_Approval_Approved,+ GroupLicense_Approval_Unapproved,+ ..+ ),++ -- * GroupLicense_Permissions+ GroupLicense_Permissions+ ( GroupLicense_Permissions_CurrentApproved,+ GroupLicense_Permissions_NeedsReapproval,+ GroupLicense_Permissions_AllCurrentAndFutureApproved,+ ..+ ),++ -- * Install_InstallState+ Install_InstallState+ ( Install_InstallState_Installed,+ Install_InstallState_InstallPending,+ ..+ ),++ -- * InstallFailureEvent_FailureReason+ InstallFailureEvent_FailureReason+ ( InstallFailureEvent_FailureReason_Unknown,+ InstallFailureEvent_FailureReason_Timeout,+ ..+ ),++ -- * KeyedAppState_Severity+ KeyedAppState_Severity+ ( KeyedAppState_Severity_SeverityUnknown,+ KeyedAppState_Severity_SeverityInfo,+ KeyedAppState_Severity_SeverityError,+ ..+ ),++ -- * NewDeviceEvent_ManagementType+ NewDeviceEvent_ManagementType+ ( NewDeviceEvent_ManagementType_ManagedDevice,+ NewDeviceEvent_ManagementType_ManagedProfile,+ ..+ ),++ -- * Notification_NotificationType+ Notification_NotificationType+ ( Notification_NotificationType_Unknown,+ Notification_NotificationType_TestNotification,+ Notification_NotificationType_ProductApproval,+ Notification_NotificationType_InstallFailure,+ Notification_NotificationType_AppUpdate,+ Notification_NotificationType_NewPermissions,+ Notification_NotificationType_AppRestricionsSchemaChange,+ Notification_NotificationType_ProductAvailabilityChange,+ Notification_NotificationType_NewDevice,+ Notification_NotificationType_DeviceReportUpdate,+ Notification_NotificationType_EnterpriseUpgrade,+ ..+ ),++ -- * Policy_AutoUpdatePolicy+ Policy_AutoUpdatePolicy+ ( Policy_AutoUpdatePolicy_AutoUpdatePolicyUnspecified,+ Policy_AutoUpdatePolicy_ChoiceToTheUser,+ Policy_AutoUpdatePolicy_Never,+ Policy_AutoUpdatePolicy_WifiOnly,+ Policy_AutoUpdatePolicy_Always,+ ..+ ),++ -- * Policy_DeviceReportPolicy+ Policy_DeviceReportPolicy+ ( Policy_DeviceReportPolicy_DeviceReportPolicyUnspecified,+ Policy_DeviceReportPolicy_DeviceReportDisabled,+ Policy_DeviceReportPolicy_DeviceReportEnabled,+ ..+ ),++ -- * Policy_ProductAvailabilityPolicy+ Policy_ProductAvailabilityPolicy+ ( Policy_ProductAvailabilityPolicy_ProductAvailabilityPolicyUnspecified,+ Policy_ProductAvailabilityPolicy_Whitelist,+ Policy_ProductAvailabilityPolicy_All,+ ..+ ),++ -- * Product_AvailableTracksItem+ Product_AvailableTracksItem+ ( Product_AvailableTracksItem_AppTrackUnspecified,+ Product_AvailableTracksItem_Production,+ Product_AvailableTracksItem_Beta,+ Product_AvailableTracksItem_Alpha,+ ..+ ),++ -- * Product_ContentRating+ Product_ContentRating+ ( Product_ContentRating_RatingUnknown,+ Product_ContentRating_All,+ Product_ContentRating_PreTeen,+ Product_ContentRating_Teen,+ Product_ContentRating_Mature,+ ..+ ),++ -- * Product_DistributionChannel+ Product_DistributionChannel+ ( Product_DistributionChannel_PublicGoogleHosted,+ Product_DistributionChannel_PrivateGoogleHosted,+ Product_DistributionChannel_PrivateSelfHosted,+ ..+ ),++ -- * Product_FeaturesItem+ Product_FeaturesItem+ ( Product_FeaturesItem_FeatureUnknown,+ Product_FeaturesItem_VpnApp,+ ..+ ),++ -- * Product_ProductPricing+ Product_ProductPricing+ ( Product_ProductPricing_Unknown,+ Product_ProductPricing_Free,+ Product_ProductPricing_FreeWithInAppPurchase,+ Product_ProductPricing_Paid,+ ..+ ),++ -- * ProductApprovalEvent_Approved+ ProductApprovalEvent_Approved+ ( ProductApprovalEvent_Approved_Unknown,+ ProductApprovalEvent_Approved_Approved,+ ProductApprovalEvent_Approved_Unapproved,+ ..+ ),++ -- * ProductAvailabilityChangeEvent_AvailabilityStatus+ ProductAvailabilityChangeEvent_AvailabilityStatus+ ( ProductAvailabilityChangeEvent_AvailabilityStatus_Unknown,+ ProductAvailabilityChangeEvent_AvailabilityStatus_Available,+ ProductAvailabilityChangeEvent_AvailabilityStatus_Removed,+ ProductAvailabilityChangeEvent_AvailabilityStatus_Unpublished,+ ..+ ),++ -- * ProductPermission_State+ ProductPermission_State+ ( ProductPermission_State_Required,+ ProductPermission_State_Accepted,+ ..+ ),++ -- * ProductPolicy_AutoUpdateMode+ ProductPolicy_AutoUpdateMode+ ( ProductPolicy_AutoUpdateMode_AutoUpdateModeUnspecified,+ ProductPolicy_AutoUpdateMode_AutoUpdateDefault,+ ProductPolicy_AutoUpdateMode_AutoUpdatePostponed,+ ProductPolicy_AutoUpdateMode_AutoUpdateHighPriority,+ ..+ ),++ -- * ProductPolicy_TracksItem+ ProductPolicy_TracksItem+ ( ProductPolicy_TracksItem_AppTrackUnspecified,+ ProductPolicy_TracksItem_Production,+ ProductPolicy_TracksItem_Beta,+ ProductPolicy_TracksItem_Alpha,+ ..+ ),++ -- * ProductSet_ProductSetBehavior+ ProductSet_ProductSetBehavior+ ( ProductSet_ProductSetBehavior_Unknown,+ ProductSet_ProductSetBehavior_Whitelist,+ ProductSet_ProductSetBehavior_IncludeAll,+ ProductSet_ProductSetBehavior_AllApproved,+ ..+ ),++ -- * ProductVisibility_TracksItem+ ProductVisibility_TracksItem+ ( ProductVisibility_TracksItem_AppTrackUnspecified,+ ProductVisibility_TracksItem_Production,+ ProductVisibility_TracksItem_Beta,+ ProductVisibility_TracksItem_Alpha,+ ..+ ),++ -- * ProductsApproveRequest_ApprovedPermissions+ ProductsApproveRequest_ApprovedPermissions+ ( ProductsApproveRequest_ApprovedPermissions_CurrentPermissionsOnly,+ ProductsApproveRequest_ApprovedPermissions_AllPermissions,+ ..+ ),++ -- * ServiceAccountKey_Type+ ServiceAccountKey_Type+ ( ServiceAccountKey_Type_GoogleCredentials,+ ServiceAccountKey_Type_PKCS12,+ ..+ ),++ -- * StoreLayout_StoreLayoutType+ StoreLayout_StoreLayoutType+ ( StoreLayout_StoreLayoutType_Unknown,+ StoreLayout_StoreLayoutType_Basic,+ StoreLayout_StoreLayoutType_Custom,+ ..+ ),++ -- * User_AccountType+ User_AccountType+ ( User_AccountType_DeviceAccount,+ User_AccountType_UserAccount,+ ..+ ),++ -- * User_ManagementType+ User_ManagementType+ ( User_ManagementType_GoogleManaged,+ User_ManagementType_EmmManaged,+ ..+ ),++ -- * WebApp_DisplayMode+ WebApp_DisplayMode+ ( WebApp_DisplayMode_DisplayModeUnspecified,+ WebApp_DisplayMode_MinimalUi,+ WebApp_DisplayMode_Standalone,+ WebApp_DisplayMode_FullScreen,+ ..+ ),++ -- * EnterprisesGetServiceAccountKeyType+ EnterprisesGetServiceAccountKeyType+ ( EnterprisesGetServiceAccountKeyType_GoogleCredentials,+ EnterprisesGetServiceAccountKeyType_PKCS12,+ ..+ ),++ -- * EnterprisesPullNotificationSetRequestMode+ EnterprisesPullNotificationSetRequestMode+ ( EnterprisesPullNotificationSetRequestMode_WaitForNotifications,+ EnterprisesPullNotificationSetRequestMode_ReturnImmediately,+ ..+ ),+ )+where++import Gogol.Prelude qualified as Core++-- | V1 error format.+newtype Xgafv = Xgafv {fromXgafv :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | v1 error format+pattern Xgafv_1 :: Xgafv+pattern Xgafv_1 = Xgafv "1"++-- | v2 error format+pattern Xgafv_2 :: Xgafv+pattern Xgafv_2 = Xgafv "2"++{-# COMPLETE+ Xgafv_1,+ Xgafv_2,+ Xgafv+ #-}++newtype AdministratorWebTokenSpec_PermissionItem = AdministratorWebTokenSpec_PermissionItem {fromAdministratorWebTokenSpec_PermissionItem :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unknown permission.+pattern AdministratorWebTokenSpec_PermissionItem_Unknown :: AdministratorWebTokenSpec_PermissionItem+pattern AdministratorWebTokenSpec_PermissionItem_Unknown = AdministratorWebTokenSpec_PermissionItem "unknown"++-- | Permission to approve and unapprove apps.+pattern AdministratorWebTokenSpec_PermissionItem_ApproveApps :: AdministratorWebTokenSpec_PermissionItem+pattern AdministratorWebTokenSpec_PermissionItem_ApproveApps = AdministratorWebTokenSpec_PermissionItem "approveApps"++-- | Permission to manage app restrictions.+pattern AdministratorWebTokenSpec_PermissionItem_ManageMcm :: AdministratorWebTokenSpec_PermissionItem+pattern AdministratorWebTokenSpec_PermissionItem_ManageMcm = AdministratorWebTokenSpec_PermissionItem "manageMcm"++{-# COMPLETE+ AdministratorWebTokenSpec_PermissionItem_Unknown,+ AdministratorWebTokenSpec_PermissionItem_ApproveApps,+ AdministratorWebTokenSpec_PermissionItem_ManageMcm,+ AdministratorWebTokenSpec_PermissionItem+ #-}++-- | The type of the restriction.+newtype AppRestrictionsSchemaRestriction_RestrictionType = AppRestrictionsSchemaRestriction_RestrictionType {fromAppRestrictionsSchemaRestriction_RestrictionType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | A restriction of boolean type.+pattern AppRestrictionsSchemaRestriction_RestrictionType_Bool :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_Bool = AppRestrictionsSchemaRestriction_RestrictionType "bool"++-- | A restriction of string type.+pattern AppRestrictionsSchemaRestriction_RestrictionType_String :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_String = AppRestrictionsSchemaRestriction_RestrictionType "string"++-- | A restriction of integer type.+pattern AppRestrictionsSchemaRestriction_RestrictionType_Integer :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_Integer = AppRestrictionsSchemaRestriction_RestrictionType "integer"++-- | A choice of one item from a set.+pattern AppRestrictionsSchemaRestriction_RestrictionType_Choice :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_Choice = AppRestrictionsSchemaRestriction_RestrictionType "choice"++-- | A choice of multiple items from a set.+pattern AppRestrictionsSchemaRestriction_RestrictionType_Multiselect :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_Multiselect = AppRestrictionsSchemaRestriction_RestrictionType "multiselect"++-- | A hidden restriction of string type (the default value can be used to pass along information that cannot be modified, such as a version code).+pattern AppRestrictionsSchemaRestriction_RestrictionType_Hidden :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_Hidden = AppRestrictionsSchemaRestriction_RestrictionType "hidden"++-- | [M+ devices only] A bundle of restrictions+pattern AppRestrictionsSchemaRestriction_RestrictionType_Bundle :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_Bundle = AppRestrictionsSchemaRestriction_RestrictionType "bundle"++-- | [M+ devices only] An array of restriction bundles+pattern AppRestrictionsSchemaRestriction_RestrictionType_BundleArray :: AppRestrictionsSchemaRestriction_RestrictionType+pattern AppRestrictionsSchemaRestriction_RestrictionType_BundleArray = AppRestrictionsSchemaRestriction_RestrictionType "bundleArray"++{-# COMPLETE+ AppRestrictionsSchemaRestriction_RestrictionType_Bool,+ AppRestrictionsSchemaRestriction_RestrictionType_String,+ AppRestrictionsSchemaRestriction_RestrictionType_Integer,+ AppRestrictionsSchemaRestriction_RestrictionType_Choice,+ AppRestrictionsSchemaRestriction_RestrictionType_Multiselect,+ AppRestrictionsSchemaRestriction_RestrictionType_Hidden,+ AppRestrictionsSchemaRestriction_RestrictionType_Bundle,+ AppRestrictionsSchemaRestriction_RestrictionType_BundleArray,+ AppRestrictionsSchemaRestriction_RestrictionType+ #-}++-- | The type of the value being provided.+newtype AppRestrictionsSchemaRestrictionRestrictionValue_Type = AppRestrictionsSchemaRestrictionRestrictionValue_Type {fromAppRestrictionsSchemaRestrictionRestrictionValue_Type :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | A restriction of boolean type.+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bool :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bool = AppRestrictionsSchemaRestrictionRestrictionValue_Type "bool"++-- | A restriction of string type.+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_String :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_String = AppRestrictionsSchemaRestrictionRestrictionValue_Type "string"++-- | A restriction of integer type.+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Integer :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Integer = AppRestrictionsSchemaRestrictionRestrictionValue_Type "integer"++-- | A choice of one item from a set.+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Choice :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Choice = AppRestrictionsSchemaRestrictionRestrictionValue_Type "choice"++-- | A choice of multiple items from a set.+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Multiselect :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Multiselect = AppRestrictionsSchemaRestrictionRestrictionValue_Type "multiselect"++-- | A hidden restriction of string type (the default value can be used to pass along information that cannot be modified, such as a version code).+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Hidden :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Hidden = AppRestrictionsSchemaRestrictionRestrictionValue_Type "hidden"++-- | [M+ devices only] A bundle of restrictions+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bundle :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bundle = AppRestrictionsSchemaRestrictionRestrictionValue_Type "bundle"++-- | [M+ devices only] An array of restriction bundles+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_BundleArray :: AppRestrictionsSchemaRestrictionRestrictionValue_Type+pattern AppRestrictionsSchemaRestrictionRestrictionValue_Type_BundleArray = AppRestrictionsSchemaRestrictionRestrictionValue_Type "bundleArray"++{-# COMPLETE+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bool,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_String,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Integer,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Choice,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Multiselect,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Hidden,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_Bundle,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type_BundleArray,+ AppRestrictionsSchemaRestrictionRestrictionValue_Type+ #-}++-- | Deprecated, use trackId instead.+newtype AppVersion_Track = AppVersion_Track {fromAppVersion_Track :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern AppVersion_Track_AppTrackUnspecified :: AppVersion_Track+pattern AppVersion_Track_AppTrackUnspecified = AppVersion_Track "appTrackUnspecified"++pattern AppVersion_Track_Production :: AppVersion_Track+pattern AppVersion_Track_Production = AppVersion_Track "production"++pattern AppVersion_Track_Beta :: AppVersion_Track+pattern AppVersion_Track_Beta = AppVersion_Track "beta"++pattern AppVersion_Track_Alpha :: AppVersion_Track+pattern AppVersion_Track_Alpha = AppVersion_Track "alpha"++{-# COMPLETE+ AppVersion_Track_AppTrackUnspecified,+ AppVersion_Track_Production,+ AppVersion_Track_Beta,+ AppVersion_Track_Alpha,+ AppVersion_Track+ #-}++-- | Charging state constraint.+newtype AutoInstallConstraint_ChargingStateConstraint = AutoInstallConstraint_ChargingStateConstraint {fromAutoInstallConstraint_ChargingStateConstraint :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern AutoInstallConstraint_ChargingStateConstraint_ChargingStateConstraintUnspecified :: AutoInstallConstraint_ChargingStateConstraint+pattern AutoInstallConstraint_ChargingStateConstraint_ChargingStateConstraintUnspecified = AutoInstallConstraint_ChargingStateConstraint "chargingStateConstraintUnspecified"++-- | Device doesn\'t have to be charging.+pattern AutoInstallConstraint_ChargingStateConstraint_ChargingNotRequired :: AutoInstallConstraint_ChargingStateConstraint+pattern AutoInstallConstraint_ChargingStateConstraint_ChargingNotRequired = AutoInstallConstraint_ChargingStateConstraint "chargingNotRequired"++-- | Device has to be charging.+pattern AutoInstallConstraint_ChargingStateConstraint_ChargingRequired :: AutoInstallConstraint_ChargingStateConstraint+pattern AutoInstallConstraint_ChargingStateConstraint_ChargingRequired = AutoInstallConstraint_ChargingStateConstraint "chargingRequired"++{-# COMPLETE+ AutoInstallConstraint_ChargingStateConstraint_ChargingStateConstraintUnspecified,+ AutoInstallConstraint_ChargingStateConstraint_ChargingNotRequired,+ AutoInstallConstraint_ChargingStateConstraint_ChargingRequired,+ AutoInstallConstraint_ChargingStateConstraint+ #-}++-- | Device idle state constraint.+newtype AutoInstallConstraint_DeviceIdleStateConstraint = AutoInstallConstraint_DeviceIdleStateConstraint {fromAutoInstallConstraint_DeviceIdleStateConstraint :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleStateConstraintUnspecified :: AutoInstallConstraint_DeviceIdleStateConstraint+pattern AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleStateConstraintUnspecified = AutoInstallConstraint_DeviceIdleStateConstraint "deviceIdleStateConstraintUnspecified"++-- | Device doesn\'t have to be idle, app can be installed while the user is interacting with the device.+pattern AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleNotRequired :: AutoInstallConstraint_DeviceIdleStateConstraint+pattern AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleNotRequired = AutoInstallConstraint_DeviceIdleStateConstraint "deviceIdleNotRequired"++-- | Device has to be idle.+pattern AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleRequired :: AutoInstallConstraint_DeviceIdleStateConstraint+pattern AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleRequired = AutoInstallConstraint_DeviceIdleStateConstraint "deviceIdleRequired"++{-# COMPLETE+ AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleStateConstraintUnspecified,+ AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleNotRequired,+ AutoInstallConstraint_DeviceIdleStateConstraint_DeviceIdleRequired,+ AutoInstallConstraint_DeviceIdleStateConstraint+ #-}++-- | Network type constraint.+newtype AutoInstallConstraint_NetworkTypeConstraint = AutoInstallConstraint_NetworkTypeConstraint {fromAutoInstallConstraint_NetworkTypeConstraint :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern AutoInstallConstraint_NetworkTypeConstraint_NetworkTypeConstraintUnspecified :: AutoInstallConstraint_NetworkTypeConstraint+pattern AutoInstallConstraint_NetworkTypeConstraint_NetworkTypeConstraintUnspecified = AutoInstallConstraint_NetworkTypeConstraint "networkTypeConstraintUnspecified"++-- | Any active networks (Wi-Fi, cellular, etc.).+pattern AutoInstallConstraint_NetworkTypeConstraint_AnyNetwork :: AutoInstallConstraint_NetworkTypeConstraint+pattern AutoInstallConstraint_NetworkTypeConstraint_AnyNetwork = AutoInstallConstraint_NetworkTypeConstraint "anyNetwork"++-- | Any unmetered network (e.g. Wi-FI).+pattern AutoInstallConstraint_NetworkTypeConstraint_UnmeteredNetwork :: AutoInstallConstraint_NetworkTypeConstraint+pattern AutoInstallConstraint_NetworkTypeConstraint_UnmeteredNetwork = AutoInstallConstraint_NetworkTypeConstraint "unmeteredNetwork"++{-# COMPLETE+ AutoInstallConstraint_NetworkTypeConstraint_NetworkTypeConstraintUnspecified,+ AutoInstallConstraint_NetworkTypeConstraint_AnyNetwork,+ AutoInstallConstraint_NetworkTypeConstraint_UnmeteredNetwork,+ AutoInstallConstraint_NetworkTypeConstraint+ #-}++-- | The auto-install mode. If unset, defaults to \"doNotAutoInstall\". An app is automatically installed regardless of a set maintenance window.+newtype AutoInstallPolicy_AutoInstallMode = AutoInstallPolicy_AutoInstallMode {fromAutoInstallPolicy_AutoInstallMode :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern AutoInstallPolicy_AutoInstallMode_AutoInstallModeUnspecified :: AutoInstallPolicy_AutoInstallMode+pattern AutoInstallPolicy_AutoInstallMode_AutoInstallModeUnspecified = AutoInstallPolicy_AutoInstallMode "autoInstallModeUnspecified"++-- | The product is not installed automatically, the user needs to install it from the Play Store.+pattern AutoInstallPolicy_AutoInstallMode_DoNotAutoInstall :: AutoInstallPolicy_AutoInstallMode+pattern AutoInstallPolicy_AutoInstallMode_DoNotAutoInstall = AutoInstallPolicy_AutoInstallMode "doNotAutoInstall"++-- | The product is automatically installed once, if the user uninstalls the product it will not be installed again.+pattern AutoInstallPolicy_AutoInstallMode_AutoInstallOnce :: AutoInstallPolicy_AutoInstallMode+pattern AutoInstallPolicy_AutoInstallMode_AutoInstallOnce = AutoInstallPolicy_AutoInstallMode "autoInstallOnce"++-- | The product is automatically installed, if the user uninstalls the product it will be installed again. On managed devices the DPC should block uninstall.+pattern AutoInstallPolicy_AutoInstallMode_ForceAutoInstall :: AutoInstallPolicy_AutoInstallMode+pattern AutoInstallPolicy_AutoInstallMode_ForceAutoInstall = AutoInstallPolicy_AutoInstallMode "forceAutoInstall"++{-# COMPLETE+ AutoInstallPolicy_AutoInstallMode_AutoInstallModeUnspecified,+ AutoInstallPolicy_AutoInstallMode_DoNotAutoInstall,+ AutoInstallPolicy_AutoInstallMode_AutoInstallOnce,+ AutoInstallPolicy_AutoInstallMode_ForceAutoInstall,+ AutoInstallPolicy_AutoInstallMode+ #-}++-- | Identifies the extent to which the device is controlled by a managed Google Play EMM in various deployment configurations. Possible values include: - \"managedDevice\", a device that has the EMM\'s device policy controller (DPC) as the device owner. - \"managedProfile\", a device that has a profile managed by the DPC (DPC is profile owner) in addition to a separate, personal profile that is unavailable to the DPC. - \"containerApp\", no longer used (deprecated). - \"unmanagedProfile\", a device that has been allowed (by the domain\'s admin, using the Admin Console to enable the privilege) to use managed Google Play, but the profile is itself not owned by a DPC.+newtype Device_ManagementType = Device_ManagementType {fromDevice_ManagementType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Device_ManagementType_ManagedDevice :: Device_ManagementType+pattern Device_ManagementType_ManagedDevice = Device_ManagementType "managedDevice"++pattern Device_ManagementType_ManagedProfile :: Device_ManagementType+pattern Device_ManagementType_ManagedProfile = Device_ManagementType "managedProfile"++pattern Device_ManagementType_ContainerApp :: Device_ManagementType+pattern Device_ManagementType_ContainerApp = Device_ManagementType "containerApp"++pattern Device_ManagementType_UnmanagedProfile :: Device_ManagementType+pattern Device_ManagementType_UnmanagedProfile = Device_ManagementType "unmanagedProfile"++{-# COMPLETE+ Device_ManagementType_ManagedDevice,+ Device_ManagementType_ManagedProfile,+ Device_ManagementType_ContainerApp,+ Device_ManagementType_UnmanagedProfile,+ Device_ManagementType+ #-}++-- | The state of the Google account on the device. \"enabled\" indicates that the Google account on the device can be used to access Google services (including Google Play), while \"disabled\" means that it cannot. A new device is initially in the \"disabled\" state.+newtype DeviceState_AccountState = DeviceState_AccountState {fromDeviceState_AccountState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern DeviceState_AccountState_Enabled :: DeviceState_AccountState+pattern DeviceState_AccountState_Enabled = DeviceState_AccountState "enabled"++pattern DeviceState_AccountState_Disabled :: DeviceState_AccountState+pattern DeviceState_AccountState_Disabled = DeviceState_AccountState "disabled"++{-# COMPLETE+ DeviceState_AccountState_Enabled,+ DeviceState_AccountState_Disabled,+ DeviceState_AccountState+ #-}++-- | [Required] The type of the enrollment token.+newtype EnrollmentToken_EnrollmentTokenType = EnrollmentToken_EnrollmentTokenType {fromEnrollmentToken_EnrollmentTokenType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The value is unused.+pattern EnrollmentToken_EnrollmentTokenType_EnrollmentTokenTypeUnspecified :: EnrollmentToken_EnrollmentTokenType+pattern EnrollmentToken_EnrollmentTokenType_EnrollmentTokenTypeUnspecified = EnrollmentToken_EnrollmentTokenType "enrollmentTokenTypeUnspecified"++-- | The enrollment token is for a userless device.+pattern EnrollmentToken_EnrollmentTokenType_UserlessDevice :: EnrollmentToken_EnrollmentTokenType+pattern EnrollmentToken_EnrollmentTokenType_UserlessDevice = EnrollmentToken_EnrollmentTokenType "userlessDevice"++-- | The enrollment token is for a user device.+pattern EnrollmentToken_EnrollmentTokenType_UserDevice :: EnrollmentToken_EnrollmentTokenType+pattern EnrollmentToken_EnrollmentTokenType_UserDevice = EnrollmentToken_EnrollmentTokenType "userDevice"++{-# COMPLETE+ EnrollmentToken_EnrollmentTokenType_EnrollmentTokenTypeUnspecified,+ EnrollmentToken_EnrollmentTokenType_UserlessDevice,+ EnrollmentToken_EnrollmentTokenType_UserDevice,+ EnrollmentToken_EnrollmentTokenType+ #-}++-- | The type of the enterprise.+newtype Enterprise_EnterpriseType = Enterprise_EnterpriseType {fromEnterprise_EnterpriseType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | This value is not used.+pattern Enterprise_EnterpriseType_EnterpriseTypeUnspecified :: Enterprise_EnterpriseType+pattern Enterprise_EnterpriseType_EnterpriseTypeUnspecified = Enterprise_EnterpriseType "enterpriseTypeUnspecified"++-- | The enterprise belongs to a managed Google domain.+pattern Enterprise_EnterpriseType_ManagedGoogleDomain :: Enterprise_EnterpriseType+pattern Enterprise_EnterpriseType_ManagedGoogleDomain = Enterprise_EnterpriseType "managedGoogleDomain"++-- | The enterprise is a managed Google Play Accounts enterprise.+pattern Enterprise_EnterpriseType_ManagedGooglePlayAccountsEnterprise :: Enterprise_EnterpriseType+pattern Enterprise_EnterpriseType_ManagedGooglePlayAccountsEnterprise = Enterprise_EnterpriseType "managedGooglePlayAccountsEnterprise"++{-# COMPLETE+ Enterprise_EnterpriseType_EnterpriseTypeUnspecified,+ Enterprise_EnterpriseType_ManagedGoogleDomain,+ Enterprise_EnterpriseType_ManagedGooglePlayAccountsEnterprise,+ Enterprise_EnterpriseType+ #-}++-- | The type of managed Google domain+newtype Enterprise_ManagedGoogleDomainType = Enterprise_ManagedGoogleDomainType {fromEnterprise_ManagedGoogleDomainType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The managed Google domain type is not specified.+pattern Enterprise_ManagedGoogleDomainType_ManagedGoogleDomainTypeUnspecified :: Enterprise_ManagedGoogleDomainType+pattern Enterprise_ManagedGoogleDomainType_ManagedGoogleDomainTypeUnspecified = Enterprise_ManagedGoogleDomainType "managedGoogleDomainTypeUnspecified"++-- | The managed Google domain is an email-verified team.+pattern Enterprise_ManagedGoogleDomainType_TypeTeam :: Enterprise_ManagedGoogleDomainType+pattern Enterprise_ManagedGoogleDomainType_TypeTeam = Enterprise_ManagedGoogleDomainType "typeTeam"++-- | The managed Google domain is domain-verified.+pattern Enterprise_ManagedGoogleDomainType_TypeDomain :: Enterprise_ManagedGoogleDomainType+pattern Enterprise_ManagedGoogleDomainType_TypeDomain = Enterprise_ManagedGoogleDomainType "typeDomain"++{-# COMPLETE+ Enterprise_ManagedGoogleDomainType_ManagedGoogleDomainTypeUnspecified,+ Enterprise_ManagedGoogleDomainType_TypeTeam,+ Enterprise_ManagedGoogleDomainType_TypeDomain,+ Enterprise_ManagedGoogleDomainType+ #-}++-- | The upgrade state.+newtype EnterpriseUpgradeEvent_UpgradeState = EnterpriseUpgradeEvent_UpgradeState {fromEnterpriseUpgradeEvent_UpgradeState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified. This value is not used.+pattern EnterpriseUpgradeEvent_UpgradeState_UpgradeStateUnspecified :: EnterpriseUpgradeEvent_UpgradeState+pattern EnterpriseUpgradeEvent_UpgradeState_UpgradeStateUnspecified = EnterpriseUpgradeEvent_UpgradeState "upgradeStateUnspecified"++-- | The upgrade has succeeded.+pattern EnterpriseUpgradeEvent_UpgradeState_UpgradeStateSucceeded :: EnterpriseUpgradeEvent_UpgradeState+pattern EnterpriseUpgradeEvent_UpgradeState_UpgradeStateSucceeded = EnterpriseUpgradeEvent_UpgradeState "upgradeStateSucceeded"++{-# COMPLETE+ EnterpriseUpgradeEvent_UpgradeState_UpgradeStateUnspecified,+ EnterpriseUpgradeEvent_UpgradeState_UpgradeStateSucceeded,+ EnterpriseUpgradeEvent_UpgradeState+ #-}++-- | The reason for the entitlement. For example, \"free\" for free apps. This property is temporary: it will be replaced by the acquisition kind field of group licenses.+newtype Entitlement_Reason = Entitlement_Reason {fromEntitlement_Reason :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Entitlement_Reason_Free :: Entitlement_Reason+pattern Entitlement_Reason_Free = Entitlement_Reason "free"++pattern Entitlement_Reason_GroupLicense :: Entitlement_Reason+pattern Entitlement_Reason_GroupLicense = Entitlement_Reason "groupLicense"++pattern Entitlement_Reason_UserPurchase :: Entitlement_Reason+pattern Entitlement_Reason_UserPurchase = Entitlement_Reason "userPurchase"++{-# COMPLETE+ Entitlement_Reason_Free,+ Entitlement_Reason_GroupLicense,+ Entitlement_Reason_UserPurchase,+ Entitlement_Reason+ #-}++-- | Whether dedicated devices are allowed.+newtype GoogleAuthenticationSettings_DedicatedDevicesAllowed = GoogleAuthenticationSettings_DedicatedDevicesAllowed {fromGoogleAuthenticationSettings_DedicatedDevicesAllowed :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | This value is unused.+pattern GoogleAuthenticationSettings_DedicatedDevicesAllowed_DedicatedDevicesAllowedUnspecified :: GoogleAuthenticationSettings_DedicatedDevicesAllowed+pattern GoogleAuthenticationSettings_DedicatedDevicesAllowed_DedicatedDevicesAllowedUnspecified = GoogleAuthenticationSettings_DedicatedDevicesAllowed "dedicatedDevicesAllowedUnspecified"++-- | Dedicated devices are not allowed.+pattern GoogleAuthenticationSettings_DedicatedDevicesAllowed_Disallowed :: GoogleAuthenticationSettings_DedicatedDevicesAllowed+pattern GoogleAuthenticationSettings_DedicatedDevicesAllowed_Disallowed = GoogleAuthenticationSettings_DedicatedDevicesAllowed "disallowed"++-- | Dedicated devices are allowed.+pattern GoogleAuthenticationSettings_DedicatedDevicesAllowed_Allowed :: GoogleAuthenticationSettings_DedicatedDevicesAllowed+pattern GoogleAuthenticationSettings_DedicatedDevicesAllowed_Allowed = GoogleAuthenticationSettings_DedicatedDevicesAllowed "allowed"++{-# COMPLETE+ GoogleAuthenticationSettings_DedicatedDevicesAllowed_DedicatedDevicesAllowedUnspecified,+ GoogleAuthenticationSettings_DedicatedDevicesAllowed_Disallowed,+ GoogleAuthenticationSettings_DedicatedDevicesAllowed_Allowed,+ GoogleAuthenticationSettings_DedicatedDevicesAllowed+ #-}++-- | Whether Google authentication is required.+newtype GoogleAuthenticationSettings_GoogleAuthenticationRequired = GoogleAuthenticationSettings_GoogleAuthenticationRequired {fromGoogleAuthenticationSettings_GoogleAuthenticationRequired :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | This value is unused.+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_GoogleAuthenticationRequiredUnspecified :: GoogleAuthenticationSettings_GoogleAuthenticationRequired+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_GoogleAuthenticationRequiredUnspecified = GoogleAuthenticationSettings_GoogleAuthenticationRequired "googleAuthenticationRequiredUnspecified"++-- | Google authentication is not required.+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_NotRequired :: GoogleAuthenticationSettings_GoogleAuthenticationRequired+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_NotRequired = GoogleAuthenticationSettings_GoogleAuthenticationRequired "notRequired"++-- | User is required to be successfully authenticated by Google.+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_Required :: GoogleAuthenticationSettings_GoogleAuthenticationRequired+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_Required = GoogleAuthenticationSettings_GoogleAuthenticationRequired "required"++{-# COMPLETE+ GoogleAuthenticationSettings_GoogleAuthenticationRequired_GoogleAuthenticationRequiredUnspecified,+ GoogleAuthenticationSettings_GoogleAuthenticationRequired_NotRequired,+ GoogleAuthenticationSettings_GoogleAuthenticationRequired_Required,+ GoogleAuthenticationSettings_GoogleAuthenticationRequired+ #-}++-- | How this group license was acquired. \"bulkPurchase\" means that this Grouplicenses resource was created because the enterprise purchased licenses for this product; otherwise, the value is \"free\" (for free products).+newtype GroupLicense_AcquisitionKind = GroupLicense_AcquisitionKind {fromGroupLicense_AcquisitionKind :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern GroupLicense_AcquisitionKind_Free :: GroupLicense_AcquisitionKind+pattern GroupLicense_AcquisitionKind_Free = GroupLicense_AcquisitionKind "free"++pattern GroupLicense_AcquisitionKind_BulkPurchase :: GroupLicense_AcquisitionKind+pattern GroupLicense_AcquisitionKind_BulkPurchase = GroupLicense_AcquisitionKind "bulkPurchase"++{-# COMPLETE+ GroupLicense_AcquisitionKind_Free,+ GroupLicense_AcquisitionKind_BulkPurchase,+ GroupLicense_AcquisitionKind+ #-}++-- | Whether the product to which this group license relates is currently approved by the enterprise. Products are approved when a group license is first created, but this approval may be revoked by an enterprise admin via Google Play. Unapproved products will not be visible to end users in collections, and new entitlements to them should not normally be created.+newtype GroupLicense_Approval = GroupLicense_Approval {fromGroupLicense_Approval :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern GroupLicense_Approval_Approved :: GroupLicense_Approval+pattern GroupLicense_Approval_Approved = GroupLicense_Approval "approved"++pattern GroupLicense_Approval_Unapproved :: GroupLicense_Approval+pattern GroupLicense_Approval_Unapproved = GroupLicense_Approval "unapproved"++{-# COMPLETE+ GroupLicense_Approval_Approved,+ GroupLicense_Approval_Unapproved,+ GroupLicense_Approval+ #-}++-- | The permission approval status of the product. This field is only set if the product is approved. Possible states are: - \"currentApproved\", the current set of permissions is approved, but additional permissions will require the administrator to reapprove the product (If the product was approved without specifying the approved permissions setting, then this is the default behavior.), - \"needsReapproval\", the product has unapproved permissions. No additional product licenses can be assigned until the product is reapproved, - \"allCurrentAndFutureApproved\", the current permissions are approved and any future permission updates will be automatically approved without administrator review.+newtype GroupLicense_Permissions = GroupLicense_Permissions {fromGroupLicense_Permissions :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern GroupLicense_Permissions_CurrentApproved :: GroupLicense_Permissions+pattern GroupLicense_Permissions_CurrentApproved = GroupLicense_Permissions "currentApproved"++pattern GroupLicense_Permissions_NeedsReapproval :: GroupLicense_Permissions+pattern GroupLicense_Permissions_NeedsReapproval = GroupLicense_Permissions "needsReapproval"++pattern GroupLicense_Permissions_AllCurrentAndFutureApproved :: GroupLicense_Permissions+pattern GroupLicense_Permissions_AllCurrentAndFutureApproved = GroupLicense_Permissions "allCurrentAndFutureApproved"++{-# COMPLETE+ GroupLicense_Permissions_CurrentApproved,+ GroupLicense_Permissions_NeedsReapproval,+ GroupLicense_Permissions_AllCurrentAndFutureApproved,+ GroupLicense_Permissions+ #-}++-- | Install state. The state \"installPending\" means that an install request has recently been made and download to the device is in progress. The state \"installed\" means that the app has been installed. This field is read-only.+newtype Install_InstallState = Install_InstallState {fromInstall_InstallState :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Install_InstallState_Installed :: Install_InstallState+pattern Install_InstallState_Installed = Install_InstallState "installed"++pattern Install_InstallState_InstallPending :: Install_InstallState+pattern Install_InstallState_InstallPending = Install_InstallState "installPending"++{-# COMPLETE+ Install_InstallState_Installed,+ Install_InstallState_InstallPending,+ Install_InstallState+ #-}++-- | The reason for the installation failure. This field will always be present.+newtype InstallFailureEvent_FailureReason = InstallFailureEvent_FailureReason {fromInstallFailureEvent_FailureReason :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Used whenever no better reason for failure can be provided.+pattern InstallFailureEvent_FailureReason_Unknown :: InstallFailureEvent_FailureReason+pattern InstallFailureEvent_FailureReason_Unknown = InstallFailureEvent_FailureReason "unknown"++-- | Used when the installation timed out. This can cover a number of situations, for example when the device did not have connectivity at any point during the retry period, or if the device is OOM.+pattern InstallFailureEvent_FailureReason_Timeout :: InstallFailureEvent_FailureReason+pattern InstallFailureEvent_FailureReason_Timeout = InstallFailureEvent_FailureReason "timeout"++{-# COMPLETE+ InstallFailureEvent_FailureReason_Unknown,+ InstallFailureEvent_FailureReason_Timeout,+ InstallFailureEvent_FailureReason+ #-}++-- | Severity of the app state. This field will always be present.+newtype KeyedAppState_Severity = KeyedAppState_Severity {fromKeyedAppState_Severity :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern KeyedAppState_Severity_SeverityUnknown :: KeyedAppState_Severity+pattern KeyedAppState_Severity_SeverityUnknown = KeyedAppState_Severity "severityUnknown"++pattern KeyedAppState_Severity_SeverityInfo :: KeyedAppState_Severity+pattern KeyedAppState_Severity_SeverityInfo = KeyedAppState_Severity "severityInfo"++pattern KeyedAppState_Severity_SeverityError :: KeyedAppState_Severity+pattern KeyedAppState_Severity_SeverityError = KeyedAppState_Severity "severityError"++{-# COMPLETE+ KeyedAppState_Severity_SeverityUnknown,+ KeyedAppState_Severity_SeverityInfo,+ KeyedAppState_Severity_SeverityError,+ KeyedAppState_Severity+ #-}++-- | Identifies the extent to which the device is controlled by an Android EMM in various deployment configurations. Possible values include: - \"managedDevice\", a device where the DPC is set as device owner, - \"managedProfile\", a device where the DPC is set as profile owner.+newtype NewDeviceEvent_ManagementType = NewDeviceEvent_ManagementType {fromNewDeviceEvent_ManagementType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern NewDeviceEvent_ManagementType_ManagedDevice :: NewDeviceEvent_ManagementType+pattern NewDeviceEvent_ManagementType_ManagedDevice = NewDeviceEvent_ManagementType "managedDevice"++pattern NewDeviceEvent_ManagementType_ManagedProfile :: NewDeviceEvent_ManagementType+pattern NewDeviceEvent_ManagementType_ManagedProfile = NewDeviceEvent_ManagementType "managedProfile"++{-# COMPLETE+ NewDeviceEvent_ManagementType_ManagedDevice,+ NewDeviceEvent_ManagementType_ManagedProfile,+ NewDeviceEvent_ManagementType+ #-}++-- | Type of the notification.+newtype Notification_NotificationType = Notification_NotificationType {fromNotification_NotificationType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Notification_NotificationType_Unknown :: Notification_NotificationType+pattern Notification_NotificationType_Unknown = Notification_NotificationType "unknown"++-- | A test push notification.+pattern Notification_NotificationType_TestNotification :: Notification_NotificationType+pattern Notification_NotificationType_TestNotification = Notification_NotificationType "testNotification"++-- | Notification about change to a product\'s approval status.+pattern Notification_NotificationType_ProductApproval :: Notification_NotificationType+pattern Notification_NotificationType_ProductApproval = Notification_NotificationType "productApproval"++-- | Notification about an app installation failure.+pattern Notification_NotificationType_InstallFailure :: Notification_NotificationType+pattern Notification_NotificationType_InstallFailure = Notification_NotificationType "installFailure"++-- | Notification about app update.+pattern Notification_NotificationType_AppUpdate :: Notification_NotificationType+pattern Notification_NotificationType_AppUpdate = Notification_NotificationType "appUpdate"++-- | Notification about new app permissions.+pattern Notification_NotificationType_NewPermissions :: Notification_NotificationType+pattern Notification_NotificationType_NewPermissions = Notification_NotificationType "newPermissions"++-- | Notification about new app restrictions schema change.+pattern Notification_NotificationType_AppRestricionsSchemaChange :: Notification_NotificationType+pattern Notification_NotificationType_AppRestricionsSchemaChange = Notification_NotificationType "appRestricionsSchemaChange"++-- | Notification about product availability change.+pattern Notification_NotificationType_ProductAvailabilityChange :: Notification_NotificationType+pattern Notification_NotificationType_ProductAvailabilityChange = Notification_NotificationType "productAvailabilityChange"++-- | Notification about a new device.+pattern Notification_NotificationType_NewDevice :: Notification_NotificationType+pattern Notification_NotificationType_NewDevice = Notification_NotificationType "newDevice"++-- | Notification about an updated device report.+pattern Notification_NotificationType_DeviceReportUpdate :: Notification_NotificationType+pattern Notification_NotificationType_DeviceReportUpdate = Notification_NotificationType "deviceReportUpdate"++-- | Notification about an enterprise upgrade. __Note:__ This feature is not generally available.+pattern Notification_NotificationType_EnterpriseUpgrade :: Notification_NotificationType+pattern Notification_NotificationType_EnterpriseUpgrade = Notification_NotificationType "enterpriseUpgrade"++{-# COMPLETE+ Notification_NotificationType_Unknown,+ Notification_NotificationType_TestNotification,+ Notification_NotificationType_ProductApproval,+ Notification_NotificationType_InstallFailure,+ Notification_NotificationType_AppUpdate,+ Notification_NotificationType_NewPermissions,+ Notification_NotificationType_AppRestricionsSchemaChange,+ Notification_NotificationType_ProductAvailabilityChange,+ Notification_NotificationType_NewDevice,+ Notification_NotificationType_DeviceReportUpdate,+ Notification_NotificationType_EnterpriseUpgrade,+ Notification_NotificationType+ #-}++-- | Controls when automatic app updates on the device can be applied. Recommended alternative: autoUpdateMode which is set per app, provides greater flexibility around update frequency. When autoUpdateMode is set to AUTO/UPDATE/POSTPONED or AUTO/UPDATE/HIGH_PRIORITY, autoUpdatePolicy has no effect. - choiceToTheUser allows the device\'s user to configure the app update policy. - always enables auto updates. - never disables auto updates. - wifiOnly enables auto updates only when the device is connected to wifi. /Important:/ Changes to app update policies don\'t affect updates that are in progress. Any policy changes will apply to subsequent app updates.+newtype Policy_AutoUpdatePolicy = Policy_AutoUpdatePolicy {fromPolicy_AutoUpdatePolicy :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The auto update policy is not set.+pattern Policy_AutoUpdatePolicy_AutoUpdatePolicyUnspecified :: Policy_AutoUpdatePolicy+pattern Policy_AutoUpdatePolicy_AutoUpdatePolicyUnspecified = Policy_AutoUpdatePolicy "autoUpdatePolicyUnspecified"++-- | The user can control auto-updates.+pattern Policy_AutoUpdatePolicy_ChoiceToTheUser :: Policy_AutoUpdatePolicy+pattern Policy_AutoUpdatePolicy_ChoiceToTheUser = Policy_AutoUpdatePolicy "choiceToTheUser"++-- | Apps are never auto-updated.+pattern Policy_AutoUpdatePolicy_Never :: Policy_AutoUpdatePolicy+pattern Policy_AutoUpdatePolicy_Never = Policy_AutoUpdatePolicy "never"++-- | Apps are auto-updated over WiFi only.+pattern Policy_AutoUpdatePolicy_WifiOnly :: Policy_AutoUpdatePolicy+pattern Policy_AutoUpdatePolicy_WifiOnly = Policy_AutoUpdatePolicy "wifiOnly"++-- | Apps are auto-updated at any time. Data charges may apply.+pattern Policy_AutoUpdatePolicy_Always :: Policy_AutoUpdatePolicy+pattern Policy_AutoUpdatePolicy_Always = Policy_AutoUpdatePolicy "always"++{-# COMPLETE+ Policy_AutoUpdatePolicy_AutoUpdatePolicyUnspecified,+ Policy_AutoUpdatePolicy_ChoiceToTheUser,+ Policy_AutoUpdatePolicy_Never,+ Policy_AutoUpdatePolicy_WifiOnly,+ Policy_AutoUpdatePolicy_Always,+ Policy_AutoUpdatePolicy+ #-}++-- | Whether the device reports app states to the EMM. The default value is \"deviceReportDisabled\".+newtype Policy_DeviceReportPolicy = Policy_DeviceReportPolicy {fromPolicy_DeviceReportPolicy :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The device report policy is not set.+pattern Policy_DeviceReportPolicy_DeviceReportPolicyUnspecified :: Policy_DeviceReportPolicy+pattern Policy_DeviceReportPolicy_DeviceReportPolicyUnspecified = Policy_DeviceReportPolicy "deviceReportPolicyUnspecified"++-- | Device reports are disabled.+pattern Policy_DeviceReportPolicy_DeviceReportDisabled :: Policy_DeviceReportPolicy+pattern Policy_DeviceReportPolicy_DeviceReportDisabled = Policy_DeviceReportPolicy "deviceReportDisabled"++-- | Device reports are enabled.+pattern Policy_DeviceReportPolicy_DeviceReportEnabled :: Policy_DeviceReportPolicy+pattern Policy_DeviceReportPolicy_DeviceReportEnabled = Policy_DeviceReportPolicy "deviceReportEnabled"++{-# COMPLETE+ Policy_DeviceReportPolicy_DeviceReportPolicyUnspecified,+ Policy_DeviceReportPolicy_DeviceReportDisabled,+ Policy_DeviceReportPolicy_DeviceReportEnabled,+ Policy_DeviceReportPolicy+ #-}++-- | The availability granted to the device for the specified products. \"all\" gives the device access to all products, regardless of approval status. \"all\" does not enable automatic visibility of \"alpha\" or \"beta\" tracks. \"whitelist\" grants the device access the products specified in productPolicy[]. Only products that are approved or products that were previously approved (products with revoked approval) by the enterprise can be whitelisted. If no value is provided, the availability set at the user level is applied by default.+newtype Policy_ProductAvailabilityPolicy = Policy_ProductAvailabilityPolicy {fromPolicy_ProductAvailabilityPolicy :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified, applies the user available product set by default.+pattern Policy_ProductAvailabilityPolicy_ProductAvailabilityPolicyUnspecified :: Policy_ProductAvailabilityPolicy+pattern Policy_ProductAvailabilityPolicy_ProductAvailabilityPolicyUnspecified = Policy_ProductAvailabilityPolicy "productAvailabilityPolicyUnspecified"++-- | The approved products with product availability set to AVAILABLE in the product policy are available.+pattern Policy_ProductAvailabilityPolicy_Whitelist :: Policy_ProductAvailabilityPolicy+pattern Policy_ProductAvailabilityPolicy_Whitelist = Policy_ProductAvailabilityPolicy "whitelist"++-- | All products are available except those explicitly marked as unavailable in the product availability policy.+pattern Policy_ProductAvailabilityPolicy_All :: Policy_ProductAvailabilityPolicy+pattern Policy_ProductAvailabilityPolicy_All = Policy_ProductAvailabilityPolicy "all"++{-# COMPLETE+ Policy_ProductAvailabilityPolicy_ProductAvailabilityPolicyUnspecified,+ Policy_ProductAvailabilityPolicy_Whitelist,+ Policy_ProductAvailabilityPolicy_All,+ Policy_ProductAvailabilityPolicy+ #-}++newtype Product_AvailableTracksItem = Product_AvailableTracksItem {fromProduct_AvailableTracksItem :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Product_AvailableTracksItem_AppTrackUnspecified :: Product_AvailableTracksItem+pattern Product_AvailableTracksItem_AppTrackUnspecified = Product_AvailableTracksItem "appTrackUnspecified"++pattern Product_AvailableTracksItem_Production :: Product_AvailableTracksItem+pattern Product_AvailableTracksItem_Production = Product_AvailableTracksItem "production"++pattern Product_AvailableTracksItem_Beta :: Product_AvailableTracksItem+pattern Product_AvailableTracksItem_Beta = Product_AvailableTracksItem "beta"++pattern Product_AvailableTracksItem_Alpha :: Product_AvailableTracksItem+pattern Product_AvailableTracksItem_Alpha = Product_AvailableTracksItem "alpha"++{-# COMPLETE+ Product_AvailableTracksItem_AppTrackUnspecified,+ Product_AvailableTracksItem_Production,+ Product_AvailableTracksItem_Beta,+ Product_AvailableTracksItem_Alpha,+ Product_AvailableTracksItem+ #-}++-- | The content rating for this app.+newtype Product_ContentRating = Product_ContentRating {fromProduct_ContentRating :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Product_ContentRating_RatingUnknown :: Product_ContentRating+pattern Product_ContentRating_RatingUnknown = Product_ContentRating "ratingUnknown"++pattern Product_ContentRating_All :: Product_ContentRating+pattern Product_ContentRating_All = Product_ContentRating "all"++pattern Product_ContentRating_PreTeen :: Product_ContentRating+pattern Product_ContentRating_PreTeen = Product_ContentRating "preTeen"++pattern Product_ContentRating_Teen :: Product_ContentRating+pattern Product_ContentRating_Teen = Product_ContentRating "teen"++pattern Product_ContentRating_Mature :: Product_ContentRating+pattern Product_ContentRating_Mature = Product_ContentRating "mature"++{-# COMPLETE+ Product_ContentRating_RatingUnknown,+ Product_ContentRating_All,+ Product_ContentRating_PreTeen,+ Product_ContentRating_Teen,+ Product_ContentRating_Mature,+ Product_ContentRating+ #-}++-- | How and to whom the package is made available. The value publicGoogleHosted means that the package is available through the Play store and not restricted to a specific enterprise. The value privateGoogleHosted means that the package is a private app (restricted to an enterprise) but hosted by Google. The value privateSelfHosted means that the package is a private app (restricted to an enterprise) and is privately hosted.+newtype Product_DistributionChannel = Product_DistributionChannel {fromProduct_DistributionChannel :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Product_DistributionChannel_PublicGoogleHosted :: Product_DistributionChannel+pattern Product_DistributionChannel_PublicGoogleHosted = Product_DistributionChannel "publicGoogleHosted"++pattern Product_DistributionChannel_PrivateGoogleHosted :: Product_DistributionChannel+pattern Product_DistributionChannel_PrivateGoogleHosted = Product_DistributionChannel "privateGoogleHosted"++pattern Product_DistributionChannel_PrivateSelfHosted :: Product_DistributionChannel+pattern Product_DistributionChannel_PrivateSelfHosted = Product_DistributionChannel "privateSelfHosted"++{-# COMPLETE+ Product_DistributionChannel_PublicGoogleHosted,+ Product_DistributionChannel_PrivateGoogleHosted,+ Product_DistributionChannel_PrivateSelfHosted,+ Product_DistributionChannel+ #-}++newtype Product_FeaturesItem = Product_FeaturesItem {fromProduct_FeaturesItem :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern Product_FeaturesItem_FeatureUnknown :: Product_FeaturesItem+pattern Product_FeaturesItem_FeatureUnknown = Product_FeaturesItem "featureUnknown"++-- | The app is a VPN.+pattern Product_FeaturesItem_VpnApp :: Product_FeaturesItem+pattern Product_FeaturesItem_VpnApp = Product_FeaturesItem "vpnApp"++{-# COMPLETE+ Product_FeaturesItem_FeatureUnknown,+ Product_FeaturesItem_VpnApp,+ Product_FeaturesItem+ #-}++-- | Whether this product is free, free with in-app purchases, or paid. If the pricing is unknown, this means the product is not generally available anymore (even though it might still be available to people who own it).+newtype Product_ProductPricing = Product_ProductPricing {fromProduct_ProductPricing :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unknown pricing, used to denote an approved product that is not generally available.+pattern Product_ProductPricing_Unknown :: Product_ProductPricing+pattern Product_ProductPricing_Unknown = Product_ProductPricing "unknown"++-- | The product is free.+pattern Product_ProductPricing_Free :: Product_ProductPricing+pattern Product_ProductPricing_Free = Product_ProductPricing "free"++-- | The product is free, but offers in-app purchases.+pattern Product_ProductPricing_FreeWithInAppPurchase :: Product_ProductPricing+pattern Product_ProductPricing_FreeWithInAppPurchase = Product_ProductPricing "freeWithInAppPurchase"++-- | The product is paid.+pattern Product_ProductPricing_Paid :: Product_ProductPricing+pattern Product_ProductPricing_Paid = Product_ProductPricing "paid"++{-# COMPLETE+ Product_ProductPricing_Unknown,+ Product_ProductPricing_Free,+ Product_ProductPricing_FreeWithInAppPurchase,+ Product_ProductPricing_Paid,+ Product_ProductPricing+ #-}++-- | Whether the product was approved or unapproved. This field will always be present.+newtype ProductApprovalEvent_Approved = ProductApprovalEvent_Approved {fromProductApprovalEvent_Approved :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Conveys no information.+pattern ProductApprovalEvent_Approved_Unknown :: ProductApprovalEvent_Approved+pattern ProductApprovalEvent_Approved_Unknown = ProductApprovalEvent_Approved "unknown"++-- | The product was approved.+pattern ProductApprovalEvent_Approved_Approved :: ProductApprovalEvent_Approved+pattern ProductApprovalEvent_Approved_Approved = ProductApprovalEvent_Approved "approved"++-- | The product was unapproved.+pattern ProductApprovalEvent_Approved_Unapproved :: ProductApprovalEvent_Approved+pattern ProductApprovalEvent_Approved_Unapproved = ProductApprovalEvent_Approved "unapproved"++{-# COMPLETE+ ProductApprovalEvent_Approved_Unknown,+ ProductApprovalEvent_Approved_Approved,+ ProductApprovalEvent_Approved_Unapproved,+ ProductApprovalEvent_Approved+ #-}++-- | The new state of the product. This field will always be present.+newtype ProductAvailabilityChangeEvent_AvailabilityStatus = ProductAvailabilityChangeEvent_AvailabilityStatus {fromProductAvailabilityChangeEvent_AvailabilityStatus :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Conveys no information.+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Unknown :: ProductAvailabilityChangeEvent_AvailabilityStatus+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Unknown = ProductAvailabilityChangeEvent_AvailabilityStatus "unknown"++-- | The previously unavailable product is again available on Google Play.+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Available :: ProductAvailabilityChangeEvent_AvailabilityStatus+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Available = ProductAvailabilityChangeEvent_AvailabilityStatus "available"++-- | The product was removed from Google Play.+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Removed :: ProductAvailabilityChangeEvent_AvailabilityStatus+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Removed = ProductAvailabilityChangeEvent_AvailabilityStatus "removed"++-- | The product was unpublished by the developer.+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Unpublished :: ProductAvailabilityChangeEvent_AvailabilityStatus+pattern ProductAvailabilityChangeEvent_AvailabilityStatus_Unpublished = ProductAvailabilityChangeEvent_AvailabilityStatus "unpublished"++{-# COMPLETE+ ProductAvailabilityChangeEvent_AvailabilityStatus_Unknown,+ ProductAvailabilityChangeEvent_AvailabilityStatus_Available,+ ProductAvailabilityChangeEvent_AvailabilityStatus_Removed,+ ProductAvailabilityChangeEvent_AvailabilityStatus_Unpublished,+ ProductAvailabilityChangeEvent_AvailabilityStatus+ #-}++-- | Whether the permission has been accepted or not.+newtype ProductPermission_State = ProductPermission_State {fromProductPermission_State :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | The permission is required by the app but has not yet been accepted by the enterprise.+pattern ProductPermission_State_Required :: ProductPermission_State+pattern ProductPermission_State_Required = ProductPermission_State "required"++-- | The permission has been accepted by the enterprise.+pattern ProductPermission_State_Accepted :: ProductPermission_State+pattern ProductPermission_State_Accepted = ProductPermission_State "accepted"++{-# COMPLETE+ ProductPermission_State_Required,+ ProductPermission_State_Accepted,+ ProductPermission_State+ #-}++-- | The auto-update mode for the product. When autoUpdateMode is used, it always takes precedence over the user\'s choice. So when a user makes changes to the device settings manually, these changes are ignored.+newtype ProductPolicy_AutoUpdateMode = ProductPolicy_AutoUpdateMode {fromProductPolicy_AutoUpdateMode :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Unspecified. Defaults to AUTO/UPDATE/DEFAULT.+pattern ProductPolicy_AutoUpdateMode_AutoUpdateModeUnspecified :: ProductPolicy_AutoUpdateMode+pattern ProductPolicy_AutoUpdateMode_AutoUpdateModeUnspecified = ProductPolicy_AutoUpdateMode "autoUpdateModeUnspecified"++-- | The app is automatically updated with low priority to minimize the impact on the user. The app is updated when the following constraints are met: * The device is not actively used * The device is connected to an unmetered network * The device is charging The device is notified about a new update within 24 hours after it is published by the developer, after which the app is updated the next time the constraints above are met.+pattern ProductPolicy_AutoUpdateMode_AutoUpdateDefault :: ProductPolicy_AutoUpdateMode+pattern ProductPolicy_AutoUpdateMode_AutoUpdateDefault = ProductPolicy_AutoUpdateMode "autoUpdateDefault"++-- | The app is not automatically updated for a maximum of 90 days after the app becomes out of date. 90 days after the app becomes out of date, the latest available version is installed automatically with low priority (see AUTO/UPDATE/DEFAULT). After the app is updated it is not automatically updated again until 90 days after it becomes out of date again. The user can still manually update the app from the Play Store at any time.+pattern ProductPolicy_AutoUpdateMode_AutoUpdatePostponed :: ProductPolicy_AutoUpdateMode+pattern ProductPolicy_AutoUpdateMode_AutoUpdatePostponed = ProductPolicy_AutoUpdateMode "autoUpdatePostponed"++-- | The app is updated as soon as possible. No constraints are applied. The device is notified as soon as possible about a new app update after it is published by the developer.+pattern ProductPolicy_AutoUpdateMode_AutoUpdateHighPriority :: ProductPolicy_AutoUpdateMode+pattern ProductPolicy_AutoUpdateMode_AutoUpdateHighPriority = ProductPolicy_AutoUpdateMode "autoUpdateHighPriority"++{-# COMPLETE+ ProductPolicy_AutoUpdateMode_AutoUpdateModeUnspecified,+ ProductPolicy_AutoUpdateMode_AutoUpdateDefault,+ ProductPolicy_AutoUpdateMode_AutoUpdatePostponed,+ ProductPolicy_AutoUpdateMode_AutoUpdateHighPriority,+ ProductPolicy_AutoUpdateMode+ #-}++newtype ProductPolicy_TracksItem = ProductPolicy_TracksItem {fromProductPolicy_TracksItem :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern ProductPolicy_TracksItem_AppTrackUnspecified :: ProductPolicy_TracksItem+pattern ProductPolicy_TracksItem_AppTrackUnspecified = ProductPolicy_TracksItem "appTrackUnspecified"++pattern ProductPolicy_TracksItem_Production :: ProductPolicy_TracksItem+pattern ProductPolicy_TracksItem_Production = ProductPolicy_TracksItem "production"++pattern ProductPolicy_TracksItem_Beta :: ProductPolicy_TracksItem+pattern ProductPolicy_TracksItem_Beta = ProductPolicy_TracksItem "beta"++pattern ProductPolicy_TracksItem_Alpha :: ProductPolicy_TracksItem+pattern ProductPolicy_TracksItem_Alpha = ProductPolicy_TracksItem "alpha"++{-# COMPLETE+ ProductPolicy_TracksItem_AppTrackUnspecified,+ ProductPolicy_TracksItem_Production,+ ProductPolicy_TracksItem_Beta,+ ProductPolicy_TracksItem_Alpha,+ ProductPolicy_TracksItem+ #-}++-- | The interpretation of this product set. \"unknown\" should never be sent and is ignored if received. \"whitelist\" means that the user is entitled to access the product set. \"includeAll\" means that all products are accessible, including products that are approved, products with revoked approval, and products that have never been approved. \"allApproved\" means that the user is entitled to access all products that are approved for the enterprise. If the value is \"allApproved\" or \"includeAll\", the productId field is ignored. If no value is provided, it is interpreted as \"whitelist\" for backwards compatibility. Further \"allApproved\" or \"includeAll\" does not enable automatic visibility of \"alpha\" or \"beta\" tracks for Android app. Use ProductVisibility to enable \"alpha\" or \"beta\" tracks per user.+newtype ProductSet_ProductSetBehavior = ProductSet_ProductSetBehavior {fromProductSet_ProductSetBehavior :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | This value should never be sent and ignored if received.+pattern ProductSet_ProductSetBehavior_Unknown :: ProductSet_ProductSetBehavior+pattern ProductSet_ProductSetBehavior_Unknown = ProductSet_ProductSetBehavior "unknown"++-- | This product set constitutes a whitelist.+pattern ProductSet_ProductSetBehavior_Whitelist :: ProductSet_ProductSetBehavior+pattern ProductSet_ProductSetBehavior_Whitelist = ProductSet_ProductSetBehavior "whitelist"++-- | This product set represents all products. For Android app it represents only \"production\" track. (The value of the productId field is therefore ignored).+pattern ProductSet_ProductSetBehavior_IncludeAll :: ProductSet_ProductSetBehavior+pattern ProductSet_ProductSetBehavior_IncludeAll = ProductSet_ProductSetBehavior "includeAll"++-- | This product set represents all approved products. For Android app it represents only \"production\" track. (The value of the product_id field is therefore ignored).+pattern ProductSet_ProductSetBehavior_AllApproved :: ProductSet_ProductSetBehavior+pattern ProductSet_ProductSetBehavior_AllApproved = ProductSet_ProductSetBehavior "allApproved"++{-# COMPLETE+ ProductSet_ProductSetBehavior_Unknown,+ ProductSet_ProductSetBehavior_Whitelist,+ ProductSet_ProductSetBehavior_IncludeAll,+ ProductSet_ProductSetBehavior_AllApproved,+ ProductSet_ProductSetBehavior+ #-}++newtype ProductVisibility_TracksItem = ProductVisibility_TracksItem {fromProductVisibility_TracksItem :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern ProductVisibility_TracksItem_AppTrackUnspecified :: ProductVisibility_TracksItem+pattern ProductVisibility_TracksItem_AppTrackUnspecified = ProductVisibility_TracksItem "appTrackUnspecified"++pattern ProductVisibility_TracksItem_Production :: ProductVisibility_TracksItem+pattern ProductVisibility_TracksItem_Production = ProductVisibility_TracksItem "production"++pattern ProductVisibility_TracksItem_Beta :: ProductVisibility_TracksItem+pattern ProductVisibility_TracksItem_Beta = ProductVisibility_TracksItem "beta"++pattern ProductVisibility_TracksItem_Alpha :: ProductVisibility_TracksItem+pattern ProductVisibility_TracksItem_Alpha = ProductVisibility_TracksItem "alpha"++{-# COMPLETE+ ProductVisibility_TracksItem_AppTrackUnspecified,+ ProductVisibility_TracksItem_Production,+ ProductVisibility_TracksItem_Beta,+ ProductVisibility_TracksItem_Alpha,+ ProductVisibility_TracksItem+ #-}++-- | Sets how new permission requests for the product are handled. \"allPermissions\" automatically approves all current and future permissions for the product. \"currentPermissionsOnly\" approves the current set of permissions for the product, but any future permissions added through updates will require manual reapproval. If not specified, only the current set of permissions will be approved.+newtype ProductsApproveRequest_ApprovedPermissions = ProductsApproveRequest_ApprovedPermissions {fromProductsApproveRequest_ApprovedPermissions :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Approve only the permissions the product requires at approval time. If an update requires additional permissions, the app will not be updated on devices associated with enterprise users until the additional permissions are approved.+pattern ProductsApproveRequest_ApprovedPermissions_CurrentPermissionsOnly :: ProductsApproveRequest_ApprovedPermissions+pattern ProductsApproveRequest_ApprovedPermissions_CurrentPermissionsOnly = ProductsApproveRequest_ApprovedPermissions "currentPermissionsOnly"++-- | All current and future permissions the app requires are automatically approved.+pattern ProductsApproveRequest_ApprovedPermissions_AllPermissions :: ProductsApproveRequest_ApprovedPermissions+pattern ProductsApproveRequest_ApprovedPermissions_AllPermissions = ProductsApproveRequest_ApprovedPermissions "allPermissions"++{-# COMPLETE+ ProductsApproveRequest_ApprovedPermissions_CurrentPermissionsOnly,+ ProductsApproveRequest_ApprovedPermissions_AllPermissions,+ ProductsApproveRequest_ApprovedPermissions+ #-}++-- | The file format of the generated key data.+newtype ServiceAccountKey_Type = ServiceAccountKey_Type {fromServiceAccountKey_Type :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Google Credentials File format.+pattern ServiceAccountKey_Type_GoogleCredentials :: ServiceAccountKey_Type+pattern ServiceAccountKey_Type_GoogleCredentials = ServiceAccountKey_Type "googleCredentials"++-- | PKCS12 format. The password for the PKCS12 file is \'notasecret\'. For more information, see https:\/\/tools.ietf.org\/html\/rfc7292. The data for keys of this type are base64 encoded according to RFC 4648 Section 4. See http:\/\/tools.ietf.org\/html\/rfc4648#section-4.+pattern ServiceAccountKey_Type_PKCS12 :: ServiceAccountKey_Type+pattern ServiceAccountKey_Type_PKCS12 = ServiceAccountKey_Type "pkcs12"++{-# COMPLETE+ ServiceAccountKey_Type_GoogleCredentials,+ ServiceAccountKey_Type_PKCS12,+ ServiceAccountKey_Type+ #-}++-- | The store layout type. By default, this value is set to \"basic\" if the homepageId field is not set, and to \"custom\" otherwise. If set to \"basic\", the layout will consist of all approved apps that have been whitelisted for the user.+newtype StoreLayout_StoreLayoutType = StoreLayout_StoreLayoutType {fromStoreLayout_StoreLayoutType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern StoreLayout_StoreLayoutType_Unknown :: StoreLayout_StoreLayoutType+pattern StoreLayout_StoreLayoutType_Unknown = StoreLayout_StoreLayoutType "unknown"++pattern StoreLayout_StoreLayoutType_Basic :: StoreLayout_StoreLayoutType+pattern StoreLayout_StoreLayoutType_Basic = StoreLayout_StoreLayoutType "basic"++pattern StoreLayout_StoreLayoutType_Custom :: StoreLayout_StoreLayoutType+pattern StoreLayout_StoreLayoutType_Custom = StoreLayout_StoreLayoutType "custom"++{-# COMPLETE+ StoreLayout_StoreLayoutType_Unknown,+ StoreLayout_StoreLayoutType_Basic,+ StoreLayout_StoreLayoutType_Custom,+ StoreLayout_StoreLayoutType+ #-}++-- | The type of account that this user represents. A userAccount can be installed on multiple devices, but a deviceAccount is specific to a single device. An EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount), but a Google-managed user (googleManaged) is always a userAccount.+newtype User_AccountType = User_AccountType {fromUser_AccountType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern User_AccountType_DeviceAccount :: User_AccountType+pattern User_AccountType_DeviceAccount = User_AccountType "deviceAccount"++pattern User_AccountType_UserAccount :: User_AccountType+pattern User_AccountType_UserAccount = User_AccountType "userAccount"++{-# COMPLETE+ User_AccountType_DeviceAccount,+ User_AccountType_UserAccount,+ User_AccountType+ #-}++-- | The entity that manages the user. With googleManaged users, the source of truth is Google so EMMs have to make sure a Google Account exists for the user. With emmManaged users, the EMM is in charge.+newtype User_ManagementType = User_ManagementType {fromUser_ManagementType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern User_ManagementType_GoogleManaged :: User_ManagementType+pattern User_ManagementType_GoogleManaged = User_ManagementType "googleManaged"++pattern User_ManagementType_EmmManaged :: User_ManagementType+pattern User_ManagementType_EmmManaged = User_ManagementType "emmManaged"++{-# COMPLETE+ User_ManagementType_GoogleManaged,+ User_ManagementType_EmmManaged,+ User_ManagementType+ #-}++-- | The display mode of the web app. Possible values include: - \"minimalUi\", the device\'s status bar, navigation bar, the app\'s URL, and a refresh button are visible when the app is open. For HTTP URLs, you can only select this option. - \"standalone\", the device\'s status bar and navigation bar are visible when the app is open. - \"fullScreen\", the app opens in full screen mode, hiding the device\'s status and navigation bars. All browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area.+newtype WebApp_DisplayMode = WebApp_DisplayMode {fromWebApp_DisplayMode :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++pattern WebApp_DisplayMode_DisplayModeUnspecified :: WebApp_DisplayMode+pattern WebApp_DisplayMode_DisplayModeUnspecified = WebApp_DisplayMode "displayModeUnspecified"++-- | Opens the web app with a minimal set of browser UI elements for controlling navigation and viewing the page URL.+pattern WebApp_DisplayMode_MinimalUi :: WebApp_DisplayMode+pattern WebApp_DisplayMode_MinimalUi = WebApp_DisplayMode "minimalUi"++-- | Opens the web app to look and feel like a standalone native application. The browser UI elements and page URL are not visible, however the system status bar and back button are visible.+pattern WebApp_DisplayMode_Standalone :: WebApp_DisplayMode+pattern WebApp_DisplayMode_Standalone = WebApp_DisplayMode "standalone"++-- | Opens the web app in full screen without any visible controls. The browser UI elements, page URL, system status bar and back button are not visible, and the web app takes up the entirety of the available display area.+pattern WebApp_DisplayMode_FullScreen :: WebApp_DisplayMode+pattern WebApp_DisplayMode_FullScreen = WebApp_DisplayMode "fullScreen"++{-# COMPLETE+ WebApp_DisplayMode_DisplayModeUnspecified,+ WebApp_DisplayMode_MinimalUi,+ WebApp_DisplayMode_Standalone,+ WebApp_DisplayMode_FullScreen,+ WebApp_DisplayMode+ #-}++-- | The type of credential to return with the service account. Required.+newtype EnterprisesGetServiceAccountKeyType = EnterprisesGetServiceAccountKeyType {fromEnterprisesGetServiceAccountKeyType :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Google Credentials File format.+pattern EnterprisesGetServiceAccountKeyType_GoogleCredentials :: EnterprisesGetServiceAccountKeyType+pattern EnterprisesGetServiceAccountKeyType_GoogleCredentials = EnterprisesGetServiceAccountKeyType "googleCredentials"++-- | PKCS12 format. The password for the PKCS12 file is \'notasecret\'. For more information, see https:\/\/tools.ietf.org\/html\/rfc7292. The data for keys of this type are base64 encoded according to RFC 4648 Section 4. See http:\/\/tools.ietf.org\/html\/rfc4648#section-4.+pattern EnterprisesGetServiceAccountKeyType_PKCS12 :: EnterprisesGetServiceAccountKeyType+pattern EnterprisesGetServiceAccountKeyType_PKCS12 = EnterprisesGetServiceAccountKeyType "pkcs12"++{-# COMPLETE+ EnterprisesGetServiceAccountKeyType_GoogleCredentials,+ EnterprisesGetServiceAccountKeyType_PKCS12,+ EnterprisesGetServiceAccountKeyType+ #-}++-- | The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Specifying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.+newtype EnterprisesPullNotificationSetRequestMode = EnterprisesPullNotificationSetRequestMode {fromEnterprisesPullNotificationSetRequestMode :: Core.Text}+ deriving stock (Core.Show, Core.Read, Core.Eq, Core.Ord, Core.Generic)+ deriving newtype+ ( Core.Hashable,+ Core.ToHttpApiData,+ Core.FromHttpApiData,+ Core.ToJSON,+ Core.ToJSONKey,+ Core.FromJSON,+ Core.FromJSONKey+ )++-- | Wait until one or more notifications are present.+pattern EnterprisesPullNotificationSetRequestMode_WaitForNotifications :: EnterprisesPullNotificationSetRequestMode+pattern EnterprisesPullNotificationSetRequestMode_WaitForNotifications = EnterprisesPullNotificationSetRequestMode "waitForNotifications"++-- | Returns immediately whether notifications are present or not.+pattern EnterprisesPullNotificationSetRequestMode_ReturnImmediately :: EnterprisesPullNotificationSetRequestMode+pattern EnterprisesPullNotificationSetRequestMode_ReturnImmediately = EnterprisesPullNotificationSetRequestMode "returnImmediately"++{-# COMPLETE+ EnterprisesPullNotificationSetRequestMode_WaitForNotifications,+ EnterprisesPullNotificationSetRequestMode_ReturnImmediately,+ EnterprisesPullNotificationSetRequestMode+ #-}
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/Delete.hs view
@@ -0,0 +1,148 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes a per-device managed configuration for an app for the specified device.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.delete@.+module Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Delete+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsfordeviceDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsfordeviceDelete (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsfordevice.delete@ method which the+-- 'AndroidEnterpriseManagedconfigurationsfordeviceDelete' request conforms to.+type AndroidEnterpriseManagedconfigurationsfordeviceDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "managedConfigurationsForDevice"+ Core.:> Core.Capture "managedConfigurationForDeviceId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Removes a per-device managed configuration for an app for the specified device.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsfordeviceDelete' smart constructor.+data AndroidEnterpriseManagedconfigurationsfordeviceDelete = AndroidEnterpriseManagedconfigurationsfordeviceDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\".+ managedConfigurationForDeviceId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsfordeviceDelete' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsfordeviceDelete ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\". See 'managedConfigurationForDeviceId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsfordeviceDelete+newAndroidEnterpriseManagedconfigurationsfordeviceDelete+ deviceId+ enterpriseId+ managedConfigurationForDeviceId+ userId =+ AndroidEnterpriseManagedconfigurationsfordeviceDelete+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ managedConfigurationForDeviceId =+ managedConfigurationForDeviceId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsfordeviceDelete+ where+ type Rs AndroidEnterpriseManagedconfigurationsfordeviceDelete = ()+ type+ Scopes AndroidEnterpriseManagedconfigurationsfordeviceDelete =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseManagedconfigurationsfordeviceDelete {..} =+ go+ enterpriseId+ userId+ deviceId+ managedConfigurationForDeviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsfordeviceDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/Get.hs view
@@ -0,0 +1,150 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of a per-device managed configuration.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.get@.+module Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Get+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsfordeviceGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsfordeviceGet (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsfordevice.get@ method which the+-- 'AndroidEnterpriseManagedconfigurationsfordeviceGet' request conforms to.+type AndroidEnterpriseManagedconfigurationsfordeviceGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "managedConfigurationsForDevice"+ Core.:> Core.Capture "managedConfigurationForDeviceId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ManagedConfiguration++-- | Retrieves details of a per-device managed configuration.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsfordeviceGet' smart constructor.+data AndroidEnterpriseManagedconfigurationsfordeviceGet = AndroidEnterpriseManagedconfigurationsfordeviceGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\".+ managedConfigurationForDeviceId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsfordeviceGet' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsfordeviceGet ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\". See 'managedConfigurationForDeviceId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsfordeviceGet+newAndroidEnterpriseManagedconfigurationsfordeviceGet+ deviceId+ enterpriseId+ managedConfigurationForDeviceId+ userId =+ AndroidEnterpriseManagedconfigurationsfordeviceGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ managedConfigurationForDeviceId =+ managedConfigurationForDeviceId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsfordeviceGet+ where+ type+ Rs AndroidEnterpriseManagedconfigurationsfordeviceGet =+ ManagedConfiguration+ type+ Scopes AndroidEnterpriseManagedconfigurationsfordeviceGet =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseManagedconfigurationsfordeviceGet {..} =+ go+ enterpriseId+ userId+ deviceId+ managedConfigurationForDeviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsfordeviceGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/List.hs view
@@ -0,0 +1,141 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsfordevice.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all the per-device managed configurations for the specified device. Only the ID is set.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.list@.+module Gogol.AndroidEnterprise.Managedconfigurationsfordevice.List+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsfordeviceListResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsfordeviceList (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsfordevice.list@ method which the+-- 'AndroidEnterpriseManagedconfigurationsfordeviceList' request conforms to.+type AndroidEnterpriseManagedconfigurationsfordeviceListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "managedConfigurationsForDevice"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ManagedConfigurationsForDeviceListResponse++-- | Lists all the per-device managed configurations for the specified device. Only the ID is set.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsfordeviceList' smart constructor.+data AndroidEnterpriseManagedconfigurationsfordeviceList = AndroidEnterpriseManagedconfigurationsfordeviceList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsfordeviceList' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsfordeviceList ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsfordeviceList+newAndroidEnterpriseManagedconfigurationsfordeviceList+ deviceId+ enterpriseId+ userId =+ AndroidEnterpriseManagedconfigurationsfordeviceList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsfordeviceList+ where+ type+ Rs AndroidEnterpriseManagedconfigurationsfordeviceList =+ ManagedConfigurationsForDeviceListResponse+ type+ Scopes AndroidEnterpriseManagedconfigurationsfordeviceList =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseManagedconfigurationsfordeviceList {..} =+ go+ enterpriseId+ userId+ deviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsfordeviceListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsfordevice/Update.hs view
@@ -0,0 +1,158 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds or updates a per-device managed configuration for an app for the specified device.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.update@.+module Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Update+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsfordeviceUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsfordeviceUpdate (..),+ newAndroidEnterpriseManagedconfigurationsfordeviceUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsfordevice.update@ method which the+-- 'AndroidEnterpriseManagedconfigurationsfordeviceUpdate' request conforms to.+type AndroidEnterpriseManagedconfigurationsfordeviceUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "devices"+ Core.:> Core.Capture "deviceId" Core.Text+ Core.:> "managedConfigurationsForDevice"+ Core.:> Core.Capture "managedConfigurationForDeviceId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ManagedConfiguration+ Core.:> Core.Put '[Core.JSON] ManagedConfiguration++-- | Adds or updates a per-device managed configuration for an app for the specified device.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsfordeviceUpdate' smart constructor.+data AndroidEnterpriseManagedconfigurationsfordeviceUpdate = AndroidEnterpriseManagedconfigurationsfordeviceUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The Android ID of the device.+ deviceId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\".+ managedConfigurationForDeviceId :: Core.Text,+ -- | Multipart request metadata.+ payload :: ManagedConfiguration,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsfordeviceUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsfordeviceUpdate ::+ -- | The Android ID of the device. See 'deviceId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\". See 'managedConfigurationForDeviceId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ManagedConfiguration ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsfordeviceUpdate+newAndroidEnterpriseManagedconfigurationsfordeviceUpdate+ deviceId+ enterpriseId+ managedConfigurationForDeviceId+ payload+ userId =+ AndroidEnterpriseManagedconfigurationsfordeviceUpdate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ deviceId = deviceId,+ enterpriseId = enterpriseId,+ managedConfigurationForDeviceId =+ managedConfigurationForDeviceId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsfordeviceUpdate+ where+ type+ Rs AndroidEnterpriseManagedconfigurationsfordeviceUpdate =+ ManagedConfiguration+ type+ Scopes AndroidEnterpriseManagedconfigurationsfordeviceUpdate =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseManagedconfigurationsfordeviceUpdate {..} =+ go+ enterpriseId+ userId+ deviceId+ managedConfigurationForDeviceId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsfordeviceUpdateResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/Delete.hs view
@@ -0,0 +1,139 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsforuser.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes a per-user managed configuration for an app for the specified user.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.delete@.+module Gogol.AndroidEnterprise.Managedconfigurationsforuser.Delete+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsforuserDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsforuserDelete (..),+ newAndroidEnterpriseManagedconfigurationsforuserDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsforuser.delete@ method which the+-- 'AndroidEnterpriseManagedconfigurationsforuserDelete' request conforms to.+type AndroidEnterpriseManagedconfigurationsforuserDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "managedConfigurationsForUser"+ Core.:> Core.Capture "managedConfigurationForUserId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Removes a per-user managed configuration for an app for the specified user.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsforuserDelete' smart constructor.+data AndroidEnterpriseManagedconfigurationsforuserDelete = AndroidEnterpriseManagedconfigurationsforuserDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\".+ managedConfigurationForUserId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsforuserDelete' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsforuserDelete ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\". See 'managedConfigurationForUserId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsforuserDelete+newAndroidEnterpriseManagedconfigurationsforuserDelete+ enterpriseId+ managedConfigurationForUserId+ userId =+ AndroidEnterpriseManagedconfigurationsforuserDelete+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ managedConfigurationForUserId =+ managedConfigurationForUserId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsforuserDelete+ where+ type Rs AndroidEnterpriseManagedconfigurationsforuserDelete = ()+ type+ Scopes AndroidEnterpriseManagedconfigurationsforuserDelete =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseManagedconfigurationsforuserDelete {..} =+ go+ enterpriseId+ userId+ managedConfigurationForUserId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsforuserDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/Get.hs view
@@ -0,0 +1,140 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsforuser.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of a per-user managed configuration for an app for the specified user.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.get@.+module Gogol.AndroidEnterprise.Managedconfigurationsforuser.Get+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsforuserGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsforuserGet (..),+ newAndroidEnterpriseManagedconfigurationsforuserGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsforuser.get@ method which the+-- 'AndroidEnterpriseManagedconfigurationsforuserGet' request conforms to.+type AndroidEnterpriseManagedconfigurationsforuserGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "managedConfigurationsForUser"+ Core.:> Core.Capture "managedConfigurationForUserId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ManagedConfiguration++-- | Retrieves details of a per-user managed configuration for an app for the specified user.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsforuserGet' smart constructor.+data AndroidEnterpriseManagedconfigurationsforuserGet = AndroidEnterpriseManagedconfigurationsforuserGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\".+ managedConfigurationForUserId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsforuserGet' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsforuserGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\". See 'managedConfigurationForUserId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsforuserGet+newAndroidEnterpriseManagedconfigurationsforuserGet+ enterpriseId+ managedConfigurationForUserId+ userId =+ AndroidEnterpriseManagedconfigurationsforuserGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ managedConfigurationForUserId =+ managedConfigurationForUserId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsforuserGet+ where+ type+ Rs AndroidEnterpriseManagedconfigurationsforuserGet =+ ManagedConfiguration+ type+ Scopes AndroidEnterpriseManagedconfigurationsforuserGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseManagedconfigurationsforuserGet {..} =+ go+ enterpriseId+ userId+ managedConfigurationForUserId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsforuserGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/List.hs view
@@ -0,0 +1,131 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsforuser.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all the per-user managed configurations for the specified user. Only the ID is set.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.list@.+module Gogol.AndroidEnterprise.Managedconfigurationsforuser.List+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsforuserListResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsforuserList (..),+ newAndroidEnterpriseManagedconfigurationsforuserList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsforuser.list@ method which the+-- 'AndroidEnterpriseManagedconfigurationsforuserList' request conforms to.+type AndroidEnterpriseManagedconfigurationsforuserListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "managedConfigurationsForUser"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ManagedConfigurationsForUserListResponse++-- | Lists all the per-user managed configurations for the specified user. Only the ID is set.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsforuserList' smart constructor.+data AndroidEnterpriseManagedconfigurationsforuserList = AndroidEnterpriseManagedconfigurationsforuserList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsforuserList' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsforuserList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsforuserList+newAndroidEnterpriseManagedconfigurationsforuserList+ enterpriseId+ userId =+ AndroidEnterpriseManagedconfigurationsforuserList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsforuserList+ where+ type+ Rs AndroidEnterpriseManagedconfigurationsforuserList =+ ManagedConfigurationsForUserListResponse+ type+ Scopes AndroidEnterpriseManagedconfigurationsforuserList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseManagedconfigurationsforuserList {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsforuserListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationsforuser/Update.hs view
@@ -0,0 +1,149 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationsforuser.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Adds or updates the managed configuration settings for an app for the specified user. If you support the Managed configurations iframe, you can apply managed configurations to a user by specifying an mcmId and its associated configuration variables (if any) in the request. Alternatively, all EMMs can apply managed configurations by passing a list of managed properties.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.update@.+module Gogol.AndroidEnterprise.Managedconfigurationsforuser.Update+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationsforuserUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationsforuserUpdate (..),+ newAndroidEnterpriseManagedconfigurationsforuserUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationsforuser.update@ method which the+-- 'AndroidEnterpriseManagedconfigurationsforuserUpdate' request conforms to.+type AndroidEnterpriseManagedconfigurationsforuserUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "managedConfigurationsForUser"+ Core.:> Core.Capture "managedConfigurationForUserId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ManagedConfiguration+ Core.:> Core.Put '[Core.JSON] ManagedConfiguration++-- | Adds or updates the managed configuration settings for an app for the specified user. If you support the Managed configurations iframe, you can apply managed configurations to a user by specifying an mcmId and its associated configuration variables (if any) in the request. Alternatively, all EMMs can apply managed configurations by passing a list of managed properties.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationsforuserUpdate' smart constructor.+data AndroidEnterpriseManagedconfigurationsforuserUpdate = AndroidEnterpriseManagedconfigurationsforuserUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\".+ managedConfigurationForUserId :: Core.Text,+ -- | Multipart request metadata.+ payload :: ManagedConfiguration,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationsforuserUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationsforuserUpdate ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the managed configuration (a product ID), e.g. \"app:com.google.android.gm\". See 'managedConfigurationForUserId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ManagedConfiguration ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationsforuserUpdate+newAndroidEnterpriseManagedconfigurationsforuserUpdate+ enterpriseId+ managedConfigurationForUserId+ payload+ userId =+ AndroidEnterpriseManagedconfigurationsforuserUpdate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ managedConfigurationForUserId =+ managedConfigurationForUserId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationsforuserUpdate+ where+ type+ Rs AndroidEnterpriseManagedconfigurationsforuserUpdate =+ ManagedConfiguration+ type+ Scopes AndroidEnterpriseManagedconfigurationsforuserUpdate =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseManagedconfigurationsforuserUpdate {..} =+ go+ enterpriseId+ userId+ managedConfigurationForUserId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationsforuserUpdateResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Managedconfigurationssettings/List.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Managedconfigurationssettings.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all the managed configurations settings for the specified app.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationssettings.list@.+module Gogol.AndroidEnterprise.Managedconfigurationssettings.List+ ( -- * Resource+ AndroidEnterpriseManagedconfigurationssettingsListResource,++ -- ** Constructing a Request+ AndroidEnterpriseManagedconfigurationssettingsList (..),+ newAndroidEnterpriseManagedconfigurationssettingsList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.managedconfigurationssettings.list@ method which the+-- 'AndroidEnterpriseManagedconfigurationssettingsList' request conforms to.+type AndroidEnterpriseManagedconfigurationssettingsListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.Capture "productId" Core.Text+ Core.:> "managedConfigurationsSettings"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ManagedConfigurationsSettingsListResponse++-- | Lists all the managed configurations settings for the specified app.+--+-- /See:/ 'newAndroidEnterpriseManagedconfigurationssettingsList' smart constructor.+data AndroidEnterpriseManagedconfigurationssettingsList = AndroidEnterpriseManagedconfigurationssettingsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product for which the managed configurations settings applies to.+ productId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseManagedconfigurationssettingsList' with the minimum fields required to make a request.+newAndroidEnterpriseManagedconfigurationssettingsList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product for which the managed configurations settings applies to. See 'productId'.+ Core.Text ->+ AndroidEnterpriseManagedconfigurationssettingsList+newAndroidEnterpriseManagedconfigurationssettingsList+ enterpriseId+ productId =+ AndroidEnterpriseManagedconfigurationssettingsList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ productId = productId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseManagedconfigurationssettingsList+ where+ type+ Rs AndroidEnterpriseManagedconfigurationssettingsList =+ ManagedConfigurationsSettingsListResponse+ type+ Scopes AndroidEnterpriseManagedconfigurationssettingsList =+ '[Androidenterprise'FullControl]+ requestClient+ AndroidEnterpriseManagedconfigurationssettingsList {..} =+ go+ enterpriseId+ productId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseManagedconfigurationssettingsListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Permissions/Get.hs view
@@ -0,0 +1,116 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Permissions.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of an Android app permission for display to an enterprise admin.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.permissions.get@.+module Gogol.AndroidEnterprise.Permissions.Get+ ( -- * Resource+ AndroidEnterprisePermissionsGetResource,++ -- ** Constructing a Request+ AndroidEnterprisePermissionsGet (..),+ newAndroidEnterprisePermissionsGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.permissions.get@ method which the+-- 'AndroidEnterprisePermissionsGet' request conforms to.+type AndroidEnterprisePermissionsGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "permissions"+ Core.:> Core.Capture "permissionId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "language" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Permission++-- | Retrieves details of an Android app permission for display to an enterprise admin.+--+-- /See:/ 'newAndroidEnterprisePermissionsGet' smart constructor.+data AndroidEnterprisePermissionsGet = AndroidEnterprisePermissionsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\", \"de\")+ language :: (Core.Maybe Core.Text),+ -- | The ID of the permission.+ permissionId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterprisePermissionsGet' with the minimum fields required to make a request.+newAndroidEnterprisePermissionsGet ::+ -- | The ID of the permission. See 'permissionId'.+ Core.Text ->+ AndroidEnterprisePermissionsGet+newAndroidEnterprisePermissionsGet permissionId =+ AndroidEnterprisePermissionsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ language = Core.Nothing,+ permissionId = permissionId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterprisePermissionsGet where+ type Rs AndroidEnterprisePermissionsGet = Permission+ type+ Scopes AndroidEnterprisePermissionsGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterprisePermissionsGet {..} =+ go+ permissionId+ xgafv+ accessToken+ callback+ language+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterprisePermissionsGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Products/Approve.hs view
@@ -0,0 +1,127 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Products.Approve+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Approves the specified product and the relevant app permissions, if any. The maximum number of products that you can approve per enterprise customer is 1,000. To learn how to use managed Google Play to design and create a store layout to display approved products to your users, see Store Layout Design. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@.+module Gogol.AndroidEnterprise.Products.Approve+ ( -- * Resource+ AndroidEnterpriseProductsApproveResource,++ -- ** Constructing a Request+ AndroidEnterpriseProductsApprove (..),+ newAndroidEnterpriseProductsApprove,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.products.approve@ method which the+-- 'AndroidEnterpriseProductsApprove' request conforms to.+type AndroidEnterpriseProductsApproveResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.Capture "productId" Core.Text+ Core.:> "approve"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ProductsApproveRequest+ Core.:> Core.Post '[Core.JSON] ()++-- | Approves the specified product and the relevant app permissions, if any. The maximum number of products that you can approve per enterprise customer is 1,000. To learn how to use managed Google Play to design and create a store layout to display approved products to your users, see Store Layout Design. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseProductsApprove' smart constructor.+data AndroidEnterpriseProductsApprove = AndroidEnterpriseProductsApprove+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: ProductsApproveRequest,+ -- | The ID of the product.+ productId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseProductsApprove' with the minimum fields required to make a request.+newAndroidEnterpriseProductsApprove ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ProductsApproveRequest ->+ -- | The ID of the product. See 'productId'.+ Core.Text ->+ AndroidEnterpriseProductsApprove+newAndroidEnterpriseProductsApprove enterpriseId payload productId =+ AndroidEnterpriseProductsApprove+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ productId = productId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseProductsApprove where+ type Rs AndroidEnterpriseProductsApprove = ()+ type+ Scopes AndroidEnterpriseProductsApprove =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseProductsApprove {..} =+ go+ enterpriseId+ productId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseProductsApproveResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Products/GenerateApprovalUrl.hs view
@@ -0,0 +1,135 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Products.GenerateApprovalUrl+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product. Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.generateApprovalUrl@.+module Gogol.AndroidEnterprise.Products.GenerateApprovalUrl+ ( -- * Resource+ AndroidEnterpriseProductsGenerateApprovalUrlResource,++ -- ** Constructing a Request+ AndroidEnterpriseProductsGenerateApprovalUrl (..),+ newAndroidEnterpriseProductsGenerateApprovalUrl,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.products.generateApprovalUrl@ method which the+-- 'AndroidEnterpriseProductsGenerateApprovalUrl' request conforms to.+type AndroidEnterpriseProductsGenerateApprovalUrlResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.Capture "productId" Core.Text+ Core.:> "generateApprovalUrl"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "languageCode" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] ProductsGenerateApprovalUrlResponse++-- | Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product. Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseProductsGenerateApprovalUrl' smart constructor.+data AndroidEnterpriseProductsGenerateApprovalUrl = AndroidEnterpriseProductsGenerateApprovalUrl+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance \"en-US\".+ languageCode :: (Core.Maybe Core.Text),+ -- | The ID of the product.+ productId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseProductsGenerateApprovalUrl' with the minimum fields required to make a request.+newAndroidEnterpriseProductsGenerateApprovalUrl ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product. See 'productId'.+ Core.Text ->+ AndroidEnterpriseProductsGenerateApprovalUrl+newAndroidEnterpriseProductsGenerateApprovalUrl+ enterpriseId+ productId =+ AndroidEnterpriseProductsGenerateApprovalUrl+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ languageCode = Core.Nothing,+ productId = productId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseProductsGenerateApprovalUrl+ where+ type+ Rs AndroidEnterpriseProductsGenerateApprovalUrl =+ ProductsGenerateApprovalUrlResponse+ type+ Scopes AndroidEnterpriseProductsGenerateApprovalUrl =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseProductsGenerateApprovalUrl {..} =+ go+ enterpriseId+ productId+ xgafv+ accessToken+ callback+ languageCode+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseProductsGenerateApprovalUrlResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Products/Get.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Products.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of a product for display to an enterprise admin.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.get@.+module Gogol.AndroidEnterprise.Products.Get+ ( -- * Resource+ AndroidEnterpriseProductsGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseProductsGet (..),+ newAndroidEnterpriseProductsGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.products.get@ method which the+-- 'AndroidEnterpriseProductsGet' request conforms to.+type AndroidEnterpriseProductsGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.Capture "productId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "language" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] Product++-- | Retrieves details of a product for display to an enterprise admin.+--+-- /See:/ 'newAndroidEnterpriseProductsGet' smart constructor.+data AndroidEnterpriseProductsGet = AndroidEnterpriseProductsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\", \"de\").+ language :: (Core.Maybe Core.Text),+ -- | The ID of the product, e.g. \"app:com.google.android.gm\".+ productId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseProductsGet' with the minimum fields required to make a request.+newAndroidEnterpriseProductsGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product, e.g. \"app:com.google.android.gm\". See 'productId'.+ Core.Text ->+ AndroidEnterpriseProductsGet+newAndroidEnterpriseProductsGet enterpriseId productId =+ AndroidEnterpriseProductsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ language = Core.Nothing,+ productId = productId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseProductsGet where+ type Rs AndroidEnterpriseProductsGet = Product+ type+ Scopes AndroidEnterpriseProductsGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseProductsGet {..} =+ go+ enterpriseId+ productId+ xgafv+ accessToken+ callback+ language+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseProductsGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Products.GetAppRestrictionsSchema+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an admin to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.+module Gogol.AndroidEnterprise.Products.GetAppRestrictionsSchema+ ( -- * Resource+ AndroidEnterpriseProductsGetAppRestrictionsSchemaResource,++ -- ** Constructing a Request+ AndroidEnterpriseProductsGetAppRestrictionsSchema (..),+ newAndroidEnterpriseProductsGetAppRestrictionsSchema,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.products.getAppRestrictionsSchema@ method which the+-- 'AndroidEnterpriseProductsGetAppRestrictionsSchema' request conforms to.+type AndroidEnterpriseProductsGetAppRestrictionsSchemaResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.Capture "productId" Core.Text+ Core.:> "appRestrictionsSchema"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "language" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] AppRestrictionsSchema++-- | Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an admin to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play.+--+-- /See:/ 'newAndroidEnterpriseProductsGetAppRestrictionsSchema' smart constructor.+data AndroidEnterpriseProductsGetAppRestrictionsSchema = AndroidEnterpriseProductsGetAppRestrictionsSchema+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\", \"de\").+ language :: (Core.Maybe Core.Text),+ -- | The ID of the product.+ productId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseProductsGetAppRestrictionsSchema' with the minimum fields required to make a request.+newAndroidEnterpriseProductsGetAppRestrictionsSchema ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product. See 'productId'.+ Core.Text ->+ AndroidEnterpriseProductsGetAppRestrictionsSchema+newAndroidEnterpriseProductsGetAppRestrictionsSchema+ enterpriseId+ productId =+ AndroidEnterpriseProductsGetAppRestrictionsSchema+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ language = Core.Nothing,+ productId = productId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseProductsGetAppRestrictionsSchema+ where+ type+ Rs AndroidEnterpriseProductsGetAppRestrictionsSchema =+ AppRestrictionsSchema+ type+ Scopes AndroidEnterpriseProductsGetAppRestrictionsSchema =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseProductsGetAppRestrictionsSchema {..} =+ go+ enterpriseId+ productId+ xgafv+ accessToken+ callback+ language+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseProductsGetAppRestrictionsSchemaResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Products/GetPermissions.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Products.GetPermissions+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the Android app permissions required by this app.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getPermissions@.+module Gogol.AndroidEnterprise.Products.GetPermissions+ ( -- * Resource+ AndroidEnterpriseProductsGetPermissionsResource,++ -- ** Constructing a Request+ AndroidEnterpriseProductsGetPermissions (..),+ newAndroidEnterpriseProductsGetPermissions,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.products.getPermissions@ method which the+-- 'AndroidEnterpriseProductsGetPermissions' request conforms to.+type AndroidEnterpriseProductsGetPermissionsResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.Capture "productId" Core.Text+ Core.:> "permissions"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ProductPermissions++-- | Retrieves the Android app permissions required by this app.+--+-- /See:/ 'newAndroidEnterpriseProductsGetPermissions' smart constructor.+data AndroidEnterpriseProductsGetPermissions = AndroidEnterpriseProductsGetPermissions+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product.+ productId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseProductsGetPermissions' with the minimum fields required to make a request.+newAndroidEnterpriseProductsGetPermissions ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product. See 'productId'.+ Core.Text ->+ AndroidEnterpriseProductsGetPermissions+newAndroidEnterpriseProductsGetPermissions enterpriseId productId =+ AndroidEnterpriseProductsGetPermissions+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ productId = productId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseProductsGetPermissions where+ type+ Rs AndroidEnterpriseProductsGetPermissions =+ ProductPermissions+ type+ Scopes AndroidEnterpriseProductsGetPermissions =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseProductsGetPermissions {..} =+ go+ enterpriseId+ productId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseProductsGetPermissionsResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Products/List.hs view
@@ -0,0 +1,137 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Products.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Finds approved products that match a query, or all approved products if there is no query. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.list@.+module Gogol.AndroidEnterprise.Products.List+ ( -- * Resource+ AndroidEnterpriseProductsListResource,++ -- ** Constructing a Request+ AndroidEnterpriseProductsList (..),+ newAndroidEnterpriseProductsList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.products.list@ method which the+-- 'AndroidEnterpriseProductsList' request conforms to.+type AndroidEnterpriseProductsListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "approved" Core.Bool+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "language" Core.Text+ Core.:> Core.QueryParam "maxResults" Core.Word32+ Core.:> Core.QueryParam "query" Core.Text+ Core.:> Core.QueryParam "token" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ProductsListResponse++-- | Finds approved products that match a query, or all approved products if there is no query. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseProductsList' smart constructor.+data AndroidEnterpriseProductsList = AndroidEnterpriseProductsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | Specifies whether to search among all products (false) or among only products that have been approved (true). Only \"true\" is supported, and should be specified.+ approved :: (Core.Maybe Core.Bool),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\", \"de\"). Results are returned in the language best matching the preferred language.+ language :: (Core.Maybe Core.Text),+ -- | Defines how many results the list operation should return. The default number depends on the resource collection.+ maxResults :: (Core.Maybe Core.Word32),+ -- | The search query as typed in the Google Play store search box. If omitted, all approved apps will be returned (using the pagination parameters), including apps that are not available in the store (e.g. unpublished apps).+ query :: (Core.Maybe Core.Text),+ -- | Defines the token of the page to return, usually taken from TokenPagination. This can only be used if token paging is enabled.+ token :: (Core.Maybe Core.Text),+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseProductsList' with the minimum fields required to make a request.+newAndroidEnterpriseProductsList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseProductsList+newAndroidEnterpriseProductsList enterpriseId =+ AndroidEnterpriseProductsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ approved = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ language = Core.Nothing,+ maxResults = Core.Nothing,+ query = Core.Nothing,+ token = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseProductsList where+ type Rs AndroidEnterpriseProductsList = ProductsListResponse+ type+ Scopes AndroidEnterpriseProductsList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseProductsList {..} =+ go+ enterpriseId+ xgafv+ accessToken+ approved+ callback+ language+ maxResults+ query+ token+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseProductsListResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Products/Unapprove.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Products.Unapprove+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Unapproves the specified product (and the relevant app permissions, if any) __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.unapprove@.+module Gogol.AndroidEnterprise.Products.Unapprove+ ( -- * Resource+ AndroidEnterpriseProductsUnapproveResource,++ -- ** Constructing a Request+ AndroidEnterpriseProductsUnapprove (..),+ newAndroidEnterpriseProductsUnapprove,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.products.unapprove@ method which the+-- 'AndroidEnterpriseProductsUnapprove' request conforms to.+type AndroidEnterpriseProductsUnapproveResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "products"+ Core.:> Core.Capture "productId" Core.Text+ Core.:> "unapprove"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] ()++-- | Unapproves the specified product (and the relevant app permissions, if any) __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseProductsUnapprove' smart constructor.+data AndroidEnterpriseProductsUnapprove = AndroidEnterpriseProductsUnapprove+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the product.+ productId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseProductsUnapprove' with the minimum fields required to make a request.+newAndroidEnterpriseProductsUnapprove ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the product. See 'productId'.+ Core.Text ->+ AndroidEnterpriseProductsUnapprove+newAndroidEnterpriseProductsUnapprove enterpriseId productId =+ AndroidEnterpriseProductsUnapprove+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ productId = productId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseProductsUnapprove where+ type Rs AndroidEnterpriseProductsUnapprove = ()+ type+ Scopes AndroidEnterpriseProductsUnapprove =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseProductsUnapprove {..} =+ go+ enterpriseId+ productId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseProductsUnapproveResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Serviceaccountkeys/Delete.hs view
@@ -0,0 +1,124 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Serviceaccountkeys.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.serviceaccountkeys.delete@.+module Gogol.AndroidEnterprise.Serviceaccountkeys.Delete+ ( -- * Resource+ AndroidEnterpriseServiceaccountkeysDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseServiceaccountkeysDelete (..),+ newAndroidEnterpriseServiceaccountkeysDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.serviceaccountkeys.delete@ method which the+-- 'AndroidEnterpriseServiceaccountkeysDelete' request conforms to.+type AndroidEnterpriseServiceaccountkeysDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "serviceAccountKeys"+ Core.:> Core.Capture "keyId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.+--+-- /See:/ 'newAndroidEnterpriseServiceaccountkeysDelete' smart constructor.+data AndroidEnterpriseServiceaccountkeysDelete = AndroidEnterpriseServiceaccountkeysDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the key.+ keyId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseServiceaccountkeysDelete' with the minimum fields required to make a request.+newAndroidEnterpriseServiceaccountkeysDelete ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the key. See 'keyId'.+ Core.Text ->+ AndroidEnterpriseServiceaccountkeysDelete+newAndroidEnterpriseServiceaccountkeysDelete enterpriseId keyId =+ AndroidEnterpriseServiceaccountkeysDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ keyId = keyId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseServiceaccountkeysDelete+ where+ type Rs AndroidEnterpriseServiceaccountkeysDelete = ()+ type+ Scopes AndroidEnterpriseServiceaccountkeysDelete =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseServiceaccountkeysDelete {..} =+ go+ enterpriseId+ keyId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseServiceaccountkeysDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Serviceaccountkeys/Insert.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Serviceaccountkeys.Insert+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.serviceaccountkeys.insert@.+module Gogol.AndroidEnterprise.Serviceaccountkeys.Insert+ ( -- * Resource+ AndroidEnterpriseServiceaccountkeysInsertResource,++ -- ** Constructing a Request+ AndroidEnterpriseServiceaccountkeysInsert (..),+ newAndroidEnterpriseServiceaccountkeysInsert,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.serviceaccountkeys.insert@ method which the+-- 'AndroidEnterpriseServiceaccountkeysInsert' request conforms to.+type AndroidEnterpriseServiceaccountkeysInsertResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "serviceAccountKeys"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ServiceAccountKey+ Core.:> Core.Post '[Core.JSON] ServiceAccountKey++-- | Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount. Only the type of the key should be populated in the resource to be inserted.+--+-- /See:/ 'newAndroidEnterpriseServiceaccountkeysInsert' smart constructor.+data AndroidEnterpriseServiceaccountkeysInsert = AndroidEnterpriseServiceaccountkeysInsert+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: ServiceAccountKey,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseServiceaccountkeysInsert' with the minimum fields required to make a request.+newAndroidEnterpriseServiceaccountkeysInsert ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ServiceAccountKey ->+ AndroidEnterpriseServiceaccountkeysInsert+newAndroidEnterpriseServiceaccountkeysInsert enterpriseId payload =+ AndroidEnterpriseServiceaccountkeysInsert+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseServiceaccountkeysInsert+ where+ type+ Rs AndroidEnterpriseServiceaccountkeysInsert =+ ServiceAccountKey+ type+ Scopes AndroidEnterpriseServiceaccountkeysInsert =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseServiceaccountkeysInsert {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseServiceaccountkeysInsertResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Serviceaccountkeys/List.hs view
@@ -0,0 +1,116 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Serviceaccountkeys.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.serviceaccountkeys.list@.+module Gogol.AndroidEnterprise.Serviceaccountkeys.List+ ( -- * Resource+ AndroidEnterpriseServiceaccountkeysListResource,++ -- ** Constructing a Request+ AndroidEnterpriseServiceaccountkeysList (..),+ newAndroidEnterpriseServiceaccountkeysList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.serviceaccountkeys.list@ method which the+-- 'AndroidEnterpriseServiceaccountkeysList' request conforms to.+type AndroidEnterpriseServiceaccountkeysListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "serviceAccountKeys"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ServiceAccountKeysListResponse++-- | Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.+--+-- /See:/ 'newAndroidEnterpriseServiceaccountkeysList' smart constructor.+data AndroidEnterpriseServiceaccountkeysList = AndroidEnterpriseServiceaccountkeysList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseServiceaccountkeysList' with the minimum fields required to make a request.+newAndroidEnterpriseServiceaccountkeysList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseServiceaccountkeysList+newAndroidEnterpriseServiceaccountkeysList enterpriseId =+ AndroidEnterpriseServiceaccountkeysList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseServiceaccountkeysList where+ type+ Rs AndroidEnterpriseServiceaccountkeysList =+ ServiceAccountKeysListResponse+ type+ Scopes AndroidEnterpriseServiceaccountkeysList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseServiceaccountkeysList {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseServiceaccountkeysListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutclusters/Delete.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutclusters.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a cluster.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.delete@.+module Gogol.AndroidEnterprise.Storelayoutclusters.Delete+ ( -- * Resource+ AndroidEnterpriseStorelayoutclustersDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutclustersDelete (..),+ newAndroidEnterpriseStorelayoutclustersDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutclusters.delete@ method which the+-- 'AndroidEnterpriseStorelayoutclustersDelete' request conforms to.+type AndroidEnterpriseStorelayoutclustersDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> "clusters"+ Core.:> Core.Capture "clusterId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Deletes a cluster.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutclustersDelete' smart constructor.+data AndroidEnterpriseStorelayoutclustersDelete = AndroidEnterpriseStorelayoutclustersDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the cluster.+ clusterId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutclustersDelete' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutclustersDelete ::+ -- | The ID of the cluster. See 'clusterId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ AndroidEnterpriseStorelayoutclustersDelete+newAndroidEnterpriseStorelayoutclustersDelete+ clusterId+ enterpriseId+ pageId =+ AndroidEnterpriseStorelayoutclustersDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ clusterId = clusterId,+ enterpriseId = enterpriseId,+ pageId = pageId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseStorelayoutclustersDelete+ where+ type Rs AndroidEnterpriseStorelayoutclustersDelete = ()+ type+ Scopes AndroidEnterpriseStorelayoutclustersDelete =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutclustersDelete {..} =+ go+ enterpriseId+ pageId+ clusterId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutclustersDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutclusters/Get.hs view
@@ -0,0 +1,133 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutclusters.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of a cluster.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.get@.+module Gogol.AndroidEnterprise.Storelayoutclusters.Get+ ( -- * Resource+ AndroidEnterpriseStorelayoutclustersGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutclustersGet (..),+ newAndroidEnterpriseStorelayoutclustersGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutclusters.get@ method which the+-- 'AndroidEnterpriseStorelayoutclustersGet' request conforms to.+type AndroidEnterpriseStorelayoutclustersGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> "clusters"+ Core.:> Core.Capture "clusterId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] StoreCluster++-- | Retrieves details of a cluster.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutclustersGet' smart constructor.+data AndroidEnterpriseStorelayoutclustersGet = AndroidEnterpriseStorelayoutclustersGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the cluster.+ clusterId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutclustersGet' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutclustersGet ::+ -- | The ID of the cluster. See 'clusterId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ AndroidEnterpriseStorelayoutclustersGet+newAndroidEnterpriseStorelayoutclustersGet+ clusterId+ enterpriseId+ pageId =+ AndroidEnterpriseStorelayoutclustersGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ clusterId = clusterId,+ enterpriseId = enterpriseId,+ pageId = pageId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseStorelayoutclustersGet where+ type Rs AndroidEnterpriseStorelayoutclustersGet = StoreCluster+ type+ Scopes AndroidEnterpriseStorelayoutclustersGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutclustersGet {..} =+ go+ enterpriseId+ pageId+ clusterId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutclustersGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutclusters/Insert.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutclusters.Insert+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Inserts a new cluster in a page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.insert@.+module Gogol.AndroidEnterprise.Storelayoutclusters.Insert+ ( -- * Resource+ AndroidEnterpriseStorelayoutclustersInsertResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutclustersInsert (..),+ newAndroidEnterpriseStorelayoutclustersInsert,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutclusters.insert@ method which the+-- 'AndroidEnterpriseStorelayoutclustersInsert' request conforms to.+type AndroidEnterpriseStorelayoutclustersInsertResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> "clusters"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] StoreCluster+ Core.:> Core.Post '[Core.JSON] StoreCluster++-- | Inserts a new cluster in a page.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutclustersInsert' smart constructor.+data AndroidEnterpriseStorelayoutclustersInsert = AndroidEnterpriseStorelayoutclustersInsert+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Multipart request metadata.+ payload :: StoreCluster,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutclustersInsert' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutclustersInsert ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ StoreCluster ->+ AndroidEnterpriseStorelayoutclustersInsert+newAndroidEnterpriseStorelayoutclustersInsert+ enterpriseId+ pageId+ payload =+ AndroidEnterpriseStorelayoutclustersInsert+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ pageId = pageId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseStorelayoutclustersInsert+ where+ type Rs AndroidEnterpriseStorelayoutclustersInsert = StoreCluster+ type+ Scopes AndroidEnterpriseStorelayoutclustersInsert =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutclustersInsert {..} =+ go+ enterpriseId+ pageId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutclustersInsertResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutclusters/List.hs view
@@ -0,0 +1,128 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutclusters.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the details of all clusters on the specified page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.list@.+module Gogol.AndroidEnterprise.Storelayoutclusters.List+ ( -- * Resource+ AndroidEnterpriseStorelayoutclustersListResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutclustersList (..),+ newAndroidEnterpriseStorelayoutclustersList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutclusters.list@ method which the+-- 'AndroidEnterpriseStorelayoutclustersList' request conforms to.+type AndroidEnterpriseStorelayoutclustersListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> "clusters"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] StoreLayoutClustersListResponse++-- | Retrieves the details of all clusters on the specified page.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutclustersList' smart constructor.+data AndroidEnterpriseStorelayoutclustersList = AndroidEnterpriseStorelayoutclustersList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutclustersList' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutclustersList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ AndroidEnterpriseStorelayoutclustersList+newAndroidEnterpriseStorelayoutclustersList enterpriseId pageId =+ AndroidEnterpriseStorelayoutclustersList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ pageId = pageId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseStorelayoutclustersList+ where+ type+ Rs AndroidEnterpriseStorelayoutclustersList =+ StoreLayoutClustersListResponse+ type+ Scopes AndroidEnterpriseStorelayoutclustersList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutclustersList {..} =+ go+ enterpriseId+ pageId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutclustersListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutclusters/Update.hs view
@@ -0,0 +1,144 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutclusters.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates a cluster.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.update@.+module Gogol.AndroidEnterprise.Storelayoutclusters.Update+ ( -- * Resource+ AndroidEnterpriseStorelayoutclustersUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutclustersUpdate (..),+ newAndroidEnterpriseStorelayoutclustersUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutclusters.update@ method which the+-- 'AndroidEnterpriseStorelayoutclustersUpdate' request conforms to.+type AndroidEnterpriseStorelayoutclustersUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> "clusters"+ Core.:> Core.Capture "clusterId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] StoreCluster+ Core.:> Core.Put '[Core.JSON] StoreCluster++-- | Updates a cluster.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutclustersUpdate' smart constructor.+data AndroidEnterpriseStorelayoutclustersUpdate = AndroidEnterpriseStorelayoutclustersUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the cluster.+ clusterId :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Multipart request metadata.+ payload :: StoreCluster,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutclustersUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutclustersUpdate ::+ -- | The ID of the cluster. See 'clusterId'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ StoreCluster ->+ AndroidEnterpriseStorelayoutclustersUpdate+newAndroidEnterpriseStorelayoutclustersUpdate+ clusterId+ enterpriseId+ pageId+ payload =+ AndroidEnterpriseStorelayoutclustersUpdate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ clusterId = clusterId,+ enterpriseId = enterpriseId,+ pageId = pageId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseStorelayoutclustersUpdate+ where+ type Rs AndroidEnterpriseStorelayoutclustersUpdate = StoreCluster+ type+ Scopes AndroidEnterpriseStorelayoutclustersUpdate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutclustersUpdate {..} =+ go+ enterpriseId+ pageId+ clusterId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutclustersUpdateResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutpages/Delete.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutpages.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes a store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.delete@.+module Gogol.AndroidEnterprise.Storelayoutpages.Delete+ ( -- * Resource+ AndroidEnterpriseStorelayoutpagesDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutpagesDelete (..),+ newAndroidEnterpriseStorelayoutpagesDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutpages.delete@ method which the+-- 'AndroidEnterpriseStorelayoutpagesDelete' request conforms to.+type AndroidEnterpriseStorelayoutpagesDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Deletes a store page.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutpagesDelete' smart constructor.+data AndroidEnterpriseStorelayoutpagesDelete = AndroidEnterpriseStorelayoutpagesDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutpagesDelete' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutpagesDelete ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ AndroidEnterpriseStorelayoutpagesDelete+newAndroidEnterpriseStorelayoutpagesDelete enterpriseId pageId =+ AndroidEnterpriseStorelayoutpagesDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ pageId = pageId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseStorelayoutpagesDelete where+ type Rs AndroidEnterpriseStorelayoutpagesDelete = ()+ type+ Scopes AndroidEnterpriseStorelayoutpagesDelete =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutpagesDelete {..} =+ go+ enterpriseId+ pageId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutpagesDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutpages/Get.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutpages.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves details of a store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.get@.+module Gogol.AndroidEnterprise.Storelayoutpages.Get+ ( -- * Resource+ AndroidEnterpriseStorelayoutpagesGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutpagesGet (..),+ newAndroidEnterpriseStorelayoutpagesGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutpages.get@ method which the+-- 'AndroidEnterpriseStorelayoutpagesGet' request conforms to.+type AndroidEnterpriseStorelayoutpagesGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] StorePage++-- | Retrieves details of a store page.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutpagesGet' smart constructor.+data AndroidEnterpriseStorelayoutpagesGet = AndroidEnterpriseStorelayoutpagesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutpagesGet' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutpagesGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ AndroidEnterpriseStorelayoutpagesGet+newAndroidEnterpriseStorelayoutpagesGet enterpriseId pageId =+ AndroidEnterpriseStorelayoutpagesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ pageId = pageId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseStorelayoutpagesGet where+ type Rs AndroidEnterpriseStorelayoutpagesGet = StorePage+ type+ Scopes AndroidEnterpriseStorelayoutpagesGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutpagesGet {..} =+ go+ enterpriseId+ pageId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutpagesGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutpages/Insert.hs view
@@ -0,0 +1,122 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutpages.Insert+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Inserts a new store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.insert@.+module Gogol.AndroidEnterprise.Storelayoutpages.Insert+ ( -- * Resource+ AndroidEnterpriseStorelayoutpagesInsertResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutpagesInsert (..),+ newAndroidEnterpriseStorelayoutpagesInsert,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutpages.insert@ method which the+-- 'AndroidEnterpriseStorelayoutpagesInsert' request conforms to.+type AndroidEnterpriseStorelayoutpagesInsertResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] StorePage+ Core.:> Core.Post '[Core.JSON] StorePage++-- | Inserts a new store page.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutpagesInsert' smart constructor.+data AndroidEnterpriseStorelayoutpagesInsert = AndroidEnterpriseStorelayoutpagesInsert+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: StorePage,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutpagesInsert' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutpagesInsert ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ StorePage ->+ AndroidEnterpriseStorelayoutpagesInsert+newAndroidEnterpriseStorelayoutpagesInsert enterpriseId payload =+ AndroidEnterpriseStorelayoutpagesInsert+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseStorelayoutpagesInsert where+ type Rs AndroidEnterpriseStorelayoutpagesInsert = StorePage+ type+ Scopes AndroidEnterpriseStorelayoutpagesInsert =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutpagesInsert {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutpagesInsertResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutpages/List.hs view
@@ -0,0 +1,117 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutpages.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the details of all pages in the store.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.list@.+module Gogol.AndroidEnterprise.Storelayoutpages.List+ ( -- * Resource+ AndroidEnterpriseStorelayoutpagesListResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutpagesList (..),+ newAndroidEnterpriseStorelayoutpagesList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutpages.list@ method which the+-- 'AndroidEnterpriseStorelayoutpagesList' request conforms to.+type AndroidEnterpriseStorelayoutpagesListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] StoreLayoutPagesListResponse++-- | Retrieves the details of all pages in the store.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutpagesList' smart constructor.+data AndroidEnterpriseStorelayoutpagesList = AndroidEnterpriseStorelayoutpagesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutpagesList' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutpagesList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseStorelayoutpagesList+newAndroidEnterpriseStorelayoutpagesList enterpriseId =+ AndroidEnterpriseStorelayoutpagesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseStorelayoutpagesList where+ type+ Rs AndroidEnterpriseStorelayoutpagesList =+ StoreLayoutPagesListResponse+ type+ Scopes AndroidEnterpriseStorelayoutpagesList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutpagesList {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutpagesListResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Storelayoutpages/Update.hs view
@@ -0,0 +1,132 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Storelayoutpages.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the content of a store page.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.update@.+module Gogol.AndroidEnterprise.Storelayoutpages.Update+ ( -- * Resource+ AndroidEnterpriseStorelayoutpagesUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseStorelayoutpagesUpdate (..),+ newAndroidEnterpriseStorelayoutpagesUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.storelayoutpages.update@ method which the+-- 'AndroidEnterpriseStorelayoutpagesUpdate' request conforms to.+type AndroidEnterpriseStorelayoutpagesUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "storeLayout"+ Core.:> "pages"+ Core.:> Core.Capture "pageId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] StorePage+ Core.:> Core.Put '[Core.JSON] StorePage++-- | Updates the content of a store page.+--+-- /See:/ 'newAndroidEnterpriseStorelayoutpagesUpdate' smart constructor.+data AndroidEnterpriseStorelayoutpagesUpdate = AndroidEnterpriseStorelayoutpagesUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | The ID of the page.+ pageId :: Core.Text,+ -- | Multipart request metadata.+ payload :: StorePage,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseStorelayoutpagesUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseStorelayoutpagesUpdate ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the page. See 'pageId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ StorePage ->+ AndroidEnterpriseStorelayoutpagesUpdate+newAndroidEnterpriseStorelayoutpagesUpdate+ enterpriseId+ pageId+ payload =+ AndroidEnterpriseStorelayoutpagesUpdate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ pageId = pageId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseStorelayoutpagesUpdate where+ type Rs AndroidEnterpriseStorelayoutpagesUpdate = StorePage+ type+ Scopes AndroidEnterpriseStorelayoutpagesUpdate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseStorelayoutpagesUpdate {..} =+ go+ enterpriseId+ pageId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseStorelayoutpagesUpdateResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Types.hs view
@@ -0,0 +1,553 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Types+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+module Gogol.AndroidEnterprise.Types+ ( -- * Configuration+ androidEnterpriseService,++ -- * OAuth Scopes+ Androidenterprise'FullControl,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** Administrator+ Administrator (..),+ newAdministrator,++ -- ** AdministratorWebToken+ AdministratorWebToken (..),+ newAdministratorWebToken,++ -- ** AdministratorWebTokenSpec+ AdministratorWebTokenSpec (..),+ newAdministratorWebTokenSpec,++ -- ** AdministratorWebTokenSpec_PermissionItem+ AdministratorWebTokenSpec_PermissionItem (..),++ -- ** AdministratorWebTokenSpecManagedConfigurations+ AdministratorWebTokenSpecManagedConfigurations (..),+ newAdministratorWebTokenSpecManagedConfigurations,++ -- ** AdministratorWebTokenSpecPlaySearch+ AdministratorWebTokenSpecPlaySearch (..),+ newAdministratorWebTokenSpecPlaySearch,++ -- ** AdministratorWebTokenSpecPrivateApps+ AdministratorWebTokenSpecPrivateApps (..),+ newAdministratorWebTokenSpecPrivateApps,++ -- ** AdministratorWebTokenSpecStoreBuilder+ AdministratorWebTokenSpecStoreBuilder (..),+ newAdministratorWebTokenSpecStoreBuilder,++ -- ** AdministratorWebTokenSpecWebApps+ AdministratorWebTokenSpecWebApps (..),+ newAdministratorWebTokenSpecWebApps,++ -- ** AdministratorWebTokenSpecZeroTouch+ AdministratorWebTokenSpecZeroTouch (..),+ newAdministratorWebTokenSpecZeroTouch,++ -- ** AppRestrictionsSchema+ AppRestrictionsSchema (..),+ newAppRestrictionsSchema,++ -- ** AppRestrictionsSchemaChangeEvent+ AppRestrictionsSchemaChangeEvent (..),+ newAppRestrictionsSchemaChangeEvent,++ -- ** AppRestrictionsSchemaRestriction+ AppRestrictionsSchemaRestriction (..),+ newAppRestrictionsSchemaRestriction,++ -- ** AppRestrictionsSchemaRestriction_RestrictionType+ AppRestrictionsSchemaRestriction_RestrictionType (..),++ -- ** AppRestrictionsSchemaRestrictionRestrictionValue+ AppRestrictionsSchemaRestrictionRestrictionValue (..),+ newAppRestrictionsSchemaRestrictionRestrictionValue,++ -- ** AppRestrictionsSchemaRestrictionRestrictionValue_Type+ AppRestrictionsSchemaRestrictionRestrictionValue_Type (..),++ -- ** AppState+ AppState (..),+ newAppState,++ -- ** AppUpdateEvent+ AppUpdateEvent (..),+ newAppUpdateEvent,++ -- ** AppVersion+ AppVersion (..),+ newAppVersion,++ -- ** AppVersion_Track+ AppVersion_Track (..),++ -- ** ApprovalUrlInfo+ ApprovalUrlInfo (..),+ newApprovalUrlInfo,++ -- ** AuthenticationToken+ AuthenticationToken (..),+ newAuthenticationToken,++ -- ** AutoInstallConstraint+ AutoInstallConstraint (..),+ newAutoInstallConstraint,++ -- ** AutoInstallConstraint_ChargingStateConstraint+ AutoInstallConstraint_ChargingStateConstraint (..),++ -- ** AutoInstallConstraint_DeviceIdleStateConstraint+ AutoInstallConstraint_DeviceIdleStateConstraint (..),++ -- ** AutoInstallConstraint_NetworkTypeConstraint+ AutoInstallConstraint_NetworkTypeConstraint (..),++ -- ** AutoInstallPolicy+ AutoInstallPolicy (..),+ newAutoInstallPolicy,++ -- ** AutoInstallPolicy_AutoInstallMode+ AutoInstallPolicy_AutoInstallMode (..),++ -- ** ConfigurationVariables+ ConfigurationVariables (..),+ newConfigurationVariables,++ -- ** Device+ Device (..),+ newDevice,++ -- ** Device_ManagementType+ Device_ManagementType (..),++ -- ** DeviceReport+ DeviceReport (..),+ newDeviceReport,++ -- ** DeviceReportUpdateEvent+ DeviceReportUpdateEvent (..),+ newDeviceReportUpdateEvent,++ -- ** DeviceState+ DeviceState (..),+ newDeviceState,++ -- ** DeviceState_AccountState+ DeviceState_AccountState (..),++ -- ** DevicesListResponse+ DevicesListResponse (..),+ newDevicesListResponse,++ -- ** EnrollmentToken+ EnrollmentToken (..),+ newEnrollmentToken,++ -- ** EnrollmentToken_EnrollmentTokenType+ EnrollmentToken_EnrollmentTokenType (..),++ -- ** Enterprise+ Enterprise (..),+ newEnterprise,++ -- ** Enterprise_EnterpriseType+ Enterprise_EnterpriseType (..),++ -- ** Enterprise_ManagedGoogleDomainType+ Enterprise_ManagedGoogleDomainType (..),++ -- ** EnterpriseAccount+ EnterpriseAccount (..),+ newEnterpriseAccount,++ -- ** EnterpriseAuthenticationAppLinkConfig+ EnterpriseAuthenticationAppLinkConfig (..),+ newEnterpriseAuthenticationAppLinkConfig,++ -- ** EnterpriseUpgradeEvent+ EnterpriseUpgradeEvent (..),+ newEnterpriseUpgradeEvent,++ -- ** EnterpriseUpgradeEvent_UpgradeState+ EnterpriseUpgradeEvent_UpgradeState (..),++ -- ** EnterprisesListResponse+ EnterprisesListResponse (..),+ newEnterprisesListResponse,++ -- ** EnterprisesSendTestPushNotificationResponse+ EnterprisesSendTestPushNotificationResponse (..),+ newEnterprisesSendTestPushNotificationResponse,++ -- ** Entitlement+ Entitlement (..),+ newEntitlement,++ -- ** Entitlement_Reason+ Entitlement_Reason (..),++ -- ** EntitlementsListResponse+ EntitlementsListResponse (..),+ newEntitlementsListResponse,++ -- ** GenerateEnterpriseUpgradeUrlResponse+ GenerateEnterpriseUpgradeUrlResponse (..),+ newGenerateEnterpriseUpgradeUrlResponse,++ -- ** GoogleAuthenticationSettings+ GoogleAuthenticationSettings (..),+ newGoogleAuthenticationSettings,++ -- ** GoogleAuthenticationSettings_DedicatedDevicesAllowed+ GoogleAuthenticationSettings_DedicatedDevicesAllowed (..),++ -- ** GoogleAuthenticationSettings_GoogleAuthenticationRequired+ GoogleAuthenticationSettings_GoogleAuthenticationRequired (..),++ -- ** GroupLicense+ GroupLicense (..),+ newGroupLicense,++ -- ** GroupLicense_AcquisitionKind+ GroupLicense_AcquisitionKind (..),++ -- ** GroupLicense_Approval+ GroupLicense_Approval (..),++ -- ** GroupLicense_Permissions+ GroupLicense_Permissions (..),++ -- ** GroupLicenseUsersListResponse+ GroupLicenseUsersListResponse (..),+ newGroupLicenseUsersListResponse,++ -- ** GroupLicensesListResponse+ GroupLicensesListResponse (..),+ newGroupLicensesListResponse,++ -- ** Install+ Install (..),+ newInstall,++ -- ** Install_InstallState+ Install_InstallState (..),++ -- ** InstallFailureEvent+ InstallFailureEvent (..),+ newInstallFailureEvent,++ -- ** InstallFailureEvent_FailureReason+ InstallFailureEvent_FailureReason (..),++ -- ** InstallsListResponse+ InstallsListResponse (..),+ newInstallsListResponse,++ -- ** KeyedAppState+ KeyedAppState (..),+ newKeyedAppState,++ -- ** KeyedAppState_Severity+ KeyedAppState_Severity (..),++ -- ** LocalizedText+ LocalizedText (..),+ newLocalizedText,++ -- ** MaintenanceWindow+ MaintenanceWindow (..),+ newMaintenanceWindow,++ -- ** ManagedConfiguration+ ManagedConfiguration (..),+ newManagedConfiguration,++ -- ** ManagedConfigurationsForDeviceListResponse+ ManagedConfigurationsForDeviceListResponse (..),+ newManagedConfigurationsForDeviceListResponse,++ -- ** ManagedConfigurationsForUserListResponse+ ManagedConfigurationsForUserListResponse (..),+ newManagedConfigurationsForUserListResponse,++ -- ** ManagedConfigurationsSettings+ ManagedConfigurationsSettings (..),+ newManagedConfigurationsSettings,++ -- ** ManagedConfigurationsSettingsListResponse+ ManagedConfigurationsSettingsListResponse (..),+ newManagedConfigurationsSettingsListResponse,++ -- ** ManagedProperty+ ManagedProperty (..),+ newManagedProperty,++ -- ** ManagedPropertyBundle+ ManagedPropertyBundle (..),+ newManagedPropertyBundle,++ -- ** NewDeviceEvent+ NewDeviceEvent (..),+ newNewDeviceEvent,++ -- ** NewDeviceEvent_ManagementType+ NewDeviceEvent_ManagementType (..),++ -- ** NewPermissionsEvent+ NewPermissionsEvent (..),+ newNewPermissionsEvent,++ -- ** Notification+ Notification (..),+ newNotification,++ -- ** Notification_NotificationType+ Notification_NotificationType (..),++ -- ** NotificationSet+ NotificationSet (..),+ newNotificationSet,++ -- ** PageInfo+ PageInfo (..),+ newPageInfo,++ -- ** Permission+ Permission (..),+ newPermission,++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** Policy_AutoUpdatePolicy+ Policy_AutoUpdatePolicy (..),++ -- ** Policy_DeviceReportPolicy+ Policy_DeviceReportPolicy (..),++ -- ** Policy_ProductAvailabilityPolicy+ Policy_ProductAvailabilityPolicy (..),++ -- ** Product+ Product (..),+ newProduct,++ -- ** Product_AvailableTracksItem+ Product_AvailableTracksItem (..),++ -- ** Product_ContentRating+ Product_ContentRating (..),++ -- ** Product_DistributionChannel+ Product_DistributionChannel (..),++ -- ** Product_FeaturesItem+ Product_FeaturesItem (..),++ -- ** Product_ProductPricing+ Product_ProductPricing (..),++ -- ** ProductApprovalEvent+ ProductApprovalEvent (..),+ newProductApprovalEvent,++ -- ** ProductApprovalEvent_Approved+ ProductApprovalEvent_Approved (..),++ -- ** ProductAvailabilityChangeEvent+ ProductAvailabilityChangeEvent (..),+ newProductAvailabilityChangeEvent,++ -- ** ProductAvailabilityChangeEvent_AvailabilityStatus+ ProductAvailabilityChangeEvent_AvailabilityStatus (..),++ -- ** ProductPermission+ ProductPermission (..),+ newProductPermission,++ -- ** ProductPermission_State+ ProductPermission_State (..),++ -- ** ProductPermissions+ ProductPermissions (..),+ newProductPermissions,++ -- ** ProductPolicy+ ProductPolicy (..),+ newProductPolicy,++ -- ** ProductPolicy_AutoUpdateMode+ ProductPolicy_AutoUpdateMode (..),++ -- ** ProductPolicy_TracksItem+ ProductPolicy_TracksItem (..),++ -- ** ProductSet+ ProductSet (..),+ newProductSet,++ -- ** ProductSet_ProductSetBehavior+ ProductSet_ProductSetBehavior (..),++ -- ** ProductSigningCertificate+ ProductSigningCertificate (..),+ newProductSigningCertificate,++ -- ** ProductVisibility+ ProductVisibility (..),+ newProductVisibility,++ -- ** ProductVisibility_TracksItem+ ProductVisibility_TracksItem (..),++ -- ** ProductsApproveRequest+ ProductsApproveRequest (..),+ newProductsApproveRequest,++ -- ** ProductsApproveRequest_ApprovedPermissions+ ProductsApproveRequest_ApprovedPermissions (..),++ -- ** ProductsGenerateApprovalUrlResponse+ ProductsGenerateApprovalUrlResponse (..),+ newProductsGenerateApprovalUrlResponse,++ -- ** ProductsListResponse+ ProductsListResponse (..),+ newProductsListResponse,++ -- ** ServiceAccount+ ServiceAccount (..),+ newServiceAccount,++ -- ** ServiceAccountKey+ ServiceAccountKey (..),+ newServiceAccountKey,++ -- ** ServiceAccountKey_Type+ ServiceAccountKey_Type (..),++ -- ** ServiceAccountKeysListResponse+ ServiceAccountKeysListResponse (..),+ newServiceAccountKeysListResponse,++ -- ** SignupInfo+ SignupInfo (..),+ newSignupInfo,++ -- ** StoreCluster+ StoreCluster (..),+ newStoreCluster,++ -- ** StoreLayout+ StoreLayout (..),+ newStoreLayout,++ -- ** StoreLayout_StoreLayoutType+ StoreLayout_StoreLayoutType (..),++ -- ** StoreLayoutClustersListResponse+ StoreLayoutClustersListResponse (..),+ newStoreLayoutClustersListResponse,++ -- ** StoreLayoutPagesListResponse+ StoreLayoutPagesListResponse (..),+ newStoreLayoutPagesListResponse,++ -- ** StorePage+ StorePage (..),+ newStorePage,++ -- ** TokenPagination+ TokenPagination (..),+ newTokenPagination,++ -- ** TrackInfo+ TrackInfo (..),+ newTrackInfo,++ -- ** User+ User (..),+ newUser,++ -- ** User_AccountType+ User_AccountType (..),++ -- ** User_ManagementType+ User_ManagementType (..),++ -- ** UsersListResponse+ UsersListResponse (..),+ newUsersListResponse,++ -- ** VariableSet+ VariableSet (..),+ newVariableSet,++ -- ** WebApp+ WebApp (..),+ newWebApp,++ -- ** WebApp_DisplayMode+ WebApp_DisplayMode (..),++ -- ** WebAppIcon+ WebAppIcon (..),+ newWebAppIcon,++ -- ** WebAppsListResponse+ WebAppsListResponse (..),+ newWebAppsListResponse,++ -- ** EnterprisesGetServiceAccountKeyType+ EnterprisesGetServiceAccountKeyType (..),++ -- ** EnterprisesPullNotificationSetRequestMode+ EnterprisesPullNotificationSetRequestMode (..),+ )+where++import Gogol.AndroidEnterprise.Internal.Product+import Gogol.AndroidEnterprise.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Default request referring to version @v1@ of the Google Play EMM API. This contains the host and root path used as a starting point for constructing service requests.+androidEnterpriseService :: Core.ServiceConfig+androidEnterpriseService =+ Core.defaultService+ (Core.ServiceId "androidenterprise:v1")+ "androidenterprise.googleapis.com"++-- | Manage corporate Android devices+type Androidenterprise'FullControl =+ "https://www.googleapis.com/auth/androidenterprise"
+ gen/Gogol/AndroidEnterprise/Users/Delete.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deleted an EMM-managed user.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.delete@.+module Gogol.AndroidEnterprise.Users.Delete+ ( -- * Resource+ AndroidEnterpriseUsersDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersDelete (..),+ newAndroidEnterpriseUsersDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.delete@ method which the+-- 'AndroidEnterpriseUsersDelete' request conforms to.+type AndroidEnterpriseUsersDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Deleted an EMM-managed user.+--+-- /See:/ 'newAndroidEnterpriseUsersDelete' smart constructor.+data AndroidEnterpriseUsersDelete = AndroidEnterpriseUsersDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersDelete' with the minimum fields required to make a request.+newAndroidEnterpriseUsersDelete ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseUsersDelete+newAndroidEnterpriseUsersDelete enterpriseId userId =+ AndroidEnterpriseUsersDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseUsersDelete where+ type Rs AndroidEnterpriseUsersDelete = ()+ type+ Scopes AndroidEnterpriseUsersDelete =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersDelete {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseUsersDeleteResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/GenerateAuthenticationToken.hs view
@@ -0,0 +1,131 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.GenerateAuthenticationToken+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes. You can provision a maximum of 10 devices per user. This call only works with EMM-managed accounts.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateAuthenticationToken@.+module Gogol.AndroidEnterprise.Users.GenerateAuthenticationToken+ ( -- * Resource+ AndroidEnterpriseUsersGenerateAuthenticationTokenResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersGenerateAuthenticationToken (..),+ newAndroidEnterpriseUsersGenerateAuthenticationToken,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.generateAuthenticationToken@ method which the+-- 'AndroidEnterpriseUsersGenerateAuthenticationToken' request conforms to.+type AndroidEnterpriseUsersGenerateAuthenticationTokenResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "authenticationToken"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Post '[Core.JSON] AuthenticationToken++-- | Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes. You can provision a maximum of 10 devices per user. This call only works with EMM-managed accounts.+--+-- /See:/ 'newAndroidEnterpriseUsersGenerateAuthenticationToken' smart constructor.+data AndroidEnterpriseUsersGenerateAuthenticationToken = AndroidEnterpriseUsersGenerateAuthenticationToken+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersGenerateAuthenticationToken' with the minimum fields required to make a request.+newAndroidEnterpriseUsersGenerateAuthenticationToken ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseUsersGenerateAuthenticationToken+newAndroidEnterpriseUsersGenerateAuthenticationToken+ enterpriseId+ userId =+ AndroidEnterpriseUsersGenerateAuthenticationToken+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseUsersGenerateAuthenticationToken+ where+ type+ Rs AndroidEnterpriseUsersGenerateAuthenticationToken =+ AuthenticationToken+ type+ Scopes AndroidEnterpriseUsersGenerateAuthenticationToken =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersGenerateAuthenticationToken {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidEnterpriseUsersGenerateAuthenticationTokenResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/Get.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves a user\'s details.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.get@.+module Gogol.AndroidEnterprise.Users.Get+ ( -- * Resource+ AndroidEnterpriseUsersGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersGet (..),+ newAndroidEnterpriseUsersGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.get@ method which the+-- 'AndroidEnterpriseUsersGet' request conforms to.+type AndroidEnterpriseUsersGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] User++-- | Retrieves a user\'s details.+--+-- /See:/ 'newAndroidEnterpriseUsersGet' smart constructor.+data AndroidEnterpriseUsersGet = AndroidEnterpriseUsersGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersGet' with the minimum fields required to make a request.+newAndroidEnterpriseUsersGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseUsersGet+newAndroidEnterpriseUsersGet enterpriseId userId =+ AndroidEnterpriseUsersGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseUsersGet where+ type Rs AndroidEnterpriseUsersGet = User+ type+ Scopes AndroidEnterpriseUsersGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersGet {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseUsersGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/GetAvailableProductSet.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.GetAvailableProductSet+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the set of products a user is entitled to access. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.getAvailableProductSet@.+module Gogol.AndroidEnterprise.Users.GetAvailableProductSet+ ( -- * Resource+ AndroidEnterpriseUsersGetAvailableProductSetResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersGetAvailableProductSet (..),+ newAndroidEnterpriseUsersGetAvailableProductSet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.getAvailableProductSet@ method which the+-- 'AndroidEnterpriseUsersGetAvailableProductSet' request conforms to.+type AndroidEnterpriseUsersGetAvailableProductSetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "availableProductSet"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ProductSet++-- | Retrieves the set of products a user is entitled to access. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseUsersGetAvailableProductSet' smart constructor.+data AndroidEnterpriseUsersGetAvailableProductSet = AndroidEnterpriseUsersGetAvailableProductSet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersGetAvailableProductSet' with the minimum fields required to make a request.+newAndroidEnterpriseUsersGetAvailableProductSet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseUsersGetAvailableProductSet+newAndroidEnterpriseUsersGetAvailableProductSet enterpriseId userId =+ AndroidEnterpriseUsersGetAvailableProductSet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseUsersGetAvailableProductSet+ where+ type Rs AndroidEnterpriseUsersGetAvailableProductSet = ProductSet+ type+ Scopes AndroidEnterpriseUsersGetAvailableProductSet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersGetAvailableProductSet {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseUsersGetAvailableProductSetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/Insert.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.Insert+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new EMM-managed user. The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.insert@.+module Gogol.AndroidEnterprise.Users.Insert+ ( -- * Resource+ AndroidEnterpriseUsersInsertResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersInsert (..),+ newAndroidEnterpriseUsersInsert,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.insert@ method which the+-- 'AndroidEnterpriseUsersInsert' request conforms to.+type AndroidEnterpriseUsersInsertResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] User+ Core.:> Core.Post '[Core.JSON] User++-- | Creates a new EMM-managed user. The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.+--+-- /See:/ 'newAndroidEnterpriseUsersInsert' smart constructor.+data AndroidEnterpriseUsersInsert = AndroidEnterpriseUsersInsert+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: User,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersInsert' with the minimum fields required to make a request.+newAndroidEnterpriseUsersInsert ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ User ->+ AndroidEnterpriseUsersInsert+newAndroidEnterpriseUsersInsert enterpriseId payload =+ AndroidEnterpriseUsersInsert+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseUsersInsert where+ type Rs AndroidEnterpriseUsersInsert = User+ type+ Scopes AndroidEnterpriseUsersInsert =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersInsert {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseUsersInsertResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/List.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Looks up a user by primary email address. This is only supported for Google-managed users. Lookup of the id is not needed for EMM-managed users because the id is already returned in the result of the Users.insert call.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.list@.+module Gogol.AndroidEnterprise.Users.List+ ( -- * Resource+ AndroidEnterpriseUsersListResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersList (..),+ newAndroidEnterpriseUsersList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.list@ method which the+-- 'AndroidEnterpriseUsersList' request conforms to.+type AndroidEnterpriseUsersListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.QueryParam "email" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] UsersListResponse++-- | Looks up a user by primary email address. This is only supported for Google-managed users. Lookup of the id is not needed for EMM-managed users because the id is already returned in the result of the Users.insert call.+--+-- /See:/ 'newAndroidEnterpriseUsersList' smart constructor.+data AndroidEnterpriseUsersList = AndroidEnterpriseUsersList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The exact primary email address of the user to look up.+ email :: Core.Text,+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersList' with the minimum fields required to make a request.+newAndroidEnterpriseUsersList ::+ -- | Required. The exact primary email address of the user to look up. See 'email'.+ Core.Text ->+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseUsersList+newAndroidEnterpriseUsersList email enterpriseId =+ AndroidEnterpriseUsersList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ email = email,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseUsersList where+ type Rs AndroidEnterpriseUsersList = UsersListResponse+ type+ Scopes AndroidEnterpriseUsersList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersList {..} =+ go+ enterpriseId+ (Core.Just email)+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseUsersListResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/RevokeDeviceAccess.hs view
@@ -0,0 +1,125 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.RevokeDeviceAccess+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Revokes access to all devices currently provisioned to the user. The user will no longer be able to use the managed Play store on any of their managed devices. This call only works with EMM-managed accounts.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.revokeDeviceAccess@.+module Gogol.AndroidEnterprise.Users.RevokeDeviceAccess+ ( -- * Resource+ AndroidEnterpriseUsersRevokeDeviceAccessResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersRevokeDeviceAccess (..),+ newAndroidEnterpriseUsersRevokeDeviceAccess,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.revokeDeviceAccess@ method which the+-- 'AndroidEnterpriseUsersRevokeDeviceAccess' request conforms to.+type AndroidEnterpriseUsersRevokeDeviceAccessResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "deviceAccess"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Revokes access to all devices currently provisioned to the user. The user will no longer be able to use the managed Play store on any of their managed devices. This call only works with EMM-managed accounts.+--+-- /See:/ 'newAndroidEnterpriseUsersRevokeDeviceAccess' smart constructor.+data AndroidEnterpriseUsersRevokeDeviceAccess = AndroidEnterpriseUsersRevokeDeviceAccess+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersRevokeDeviceAccess' with the minimum fields required to make a request.+newAndroidEnterpriseUsersRevokeDeviceAccess ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseUsersRevokeDeviceAccess+newAndroidEnterpriseUsersRevokeDeviceAccess enterpriseId userId =+ AndroidEnterpriseUsersRevokeDeviceAccess+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseUsersRevokeDeviceAccess+ where+ type Rs AndroidEnterpriseUsersRevokeDeviceAccess = ()+ type+ Scopes AndroidEnterpriseUsersRevokeDeviceAccess =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersRevokeDeviceAccess {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseUsersRevokeDeviceAccessResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/SetAvailableProductSet.hs view
@@ -0,0 +1,136 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.SetAvailableProductSet+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Modifies the set of products that a user is entitled to access (referred to as /whitelisted/ products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.setAvailableProductSet@.+module Gogol.AndroidEnterprise.Users.SetAvailableProductSet+ ( -- * Resource+ AndroidEnterpriseUsersSetAvailableProductSetResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersSetAvailableProductSet (..),+ newAndroidEnterpriseUsersSetAvailableProductSet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.setAvailableProductSet@ method which the+-- 'AndroidEnterpriseUsersSetAvailableProductSet' request conforms to.+type AndroidEnterpriseUsersSetAvailableProductSetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> "availableProductSet"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] ProductSet+ Core.:> Core.Put '[Core.JSON] ProductSet++-- | Modifies the set of products that a user is entitled to access (referred to as /whitelisted/ products). Only products that are approved or products that were previously approved (products with revoked approval) can be whitelisted. __Note:__ This item has been deprecated. New integrations cannot use this method and can refer to our new recommendations.+--+-- /See:/ 'newAndroidEnterpriseUsersSetAvailableProductSet' smart constructor.+data AndroidEnterpriseUsersSetAvailableProductSet = AndroidEnterpriseUsersSetAvailableProductSet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: ProductSet,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersSetAvailableProductSet' with the minimum fields required to make a request.+newAndroidEnterpriseUsersSetAvailableProductSet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ ProductSet ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseUsersSetAvailableProductSet+newAndroidEnterpriseUsersSetAvailableProductSet+ enterpriseId+ payload+ userId =+ AndroidEnterpriseUsersSetAvailableProductSet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance+ Core.GoogleRequest+ AndroidEnterpriseUsersSetAvailableProductSet+ where+ type Rs AndroidEnterpriseUsersSetAvailableProductSet = ProductSet+ type+ Scopes AndroidEnterpriseUsersSetAvailableProductSet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersSetAvailableProductSet {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidEnterpriseUsersSetAvailableProductSetResource+ )+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Users/Update.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Users.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.update@.+module Gogol.AndroidEnterprise.Users.Update+ ( -- * Resource+ AndroidEnterpriseUsersUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseUsersUpdate (..),+ newAndroidEnterpriseUsersUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.users.update@ method which the+-- 'AndroidEnterpriseUsersUpdate' request conforms to.+type AndroidEnterpriseUsersUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "users"+ Core.:> Core.Capture "userId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] User+ Core.:> Core.Put '[Core.JSON] User++-- | Updates the details of an EMM-managed user. Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.+--+-- /See:/ 'newAndroidEnterpriseUsersUpdate' smart constructor.+data AndroidEnterpriseUsersUpdate = AndroidEnterpriseUsersUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: User,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the user.+ userId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseUsersUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseUsersUpdate ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ User ->+ -- | The ID of the user. See 'userId'.+ Core.Text ->+ AndroidEnterpriseUsersUpdate+newAndroidEnterpriseUsersUpdate enterpriseId payload userId =+ AndroidEnterpriseUsersUpdate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ userId = userId+ }++instance Core.GoogleRequest AndroidEnterpriseUsersUpdate where+ type Rs AndroidEnterpriseUsersUpdate = User+ type+ Scopes AndroidEnterpriseUsersUpdate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseUsersUpdate {..} =+ go+ enterpriseId+ userId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseUsersUpdateResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Webapps/Delete.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Webapps.Delete+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Deletes an existing web app.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.delete@.+module Gogol.AndroidEnterprise.Webapps.Delete+ ( -- * Resource+ AndroidEnterpriseWebappsDeleteResource,++ -- ** Constructing a Request+ AndroidEnterpriseWebappsDelete (..),+ newAndroidEnterpriseWebappsDelete,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.webapps.delete@ method which the+-- 'AndroidEnterpriseWebappsDelete' request conforms to.+type AndroidEnterpriseWebappsDeleteResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "webApps"+ Core.:> Core.Capture "webAppId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] ()++-- | Deletes an existing web app.+--+-- /See:/ 'newAndroidEnterpriseWebappsDelete' smart constructor.+data AndroidEnterpriseWebappsDelete = AndroidEnterpriseWebappsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the web app.+ webAppId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseWebappsDelete' with the minimum fields required to make a request.+newAndroidEnterpriseWebappsDelete ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the web app. See 'webAppId'.+ Core.Text ->+ AndroidEnterpriseWebappsDelete+newAndroidEnterpriseWebappsDelete enterpriseId webAppId =+ AndroidEnterpriseWebappsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ webAppId = webAppId+ }++instance Core.GoogleRequest AndroidEnterpriseWebappsDelete where+ type Rs AndroidEnterpriseWebappsDelete = ()+ type+ Scopes AndroidEnterpriseWebappsDelete =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseWebappsDelete {..} =+ go+ enterpriseId+ webAppId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseWebappsDeleteResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Webapps/Get.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Webapps.Get+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Gets an existing web app.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.get@.+module Gogol.AndroidEnterprise.Webapps.Get+ ( -- * Resource+ AndroidEnterpriseWebappsGetResource,++ -- ** Constructing a Request+ AndroidEnterpriseWebappsGet (..),+ newAndroidEnterpriseWebappsGet,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.webapps.get@ method which the+-- 'AndroidEnterpriseWebappsGet' request conforms to.+type AndroidEnterpriseWebappsGetResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "webApps"+ Core.:> Core.Capture "webAppId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] WebApp++-- | Gets an existing web app.+--+-- /See:/ 'newAndroidEnterpriseWebappsGet' smart constructor.+data AndroidEnterpriseWebappsGet = AndroidEnterpriseWebappsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the web app.+ webAppId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseWebappsGet' with the minimum fields required to make a request.+newAndroidEnterpriseWebappsGet ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | The ID of the web app. See 'webAppId'.+ Core.Text ->+ AndroidEnterpriseWebappsGet+newAndroidEnterpriseWebappsGet enterpriseId webAppId =+ AndroidEnterpriseWebappsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ webAppId = webAppId+ }++instance Core.GoogleRequest AndroidEnterpriseWebappsGet where+ type Rs AndroidEnterpriseWebappsGet = WebApp+ type+ Scopes AndroidEnterpriseWebappsGet =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseWebappsGet {..} =+ go+ enterpriseId+ webAppId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseWebappsGetResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Webapps/Insert.hs view
@@ -0,0 +1,119 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Webapps.Insert+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Creates a new web app for the enterprise.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.insert@.+module Gogol.AndroidEnterprise.Webapps.Insert+ ( -- * Resource+ AndroidEnterpriseWebappsInsertResource,++ -- ** Constructing a Request+ AndroidEnterpriseWebappsInsert (..),+ newAndroidEnterpriseWebappsInsert,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.webapps.insert@ method which the+-- 'AndroidEnterpriseWebappsInsert' request conforms to.+type AndroidEnterpriseWebappsInsertResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "webApps"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] WebApp+ Core.:> Core.Post '[Core.JSON] WebApp++-- | Creates a new web app for the enterprise.+--+-- /See:/ 'newAndroidEnterpriseWebappsInsert' smart constructor.+data AndroidEnterpriseWebappsInsert = AndroidEnterpriseWebappsInsert+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: WebApp,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseWebappsInsert' with the minimum fields required to make a request.+newAndroidEnterpriseWebappsInsert ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ WebApp ->+ AndroidEnterpriseWebappsInsert+newAndroidEnterpriseWebappsInsert enterpriseId payload =+ AndroidEnterpriseWebappsInsert+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseWebappsInsert where+ type Rs AndroidEnterpriseWebappsInsert = WebApp+ type+ Scopes AndroidEnterpriseWebappsInsert =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseWebappsInsert {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseWebappsInsertResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Webapps/List.hs view
@@ -0,0 +1,112 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Webapps.List+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Retrieves the details of all web apps for a given enterprise.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.list@.+module Gogol.AndroidEnterprise.Webapps.List+ ( -- * Resource+ AndroidEnterpriseWebappsListResource,++ -- ** Constructing a Request+ AndroidEnterpriseWebappsList (..),+ newAndroidEnterpriseWebappsList,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.webapps.list@ method which the+-- 'AndroidEnterpriseWebappsList' request conforms to.+type AndroidEnterpriseWebappsListResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "webApps"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] WebAppsListResponse++-- | Retrieves the details of all web apps for a given enterprise.+--+-- /See:/ 'newAndroidEnterpriseWebappsList' smart constructor.+data AndroidEnterpriseWebappsList = AndroidEnterpriseWebappsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseWebappsList' with the minimum fields required to make a request.+newAndroidEnterpriseWebappsList ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ AndroidEnterpriseWebappsList+newAndroidEnterpriseWebappsList enterpriseId =+ AndroidEnterpriseWebappsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidEnterpriseWebappsList where+ type Rs AndroidEnterpriseWebappsList = WebAppsListResponse+ type+ Scopes AndroidEnterpriseWebappsList =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseWebappsList {..} =+ go+ enterpriseId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseWebappsListResource)+ Core.mempty
+ gen/Gogol/AndroidEnterprise/Webapps/Update.hs view
@@ -0,0 +1,126 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE DerivingStrategies #-}+{-# LANGUAGE DuplicateRecordFields #-}+{-# LANGUAGE ImportQualifiedPost #-}+{-# LANGUAGE LambdaCase #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE PatternSynonyms #-}+{-# LANGUAGE RecordWildCards #-}+{-# LANGUAGE StrictData #-}+{-# LANGUAGE TypeFamilies #-}+{-# LANGUAGE NoImplicitPrelude #-}+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}+{-# OPTIONS_GHC -fno-warn-name-shadowing #-}+{-# OPTIONS_GHC -fno-warn-unused-binds #-}+{-# OPTIONS_GHC -fno-warn-unused-imports #-}+{-# OPTIONS_GHC -fno-warn-unused-matches #-}++-- |+-- Module : Gogol.AndroidEnterprise.Webapps.Update+-- Copyright : (c) 2015-2025 Brendan Hay+-- License : Mozilla Public License, v. 2.0.+-- Maintainer : Brendan Hay <brendan.g.hay+gogol@gmail.com>+-- Toni Cebrián <toni@tonicebrian.com>+-- Stability : auto-generated+-- Portability : non-portable (GHC extensions)+--+-- Updates an existing web app.+--+-- /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.update@.+module Gogol.AndroidEnterprise.Webapps.Update+ ( -- * Resource+ AndroidEnterpriseWebappsUpdateResource,++ -- ** Constructing a Request+ AndroidEnterpriseWebappsUpdate (..),+ newAndroidEnterpriseWebappsUpdate,+ )+where++import Gogol.AndroidEnterprise.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidenterprise.webapps.update@ method which the+-- 'AndroidEnterpriseWebappsUpdate' request conforms to.+type AndroidEnterpriseWebappsUpdateResource =+ "androidenterprise"+ Core.:> "v1"+ Core.:> "enterprises"+ Core.:> Core.Capture "enterpriseId" Core.Text+ Core.:> "webApps"+ Core.:> Core.Capture "webAppId" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] WebApp+ Core.:> Core.Put '[Core.JSON] WebApp++-- | Updates an existing web app.+--+-- /See:/ 'newAndroidEnterpriseWebappsUpdate' smart constructor.+data AndroidEnterpriseWebappsUpdate = AndroidEnterpriseWebappsUpdate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The ID of the enterprise.+ enterpriseId :: Core.Text,+ -- | Multipart request metadata.+ payload :: WebApp,+ -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").+ uploadType :: (Core.Maybe Core.Text),+ -- | Upload protocol for media (e.g. \"raw\", \"multipart\").+ uploadProtocol :: (Core.Maybe Core.Text),+ -- | The ID of the web app.+ webAppId :: Core.Text+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidEnterpriseWebappsUpdate' with the minimum fields required to make a request.+newAndroidEnterpriseWebappsUpdate ::+ -- | The ID of the enterprise. See 'enterpriseId'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ WebApp ->+ -- | The ID of the web app. See 'webAppId'.+ Core.Text ->+ AndroidEnterpriseWebappsUpdate+newAndroidEnterpriseWebappsUpdate enterpriseId payload webAppId =+ AndroidEnterpriseWebappsUpdate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ enterpriseId = enterpriseId,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ webAppId = webAppId+ }++instance Core.GoogleRequest AndroidEnterpriseWebappsUpdate where+ type Rs AndroidEnterpriseWebappsUpdate = WebApp+ type+ Scopes AndroidEnterpriseWebappsUpdate =+ '[Androidenterprise'FullControl]+ requestClient AndroidEnterpriseWebappsUpdate {..} =+ go+ enterpriseId+ webAppId+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidEnterpriseService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidEnterpriseWebappsUpdateResource)+ Core.mempty
− gen/Network/Google/AndroidEnterprise.hs
@@ -1,1062 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- |--- Module : Network.Google.AndroidEnterprise--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Manages the deployment of apps to Android for Work users.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference>-module Network.Google.AndroidEnterprise- (- -- * Service Configuration- androidEnterpriseService-- -- * OAuth Scopes- , androidEnterpriseScope-- -- * API Declaration- , AndroidEnterpriseAPI-- -- * Resources-- -- ** androidenterprise.devices.get- , module Network.Google.Resource.AndroidEnterprise.Devices.Get-- -- ** androidenterprise.devices.getState- , module Network.Google.Resource.AndroidEnterprise.Devices.GetState-- -- ** androidenterprise.devices.list- , module Network.Google.Resource.AndroidEnterprise.Devices.List-- -- ** androidenterprise.devices.patch- , module Network.Google.Resource.AndroidEnterprise.Devices.Patch-- -- ** androidenterprise.devices.setState- , module Network.Google.Resource.AndroidEnterprise.Devices.SetState-- -- ** androidenterprise.devices.update- , module Network.Google.Resource.AndroidEnterprise.Devices.Update-- -- ** androidenterprise.enterprises.acknowledgeNotificationSet- , module Network.Google.Resource.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet-- -- ** androidenterprise.enterprises.completeSignup- , module Network.Google.Resource.AndroidEnterprise.Enterprises.CompleteSignup-- -- ** androidenterprise.enterprises.createWebToken- , module Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken-- -- ** androidenterprise.enterprises.enroll- , module Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll-- -- ** androidenterprise.enterprises.generateSignupUrl- , module Network.Google.Resource.AndroidEnterprise.Enterprises.GenerateSignupURL-- -- ** androidenterprise.enterprises.get- , module Network.Google.Resource.AndroidEnterprise.Enterprises.Get-- -- ** androidenterprise.enterprises.getServiceAccount- , module Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount-- -- ** androidenterprise.enterprises.getStoreLayout- , module Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout-- -- ** androidenterprise.enterprises.list- , module Network.Google.Resource.AndroidEnterprise.Enterprises.List-- -- ** androidenterprise.enterprises.pullNotificationSet- , module Network.Google.Resource.AndroidEnterprise.Enterprises.PullNotificationSet-- -- ** androidenterprise.enterprises.sendTestPushNotification- , module Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification-- -- ** androidenterprise.enterprises.setAccount- , module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount-- -- ** androidenterprise.enterprises.setStoreLayout- , module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout-- -- ** androidenterprise.enterprises.unenroll- , module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll-- -- ** androidenterprise.entitlements.delete- , module Network.Google.Resource.AndroidEnterprise.Entitlements.Delete-- -- ** androidenterprise.entitlements.get- , module Network.Google.Resource.AndroidEnterprise.Entitlements.Get-- -- ** androidenterprise.entitlements.list- , module Network.Google.Resource.AndroidEnterprise.Entitlements.List-- -- ** androidenterprise.entitlements.patch- , module Network.Google.Resource.AndroidEnterprise.Entitlements.Patch-- -- ** androidenterprise.entitlements.update- , module Network.Google.Resource.AndroidEnterprise.Entitlements.Update-- -- ** androidenterprise.grouplicenses.get- , module Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get-- -- ** androidenterprise.grouplicenses.list- , module Network.Google.Resource.AndroidEnterprise.Grouplicenses.List-- -- ** androidenterprise.grouplicenseusers.list- , module Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List-- -- ** androidenterprise.installs.delete- , module Network.Google.Resource.AndroidEnterprise.Installs.Delete-- -- ** androidenterprise.installs.get- , module Network.Google.Resource.AndroidEnterprise.Installs.Get-- -- ** androidenterprise.installs.list- , module Network.Google.Resource.AndroidEnterprise.Installs.List-- -- ** androidenterprise.installs.patch- , module Network.Google.Resource.AndroidEnterprise.Installs.Patch-- -- ** androidenterprise.installs.update- , module Network.Google.Resource.AndroidEnterprise.Installs.Update-- -- ** androidenterprise.managedconfigurationsfordevice.delete- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Delete-- -- ** androidenterprise.managedconfigurationsfordevice.get- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Get-- -- ** androidenterprise.managedconfigurationsfordevice.list- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.List-- -- ** androidenterprise.managedconfigurationsfordevice.patch- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Patch-- -- ** androidenterprise.managedconfigurationsfordevice.update- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Update-- -- ** androidenterprise.managedconfigurationsforuser.delete- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Delete-- -- ** androidenterprise.managedconfigurationsforuser.get- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Get-- -- ** androidenterprise.managedconfigurationsforuser.list- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.List-- -- ** androidenterprise.managedconfigurationsforuser.patch- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Patch-- -- ** androidenterprise.managedconfigurationsforuser.update- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Update-- -- ** androidenterprise.managedconfigurationssettings.list- , module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationssettings.List-- -- ** androidenterprise.permissions.get- , module Network.Google.Resource.AndroidEnterprise.Permissions.Get-- -- ** androidenterprise.products.approve- , module Network.Google.Resource.AndroidEnterprise.Products.Approve-- -- ** androidenterprise.products.generateApprovalUrl- , module Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL-- -- ** androidenterprise.products.get- , module Network.Google.Resource.AndroidEnterprise.Products.Get-- -- ** androidenterprise.products.getAppRestrictionsSchema- , module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema-- -- ** androidenterprise.products.getPermissions- , module Network.Google.Resource.AndroidEnterprise.Products.GetPermissions-- -- ** androidenterprise.products.list- , module Network.Google.Resource.AndroidEnterprise.Products.List-- -- ** androidenterprise.products.unapprove- , module Network.Google.Resource.AndroidEnterprise.Products.UnApprove-- -- ** androidenterprise.serviceaccountkeys.delete- , module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete-- -- ** androidenterprise.serviceaccountkeys.insert- , module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert-- -- ** androidenterprise.serviceaccountkeys.list- , module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List-- -- ** androidenterprise.storelayoutclusters.delete- , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete-- -- ** androidenterprise.storelayoutclusters.get- , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get-- -- ** androidenterprise.storelayoutclusters.insert- , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert-- -- ** androidenterprise.storelayoutclusters.list- , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List-- -- ** androidenterprise.storelayoutclusters.patch- , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch-- -- ** androidenterprise.storelayoutclusters.update- , module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update-- -- ** androidenterprise.storelayoutpages.delete- , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete-- -- ** androidenterprise.storelayoutpages.get- , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get-- -- ** androidenterprise.storelayoutpages.insert- , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert-- -- ** androidenterprise.storelayoutpages.list- , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List-- -- ** androidenterprise.storelayoutpages.patch- , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch-- -- ** androidenterprise.storelayoutpages.update- , module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update-- -- ** androidenterprise.users.delete- , module Network.Google.Resource.AndroidEnterprise.Users.Delete-- -- ** androidenterprise.users.generateAuthenticationToken- , module Network.Google.Resource.AndroidEnterprise.Users.GenerateAuthenticationToken-- -- ** androidenterprise.users.generateToken- , module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken-- -- ** androidenterprise.users.get- , module Network.Google.Resource.AndroidEnterprise.Users.Get-- -- ** androidenterprise.users.getAvailableProductSet- , module Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet-- -- ** androidenterprise.users.insert- , module Network.Google.Resource.AndroidEnterprise.Users.Insert-- -- ** androidenterprise.users.list- , module Network.Google.Resource.AndroidEnterprise.Users.List-- -- ** androidenterprise.users.patch- , module Network.Google.Resource.AndroidEnterprise.Users.Patch-- -- ** androidenterprise.users.revokeDeviceAccess- , module Network.Google.Resource.AndroidEnterprise.Users.RevokeDeviceAccess-- -- ** androidenterprise.users.revokeToken- , module Network.Google.Resource.AndroidEnterprise.Users.RevokeToken-- -- ** androidenterprise.users.setAvailableProductSet- , module Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet-- -- ** androidenterprise.users.update- , module Network.Google.Resource.AndroidEnterprise.Users.Update-- -- ** androidenterprise.webapps.delete- , module Network.Google.Resource.AndroidEnterprise.WebApps.Delete-- -- ** androidenterprise.webapps.get- , module Network.Google.Resource.AndroidEnterprise.WebApps.Get-- -- ** androidenterprise.webapps.insert- , module Network.Google.Resource.AndroidEnterprise.WebApps.Insert-- -- ** androidenterprise.webapps.list- , module Network.Google.Resource.AndroidEnterprise.WebApps.List-- -- ** androidenterprise.webapps.patch- , module Network.Google.Resource.AndroidEnterprise.WebApps.Patch-- -- ** androidenterprise.webapps.update- , module Network.Google.Resource.AndroidEnterprise.WebApps.Update-- -- * Types-- -- ** GroupLicense- , GroupLicense- , groupLicense- , glKind- , glNumProvisioned- , glNumPurchased- , glApproval- , glPermissions- , glProductId- , glAcquisitionKind-- -- ** StoreLayoutPagesListResponse- , StoreLayoutPagesListResponse- , storeLayoutPagesListResponse- , slplrKind- , slplrPage-- -- ** EnterpriseAccount- , EnterpriseAccount- , enterpriseAccount- , eaKind- , eaAccountEmail-- -- ** AppRestrictionsSchemaRestrictionRestrictionValue- , AppRestrictionsSchemaRestrictionRestrictionValue- , appRestrictionsSchemaRestrictionRestrictionValue- , arsrrvValueMultiselect- , arsrrvValueBool- , arsrrvValueInteger- , arsrrvType- , arsrrvValueString-- -- ** AdministratorWebTokenSpecPlaySearch- , AdministratorWebTokenSpecPlaySearch- , administratorWebTokenSpecPlaySearch- , awtspsEnabled- , awtspsApproveApps-- -- ** DeviceState- , DeviceState- , deviceState- , dsKind- , dsAccountState-- -- ** GroupLicenseUsersListResponse- , GroupLicenseUsersListResponse- , groupLicenseUsersListResponse- , glulrKind- , glulrUser-- -- ** TokenPagination- , TokenPagination- , tokenPagination- , tpNextPageToken- , tpPreviousPageToken-- -- ** AdministratorWebTokenSpecWebApps- , AdministratorWebTokenSpecWebApps- , administratorWebTokenSpecWebApps- , awtswaEnabled-- -- ** ApprovalURLInfo- , ApprovalURLInfo- , approvalURLInfo- , auiApprovalURL- , auiKind-- -- ** ManagedConfigurationsSettingsListResponse- , ManagedConfigurationsSettingsListResponse- , managedConfigurationsSettingsListResponse- , mcslrKind- , mcslrManagedConfigurationsSettings-- -- ** ManagedProperty- , ManagedProperty- , managedProperty- , mpValueStringArray- , mpValueBool- , mpKey- , mpValueBundle- , mpValueInteger- , mpValueBundleArray- , mpValueString-- -- ** StoreLayoutClustersListResponse- , StoreLayoutClustersListResponse- , storeLayoutClustersListResponse- , slclrCluster- , slclrKind-- -- ** ManagedConfiguration- , ManagedConfiguration- , managedConfiguration- , mcManagedProperty- , mcKind- , mcConfigurationVariables- , mcProductId-- -- ** StoreCluster- , StoreCluster- , storeCluster- , scKind- , scName- , scOrderInPage- , scId- , scProductId-- -- ** AdministratorWebTokenSpec- , AdministratorWebTokenSpec- , administratorWebTokenSpec- , awtsParent- , awtsPrivateApps- , awtsPlaySearch- , awtsKind- , awtsWebApps- , awtsPermission- , awtsStoreBuilder- , awtsManagedConfigurations-- -- ** ProductVisibility- , ProductVisibility- , productVisibility- , pvTracks- , pvTrackIds- , pvProductId-- -- ** Notification- , Notification- , notification- , nEnterpriseId- , nNewPermissionsEvent- , nProductApprovalEvent- , nProductAvailabilityChangeEvent- , nAppUpdateEvent- , nInstallFailureEvent- , nNotificationType- , nAppRestrictionsSchemaChangeEvent- , nNewDeviceEvent- , nTimestampMillis-- -- ** PageInfo- , PageInfo- , pageInfo- , piResultPerPage- , piTotalResults- , piStartIndex-- -- ** ProductPermission- , ProductPermission- , productPermission- , ppState- , ppPermissionId-- -- ** NewPermissionsEvent- , NewPermissionsEvent- , newPermissionsEvent- , npeRequestedPermissions- , npeApprovedPermissions- , npeProductId-- -- ** ProductAvailabilityChangeEvent- , ProductAvailabilityChangeEvent- , productAvailabilityChangeEvent- , paceAvailabilityStatus- , paceProductId-- -- ** ProductApprovalEvent- , ProductApprovalEvent- , productApprovalEvent- , paeApproved- , paeProductId-- -- ** Device- , Device- , device- , dKind- , dPolicy- , dManagementType- , dAndroidId-- -- ** AutoInstallConstraint- , AutoInstallConstraint- , autoInstallConstraint- , aicChargingStateConstraint- , aicDeviceIdleStateConstraint- , aicNetworkTypeConstraint-- -- ** ServiceAccountKey- , ServiceAccountKey- , serviceAccountKey- , sakKind- , sakData- , sakId- , sakType- , sakPublicData-- -- ** InstallsListResponse- , InstallsListResponse- , installsListResponse- , ilrKind- , ilrInstall-- -- ** AppRestrictionsSchemaRestriction- , AppRestrictionsSchemaRestriction- , appRestrictionsSchemaRestriction- , arsrRestrictionType- , arsrEntry- , arsrKey- , arsrEntryValue- , arsrDefaultValue- , arsrTitle- , arsrDescription- , arsrNestedRestriction-- -- ** ProductPolicy- , ProductPolicy- , productPolicy- , ppTracks- , ppManagedConfiguration- , ppTrackIds- , ppAutoInstallPolicy- , ppProductId-- -- ** Administrator- , Administrator- , administrator- , aEmail-- -- ** UsersListResponse- , UsersListResponse- , usersListResponse- , ulrKind- , ulrUser-- -- ** AdministratorWebTokenSpecStoreBuilder- , AdministratorWebTokenSpecStoreBuilder- , administratorWebTokenSpecStoreBuilder- , awtssbEnabled-- -- ** AuthenticationToken- , AuthenticationToken- , authenticationToken- , atKind- , atToken-- -- ** ManagedConfigurationsSettings- , ManagedConfigurationsSettings- , managedConfigurationsSettings- , mcsLastUpdatedTimestampMillis- , mcsManagedProperty- , mcsKind- , mcsMcmId- , mcsName-- -- ** AppVersion- , AppVersion- , appVersion- , avTrack- , avVersionCode- , avVersionString- , avTrackId- , avIsProduction-- -- ** EnterprisesPullNotificationSetRequestMode- , EnterprisesPullNotificationSetRequestMode (..)-- -- ** ManagedPropertyBundle- , ManagedPropertyBundle- , managedPropertyBundle- , mpbManagedProperty-- -- ** GroupLicensesListResponse- , GroupLicensesListResponse- , groupLicensesListResponse- , gllrGroupLicense- , gllrKind-- -- ** ProductSet- , ProductSet- , productSet- , psProductVisibility- , psKind- , psProductSetBehavior- , psProductId-- -- ** Install- , Install- , install- , iVersionCode- , iKind- , iInstallState- , iProductId-- -- ** MaintenanceWindow- , MaintenanceWindow- , maintenanceWindow- , mwDurationMs- , mwStartTimeAfterMidnightMs-- -- ** ServiceAccountKeysListResponse- , ServiceAccountKeysListResponse- , serviceAccountKeysListResponse- , saklrServiceAccountKey-- -- ** TrackInfo- , TrackInfo- , trackInfo- , tiTrackAlias- , tiTrackId-- -- ** User- , User- , user- , uAccountIdentifier- , uKind- , uDisplayName- , uId- , uPrimaryEmail- , uManagementType- , uAccountType-- -- ** ManagedConfigurationsForDeviceListResponse- , ManagedConfigurationsForDeviceListResponse- , managedConfigurationsForDeviceListResponse- , mcfdlrKind- , mcfdlrManagedConfigurationForDevice-- -- ** ProductsGenerateApprovalURLResponse- , ProductsGenerateApprovalURLResponse- , productsGenerateApprovalURLResponse- , pgaurURL-- -- ** StorePage- , StorePage- , storePage- , spKind- , spLink- , spName- , spId-- -- ** EnterprisesSendTestPushNotificationResponse- , EnterprisesSendTestPushNotificationResponse- , enterprisesSendTestPushNotificationResponse- , estpnrTopicName- , estpnrMessageId-- -- ** ServiceAccount- , ServiceAccount- , serviceAccount- , saKind- , saKey- , saName-- -- ** VariableSet- , VariableSet- , variableSet- , vsKind- , vsUserValue- , vsPlaceholder-- -- ** AppUpdateEvent- , AppUpdateEvent- , appUpdateEvent- , aueProductId-- -- ** EnterprisesListResponse- , EnterprisesListResponse- , enterprisesListResponse- , elrKind- , elrEnterprise-- -- ** NotificationSet- , NotificationSet- , notificationSet- , nsNotificationSetId- , nsNotification- , nsKind-- -- ** AppRestrictionsSchema- , AppRestrictionsSchema- , appRestrictionsSchema- , arsKind- , arsRestrictions-- -- ** WebAppIcon- , WebAppIcon- , webAppIcon- , waiImageData-- -- ** LocalizedText- , LocalizedText- , localizedText- , ltText- , ltLocale-- -- ** UserToken- , UserToken- , userToken- , utKind- , utToken- , utUserId-- -- ** AdministratorWebTokenSpecPrivateApps- , AdministratorWebTokenSpecPrivateApps- , administratorWebTokenSpecPrivateApps- , awtspaEnabled-- -- ** DevicesListResponse- , DevicesListResponse- , devicesListResponse- , dlrKind- , dlrDevice-- -- ** ProductSigningCertificate- , ProductSigningCertificate- , productSigningCertificate- , pscCertificateHashSha256- , pscCertificateHashSha1-- -- ** Enterprise- , Enterprise- , enterprise- , eKind- , eAdministrator- , ePrimaryDomain- , eName- , eId-- -- ** InstallFailureEvent- , InstallFailureEvent- , installFailureEvent- , ifeFailureReason- , ifeFailureDetails- , ifeUserId- , ifeDeviceId- , ifeProductId-- -- ** ManagedConfigurationsForUserListResponse- , ManagedConfigurationsForUserListResponse- , managedConfigurationsForUserListResponse- , mcfulrManagedConfigurationForUser- , mcfulrKind-- -- ** ConfigurationVariables- , ConfigurationVariables- , configurationVariables- , cvKind- , cvMcmId- , cvVariableSet-- -- ** StoreLayout- , StoreLayout- , storeLayout- , slStoreLayoutType- , slKind- , slHomepageId-- -- ** AppRestrictionsSchemaChangeEvent- , AppRestrictionsSchemaChangeEvent- , appRestrictionsSchemaChangeEvent- , arsceProductId-- -- ** NewDeviceEvent- , NewDeviceEvent- , newDeviceEvent- , ndeUserId- , ndeDpcPackageName- , ndeDeviceId- , ndeManagementType-- -- ** Policy- , Policy- , policy- , pProductAvailabilityPolicy- , pProductPolicy- , pMaintenanceWindow- , pAutoUpdatePolicy-- -- ** AdministratorWebToken- , AdministratorWebToken- , administratorWebToken- , awtKind- , awtToken-- -- ** SignupInfo- , SignupInfo- , signupInfo- , siCompletionToken- , siKind- , siURL-- -- ** Product- , Product- , product- , pScreenshotURLs- , pLastUpdatedTimestampMillis- , pSmallIconURL- , pAuthorName- , pAppTracks- , pKind- , pWorkDetailsURL- , pRequiresContainerApp- , pCategory- , pAppVersion- , pProductPricing- , pDistributionChannel- , pMinAndroidSdkVersion- , pAvailableCountries- , pAvailableTracks- , pIconURL- , pPermissions- , pTitle- , pSigningCertificate- , pContentRating- , pProductId- , pRecentChanges- , pDescription- , pDetailsURL-- -- ** EntitlementsListResponse- , EntitlementsListResponse- , entitlementsListResponse- , entKind- , entEntitlement-- -- ** EnterprisesGetServiceAccountKeyType- , EnterprisesGetServiceAccountKeyType (..)-- -- ** ProductPermissions- , ProductPermissions- , productPermissions- , ppsKind- , ppsPermission- , ppsProductId-- -- ** AdministratorWebTokenSpecManagedConfigurations- , AdministratorWebTokenSpecManagedConfigurations- , administratorWebTokenSpecManagedConfigurations- , awtsmcEnabled-- -- ** Permission- , Permission- , permission- , perKind- , perName- , perDescription- , perPermissionId-- -- ** WebAppsListResponse- , WebAppsListResponse- , webAppsListResponse- , walrKind- , walrWebApp-- -- ** ProductsApproveRequest- , ProductsApproveRequest- , productsApproveRequest- , parApprovalURLInfo- , parApprovedPermissions-- -- ** AutoInstallPolicy- , AutoInstallPolicy- , autoInstallPolicy- , aipAutoInstallConstraint- , aipAutoInstallPriority- , aipAutoInstallMode- , aipMinimumVersionCode-- -- ** Entitlement- , Entitlement- , entitlement- , eeKind- , eeReason- , eeProductId-- -- ** ProductsListResponse- , ProductsListResponse- , productsListResponse- , plrTokenPagination- , plrPageInfo- , plrKind- , plrProduct-- -- ** WebApp- , WebApp- , webApp- , waWebAppId- , waVersionCode- , waIcons- , waStartURL- , waDisplayMode- , waIsPublished- , waTitle- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude-import Network.Google.Resource.AndroidEnterprise.Devices.Get-import Network.Google.Resource.AndroidEnterprise.Devices.GetState-import Network.Google.Resource.AndroidEnterprise.Devices.List-import Network.Google.Resource.AndroidEnterprise.Devices.Patch-import Network.Google.Resource.AndroidEnterprise.Devices.SetState-import Network.Google.Resource.AndroidEnterprise.Devices.Update-import Network.Google.Resource.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet-import Network.Google.Resource.AndroidEnterprise.Enterprises.CompleteSignup-import Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken-import Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll-import Network.Google.Resource.AndroidEnterprise.Enterprises.GenerateSignupURL-import Network.Google.Resource.AndroidEnterprise.Enterprises.Get-import Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount-import Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout-import Network.Google.Resource.AndroidEnterprise.Enterprises.List-import Network.Google.Resource.AndroidEnterprise.Enterprises.PullNotificationSet-import Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification-import Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount-import Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout-import Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll-import Network.Google.Resource.AndroidEnterprise.Entitlements.Delete-import Network.Google.Resource.AndroidEnterprise.Entitlements.Get-import Network.Google.Resource.AndroidEnterprise.Entitlements.List-import Network.Google.Resource.AndroidEnterprise.Entitlements.Patch-import Network.Google.Resource.AndroidEnterprise.Entitlements.Update-import Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get-import Network.Google.Resource.AndroidEnterprise.Grouplicenses.List-import Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List-import Network.Google.Resource.AndroidEnterprise.Installs.Delete-import Network.Google.Resource.AndroidEnterprise.Installs.Get-import Network.Google.Resource.AndroidEnterprise.Installs.List-import Network.Google.Resource.AndroidEnterprise.Installs.Patch-import Network.Google.Resource.AndroidEnterprise.Installs.Update-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Delete-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Get-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.List-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Patch-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Update-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Delete-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Get-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.List-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Patch-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Update-import Network.Google.Resource.AndroidEnterprise.ManagedConfigurationssettings.List-import Network.Google.Resource.AndroidEnterprise.Permissions.Get-import Network.Google.Resource.AndroidEnterprise.Products.Approve-import Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL-import Network.Google.Resource.AndroidEnterprise.Products.Get-import Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema-import Network.Google.Resource.AndroidEnterprise.Products.GetPermissions-import Network.Google.Resource.AndroidEnterprise.Products.List-import Network.Google.Resource.AndroidEnterprise.Products.UnApprove-import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete-import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert-import Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List-import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete-import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get-import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert-import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List-import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch-import Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update-import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete-import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get-import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert-import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List-import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch-import Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update-import Network.Google.Resource.AndroidEnterprise.Users.Delete-import Network.Google.Resource.AndroidEnterprise.Users.GenerateAuthenticationToken-import Network.Google.Resource.AndroidEnterprise.Users.GenerateToken-import Network.Google.Resource.AndroidEnterprise.Users.Get-import Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet-import Network.Google.Resource.AndroidEnterprise.Users.Insert-import Network.Google.Resource.AndroidEnterprise.Users.List-import Network.Google.Resource.AndroidEnterprise.Users.Patch-import Network.Google.Resource.AndroidEnterprise.Users.RevokeDeviceAccess-import Network.Google.Resource.AndroidEnterprise.Users.RevokeToken-import Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet-import Network.Google.Resource.AndroidEnterprise.Users.Update-import Network.Google.Resource.AndroidEnterprise.WebApps.Delete-import Network.Google.Resource.AndroidEnterprise.WebApps.Get-import Network.Google.Resource.AndroidEnterprise.WebApps.Insert-import Network.Google.Resource.AndroidEnterprise.WebApps.List-import Network.Google.Resource.AndroidEnterprise.WebApps.Patch-import Network.Google.Resource.AndroidEnterprise.WebApps.Update--{- $resources-TODO--}---- | Represents the entirety of the methods and resources available for the Google Play EMM API service.-type AndroidEnterpriseAPI =- StorelayoutclustersInsertResource :<|>- StorelayoutclustersListResource- :<|> StorelayoutclustersPatchResource- :<|> StorelayoutclustersGetResource- :<|> StorelayoutclustersDeleteResource- :<|> StorelayoutclustersUpdateResource- :<|> UsersInsertResource- :<|> UsersListResource- :<|> UsersGenerateTokenResource- :<|> UsersGenerateAuthenticationTokenResource- :<|> UsersPatchResource- :<|> UsersGetResource- :<|> UsersRevokeDeviceAccessResource- :<|> UsersSetAvailableProductSetResource- :<|> UsersRevokeTokenResource- :<|> UsersGetAvailableProductSetResource- :<|> UsersDeleteResource- :<|> UsersUpdateResource- :<|> InstallsListResource- :<|> InstallsPatchResource- :<|> InstallsGetResource- :<|> InstallsDeleteResource- :<|> InstallsUpdateResource- :<|> StorelayoutpagesInsertResource- :<|> StorelayoutpagesListResource- :<|> StorelayoutpagesPatchResource- :<|> StorelayoutpagesGetResource- :<|> StorelayoutpagesDeleteResource- :<|> StorelayoutpagesUpdateResource- :<|> ServiceAccountkeysInsertResource- :<|> ServiceAccountkeysListResource- :<|> ServiceAccountkeysDeleteResource- :<|> ManagedConfigurationssettingsListResource- :<|> EnterprisesCompleteSignupResource- :<|> EnterprisesCreateWebTokenResource- :<|> EnterprisesGetServiceAccountResource- :<|> EnterprisesListResource- :<|> EnterprisesUnenrollResource- :<|> EnterprisesGetStoreLayoutResource- :<|> EnterprisesSetAccountResource- :<|> EnterprisesEnrollResource- :<|> EnterprisesGetResource- :<|> EnterprisesGenerateSignupURLResource- :<|> EnterprisesSendTestPushNotificationResource- :<|> EnterprisesSetStoreLayoutResource- :<|> EnterprisesAcknowledgeNotificationSetResource- :<|> EnterprisesPullNotificationSetResource- :<|> ManagedConfigurationsforUserListResource- :<|> ManagedConfigurationsforUserPatchResource- :<|> ManagedConfigurationsforUserGetResource- :<|> ManagedConfigurationsforUserDeleteResource- :<|> ManagedConfigurationsforUserUpdateResource- :<|> GrouplicensesListResource- :<|> GrouplicensesGetResource- :<|> WebAppsInsertResource- :<|> WebAppsListResource- :<|> WebAppsPatchResource- :<|> WebAppsGetResource- :<|> WebAppsDeleteResource- :<|> WebAppsUpdateResource- :<|> EntitlementsListResource- :<|> EntitlementsPatchResource- :<|> EntitlementsGetResource- :<|> EntitlementsDeleteResource- :<|> EntitlementsUpdateResource- :<|> ManagedConfigurationsforDeviceListResource- :<|> ManagedConfigurationsforDevicePatchResource- :<|> ManagedConfigurationsforDeviceGetResource- :<|> ManagedConfigurationsforDeviceDeleteResource- :<|> ManagedConfigurationsforDeviceUpdateResource- :<|> PermissionsGetResource- :<|> ProductsGenerateApprovalURLResource- :<|> ProductsListResource- :<|> ProductsGetResource- :<|> ProductsGetAppRestrictionsSchemaResource- :<|> ProductsUnApproveResource- :<|> ProductsApproveResource- :<|> ProductsGetPermissionsResource- :<|> DevicesListResource- :<|> DevicesSetStateResource- :<|> DevicesPatchResource- :<|> DevicesGetResource- :<|> DevicesGetStateResource- :<|> DevicesUpdateResource- :<|> GrouplicenseUsersListResource
− gen/Network/Google/AndroidEnterprise/Types.hs
@@ -1,632 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.AndroidEnterprise.Types--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.Google.AndroidEnterprise.Types- (- -- * Service Configuration- androidEnterpriseService-- -- * OAuth Scopes- , androidEnterpriseScope-- -- * GroupLicense- , GroupLicense- , groupLicense- , glKind- , glNumProvisioned- , glNumPurchased- , glApproval- , glPermissions- , glProductId- , glAcquisitionKind-- -- * StoreLayoutPagesListResponse- , StoreLayoutPagesListResponse- , storeLayoutPagesListResponse- , slplrKind- , slplrPage-- -- * EnterpriseAccount- , EnterpriseAccount- , enterpriseAccount- , eaKind- , eaAccountEmail-- -- * AppRestrictionsSchemaRestrictionRestrictionValue- , AppRestrictionsSchemaRestrictionRestrictionValue- , appRestrictionsSchemaRestrictionRestrictionValue- , arsrrvValueMultiselect- , arsrrvValueBool- , arsrrvValueInteger- , arsrrvType- , arsrrvValueString-- -- * AdministratorWebTokenSpecPlaySearch- , AdministratorWebTokenSpecPlaySearch- , administratorWebTokenSpecPlaySearch- , awtspsEnabled- , awtspsApproveApps-- -- * DeviceState- , DeviceState- , deviceState- , dsKind- , dsAccountState-- -- * GroupLicenseUsersListResponse- , GroupLicenseUsersListResponse- , groupLicenseUsersListResponse- , glulrKind- , glulrUser-- -- * TokenPagination- , TokenPagination- , tokenPagination- , tpNextPageToken- , tpPreviousPageToken-- -- * AdministratorWebTokenSpecWebApps- , AdministratorWebTokenSpecWebApps- , administratorWebTokenSpecWebApps- , awtswaEnabled-- -- * ApprovalURLInfo- , ApprovalURLInfo- , approvalURLInfo- , auiApprovalURL- , auiKind-- -- * ManagedConfigurationsSettingsListResponse- , ManagedConfigurationsSettingsListResponse- , managedConfigurationsSettingsListResponse- , mcslrKind- , mcslrManagedConfigurationsSettings-- -- * ManagedProperty- , ManagedProperty- , managedProperty- , mpValueStringArray- , mpValueBool- , mpKey- , mpValueBundle- , mpValueInteger- , mpValueBundleArray- , mpValueString-- -- * StoreLayoutClustersListResponse- , StoreLayoutClustersListResponse- , storeLayoutClustersListResponse- , slclrCluster- , slclrKind-- -- * ManagedConfiguration- , ManagedConfiguration- , managedConfiguration- , mcManagedProperty- , mcKind- , mcConfigurationVariables- , mcProductId-- -- * StoreCluster- , StoreCluster- , storeCluster- , scKind- , scName- , scOrderInPage- , scId- , scProductId-- -- * AdministratorWebTokenSpec- , AdministratorWebTokenSpec- , administratorWebTokenSpec- , awtsParent- , awtsPrivateApps- , awtsPlaySearch- , awtsKind- , awtsWebApps- , awtsPermission- , awtsStoreBuilder- , awtsManagedConfigurations-- -- * ProductVisibility- , ProductVisibility- , productVisibility- , pvTracks- , pvTrackIds- , pvProductId-- -- * Notification- , Notification- , notification- , nEnterpriseId- , nNewPermissionsEvent- , nProductApprovalEvent- , nProductAvailabilityChangeEvent- , nAppUpdateEvent- , nInstallFailureEvent- , nNotificationType- , nAppRestrictionsSchemaChangeEvent- , nNewDeviceEvent- , nTimestampMillis-- -- * PageInfo- , PageInfo- , pageInfo- , piResultPerPage- , piTotalResults- , piStartIndex-- -- * ProductPermission- , ProductPermission- , productPermission- , ppState- , ppPermissionId-- -- * NewPermissionsEvent- , NewPermissionsEvent- , newPermissionsEvent- , npeRequestedPermissions- , npeApprovedPermissions- , npeProductId-- -- * ProductAvailabilityChangeEvent- , ProductAvailabilityChangeEvent- , productAvailabilityChangeEvent- , paceAvailabilityStatus- , paceProductId-- -- * ProductApprovalEvent- , ProductApprovalEvent- , productApprovalEvent- , paeApproved- , paeProductId-- -- * Device- , Device- , device- , dKind- , dPolicy- , dManagementType- , dAndroidId-- -- * AutoInstallConstraint- , AutoInstallConstraint- , autoInstallConstraint- , aicChargingStateConstraint- , aicDeviceIdleStateConstraint- , aicNetworkTypeConstraint-- -- * ServiceAccountKey- , ServiceAccountKey- , serviceAccountKey- , sakKind- , sakData- , sakId- , sakType- , sakPublicData-- -- * InstallsListResponse- , InstallsListResponse- , installsListResponse- , ilrKind- , ilrInstall-- -- * AppRestrictionsSchemaRestriction- , AppRestrictionsSchemaRestriction- , appRestrictionsSchemaRestriction- , arsrRestrictionType- , arsrEntry- , arsrKey- , arsrEntryValue- , arsrDefaultValue- , arsrTitle- , arsrDescription- , arsrNestedRestriction-- -- * ProductPolicy- , ProductPolicy- , productPolicy- , ppTracks- , ppManagedConfiguration- , ppTrackIds- , ppAutoInstallPolicy- , ppProductId-- -- * Administrator- , Administrator- , administrator- , aEmail-- -- * UsersListResponse- , UsersListResponse- , usersListResponse- , ulrKind- , ulrUser-- -- * AdministratorWebTokenSpecStoreBuilder- , AdministratorWebTokenSpecStoreBuilder- , administratorWebTokenSpecStoreBuilder- , awtssbEnabled-- -- * AuthenticationToken- , AuthenticationToken- , authenticationToken- , atKind- , atToken-- -- * ManagedConfigurationsSettings- , ManagedConfigurationsSettings- , managedConfigurationsSettings- , mcsLastUpdatedTimestampMillis- , mcsManagedProperty- , mcsKind- , mcsMcmId- , mcsName-- -- * AppVersion- , AppVersion- , appVersion- , avTrack- , avVersionCode- , avVersionString- , avTrackId- , avIsProduction-- -- * EnterprisesPullNotificationSetRequestMode- , EnterprisesPullNotificationSetRequestMode (..)-- -- * ManagedPropertyBundle- , ManagedPropertyBundle- , managedPropertyBundle- , mpbManagedProperty-- -- * GroupLicensesListResponse- , GroupLicensesListResponse- , groupLicensesListResponse- , gllrGroupLicense- , gllrKind-- -- * ProductSet- , ProductSet- , productSet- , psProductVisibility- , psKind- , psProductSetBehavior- , psProductId-- -- * Install- , Install- , install- , iVersionCode- , iKind- , iInstallState- , iProductId-- -- * MaintenanceWindow- , MaintenanceWindow- , maintenanceWindow- , mwDurationMs- , mwStartTimeAfterMidnightMs-- -- * ServiceAccountKeysListResponse- , ServiceAccountKeysListResponse- , serviceAccountKeysListResponse- , saklrServiceAccountKey-- -- * TrackInfo- , TrackInfo- , trackInfo- , tiTrackAlias- , tiTrackId-- -- * User- , User- , user- , uAccountIdentifier- , uKind- , uDisplayName- , uId- , uPrimaryEmail- , uManagementType- , uAccountType-- -- * ManagedConfigurationsForDeviceListResponse- , ManagedConfigurationsForDeviceListResponse- , managedConfigurationsForDeviceListResponse- , mcfdlrKind- , mcfdlrManagedConfigurationForDevice-- -- * ProductsGenerateApprovalURLResponse- , ProductsGenerateApprovalURLResponse- , productsGenerateApprovalURLResponse- , pgaurURL-- -- * StorePage- , StorePage- , storePage- , spKind- , spLink- , spName- , spId-- -- * EnterprisesSendTestPushNotificationResponse- , EnterprisesSendTestPushNotificationResponse- , enterprisesSendTestPushNotificationResponse- , estpnrTopicName- , estpnrMessageId-- -- * ServiceAccount- , ServiceAccount- , serviceAccount- , saKind- , saKey- , saName-- -- * VariableSet- , VariableSet- , variableSet- , vsKind- , vsUserValue- , vsPlaceholder-- -- * AppUpdateEvent- , AppUpdateEvent- , appUpdateEvent- , aueProductId-- -- * EnterprisesListResponse- , EnterprisesListResponse- , enterprisesListResponse- , elrKind- , elrEnterprise-- -- * NotificationSet- , NotificationSet- , notificationSet- , nsNotificationSetId- , nsNotification- , nsKind-- -- * AppRestrictionsSchema- , AppRestrictionsSchema- , appRestrictionsSchema- , arsKind- , arsRestrictions-- -- * WebAppIcon- , WebAppIcon- , webAppIcon- , waiImageData-- -- * LocalizedText- , LocalizedText- , localizedText- , ltText- , ltLocale-- -- * UserToken- , UserToken- , userToken- , utKind- , utToken- , utUserId-- -- * AdministratorWebTokenSpecPrivateApps- , AdministratorWebTokenSpecPrivateApps- , administratorWebTokenSpecPrivateApps- , awtspaEnabled-- -- * DevicesListResponse- , DevicesListResponse- , devicesListResponse- , dlrKind- , dlrDevice-- -- * ProductSigningCertificate- , ProductSigningCertificate- , productSigningCertificate- , pscCertificateHashSha256- , pscCertificateHashSha1-- -- * Enterprise- , Enterprise- , enterprise- , eKind- , eAdministrator- , ePrimaryDomain- , eName- , eId-- -- * InstallFailureEvent- , InstallFailureEvent- , installFailureEvent- , ifeFailureReason- , ifeFailureDetails- , ifeUserId- , ifeDeviceId- , ifeProductId-- -- * ManagedConfigurationsForUserListResponse- , ManagedConfigurationsForUserListResponse- , managedConfigurationsForUserListResponse- , mcfulrManagedConfigurationForUser- , mcfulrKind-- -- * ConfigurationVariables- , ConfigurationVariables- , configurationVariables- , cvKind- , cvMcmId- , cvVariableSet-- -- * StoreLayout- , StoreLayout- , storeLayout- , slStoreLayoutType- , slKind- , slHomepageId-- -- * AppRestrictionsSchemaChangeEvent- , AppRestrictionsSchemaChangeEvent- , appRestrictionsSchemaChangeEvent- , arsceProductId-- -- * NewDeviceEvent- , NewDeviceEvent- , newDeviceEvent- , ndeUserId- , ndeDpcPackageName- , ndeDeviceId- , ndeManagementType-- -- * Policy- , Policy- , policy- , pProductAvailabilityPolicy- , pProductPolicy- , pMaintenanceWindow- , pAutoUpdatePolicy-- -- * AdministratorWebToken- , AdministratorWebToken- , administratorWebToken- , awtKind- , awtToken-- -- * SignupInfo- , SignupInfo- , signupInfo- , siCompletionToken- , siKind- , siURL-- -- * Product- , Product- , product- , pScreenshotURLs- , pLastUpdatedTimestampMillis- , pSmallIconURL- , pAuthorName- , pAppTracks- , pKind- , pWorkDetailsURL- , pRequiresContainerApp- , pCategory- , pAppVersion- , pProductPricing- , pDistributionChannel- , pMinAndroidSdkVersion- , pAvailableCountries- , pAvailableTracks- , pIconURL- , pPermissions- , pTitle- , pSigningCertificate- , pContentRating- , pProductId- , pRecentChanges- , pDescription- , pDetailsURL-- -- * EntitlementsListResponse- , EntitlementsListResponse- , entitlementsListResponse- , entKind- , entEntitlement-- -- * EnterprisesGetServiceAccountKeyType- , EnterprisesGetServiceAccountKeyType (..)-- -- * ProductPermissions- , ProductPermissions- , productPermissions- , ppsKind- , ppsPermission- , ppsProductId-- -- * AdministratorWebTokenSpecManagedConfigurations- , AdministratorWebTokenSpecManagedConfigurations- , administratorWebTokenSpecManagedConfigurations- , awtsmcEnabled-- -- * Permission- , Permission- , permission- , perKind- , perName- , perDescription- , perPermissionId-- -- * WebAppsListResponse- , WebAppsListResponse- , webAppsListResponse- , walrKind- , walrWebApp-- -- * ProductsApproveRequest- , ProductsApproveRequest- , productsApproveRequest- , parApprovalURLInfo- , parApprovedPermissions-- -- * AutoInstallPolicy- , AutoInstallPolicy- , autoInstallPolicy- , aipAutoInstallConstraint- , aipAutoInstallPriority- , aipAutoInstallMode- , aipMinimumVersionCode-- -- * Entitlement- , Entitlement- , entitlement- , eeKind- , eeReason- , eeProductId-- -- * ProductsListResponse- , ProductsListResponse- , productsListResponse- , plrTokenPagination- , plrPageInfo- , plrKind- , plrProduct-- -- * WebApp- , WebApp- , webApp- , waWebAppId- , waVersionCode- , waIcons- , waStartURL- , waDisplayMode- , waIsPublished- , waTitle- ) where--import Network.Google.AndroidEnterprise.Types.Product-import Network.Google.AndroidEnterprise.Types.Sum-import Network.Google.Prelude---- | Default request referring to version 'v1' of the Google Play EMM API. This contains the host and root path used as a starting point for constructing service requests.-androidEnterpriseService :: ServiceConfig-androidEnterpriseService- = defaultService (ServiceId "androidenterprise:v1")- "www.googleapis.com"---- | Manage corporate Android devices-androidEnterpriseScope :: Proxy '["https://www.googleapis.com/auth/androidenterprise"]-androidEnterpriseScope = Proxy
− gen/Network/Google/AndroidEnterprise/Types/Product.hs
@@ -1,5934 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}--{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.AndroidEnterprise.Types.Product--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.Google.AndroidEnterprise.Types.Product where--import Network.Google.AndroidEnterprise.Types.Sum-import Network.Google.Prelude---- | Group license objects allow you to keep track of licenses (called--- entitlements) for both free and paid apps. For a free app, a group--- license is created when an enterprise admin first approves the product--- in Google Play or when the first entitlement for the product is created--- for a user via the API. For a paid app, a group license object is only--- created when an enterprise admin purchases the product in Google Play--- for the first time. Use the API to query group licenses. A Grouplicenses--- resource includes the total number of licenses purchased (paid apps--- only) and the total number of licenses currently in use. In other words,--- the total number of Entitlements that exist for the product. Only one--- group license object is created per product and group license objects--- are never deleted. If a product is unapproved, its group license--- remains. This allows enterprise admins to keep track of any remaining--- entitlements for the product.------ /See:/ 'groupLicense' smart constructor.-data GroupLicense =- GroupLicense'- { _glKind :: !Text- , _glNumProvisioned :: !(Maybe (Textual Int32))- , _glNumPurchased :: !(Maybe (Textual Int32))- , _glApproval :: !(Maybe Text)- , _glPermissions :: !(Maybe Text)- , _glProductId :: !(Maybe Text)- , _glAcquisitionKind :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GroupLicense' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'glKind'------ * 'glNumProvisioned'------ * 'glNumPurchased'------ * 'glApproval'------ * 'glPermissions'------ * 'glProductId'------ * 'glAcquisitionKind'-groupLicense- :: GroupLicense-groupLicense =- GroupLicense'- { _glKind = "androidenterprise#groupLicense"- , _glNumProvisioned = Nothing- , _glNumPurchased = Nothing- , _glApproval = Nothing- , _glPermissions = Nothing- , _glProductId = Nothing- , _glAcquisitionKind = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#groupLicense\".-glKind :: Lens' GroupLicense Text-glKind = lens _glKind (\ s a -> s{_glKind = a})---- | The total number of provisioned licenses for this product. Returned by--- read operations, but ignored in write operations.-glNumProvisioned :: Lens' GroupLicense (Maybe Int32)-glNumProvisioned- = lens _glNumProvisioned- (\ s a -> s{_glNumProvisioned = a})- . mapping _Coerce---- | The number of purchased licenses (possibly in multiple purchases). If--- this field is omitted, then there is no limit on the number of licenses--- that can be provisioned (for example, if the acquisition kind is--- \"free\").-glNumPurchased :: Lens' GroupLicense (Maybe Int32)-glNumPurchased- = lens _glNumPurchased- (\ s a -> s{_glNumPurchased = a})- . mapping _Coerce---- | Whether the product to which this group license relates is currently--- approved by the enterprise. Products are approved when a group license--- is first created, but this approval may be revoked by an enterprise--- admin via Google Play. Unapproved products will not be visible to end--- users in collections, and new entitlements to them should not normally--- be created.-glApproval :: Lens' GroupLicense (Maybe Text)-glApproval- = lens _glApproval (\ s a -> s{_glApproval = a})---- | The permission approval status of the product. This field is only set if--- the product is approved. Possible states are: - \"currentApproved\", the--- current set of permissions is approved, but additional permissions will--- require the administrator to reapprove the product (If the product was--- approved without specifying the approved permissions setting, then this--- is the default behavior.), - \"needsReapproval\", the product has--- unapproved permissions. No additional product licenses can be assigned--- until the product is reapproved, - \"allCurrentAndFutureApproved\", the--- current permissions are approved and any future permission updates will--- be automatically approved without administrator review.-glPermissions :: Lens' GroupLicense (Maybe Text)-glPermissions- = lens _glPermissions- (\ s a -> s{_glPermissions = a})---- | The ID of the product that the license is for. For example,--- \"app:com.google.android.gm\".-glProductId :: Lens' GroupLicense (Maybe Text)-glProductId- = lens _glProductId (\ s a -> s{_glProductId = a})---- | How this group license was acquired. \"bulkPurchase\" means that this--- Grouplicenses resource was created because the enterprise purchased--- licenses for this product; otherwise, the value is \"free\" (for free--- products).-glAcquisitionKind :: Lens' GroupLicense (Maybe Text)-glAcquisitionKind- = lens _glAcquisitionKind- (\ s a -> s{_glAcquisitionKind = a})--instance FromJSON GroupLicense where- parseJSON- = withObject "GroupLicense"- (\ o ->- GroupLicense' <$>- (o .:? "kind" .!= "androidenterprise#groupLicense")- <*> (o .:? "numProvisioned")- <*> (o .:? "numPurchased")- <*> (o .:? "approval")- <*> (o .:? "permissions")- <*> (o .:? "productId")- <*> (o .:? "acquisitionKind"))--instance ToJSON GroupLicense where- toJSON GroupLicense'{..}- = object- (catMaybes- [Just ("kind" .= _glKind),- ("numProvisioned" .=) <$> _glNumProvisioned,- ("numPurchased" .=) <$> _glNumPurchased,- ("approval" .=) <$> _glApproval,- ("permissions" .=) <$> _glPermissions,- ("productId" .=) <$> _glProductId,- ("acquisitionKind" .=) <$> _glAcquisitionKind])---- | The store page resources for the enterprise.------ /See:/ 'storeLayoutPagesListResponse' smart constructor.-data StoreLayoutPagesListResponse =- StoreLayoutPagesListResponse'- { _slplrKind :: !Text- , _slplrPage :: !(Maybe [StorePage])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StoreLayoutPagesListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'slplrKind'------ * 'slplrPage'-storeLayoutPagesListResponse- :: StoreLayoutPagesListResponse-storeLayoutPagesListResponse =- StoreLayoutPagesListResponse'- { _slplrKind = "androidenterprise#storeLayoutPagesListResponse"- , _slplrPage = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#storeLayoutPagesListResponse\".-slplrKind :: Lens' StoreLayoutPagesListResponse Text-slplrKind- = lens _slplrKind (\ s a -> s{_slplrKind = a})---- | A store page of an enterprise.-slplrPage :: Lens' StoreLayoutPagesListResponse [StorePage]-slplrPage- = lens _slplrPage (\ s a -> s{_slplrPage = a}) .- _Default- . _Coerce--instance FromJSON StoreLayoutPagesListResponse where- parseJSON- = withObject "StoreLayoutPagesListResponse"- (\ o ->- StoreLayoutPagesListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#storeLayoutPagesListResponse")- <*> (o .:? "page" .!= mempty))--instance ToJSON StoreLayoutPagesListResponse where- toJSON StoreLayoutPagesListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _slplrKind),- ("page" .=) <$> _slplrPage])---- | A service account that can be used to authenticate as the enterprise to--- API calls that require such authentication.------ /See:/ 'enterpriseAccount' smart constructor.-data EnterpriseAccount =- EnterpriseAccount'- { _eaKind :: !Text- , _eaAccountEmail :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterpriseAccount' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eaKind'------ * 'eaAccountEmail'-enterpriseAccount- :: EnterpriseAccount-enterpriseAccount =- EnterpriseAccount'- {_eaKind = "androidenterprise#enterpriseAccount", _eaAccountEmail = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#enterpriseAccount\".-eaKind :: Lens' EnterpriseAccount Text-eaKind = lens _eaKind (\ s a -> s{_eaKind = a})---- | The email address of the service account.-eaAccountEmail :: Lens' EnterpriseAccount (Maybe Text)-eaAccountEmail- = lens _eaAccountEmail- (\ s a -> s{_eaAccountEmail = a})--instance FromJSON EnterpriseAccount where- parseJSON- = withObject "EnterpriseAccount"- (\ o ->- EnterpriseAccount' <$>- (o .:? "kind" .!=- "androidenterprise#enterpriseAccount")- <*> (o .:? "accountEmail"))--instance ToJSON EnterpriseAccount where- toJSON EnterpriseAccount'{..}- = object- (catMaybes- [Just ("kind" .= _eaKind),- ("accountEmail" .=) <$> _eaAccountEmail])---- | A typed value for the restriction.------ /See:/ 'appRestrictionsSchemaRestrictionRestrictionValue' smart constructor.-data AppRestrictionsSchemaRestrictionRestrictionValue =- AppRestrictionsSchemaRestrictionRestrictionValue'- { _arsrrvValueMultiselect :: !(Maybe [Text])- , _arsrrvValueBool :: !(Maybe Bool)- , _arsrrvValueInteger :: !(Maybe (Textual Int32))- , _arsrrvType :: !(Maybe Text)- , _arsrrvValueString :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppRestrictionsSchemaRestrictionRestrictionValue' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'arsrrvValueMultiselect'------ * 'arsrrvValueBool'------ * 'arsrrvValueInteger'------ * 'arsrrvType'------ * 'arsrrvValueString'-appRestrictionsSchemaRestrictionRestrictionValue- :: AppRestrictionsSchemaRestrictionRestrictionValue-appRestrictionsSchemaRestrictionRestrictionValue =- AppRestrictionsSchemaRestrictionRestrictionValue'- { _arsrrvValueMultiselect = Nothing- , _arsrrvValueBool = Nothing- , _arsrrvValueInteger = Nothing- , _arsrrvType = Nothing- , _arsrrvValueString = Nothing- }----- | The list of string values - this will only be present if type is--- multiselect.-arsrrvValueMultiselect :: Lens' AppRestrictionsSchemaRestrictionRestrictionValue [Text]-arsrrvValueMultiselect- = lens _arsrrvValueMultiselect- (\ s a -> s{_arsrrvValueMultiselect = a})- . _Default- . _Coerce---- | The boolean value - this will only be present if type is bool.-arsrrvValueBool :: Lens' AppRestrictionsSchemaRestrictionRestrictionValue (Maybe Bool)-arsrrvValueBool- = lens _arsrrvValueBool- (\ s a -> s{_arsrrvValueBool = a})---- | The integer value - this will only be present if type is integer.-arsrrvValueInteger :: Lens' AppRestrictionsSchemaRestrictionRestrictionValue (Maybe Int32)-arsrrvValueInteger- = lens _arsrrvValueInteger- (\ s a -> s{_arsrrvValueInteger = a})- . mapping _Coerce---- | The type of the value being provided.-arsrrvType :: Lens' AppRestrictionsSchemaRestrictionRestrictionValue (Maybe Text)-arsrrvType- = lens _arsrrvType (\ s a -> s{_arsrrvType = a})---- | The string value - this will be present for types string, choice and--- hidden.-arsrrvValueString :: Lens' AppRestrictionsSchemaRestrictionRestrictionValue (Maybe Text)-arsrrvValueString- = lens _arsrrvValueString- (\ s a -> s{_arsrrvValueString = a})--instance FromJSON- AppRestrictionsSchemaRestrictionRestrictionValue- where- parseJSON- = withObject- "AppRestrictionsSchemaRestrictionRestrictionValue"- (\ o ->- AppRestrictionsSchemaRestrictionRestrictionValue' <$>- (o .:? "valueMultiselect" .!= mempty) <*>- (o .:? "valueBool")- <*> (o .:? "valueInteger")- <*> (o .:? "type")- <*> (o .:? "valueString"))--instance ToJSON- AppRestrictionsSchemaRestrictionRestrictionValue- where- toJSON- AppRestrictionsSchemaRestrictionRestrictionValue'{..}- = object- (catMaybes- [("valueMultiselect" .=) <$> _arsrrvValueMultiselect,- ("valueBool" .=) <$> _arsrrvValueBool,- ("valueInteger" .=) <$> _arsrrvValueInteger,- ("type" .=) <$> _arsrrvType,- ("valueString" .=) <$> _arsrrvValueString])------- /See:/ 'administratorWebTokenSpecPlaySearch' smart constructor.-data AdministratorWebTokenSpecPlaySearch =- AdministratorWebTokenSpecPlaySearch'- { _awtspsEnabled :: !(Maybe Bool)- , _awtspsApproveApps :: !(Maybe Bool)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AdministratorWebTokenSpecPlaySearch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'awtspsEnabled'------ * 'awtspsApproveApps'-administratorWebTokenSpecPlaySearch- :: AdministratorWebTokenSpecPlaySearch-administratorWebTokenSpecPlaySearch =- AdministratorWebTokenSpecPlaySearch'- {_awtspsEnabled = Nothing, _awtspsApproveApps = Nothing}----- | Whether the managed Play Search apps page is displayed. Default is true.-awtspsEnabled :: Lens' AdministratorWebTokenSpecPlaySearch (Maybe Bool)-awtspsEnabled- = lens _awtspsEnabled- (\ s a -> s{_awtspsEnabled = a})---- | Allow access to the iframe in approve mode. Default is false.-awtspsApproveApps :: Lens' AdministratorWebTokenSpecPlaySearch (Maybe Bool)-awtspsApproveApps- = lens _awtspsApproveApps- (\ s a -> s{_awtspsApproveApps = a})--instance FromJSON AdministratorWebTokenSpecPlaySearch- where- parseJSON- = withObject "AdministratorWebTokenSpecPlaySearch"- (\ o ->- AdministratorWebTokenSpecPlaySearch' <$>- (o .:? "enabled") <*> (o .:? "approveApps"))--instance ToJSON AdministratorWebTokenSpecPlaySearch- where- toJSON AdministratorWebTokenSpecPlaySearch'{..}- = object- (catMaybes- [("enabled" .=) <$> _awtspsEnabled,- ("approveApps" .=) <$> _awtspsApproveApps])---- | The state of a user\'s device, as accessed by the getState and setState--- methods on device resources.------ /See:/ 'deviceState' smart constructor.-data DeviceState =- DeviceState'- { _dsKind :: !Text- , _dsAccountState :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DeviceState' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dsKind'------ * 'dsAccountState'-deviceState- :: DeviceState-deviceState =- DeviceState'- {_dsKind = "androidenterprise#deviceState", _dsAccountState = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#deviceState\".-dsKind :: Lens' DeviceState Text-dsKind = lens _dsKind (\ s a -> s{_dsKind = a})---- | The state of the Google account on the device. \"enabled\" indicates--- that the Google account on the device can be used to access Google--- services (including Google Play), while \"disabled\" means that it--- cannot. A new device is initially in the \"disabled\" state.-dsAccountState :: Lens' DeviceState (Maybe Text)-dsAccountState- = lens _dsAccountState- (\ s a -> s{_dsAccountState = a})--instance FromJSON DeviceState where- parseJSON- = withObject "DeviceState"- (\ o ->- DeviceState' <$>- (o .:? "kind" .!= "androidenterprise#deviceState")- <*> (o .:? "accountState"))--instance ToJSON DeviceState where- toJSON DeviceState'{..}- = object- (catMaybes- [Just ("kind" .= _dsKind),- ("accountState" .=) <$> _dsAccountState])---- | The user resources for the group license.------ /See:/ 'groupLicenseUsersListResponse' smart constructor.-data GroupLicenseUsersListResponse =- GroupLicenseUsersListResponse'- { _glulrKind :: !Text- , _glulrUser :: !(Maybe [User])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GroupLicenseUsersListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'glulrKind'------ * 'glulrUser'-groupLicenseUsersListResponse- :: GroupLicenseUsersListResponse-groupLicenseUsersListResponse =- GroupLicenseUsersListResponse'- { _glulrKind = "androidenterprise#groupLicenseUsersListResponse"- , _glulrUser = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#groupLicenseUsersListResponse\".-glulrKind :: Lens' GroupLicenseUsersListResponse Text-glulrKind- = lens _glulrKind (\ s a -> s{_glulrKind = a})---- | A user of an enterprise.-glulrUser :: Lens' GroupLicenseUsersListResponse [User]-glulrUser- = lens _glulrUser (\ s a -> s{_glulrUser = a}) .- _Default- . _Coerce--instance FromJSON GroupLicenseUsersListResponse where- parseJSON- = withObject "GroupLicenseUsersListResponse"- (\ o ->- GroupLicenseUsersListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#groupLicenseUsersListResponse")- <*> (o .:? "user" .!= mempty))--instance ToJSON GroupLicenseUsersListResponse where- toJSON GroupLicenseUsersListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _glulrKind),- ("user" .=) <$> _glulrUser])------- /See:/ 'tokenPagination' smart constructor.-data TokenPagination =- TokenPagination'- { _tpNextPageToken :: !(Maybe Text)- , _tpPreviousPageToken :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'TokenPagination' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tpNextPageToken'------ * 'tpPreviousPageToken'-tokenPagination- :: TokenPagination-tokenPagination =- TokenPagination' {_tpNextPageToken = Nothing, _tpPreviousPageToken = Nothing}---tpNextPageToken :: Lens' TokenPagination (Maybe Text)-tpNextPageToken- = lens _tpNextPageToken- (\ s a -> s{_tpNextPageToken = a})--tpPreviousPageToken :: Lens' TokenPagination (Maybe Text)-tpPreviousPageToken- = lens _tpPreviousPageToken- (\ s a -> s{_tpPreviousPageToken = a})--instance FromJSON TokenPagination where- parseJSON- = withObject "TokenPagination"- (\ o ->- TokenPagination' <$>- (o .:? "nextPageToken") <*>- (o .:? "previousPageToken"))--instance ToJSON TokenPagination where- toJSON TokenPagination'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _tpNextPageToken,- ("previousPageToken" .=) <$> _tpPreviousPageToken])------- /See:/ 'administratorWebTokenSpecWebApps' smart constructor.-newtype AdministratorWebTokenSpecWebApps =- AdministratorWebTokenSpecWebApps'- { _awtswaEnabled :: Maybe Bool- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AdministratorWebTokenSpecWebApps' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'awtswaEnabled'-administratorWebTokenSpecWebApps- :: AdministratorWebTokenSpecWebApps-administratorWebTokenSpecWebApps =- AdministratorWebTokenSpecWebApps' {_awtswaEnabled = Nothing}----- | Whether the Web Apps page is displayed. Default is true.-awtswaEnabled :: Lens' AdministratorWebTokenSpecWebApps (Maybe Bool)-awtswaEnabled- = lens _awtswaEnabled- (\ s a -> s{_awtswaEnabled = a})--instance FromJSON AdministratorWebTokenSpecWebApps- where- parseJSON- = withObject "AdministratorWebTokenSpecWebApps"- (\ o ->- AdministratorWebTokenSpecWebApps' <$>- (o .:? "enabled"))--instance ToJSON AdministratorWebTokenSpecWebApps- where- toJSON AdministratorWebTokenSpecWebApps'{..}- = object- (catMaybes [("enabled" .=) <$> _awtswaEnabled])---- | Information on an approval URL.------ /See:/ 'approvalURLInfo' smart constructor.-data ApprovalURLInfo =- ApprovalURLInfo'- { _auiApprovalURL :: !(Maybe Text)- , _auiKind :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ApprovalURLInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'auiApprovalURL'------ * 'auiKind'-approvalURLInfo- :: ApprovalURLInfo-approvalURLInfo =- ApprovalURLInfo'- {_auiApprovalURL = Nothing, _auiKind = "androidenterprise#approvalUrlInfo"}----- | A URL that displays a product\'s permissions and that can also be used--- to approve the product with the Products.approve call.-auiApprovalURL :: Lens' ApprovalURLInfo (Maybe Text)-auiApprovalURL- = lens _auiApprovalURL- (\ s a -> s{_auiApprovalURL = a})---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#approvalUrlInfo\".-auiKind :: Lens' ApprovalURLInfo Text-auiKind = lens _auiKind (\ s a -> s{_auiKind = a})--instance FromJSON ApprovalURLInfo where- parseJSON- = withObject "ApprovalURLInfo"- (\ o ->- ApprovalURLInfo' <$>- (o .:? "approvalUrl") <*>- (o .:? "kind" .!=- "androidenterprise#approvalUrlInfo"))--instance ToJSON ApprovalURLInfo where- toJSON ApprovalURLInfo'{..}- = object- (catMaybes- [("approvalUrl" .=) <$> _auiApprovalURL,- Just ("kind" .= _auiKind)])---- | The managed configurations settings for a product.------ /See:/ 'managedConfigurationsSettingsListResponse' smart constructor.-data ManagedConfigurationsSettingsListResponse =- ManagedConfigurationsSettingsListResponse'- { _mcslrKind :: !Text- , _mcslrManagedConfigurationsSettings :: !(Maybe [ManagedConfigurationsSettings])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsSettingsListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcslrKind'------ * 'mcslrManagedConfigurationsSettings'-managedConfigurationsSettingsListResponse- :: ManagedConfigurationsSettingsListResponse-managedConfigurationsSettingsListResponse =- ManagedConfigurationsSettingsListResponse'- { _mcslrKind = "androidenterprise#managedConfigurationsSettingsListResponse"- , _mcslrManagedConfigurationsSettings = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#managedConfigurationsSettingsListResponse\".-mcslrKind :: Lens' ManagedConfigurationsSettingsListResponse Text-mcslrKind- = lens _mcslrKind (\ s a -> s{_mcslrKind = a})---- | A managed configurations settings for an app that may be assigned to a--- group of users in an enterprise.-mcslrManagedConfigurationsSettings :: Lens' ManagedConfigurationsSettingsListResponse [ManagedConfigurationsSettings]-mcslrManagedConfigurationsSettings- = lens _mcslrManagedConfigurationsSettings- (\ s a -> s{_mcslrManagedConfigurationsSettings = a})- . _Default- . _Coerce--instance FromJSON- ManagedConfigurationsSettingsListResponse- where- parseJSON- = withObject- "ManagedConfigurationsSettingsListResponse"- (\ o ->- ManagedConfigurationsSettingsListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#managedConfigurationsSettingsListResponse")- <*>- (o .:? "managedConfigurationsSettings" .!= mempty))--instance ToJSON- ManagedConfigurationsSettingsListResponse- where- toJSON ManagedConfigurationsSettingsListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _mcslrKind),- ("managedConfigurationsSettings" .=) <$>- _mcslrManagedConfigurationsSettings])---- | A managed property of a managed configuration. The property must match--- one of the properties in the app restrictions schema of the product.--- Exactly one of the value fields must be populated, and it must match the--- property\'s type in the app restrictions schema.------ /See:/ 'managedProperty' smart constructor.-data ManagedProperty =- ManagedProperty'- { _mpValueStringArray :: !(Maybe [Text])- , _mpValueBool :: !(Maybe Bool)- , _mpKey :: !(Maybe Text)- , _mpValueBundle :: !(Maybe ManagedPropertyBundle)- , _mpValueInteger :: !(Maybe (Textual Int32))- , _mpValueBundleArray :: !(Maybe [ManagedPropertyBundle])- , _mpValueString :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedProperty' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mpValueStringArray'------ * 'mpValueBool'------ * 'mpKey'------ * 'mpValueBundle'------ * 'mpValueInteger'------ * 'mpValueBundleArray'------ * 'mpValueString'-managedProperty- :: ManagedProperty-managedProperty =- ManagedProperty'- { _mpValueStringArray = Nothing- , _mpValueBool = Nothing- , _mpKey = Nothing- , _mpValueBundle = Nothing- , _mpValueInteger = Nothing- , _mpValueBundleArray = Nothing- , _mpValueString = Nothing- }----- | The list of string values - this will only be present if type of the--- property is multiselect.-mpValueStringArray :: Lens' ManagedProperty [Text]-mpValueStringArray- = lens _mpValueStringArray- (\ s a -> s{_mpValueStringArray = a})- . _Default- . _Coerce---- | The boolean value - this will only be present if type of the property is--- bool.-mpValueBool :: Lens' ManagedProperty (Maybe Bool)-mpValueBool- = lens _mpValueBool (\ s a -> s{_mpValueBool = a})---- | The unique key that identifies the property.-mpKey :: Lens' ManagedProperty (Maybe Text)-mpKey = lens _mpKey (\ s a -> s{_mpKey = a})---- | The bundle of managed properties - this will only be present if type of--- the property is bundle.-mpValueBundle :: Lens' ManagedProperty (Maybe ManagedPropertyBundle)-mpValueBundle- = lens _mpValueBundle- (\ s a -> s{_mpValueBundle = a})---- | The integer value - this will only be present if type of the property is--- integer.-mpValueInteger :: Lens' ManagedProperty (Maybe Int32)-mpValueInteger- = lens _mpValueInteger- (\ s a -> s{_mpValueInteger = a})- . mapping _Coerce---- | The list of bundles of properties - this will only be present if type of--- the property is bundle_array.-mpValueBundleArray :: Lens' ManagedProperty [ManagedPropertyBundle]-mpValueBundleArray- = lens _mpValueBundleArray- (\ s a -> s{_mpValueBundleArray = a})- . _Default- . _Coerce---- | The string value - this will only be present if type of the property is--- string, choice or hidden.-mpValueString :: Lens' ManagedProperty (Maybe Text)-mpValueString- = lens _mpValueString- (\ s a -> s{_mpValueString = a})--instance FromJSON ManagedProperty where- parseJSON- = withObject "ManagedProperty"- (\ o ->- ManagedProperty' <$>- (o .:? "valueStringArray" .!= mempty) <*>- (o .:? "valueBool")- <*> (o .:? "key")- <*> (o .:? "valueBundle")- <*> (o .:? "valueInteger")- <*> (o .:? "valueBundleArray" .!= mempty)- <*> (o .:? "valueString"))--instance ToJSON ManagedProperty where- toJSON ManagedProperty'{..}- = object- (catMaybes- [("valueStringArray" .=) <$> _mpValueStringArray,- ("valueBool" .=) <$> _mpValueBool,- ("key" .=) <$> _mpKey,- ("valueBundle" .=) <$> _mpValueBundle,- ("valueInteger" .=) <$> _mpValueInteger,- ("valueBundleArray" .=) <$> _mpValueBundleArray,- ("valueString" .=) <$> _mpValueString])---- | The store page resources for the enterprise.------ /See:/ 'storeLayoutClustersListResponse' smart constructor.-data StoreLayoutClustersListResponse =- StoreLayoutClustersListResponse'- { _slclrCluster :: !(Maybe [StoreCluster])- , _slclrKind :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StoreLayoutClustersListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'slclrCluster'------ * 'slclrKind'-storeLayoutClustersListResponse- :: StoreLayoutClustersListResponse-storeLayoutClustersListResponse =- StoreLayoutClustersListResponse'- { _slclrCluster = Nothing- , _slclrKind = "androidenterprise#storeLayoutClustersListResponse"- }----- | A store cluster of an enterprise.-slclrCluster :: Lens' StoreLayoutClustersListResponse [StoreCluster]-slclrCluster- = lens _slclrCluster (\ s a -> s{_slclrCluster = a})- . _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#storeLayoutClustersListResponse\".-slclrKind :: Lens' StoreLayoutClustersListResponse Text-slclrKind- = lens _slclrKind (\ s a -> s{_slclrKind = a})--instance FromJSON StoreLayoutClustersListResponse- where- parseJSON- = withObject "StoreLayoutClustersListResponse"- (\ o ->- StoreLayoutClustersListResponse' <$>- (o .:? "cluster" .!= mempty) <*>- (o .:? "kind" .!=- "androidenterprise#storeLayoutClustersListResponse"))--instance ToJSON StoreLayoutClustersListResponse where- toJSON StoreLayoutClustersListResponse'{..}- = object- (catMaybes- [("cluster" .=) <$> _slclrCluster,- Just ("kind" .= _slclrKind)])---- | A managed configuration resource contains the set of managed properties--- defined by the app developer in the app\'s managed configurations--- schema, as well as any configuration variables defined for the user.------ /See:/ 'managedConfiguration' smart constructor.-data ManagedConfiguration =- ManagedConfiguration'- { _mcManagedProperty :: !(Maybe [ManagedProperty])- , _mcKind :: !Text- , _mcConfigurationVariables :: !(Maybe ConfigurationVariables)- , _mcProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfiguration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcManagedProperty'------ * 'mcKind'------ * 'mcConfigurationVariables'------ * 'mcProductId'-managedConfiguration- :: ManagedConfiguration-managedConfiguration =- ManagedConfiguration'- { _mcManagedProperty = Nothing- , _mcKind = "androidenterprise#managedConfiguration"- , _mcConfigurationVariables = Nothing- , _mcProductId = Nothing- }----- | The set of managed properties for this configuration.-mcManagedProperty :: Lens' ManagedConfiguration [ManagedProperty]-mcManagedProperty- = lens _mcManagedProperty- (\ s a -> s{_mcManagedProperty = a})- . _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#managedConfiguration\".-mcKind :: Lens' ManagedConfiguration Text-mcKind = lens _mcKind (\ s a -> s{_mcKind = a})---- | Contains the ID of the managed configuration profile and the set of--- configuration variables (if any) defined for the user.-mcConfigurationVariables :: Lens' ManagedConfiguration (Maybe ConfigurationVariables)-mcConfigurationVariables- = lens _mcConfigurationVariables- (\ s a -> s{_mcConfigurationVariables = a})---- | The ID of the product that the managed configuration is for, e.g.--- \"app:com.google.android.gm\".-mcProductId :: Lens' ManagedConfiguration (Maybe Text)-mcProductId- = lens _mcProductId (\ s a -> s{_mcProductId = a})--instance FromJSON ManagedConfiguration where- parseJSON- = withObject "ManagedConfiguration"- (\ o ->- ManagedConfiguration' <$>- (o .:? "managedProperty" .!= mempty) <*>- (o .:? "kind" .!=- "androidenterprise#managedConfiguration")- <*> (o .:? "configurationVariables")- <*> (o .:? "productId"))--instance ToJSON ManagedConfiguration where- toJSON ManagedConfiguration'{..}- = object- (catMaybes- [("managedProperty" .=) <$> _mcManagedProperty,- Just ("kind" .= _mcKind),- ("configurationVariables" .=) <$>- _mcConfigurationVariables,- ("productId" .=) <$> _mcProductId])---- | Definition of a managed Google Play store cluster, a list of products--- displayed as part of a store page.------ /See:/ 'storeCluster' smart constructor.-data StoreCluster =- StoreCluster'- { _scKind :: !Text- , _scName :: !(Maybe [LocalizedText])- , _scOrderInPage :: !(Maybe Text)- , _scId :: !(Maybe Text)- , _scProductId :: !(Maybe [Text])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StoreCluster' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'scKind'------ * 'scName'------ * 'scOrderInPage'------ * 'scId'------ * 'scProductId'-storeCluster- :: StoreCluster-storeCluster =- StoreCluster'- { _scKind = "androidenterprise#storeCluster"- , _scName = Nothing- , _scOrderInPage = Nothing- , _scId = Nothing- , _scProductId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#storeCluster\".-scKind :: Lens' StoreCluster Text-scKind = lens _scKind (\ s a -> s{_scKind = a})---- | Ordered list of localized strings giving the name of this page. The text--- displayed is the one that best matches the user locale, or the first--- entry if there is no good match. There needs to be at least one entry.-scName :: Lens' StoreCluster [LocalizedText]-scName- = lens _scName (\ s a -> s{_scName = a}) . _Default .- _Coerce---- | String (US-ASCII only) used to determine order of this cluster within--- the parent page\'s elements. Page elements are sorted in lexicographic--- order of this field. Duplicated values are allowed, but ordering between--- elements with duplicate order is undefined. The value of this field is--- never visible to a user, it is used solely for the purpose of defining--- an ordering. Maximum length is 256 characters.-scOrderInPage :: Lens' StoreCluster (Maybe Text)-scOrderInPage- = lens _scOrderInPage- (\ s a -> s{_scOrderInPage = a})---- | Unique ID of this cluster. Assigned by the server. Immutable once--- assigned.-scId :: Lens' StoreCluster (Maybe Text)-scId = lens _scId (\ s a -> s{_scId = a})---- | List of products in the order they are displayed in the cluster. There--- should not be duplicates within a cluster.-scProductId :: Lens' StoreCluster [Text]-scProductId- = lens _scProductId (\ s a -> s{_scProductId = a}) .- _Default- . _Coerce--instance FromJSON StoreCluster where- parseJSON- = withObject "StoreCluster"- (\ o ->- StoreCluster' <$>- (o .:? "kind" .!= "androidenterprise#storeCluster")- <*> (o .:? "name" .!= mempty)- <*> (o .:? "orderInPage")- <*> (o .:? "id")- <*> (o .:? "productId" .!= mempty))--instance ToJSON StoreCluster where- toJSON StoreCluster'{..}- = object- (catMaybes- [Just ("kind" .= _scKind), ("name" .=) <$> _scName,- ("orderInPage" .=) <$> _scOrderInPage,- ("id" .=) <$> _scId,- ("productId" .=) <$> _scProductId])---- | Specification for a token used to generate iframes. The token specifies--- what data the admin is allowed to modify and the URI the iframe is--- allowed to communiate with.------ /See:/ 'administratorWebTokenSpec' smart constructor.-data AdministratorWebTokenSpec =- AdministratorWebTokenSpec'- { _awtsParent :: !(Maybe Text)- , _awtsPrivateApps :: !(Maybe AdministratorWebTokenSpecPrivateApps)- , _awtsPlaySearch :: !(Maybe AdministratorWebTokenSpecPlaySearch)- , _awtsKind :: !Text- , _awtsWebApps :: !(Maybe AdministratorWebTokenSpecWebApps)- , _awtsPermission :: !(Maybe [Text])- , _awtsStoreBuilder :: !(Maybe AdministratorWebTokenSpecStoreBuilder)- , _awtsManagedConfigurations :: !(Maybe AdministratorWebTokenSpecManagedConfigurations)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AdministratorWebTokenSpec' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'awtsParent'------ * 'awtsPrivateApps'------ * 'awtsPlaySearch'------ * 'awtsKind'------ * 'awtsWebApps'------ * 'awtsPermission'------ * 'awtsStoreBuilder'------ * 'awtsManagedConfigurations'-administratorWebTokenSpec- :: AdministratorWebTokenSpec-administratorWebTokenSpec =- AdministratorWebTokenSpec'- { _awtsParent = Nothing- , _awtsPrivateApps = Nothing- , _awtsPlaySearch = Nothing- , _awtsKind = "androidenterprise#administratorWebTokenSpec"- , _awtsWebApps = Nothing- , _awtsPermission = Nothing- , _awtsStoreBuilder = Nothing- , _awtsManagedConfigurations = Nothing- }----- | The URI of the parent frame hosting the iframe. To prevent XSS, the--- iframe may not be hosted at other URIs. This URI must be https.-awtsParent :: Lens' AdministratorWebTokenSpec (Maybe Text)-awtsParent- = lens _awtsParent (\ s a -> s{_awtsParent = a})---- | Options for displaying the Private Apps page.-awtsPrivateApps :: Lens' AdministratorWebTokenSpec (Maybe AdministratorWebTokenSpecPrivateApps)-awtsPrivateApps- = lens _awtsPrivateApps- (\ s a -> s{_awtsPrivateApps = a})---- | Options for displaying the managed Play Search apps page.-awtsPlaySearch :: Lens' AdministratorWebTokenSpec (Maybe AdministratorWebTokenSpecPlaySearch)-awtsPlaySearch- = lens _awtsPlaySearch- (\ s a -> s{_awtsPlaySearch = a})---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#administratorWebTokenSpec\".-awtsKind :: Lens' AdministratorWebTokenSpec Text-awtsKind = lens _awtsKind (\ s a -> s{_awtsKind = a})---- | Options for displaying the Web Apps page.-awtsWebApps :: Lens' AdministratorWebTokenSpec (Maybe AdministratorWebTokenSpecWebApps)-awtsWebApps- = lens _awtsWebApps (\ s a -> s{_awtsWebApps = a})---- | Deprecated. Use PlaySearch.approveApps.-awtsPermission :: Lens' AdministratorWebTokenSpec [Text]-awtsPermission- = lens _awtsPermission- (\ s a -> s{_awtsPermission = a})- . _Default- . _Coerce---- | Options for displaying the Organize apps page.-awtsStoreBuilder :: Lens' AdministratorWebTokenSpec (Maybe AdministratorWebTokenSpecStoreBuilder)-awtsStoreBuilder- = lens _awtsStoreBuilder- (\ s a -> s{_awtsStoreBuilder = a})---- | Options for displaying the Managed Configuration page.-awtsManagedConfigurations :: Lens' AdministratorWebTokenSpec (Maybe AdministratorWebTokenSpecManagedConfigurations)-awtsManagedConfigurations- = lens _awtsManagedConfigurations- (\ s a -> s{_awtsManagedConfigurations = a})--instance FromJSON AdministratorWebTokenSpec where- parseJSON- = withObject "AdministratorWebTokenSpec"- (\ o ->- AdministratorWebTokenSpec' <$>- (o .:? "parent") <*> (o .:? "privateApps") <*>- (o .:? "playSearch")- <*>- (o .:? "kind" .!=- "androidenterprise#administratorWebTokenSpec")- <*> (o .:? "webApps")- <*> (o .:? "permission" .!= mempty)- <*> (o .:? "storeBuilder")- <*> (o .:? "managedConfigurations"))--instance ToJSON AdministratorWebTokenSpec where- toJSON AdministratorWebTokenSpec'{..}- = object- (catMaybes- [("parent" .=) <$> _awtsParent,- ("privateApps" .=) <$> _awtsPrivateApps,- ("playSearch" .=) <$> _awtsPlaySearch,- Just ("kind" .= _awtsKind),- ("webApps" .=) <$> _awtsWebApps,- ("permission" .=) <$> _awtsPermission,- ("storeBuilder" .=) <$> _awtsStoreBuilder,- ("managedConfigurations" .=) <$>- _awtsManagedConfigurations])---- | A product to be made visible to a user.------ /See:/ 'productVisibility' smart constructor.-data ProductVisibility =- ProductVisibility'- { _pvTracks :: !(Maybe [Text])- , _pvTrackIds :: !(Maybe [Text])- , _pvProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductVisibility' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pvTracks'------ * 'pvTrackIds'------ * 'pvProductId'-productVisibility- :: ProductVisibility-productVisibility =- ProductVisibility'- {_pvTracks = Nothing, _pvTrackIds = Nothing, _pvProductId = Nothing}----- | Deprecated. Use trackIds instead.-pvTracks :: Lens' ProductVisibility [Text]-pvTracks- = lens _pvTracks (\ s a -> s{_pvTracks = a}) .- _Default- . _Coerce---- | Grants the user visibility to the specified product track(s), identified--- by trackIds.-pvTrackIds :: Lens' ProductVisibility [Text]-pvTrackIds- = lens _pvTrackIds (\ s a -> s{_pvTrackIds = a}) .- _Default- . _Coerce---- | The product ID to make visible to the user. Required for each item in--- the productVisibility list.-pvProductId :: Lens' ProductVisibility (Maybe Text)-pvProductId- = lens _pvProductId (\ s a -> s{_pvProductId = a})--instance FromJSON ProductVisibility where- parseJSON- = withObject "ProductVisibility"- (\ o ->- ProductVisibility' <$>- (o .:? "tracks" .!= mempty) <*>- (o .:? "trackIds" .!= mempty)- <*> (o .:? "productId"))--instance ToJSON ProductVisibility where- toJSON ProductVisibility'{..}- = object- (catMaybes- [("tracks" .=) <$> _pvTracks,- ("trackIds" .=) <$> _pvTrackIds,- ("productId" .=) <$> _pvProductId])---- | A notification of one event relating to an enterprise.------ /See:/ 'notification' smart constructor.-data Notification =- Notification'- { _nEnterpriseId :: !(Maybe Text)- , _nNewPermissionsEvent :: !(Maybe NewPermissionsEvent)- , _nProductApprovalEvent :: !(Maybe ProductApprovalEvent)- , _nProductAvailabilityChangeEvent :: !(Maybe ProductAvailabilityChangeEvent)- , _nAppUpdateEvent :: !(Maybe AppUpdateEvent)- , _nInstallFailureEvent :: !(Maybe InstallFailureEvent)- , _nNotificationType :: !(Maybe Text)- , _nAppRestrictionsSchemaChangeEvent :: !(Maybe AppRestrictionsSchemaChangeEvent)- , _nNewDeviceEvent :: !(Maybe NewDeviceEvent)- , _nTimestampMillis :: !(Maybe (Textual Int64))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Notification' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'nEnterpriseId'------ * 'nNewPermissionsEvent'------ * 'nProductApprovalEvent'------ * 'nProductAvailabilityChangeEvent'------ * 'nAppUpdateEvent'------ * 'nInstallFailureEvent'------ * 'nNotificationType'------ * 'nAppRestrictionsSchemaChangeEvent'------ * 'nNewDeviceEvent'------ * 'nTimestampMillis'-notification- :: Notification-notification =- Notification'- { _nEnterpriseId = Nothing- , _nNewPermissionsEvent = Nothing- , _nProductApprovalEvent = Nothing- , _nProductAvailabilityChangeEvent = Nothing- , _nAppUpdateEvent = Nothing- , _nInstallFailureEvent = Nothing- , _nNotificationType = Nothing- , _nAppRestrictionsSchemaChangeEvent = Nothing- , _nNewDeviceEvent = Nothing- , _nTimestampMillis = Nothing- }----- | The ID of the enterprise for which the notification is sent. This will--- always be present.-nEnterpriseId :: Lens' Notification (Maybe Text)-nEnterpriseId- = lens _nEnterpriseId- (\ s a -> s{_nEnterpriseId = a})---- | Notifications about new app permissions.-nNewPermissionsEvent :: Lens' Notification (Maybe NewPermissionsEvent)-nNewPermissionsEvent- = lens _nNewPermissionsEvent- (\ s a -> s{_nNewPermissionsEvent = a})---- | Notifications about changes to a product\'s approval status.-nProductApprovalEvent :: Lens' Notification (Maybe ProductApprovalEvent)-nProductApprovalEvent- = lens _nProductApprovalEvent- (\ s a -> s{_nProductApprovalEvent = a})---- | Notifications about product availability changes.-nProductAvailabilityChangeEvent :: Lens' Notification (Maybe ProductAvailabilityChangeEvent)-nProductAvailabilityChangeEvent- = lens _nProductAvailabilityChangeEvent- (\ s a -> s{_nProductAvailabilityChangeEvent = a})---- | Notifications about app updates.-nAppUpdateEvent :: Lens' Notification (Maybe AppUpdateEvent)-nAppUpdateEvent- = lens _nAppUpdateEvent- (\ s a -> s{_nAppUpdateEvent = a})---- | Notifications about an app installation failure.-nInstallFailureEvent :: Lens' Notification (Maybe InstallFailureEvent)-nInstallFailureEvent- = lens _nInstallFailureEvent- (\ s a -> s{_nInstallFailureEvent = a})---- | Type of the notification.-nNotificationType :: Lens' Notification (Maybe Text)-nNotificationType- = lens _nNotificationType- (\ s a -> s{_nNotificationType = a})---- | Notifications about new app restrictions schema changes.-nAppRestrictionsSchemaChangeEvent :: Lens' Notification (Maybe AppRestrictionsSchemaChangeEvent)-nAppRestrictionsSchemaChangeEvent- = lens _nAppRestrictionsSchemaChangeEvent- (\ s a -> s{_nAppRestrictionsSchemaChangeEvent = a})---- | Notifications about new devices.-nNewDeviceEvent :: Lens' Notification (Maybe NewDeviceEvent)-nNewDeviceEvent- = lens _nNewDeviceEvent- (\ s a -> s{_nNewDeviceEvent = a})---- | The time when the notification was published in milliseconds since--- 1970-01-01T00:00:00Z. This will always be present.-nTimestampMillis :: Lens' Notification (Maybe Int64)-nTimestampMillis- = lens _nTimestampMillis- (\ s a -> s{_nTimestampMillis = a})- . mapping _Coerce--instance FromJSON Notification where- parseJSON- = withObject "Notification"- (\ o ->- Notification' <$>- (o .:? "enterpriseId") <*>- (o .:? "newPermissionsEvent")- <*> (o .:? "productApprovalEvent")- <*> (o .:? "productAvailabilityChangeEvent")- <*> (o .:? "appUpdateEvent")- <*> (o .:? "installFailureEvent")- <*> (o .:? "notificationType")- <*> (o .:? "appRestrictionsSchemaChangeEvent")- <*> (o .:? "newDeviceEvent")- <*> (o .:? "timestampMillis"))--instance ToJSON Notification where- toJSON Notification'{..}- = object- (catMaybes- [("enterpriseId" .=) <$> _nEnterpriseId,- ("newPermissionsEvent" .=) <$> _nNewPermissionsEvent,- ("productApprovalEvent" .=) <$>- _nProductApprovalEvent,- ("productAvailabilityChangeEvent" .=) <$>- _nProductAvailabilityChangeEvent,- ("appUpdateEvent" .=) <$> _nAppUpdateEvent,- ("installFailureEvent" .=) <$> _nInstallFailureEvent,- ("notificationType" .=) <$> _nNotificationType,- ("appRestrictionsSchemaChangeEvent" .=) <$>- _nAppRestrictionsSchemaChangeEvent,- ("newDeviceEvent" .=) <$> _nNewDeviceEvent,- ("timestampMillis" .=) <$> _nTimestampMillis])------- /See:/ 'pageInfo' smart constructor.-data PageInfo =- PageInfo'- { _piResultPerPage :: !(Maybe (Textual Int32))- , _piTotalResults :: !(Maybe (Textual Int32))- , _piStartIndex :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PageInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'piResultPerPage'------ * 'piTotalResults'------ * 'piStartIndex'-pageInfo- :: PageInfo-pageInfo =- PageInfo'- { _piResultPerPage = Nothing- , _piTotalResults = Nothing- , _piStartIndex = Nothing- }---piResultPerPage :: Lens' PageInfo (Maybe Int32)-piResultPerPage- = lens _piResultPerPage- (\ s a -> s{_piResultPerPage = a})- . mapping _Coerce--piTotalResults :: Lens' PageInfo (Maybe Int32)-piTotalResults- = lens _piTotalResults- (\ s a -> s{_piTotalResults = a})- . mapping _Coerce--piStartIndex :: Lens' PageInfo (Maybe Int32)-piStartIndex- = lens _piStartIndex (\ s a -> s{_piStartIndex = a})- . mapping _Coerce--instance FromJSON PageInfo where- parseJSON- = withObject "PageInfo"- (\ o ->- PageInfo' <$>- (o .:? "resultPerPage") <*> (o .:? "totalResults")- <*> (o .:? "startIndex"))--instance ToJSON PageInfo where- toJSON PageInfo'{..}- = object- (catMaybes- [("resultPerPage" .=) <$> _piResultPerPage,- ("totalResults" .=) <$> _piTotalResults,- ("startIndex" .=) <$> _piStartIndex])---- | A product permissions resource represents the set of permissions--- required by a specific app and whether or not they have been accepted by--- an enterprise admin. The API can be used to read the set of permissions,--- and also to update the set to indicate that permissions have been--- accepted.------ /See:/ 'productPermission' smart constructor.-data ProductPermission =- ProductPermission'- { _ppState :: !(Maybe Text)- , _ppPermissionId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductPermission' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ppState'------ * 'ppPermissionId'-productPermission- :: ProductPermission-productPermission =- ProductPermission' {_ppState = Nothing, _ppPermissionId = Nothing}----- | Whether the permission has been accepted or not.-ppState :: Lens' ProductPermission (Maybe Text)-ppState = lens _ppState (\ s a -> s{_ppState = a})---- | An opaque string uniquely identifying the permission.-ppPermissionId :: Lens' ProductPermission (Maybe Text)-ppPermissionId- = lens _ppPermissionId- (\ s a -> s{_ppPermissionId = a})--instance FromJSON ProductPermission where- parseJSON- = withObject "ProductPermission"- (\ o ->- ProductPermission' <$>- (o .:? "state") <*> (o .:? "permissionId"))--instance ToJSON ProductPermission where- toJSON ProductPermission'{..}- = object- (catMaybes- [("state" .=) <$> _ppState,- ("permissionId" .=) <$> _ppPermissionId])---- | An event generated when new permissions are added to an app.------ /See:/ 'newPermissionsEvent' smart constructor.-data NewPermissionsEvent =- NewPermissionsEvent'- { _npeRequestedPermissions :: !(Maybe [Text])- , _npeApprovedPermissions :: !(Maybe [Text])- , _npeProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'NewPermissionsEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'npeRequestedPermissions'------ * 'npeApprovedPermissions'------ * 'npeProductId'-newPermissionsEvent- :: NewPermissionsEvent-newPermissionsEvent =- NewPermissionsEvent'- { _npeRequestedPermissions = Nothing- , _npeApprovedPermissions = Nothing- , _npeProductId = Nothing- }----- | The set of permissions that the app is currently requesting. Use--- Permissions.Get on the EMM API to retrieve details about these--- permissions.-npeRequestedPermissions :: Lens' NewPermissionsEvent [Text]-npeRequestedPermissions- = lens _npeRequestedPermissions- (\ s a -> s{_npeRequestedPermissions = a})- . _Default- . _Coerce---- | The set of permissions that the enterprise admin has already approved--- for this application. Use Permissions.Get on the EMM API to retrieve--- details about these permissions.-npeApprovedPermissions :: Lens' NewPermissionsEvent [Text]-npeApprovedPermissions- = lens _npeApprovedPermissions- (\ s a -> s{_npeApprovedPermissions = a})- . _Default- . _Coerce---- | The id of the product (e.g. \"app:com.google.android.gm\") for which new--- permissions were added. This field will always be present.-npeProductId :: Lens' NewPermissionsEvent (Maybe Text)-npeProductId- = lens _npeProductId (\ s a -> s{_npeProductId = a})--instance FromJSON NewPermissionsEvent where- parseJSON- = withObject "NewPermissionsEvent"- (\ o ->- NewPermissionsEvent' <$>- (o .:? "requestedPermissions" .!= mempty) <*>- (o .:? "approvedPermissions" .!= mempty)- <*> (o .:? "productId"))--instance ToJSON NewPermissionsEvent where- toJSON NewPermissionsEvent'{..}- = object- (catMaybes- [("requestedPermissions" .=) <$>- _npeRequestedPermissions,- ("approvedPermissions" .=) <$>- _npeApprovedPermissions,- ("productId" .=) <$> _npeProductId])---- | An event generated whenever a product\'s availability changes.------ /See:/ 'productAvailabilityChangeEvent' smart constructor.-data ProductAvailabilityChangeEvent =- ProductAvailabilityChangeEvent'- { _paceAvailabilityStatus :: !(Maybe Text)- , _paceProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductAvailabilityChangeEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'paceAvailabilityStatus'------ * 'paceProductId'-productAvailabilityChangeEvent- :: ProductAvailabilityChangeEvent-productAvailabilityChangeEvent =- ProductAvailabilityChangeEvent'- {_paceAvailabilityStatus = Nothing, _paceProductId = Nothing}----- | The new state of the product. This field will always be present.-paceAvailabilityStatus :: Lens' ProductAvailabilityChangeEvent (Maybe Text)-paceAvailabilityStatus- = lens _paceAvailabilityStatus- (\ s a -> s{_paceAvailabilityStatus = a})---- | The id of the product (e.g. \"app:com.google.android.gm\") for which the--- product availability changed. This field will always be present.-paceProductId :: Lens' ProductAvailabilityChangeEvent (Maybe Text)-paceProductId- = lens _paceProductId- (\ s a -> s{_paceProductId = a})--instance FromJSON ProductAvailabilityChangeEvent- where- parseJSON- = withObject "ProductAvailabilityChangeEvent"- (\ o ->- ProductAvailabilityChangeEvent' <$>- (o .:? "availabilityStatus") <*> (o .:? "productId"))--instance ToJSON ProductAvailabilityChangeEvent where- toJSON ProductAvailabilityChangeEvent'{..}- = object- (catMaybes- [("availabilityStatus" .=) <$>- _paceAvailabilityStatus,- ("productId" .=) <$> _paceProductId])---- | An event generated when a product\'s approval status is changed.------ /See:/ 'productApprovalEvent' smart constructor.-data ProductApprovalEvent =- ProductApprovalEvent'- { _paeApproved :: !(Maybe Text)- , _paeProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductApprovalEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'paeApproved'------ * 'paeProductId'-productApprovalEvent- :: ProductApprovalEvent-productApprovalEvent =- ProductApprovalEvent' {_paeApproved = Nothing, _paeProductId = Nothing}----- | Whether the product was approved or unapproved. This field will always--- be present.-paeApproved :: Lens' ProductApprovalEvent (Maybe Text)-paeApproved- = lens _paeApproved (\ s a -> s{_paeApproved = a})---- | The id of the product (e.g. \"app:com.google.android.gm\") for which the--- approval status has changed. This field will always be present.-paeProductId :: Lens' ProductApprovalEvent (Maybe Text)-paeProductId- = lens _paeProductId (\ s a -> s{_paeProductId = a})--instance FromJSON ProductApprovalEvent where- parseJSON- = withObject "ProductApprovalEvent"- (\ o ->- ProductApprovalEvent' <$>- (o .:? "approved") <*> (o .:? "productId"))--instance ToJSON ProductApprovalEvent where- toJSON ProductApprovalEvent'{..}- = object- (catMaybes- [("approved" .=) <$> _paeApproved,- ("productId" .=) <$> _paeProductId])---- | A Devices resource represents a mobile device managed by the EMM and--- belonging to a specific enterprise user.------ /See:/ 'device' smart constructor.-data Device =- Device'- { _dKind :: !Text- , _dPolicy :: !(Maybe Policy)- , _dManagementType :: !(Maybe Text)- , _dAndroidId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Device' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dKind'------ * 'dPolicy'------ * 'dManagementType'------ * 'dAndroidId'-device- :: Device-device =- Device'- { _dKind = "androidenterprise#device"- , _dPolicy = Nothing- , _dManagementType = Nothing- , _dAndroidId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#device\".-dKind :: Lens' Device Text-dKind = lens _dKind (\ s a -> s{_dKind = a})---- | The policy enforced on the device.-dPolicy :: Lens' Device (Maybe Policy)-dPolicy = lens _dPolicy (\ s a -> s{_dPolicy = a})---- | Identifies the extent to which the device is controlled by a managed--- Google Play EMM in various deployment configurations. Possible values--- include: - \"managedDevice\", a device that has the EMM\'s device policy--- controller (DPC) as the device owner. - \"managedProfile\", a device--- that has a profile managed by the DPC (DPC is profile owner) in addition--- to a separate, personal profile that is unavailable to the DPC. ---- \"containerApp\", no longer used (deprecated). - \"unmanagedProfile\", a--- device that has been allowed (by the domain\'s admin, using the Admin--- Console to enable the privilege) to use managed Google Play, but the--- profile is itself not owned by a DPC.-dManagementType :: Lens' Device (Maybe Text)-dManagementType- = lens _dManagementType- (\ s a -> s{_dManagementType = a})---- | The Google Play Services Android ID for the device encoded as a--- lowercase hex string. For example, \"123456789abcdef0\".-dAndroidId :: Lens' Device (Maybe Text)-dAndroidId- = lens _dAndroidId (\ s a -> s{_dAndroidId = a})--instance FromJSON Device where- parseJSON- = withObject "Device"- (\ o ->- Device' <$>- (o .:? "kind" .!= "androidenterprise#device") <*>- (o .:? "policy")- <*> (o .:? "managementType")- <*> (o .:? "androidId"))--instance ToJSON Device where- toJSON Device'{..}- = object- (catMaybes- [Just ("kind" .= _dKind), ("policy" .=) <$> _dPolicy,- ("managementType" .=) <$> _dManagementType,- ("androidId" .=) <$> _dAndroidId])---- | The auto-install constraint. Defines a set of restrictions for--- installation. At least one of the fields must be set.------ /See:/ 'autoInstallConstraint' smart constructor.-data AutoInstallConstraint =- AutoInstallConstraint'- { _aicChargingStateConstraint :: !(Maybe Text)- , _aicDeviceIdleStateConstraint :: !(Maybe Text)- , _aicNetworkTypeConstraint :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AutoInstallConstraint' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aicChargingStateConstraint'------ * 'aicDeviceIdleStateConstraint'------ * 'aicNetworkTypeConstraint'-autoInstallConstraint- :: AutoInstallConstraint-autoInstallConstraint =- AutoInstallConstraint'- { _aicChargingStateConstraint = Nothing- , _aicDeviceIdleStateConstraint = Nothing- , _aicNetworkTypeConstraint = Nothing- }----- | Charging state constraint.-aicChargingStateConstraint :: Lens' AutoInstallConstraint (Maybe Text)-aicChargingStateConstraint- = lens _aicChargingStateConstraint- (\ s a -> s{_aicChargingStateConstraint = a})---- | Device idle state constraint.-aicDeviceIdleStateConstraint :: Lens' AutoInstallConstraint (Maybe Text)-aicDeviceIdleStateConstraint- = lens _aicDeviceIdleStateConstraint- (\ s a -> s{_aicDeviceIdleStateConstraint = a})---- | Network type constraint.-aicNetworkTypeConstraint :: Lens' AutoInstallConstraint (Maybe Text)-aicNetworkTypeConstraint- = lens _aicNetworkTypeConstraint- (\ s a -> s{_aicNetworkTypeConstraint = a})--instance FromJSON AutoInstallConstraint where- parseJSON- = withObject "AutoInstallConstraint"- (\ o ->- AutoInstallConstraint' <$>- (o .:? "chargingStateConstraint") <*>- (o .:? "deviceIdleStateConstraint")- <*> (o .:? "networkTypeConstraint"))--instance ToJSON AutoInstallConstraint where- toJSON AutoInstallConstraint'{..}- = object- (catMaybes- [("chargingStateConstraint" .=) <$>- _aicChargingStateConstraint,- ("deviceIdleStateConstraint" .=) <$>- _aicDeviceIdleStateConstraint,- ("networkTypeConstraint" .=) <$>- _aicNetworkTypeConstraint])---- | Credentials that can be used to authenticate as a service account.------ /See:/ 'serviceAccountKey' smart constructor.-data ServiceAccountKey =- ServiceAccountKey'- { _sakKind :: !Text- , _sakData :: !(Maybe Text)- , _sakId :: !(Maybe Text)- , _sakType :: !(Maybe Text)- , _sakPublicData :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ServiceAccountKey' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sakKind'------ * 'sakData'------ * 'sakId'------ * 'sakType'------ * 'sakPublicData'-serviceAccountKey- :: ServiceAccountKey-serviceAccountKey =- ServiceAccountKey'- { _sakKind = "androidenterprise#serviceAccountKey"- , _sakData = Nothing- , _sakId = Nothing- , _sakType = Nothing- , _sakPublicData = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#serviceAccountKey\".-sakKind :: Lens' ServiceAccountKey Text-sakKind = lens _sakKind (\ s a -> s{_sakKind = a})---- | The body of the private key credentials file, in string format. This is--- only populated when the ServiceAccountKey is created, and is not stored--- by Google.-sakData :: Lens' ServiceAccountKey (Maybe Text)-sakData = lens _sakData (\ s a -> s{_sakData = a})---- | An opaque, unique identifier for this ServiceAccountKey. Assigned by the--- server.-sakId :: Lens' ServiceAccountKey (Maybe Text)-sakId = lens _sakId (\ s a -> s{_sakId = a})---- | The file format of the generated key data.-sakType :: Lens' ServiceAccountKey (Maybe Text)-sakType = lens _sakType (\ s a -> s{_sakType = a})---- | Public key data for the credentials file. This is an X.509 cert. If you--- are using the googleCredentials key type, this is identical to the cert--- that can be retrieved by using the X.509 cert url inside of the--- credentials file.-sakPublicData :: Lens' ServiceAccountKey (Maybe Text)-sakPublicData- = lens _sakPublicData- (\ s a -> s{_sakPublicData = a})--instance FromJSON ServiceAccountKey where- parseJSON- = withObject "ServiceAccountKey"- (\ o ->- ServiceAccountKey' <$>- (o .:? "kind" .!=- "androidenterprise#serviceAccountKey")- <*> (o .:? "data")- <*> (o .:? "id")- <*> (o .:? "type")- <*> (o .:? "publicData"))--instance ToJSON ServiceAccountKey where- toJSON ServiceAccountKey'{..}- = object- (catMaybes- [Just ("kind" .= _sakKind), ("data" .=) <$> _sakData,- ("id" .=) <$> _sakId, ("type" .=) <$> _sakType,- ("publicData" .=) <$> _sakPublicData])---- | The install resources for the device.------ /See:/ 'installsListResponse' smart constructor.-data InstallsListResponse =- InstallsListResponse'- { _ilrKind :: !Text- , _ilrInstall :: !(Maybe [Install])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'InstallsListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ilrKind'------ * 'ilrInstall'-installsListResponse- :: InstallsListResponse-installsListResponse =- InstallsListResponse'- {_ilrKind = "androidenterprise#installsListResponse", _ilrInstall = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#installsListResponse\".-ilrKind :: Lens' InstallsListResponse Text-ilrKind = lens _ilrKind (\ s a -> s{_ilrKind = a})---- | An installation of an app for a user on a specific device. The existence--- of an install implies that the user must have an entitlement to the app.-ilrInstall :: Lens' InstallsListResponse [Install]-ilrInstall- = lens _ilrInstall (\ s a -> s{_ilrInstall = a}) .- _Default- . _Coerce--instance FromJSON InstallsListResponse where- parseJSON- = withObject "InstallsListResponse"- (\ o ->- InstallsListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#installsListResponse")- <*> (o .:? "install" .!= mempty))--instance ToJSON InstallsListResponse where- toJSON InstallsListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _ilrKind),- ("install" .=) <$> _ilrInstall])---- | A restriction in the App Restriction Schema represents a piece of--- configuration that may be pre-applied.------ /See:/ 'appRestrictionsSchemaRestriction' smart constructor.-data AppRestrictionsSchemaRestriction =- AppRestrictionsSchemaRestriction'- { _arsrRestrictionType :: !(Maybe Text)- , _arsrEntry :: !(Maybe [Text])- , _arsrKey :: !(Maybe Text)- , _arsrEntryValue :: !(Maybe [Text])- , _arsrDefaultValue :: !(Maybe AppRestrictionsSchemaRestrictionRestrictionValue)- , _arsrTitle :: !(Maybe Text)- , _arsrDescription :: !(Maybe Text)- , _arsrNestedRestriction :: !(Maybe [AppRestrictionsSchemaRestriction])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppRestrictionsSchemaRestriction' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'arsrRestrictionType'------ * 'arsrEntry'------ * 'arsrKey'------ * 'arsrEntryValue'------ * 'arsrDefaultValue'------ * 'arsrTitle'------ * 'arsrDescription'------ * 'arsrNestedRestriction'-appRestrictionsSchemaRestriction- :: AppRestrictionsSchemaRestriction-appRestrictionsSchemaRestriction =- AppRestrictionsSchemaRestriction'- { _arsrRestrictionType = Nothing- , _arsrEntry = Nothing- , _arsrKey = Nothing- , _arsrEntryValue = Nothing- , _arsrDefaultValue = Nothing- , _arsrTitle = Nothing- , _arsrDescription = Nothing- , _arsrNestedRestriction = Nothing- }----- | The type of the restriction.-arsrRestrictionType :: Lens' AppRestrictionsSchemaRestriction (Maybe Text)-arsrRestrictionType- = lens _arsrRestrictionType- (\ s a -> s{_arsrRestrictionType = a})---- | For choice or multiselect restrictions, the list of possible entries\'--- human-readable names.-arsrEntry :: Lens' AppRestrictionsSchemaRestriction [Text]-arsrEntry- = lens _arsrEntry (\ s a -> s{_arsrEntry = a}) .- _Default- . _Coerce---- | The unique key that the product uses to identify the restriction, e.g.--- \"com.google.android.gm.fieldname\".-arsrKey :: Lens' AppRestrictionsSchemaRestriction (Maybe Text)-arsrKey = lens _arsrKey (\ s a -> s{_arsrKey = a})---- | For choice or multiselect restrictions, the list of possible entries\'--- machine-readable values. These values should be used in the--- configuration, either as a single string value for a choice restriction--- or in a stringArray for a multiselect restriction.-arsrEntryValue :: Lens' AppRestrictionsSchemaRestriction [Text]-arsrEntryValue- = lens _arsrEntryValue- (\ s a -> s{_arsrEntryValue = a})- . _Default- . _Coerce---- | The default value of the restriction. bundle and bundleArray--- restrictions never have a default value.-arsrDefaultValue :: Lens' AppRestrictionsSchemaRestriction (Maybe AppRestrictionsSchemaRestrictionRestrictionValue)-arsrDefaultValue- = lens _arsrDefaultValue- (\ s a -> s{_arsrDefaultValue = a})---- | The name of the restriction.-arsrTitle :: Lens' AppRestrictionsSchemaRestriction (Maybe Text)-arsrTitle- = lens _arsrTitle (\ s a -> s{_arsrTitle = a})---- | A longer description of the restriction, giving more detail of what it--- affects.-arsrDescription :: Lens' AppRestrictionsSchemaRestriction (Maybe Text)-arsrDescription- = lens _arsrDescription- (\ s a -> s{_arsrDescription = a})---- | For bundle or bundleArray restrictions, the list of nested restrictions.--- A bundle restriction is always nested within a bundleArray restriction,--- and a bundleArray restriction is at most two levels deep.-arsrNestedRestriction :: Lens' AppRestrictionsSchemaRestriction [AppRestrictionsSchemaRestriction]-arsrNestedRestriction- = lens _arsrNestedRestriction- (\ s a -> s{_arsrNestedRestriction = a})- . _Default- . _Coerce--instance FromJSON AppRestrictionsSchemaRestriction- where- parseJSON- = withObject "AppRestrictionsSchemaRestriction"- (\ o ->- AppRestrictionsSchemaRestriction' <$>- (o .:? "restrictionType") <*>- (o .:? "entry" .!= mempty)- <*> (o .:? "key")- <*> (o .:? "entryValue" .!= mempty)- <*> (o .:? "defaultValue")- <*> (o .:? "title")- <*> (o .:? "description")- <*> (o .:? "nestedRestriction" .!= mempty))--instance ToJSON AppRestrictionsSchemaRestriction- where- toJSON AppRestrictionsSchemaRestriction'{..}- = object- (catMaybes- [("restrictionType" .=) <$> _arsrRestrictionType,- ("entry" .=) <$> _arsrEntry, ("key" .=) <$> _arsrKey,- ("entryValue" .=) <$> _arsrEntryValue,- ("defaultValue" .=) <$> _arsrDefaultValue,- ("title" .=) <$> _arsrTitle,- ("description" .=) <$> _arsrDescription,- ("nestedRestriction" .=) <$> _arsrNestedRestriction])---- | The policy for a product.------ /See:/ 'productPolicy' smart constructor.-data ProductPolicy =- ProductPolicy'- { _ppTracks :: !(Maybe [Text])- , _ppManagedConfiguration :: !(Maybe ManagedConfiguration)- , _ppTrackIds :: !(Maybe [Text])- , _ppAutoInstallPolicy :: !(Maybe AutoInstallPolicy)- , _ppProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ppTracks'------ * 'ppManagedConfiguration'------ * 'ppTrackIds'------ * 'ppAutoInstallPolicy'------ * 'ppProductId'-productPolicy- :: ProductPolicy-productPolicy =- ProductPolicy'- { _ppTracks = Nothing- , _ppManagedConfiguration = Nothing- , _ppTrackIds = Nothing- , _ppAutoInstallPolicy = Nothing- , _ppProductId = Nothing- }----- | Deprecated. Use trackIds instead.-ppTracks :: Lens' ProductPolicy [Text]-ppTracks- = lens _ppTracks (\ s a -> s{_ppTracks = a}) .- _Default- . _Coerce---- | The managed configuration for the product.-ppManagedConfiguration :: Lens' ProductPolicy (Maybe ManagedConfiguration)-ppManagedConfiguration- = lens _ppManagedConfiguration- (\ s a -> s{_ppManagedConfiguration = a})---- | Grants the device visibility to the specified product release track(s),--- identified by trackIds. The list of release tracks of a product can be--- obtained by calling Products.Get.-ppTrackIds :: Lens' ProductPolicy [Text]-ppTrackIds- = lens _ppTrackIds (\ s a -> s{_ppTrackIds = a}) .- _Default- . _Coerce---- | The auto-install policy for the product.-ppAutoInstallPolicy :: Lens' ProductPolicy (Maybe AutoInstallPolicy)-ppAutoInstallPolicy- = lens _ppAutoInstallPolicy- (\ s a -> s{_ppAutoInstallPolicy = a})---- | The ID of the product. For example, \"app:com.google.android.gm\".-ppProductId :: Lens' ProductPolicy (Maybe Text)-ppProductId- = lens _ppProductId (\ s a -> s{_ppProductId = a})--instance FromJSON ProductPolicy where- parseJSON- = withObject "ProductPolicy"- (\ o ->- ProductPolicy' <$>- (o .:? "tracks" .!= mempty) <*>- (o .:? "managedConfiguration")- <*> (o .:? "trackIds" .!= mempty)- <*> (o .:? "autoInstallPolicy")- <*> (o .:? "productId"))--instance ToJSON ProductPolicy where- toJSON ProductPolicy'{..}- = object- (catMaybes- [("tracks" .=) <$> _ppTracks,- ("managedConfiguration" .=) <$>- _ppManagedConfiguration,- ("trackIds" .=) <$> _ppTrackIds,- ("autoInstallPolicy" .=) <$> _ppAutoInstallPolicy,- ("productId" .=) <$> _ppProductId])---- | This represents an enterprise admin who can manage the enterprise in the--- managed Google Play store.------ /See:/ 'administrator' smart constructor.-newtype Administrator =- Administrator'- { _aEmail :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Administrator' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aEmail'-administrator- :: Administrator-administrator = Administrator' {_aEmail = Nothing}----- | The admin\'s email address.-aEmail :: Lens' Administrator (Maybe Text)-aEmail = lens _aEmail (\ s a -> s{_aEmail = a})--instance FromJSON Administrator where- parseJSON- = withObject "Administrator"- (\ o -> Administrator' <$> (o .:? "email"))--instance ToJSON Administrator where- toJSON Administrator'{..}- = object (catMaybes [("email" .=) <$> _aEmail])---- | The matching user resources.------ /See:/ 'usersListResponse' smart constructor.-data UsersListResponse =- UsersListResponse'- { _ulrKind :: !Text- , _ulrUser :: !(Maybe [User])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ulrKind'------ * 'ulrUser'-usersListResponse- :: UsersListResponse-usersListResponse =- UsersListResponse'- {_ulrKind = "androidenterprise#usersListResponse", _ulrUser = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#usersListResponse\".-ulrKind :: Lens' UsersListResponse Text-ulrKind = lens _ulrKind (\ s a -> s{_ulrKind = a})---- | A user of an enterprise.-ulrUser :: Lens' UsersListResponse [User]-ulrUser- = lens _ulrUser (\ s a -> s{_ulrUser = a}) . _Default- . _Coerce--instance FromJSON UsersListResponse where- parseJSON- = withObject "UsersListResponse"- (\ o ->- UsersListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#usersListResponse")- <*> (o .:? "user" .!= mempty))--instance ToJSON UsersListResponse where- toJSON UsersListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _ulrKind),- ("user" .=) <$> _ulrUser])------- /See:/ 'administratorWebTokenSpecStoreBuilder' smart constructor.-newtype AdministratorWebTokenSpecStoreBuilder =- AdministratorWebTokenSpecStoreBuilder'- { _awtssbEnabled :: Maybe Bool- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AdministratorWebTokenSpecStoreBuilder' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'awtssbEnabled'-administratorWebTokenSpecStoreBuilder- :: AdministratorWebTokenSpecStoreBuilder-administratorWebTokenSpecStoreBuilder =- AdministratorWebTokenSpecStoreBuilder' {_awtssbEnabled = Nothing}----- | Whether the Organize apps page is displayed. Default is true.-awtssbEnabled :: Lens' AdministratorWebTokenSpecStoreBuilder (Maybe Bool)-awtssbEnabled- = lens _awtssbEnabled- (\ s a -> s{_awtssbEnabled = a})--instance FromJSON- AdministratorWebTokenSpecStoreBuilder- where- parseJSON- = withObject "AdministratorWebTokenSpecStoreBuilder"- (\ o ->- AdministratorWebTokenSpecStoreBuilder' <$>- (o .:? "enabled"))--instance ToJSON AdministratorWebTokenSpecStoreBuilder- where- toJSON AdministratorWebTokenSpecStoreBuilder'{..}- = object- (catMaybes [("enabled" .=) <$> _awtssbEnabled])---- | An AuthenticationToken is used by the EMM\'s device policy client on a--- device to provision the given EMM-managed user on that device.------ /See:/ 'authenticationToken' smart constructor.-data AuthenticationToken =- AuthenticationToken'- { _atKind :: !Text- , _atToken :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AuthenticationToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'atKind'------ * 'atToken'-authenticationToken- :: AuthenticationToken-authenticationToken =- AuthenticationToken'- {_atKind = "androidenterprise#authenticationToken", _atToken = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#authenticationToken\".-atKind :: Lens' AuthenticationToken Text-atKind = lens _atKind (\ s a -> s{_atKind = a})---- | The authentication token to be passed to the device policy client on the--- device where it can be used to provision the account for which this--- token was generated.-atToken :: Lens' AuthenticationToken (Maybe Text)-atToken = lens _atToken (\ s a -> s{_atToken = a})--instance FromJSON AuthenticationToken where- parseJSON- = withObject "AuthenticationToken"- (\ o ->- AuthenticationToken' <$>- (o .:? "kind" .!=- "androidenterprise#authenticationToken")- <*> (o .:? "token"))--instance ToJSON AuthenticationToken where- toJSON AuthenticationToken'{..}- = object- (catMaybes- [Just ("kind" .= _atKind),- ("token" .=) <$> _atToken])---- | A managed configurations settings resource contains the set of managed--- properties that have been configured for an Android app to be applied to--- a set of users. The app\'s developer would have defined configurable--- properties in the managed configurations schema.------ /See:/ 'managedConfigurationsSettings' smart constructor.-data ManagedConfigurationsSettings =- ManagedConfigurationsSettings'- { _mcsLastUpdatedTimestampMillis :: !(Maybe (Textual Int64))- , _mcsManagedProperty :: !(Maybe [ManagedProperty])- , _mcsKind :: !Text- , _mcsMcmId :: !(Maybe Text)- , _mcsName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsSettings' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcsLastUpdatedTimestampMillis'------ * 'mcsManagedProperty'------ * 'mcsKind'------ * 'mcsMcmId'------ * 'mcsName'-managedConfigurationsSettings- :: ManagedConfigurationsSettings-managedConfigurationsSettings =- ManagedConfigurationsSettings'- { _mcsLastUpdatedTimestampMillis = Nothing- , _mcsManagedProperty = Nothing- , _mcsKind = "androidenterprise#managedConfigurationsSettings"- , _mcsMcmId = Nothing- , _mcsName = Nothing- }----- | The last updated time of the managed configuration settings in--- milliseconds since 1970-01-01T00:00:00Z.-mcsLastUpdatedTimestampMillis :: Lens' ManagedConfigurationsSettings (Maybe Int64)-mcsLastUpdatedTimestampMillis- = lens _mcsLastUpdatedTimestampMillis- (\ s a -> s{_mcsLastUpdatedTimestampMillis = a})- . mapping _Coerce---- | The set of managed properties for this configuration.-mcsManagedProperty :: Lens' ManagedConfigurationsSettings [ManagedProperty]-mcsManagedProperty- = lens _mcsManagedProperty- (\ s a -> s{_mcsManagedProperty = a})- . _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#managedConfigurationsSettings\".-mcsKind :: Lens' ManagedConfigurationsSettings Text-mcsKind = lens _mcsKind (\ s a -> s{_mcsKind = a})---- | The ID of the managed configurations settings.-mcsMcmId :: Lens' ManagedConfigurationsSettings (Maybe Text)-mcsMcmId = lens _mcsMcmId (\ s a -> s{_mcsMcmId = a})---- | The name of the managed configurations settings.-mcsName :: Lens' ManagedConfigurationsSettings (Maybe Text)-mcsName = lens _mcsName (\ s a -> s{_mcsName = a})--instance FromJSON ManagedConfigurationsSettings where- parseJSON- = withObject "ManagedConfigurationsSettings"- (\ o ->- ManagedConfigurationsSettings' <$>- (o .:? "lastUpdatedTimestampMillis") <*>- (o .:? "managedProperty" .!= mempty)- <*>- (o .:? "kind" .!=- "androidenterprise#managedConfigurationsSettings")- <*> (o .:? "mcmId")- <*> (o .:? "name"))--instance ToJSON ManagedConfigurationsSettings where- toJSON ManagedConfigurationsSettings'{..}- = object- (catMaybes- [("lastUpdatedTimestampMillis" .=) <$>- _mcsLastUpdatedTimestampMillis,- ("managedProperty" .=) <$> _mcsManagedProperty,- Just ("kind" .= _mcsKind),- ("mcmId" .=) <$> _mcsMcmId,- ("name" .=) <$> _mcsName])---- | This represents a single version of the app.------ /See:/ 'appVersion' smart constructor.-data AppVersion =- AppVersion'- { _avTrack :: !(Maybe Text)- , _avVersionCode :: !(Maybe (Textual Int32))- , _avVersionString :: !(Maybe Text)- , _avTrackId :: !(Maybe [Text])- , _avIsProduction :: !(Maybe Bool)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppVersion' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'avTrack'------ * 'avVersionCode'------ * 'avVersionString'------ * 'avTrackId'------ * 'avIsProduction'-appVersion- :: AppVersion-appVersion =- AppVersion'- { _avTrack = Nothing- , _avVersionCode = Nothing- , _avVersionString = Nothing- , _avTrackId = Nothing- , _avIsProduction = Nothing- }----- | Deprecated, use trackId instead.-avTrack :: Lens' AppVersion (Maybe Text)-avTrack = lens _avTrack (\ s a -> s{_avTrack = a})---- | Unique increasing identifier for the app version.-avVersionCode :: Lens' AppVersion (Maybe Int32)-avVersionCode- = lens _avVersionCode- (\ s a -> s{_avVersionCode = a})- . mapping _Coerce---- | The string used in the Play store by the app developer to identify the--- version. The string is not necessarily unique or localized (for example,--- the string could be \"1.4\").-avVersionString :: Lens' AppVersion (Maybe Text)-avVersionString- = lens _avVersionString- (\ s a -> s{_avVersionString = a})---- | Track ids that the app version is published in. Replaces the track field--- (deprecated), but doesn\'t include the production track (see--- isProduction instead).-avTrackId :: Lens' AppVersion [Text]-avTrackId- = lens _avTrackId (\ s a -> s{_avTrackId = a}) .- _Default- . _Coerce---- | True if this version is a production APK.-avIsProduction :: Lens' AppVersion (Maybe Bool)-avIsProduction- = lens _avIsProduction- (\ s a -> s{_avIsProduction = a})--instance FromJSON AppVersion where- parseJSON- = withObject "AppVersion"- (\ o ->- AppVersion' <$>- (o .:? "track") <*> (o .:? "versionCode") <*>- (o .:? "versionString")- <*> (o .:? "trackId" .!= mempty)- <*> (o .:? "isProduction"))--instance ToJSON AppVersion where- toJSON AppVersion'{..}- = object- (catMaybes- [("track" .=) <$> _avTrack,- ("versionCode" .=) <$> _avVersionCode,- ("versionString" .=) <$> _avVersionString,- ("trackId" .=) <$> _avTrackId,- ("isProduction" .=) <$> _avIsProduction])---- | A bundle of managed properties.------ /See:/ 'managedPropertyBundle' smart constructor.-newtype ManagedPropertyBundle =- ManagedPropertyBundle'- { _mpbManagedProperty :: Maybe [ManagedProperty]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedPropertyBundle' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mpbManagedProperty'-managedPropertyBundle- :: ManagedPropertyBundle-managedPropertyBundle = ManagedPropertyBundle' {_mpbManagedProperty = Nothing}----- | The list of managed properties.-mpbManagedProperty :: Lens' ManagedPropertyBundle [ManagedProperty]-mpbManagedProperty- = lens _mpbManagedProperty- (\ s a -> s{_mpbManagedProperty = a})- . _Default- . _Coerce--instance FromJSON ManagedPropertyBundle where- parseJSON- = withObject "ManagedPropertyBundle"- (\ o ->- ManagedPropertyBundle' <$>- (o .:? "managedProperty" .!= mempty))--instance ToJSON ManagedPropertyBundle where- toJSON ManagedPropertyBundle'{..}- = object- (catMaybes- [("managedProperty" .=) <$> _mpbManagedProperty])---- | The grouplicense resources for the enterprise.------ /See:/ 'groupLicensesListResponse' smart constructor.-data GroupLicensesListResponse =- GroupLicensesListResponse'- { _gllrGroupLicense :: !(Maybe [GroupLicense])- , _gllrKind :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GroupLicensesListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gllrGroupLicense'------ * 'gllrKind'-groupLicensesListResponse- :: GroupLicensesListResponse-groupLicensesListResponse =- GroupLicensesListResponse'- { _gllrGroupLicense = Nothing- , _gllrKind = "androidenterprise#groupLicensesListResponse"- }----- | A group license for a product approved for use in the enterprise.-gllrGroupLicense :: Lens' GroupLicensesListResponse [GroupLicense]-gllrGroupLicense- = lens _gllrGroupLicense- (\ s a -> s{_gllrGroupLicense = a})- . _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#groupLicensesListResponse\".-gllrKind :: Lens' GroupLicensesListResponse Text-gllrKind = lens _gllrKind (\ s a -> s{_gllrKind = a})--instance FromJSON GroupLicensesListResponse where- parseJSON- = withObject "GroupLicensesListResponse"- (\ o ->- GroupLicensesListResponse' <$>- (o .:? "groupLicense" .!= mempty) <*>- (o .:? "kind" .!=- "androidenterprise#groupLicensesListResponse"))--instance ToJSON GroupLicensesListResponse where- toJSON GroupLicensesListResponse'{..}- = object- (catMaybes- [("groupLicense" .=) <$> _gllrGroupLicense,- Just ("kind" .= _gllrKind)])---- | A set of products.------ /See:/ 'productSet' smart constructor.-data ProductSet =- ProductSet'- { _psProductVisibility :: !(Maybe [ProductVisibility])- , _psKind :: !Text- , _psProductSetBehavior :: !(Maybe Text)- , _psProductId :: !(Maybe [Text])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'psProductVisibility'------ * 'psKind'------ * 'psProductSetBehavior'------ * 'psProductId'-productSet- :: ProductSet-productSet =- ProductSet'- { _psProductVisibility = Nothing- , _psKind = "androidenterprise#productSet"- , _psProductSetBehavior = Nothing- , _psProductId = Nothing- }----- | Additional list of product IDs making up the product set. Unlike the--- productID array, in this list It\'s possible to specify which tracks--- (alpha, beta, production) of a product are visible to the user. See--- ProductVisibility and its fields for more information. Specifying the--- same product ID both here and in the productId array is not allowed and--- it will result in an error.-psProductVisibility :: Lens' ProductSet [ProductVisibility]-psProductVisibility- = lens _psProductVisibility- (\ s a -> s{_psProductVisibility = a})- . _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#productSet\".-psKind :: Lens' ProductSet Text-psKind = lens _psKind (\ s a -> s{_psKind = a})---- | The interpretation of this product set. \"unknown\" should never be sent--- and is ignored if received. \"whitelist\" means that the user is--- entitled to access the product set. \"includeAll\" means that all--- products are accessible, including products that are approved, products--- with revoked approval, and products that have never been approved.--- \"allApproved\" means that the user is entitled to access all products--- that are approved for the enterprise. If the value is \"allApproved\" or--- \"includeAll\", the productId field is ignored. If no value is provided,--- it is interpreted as \"whitelist\" for backwards compatibility. Further--- \"allApproved\" or \"includeAll\" does not enable automatic visibility--- of \"alpha\" or \"beta\" tracks for Android app. Use ProductVisibility--- to enable \"alpha\" or \"beta\" tracks per user.-psProductSetBehavior :: Lens' ProductSet (Maybe Text)-psProductSetBehavior- = lens _psProductSetBehavior- (\ s a -> s{_psProductSetBehavior = a})---- | The list of product IDs making up the set of products.-psProductId :: Lens' ProductSet [Text]-psProductId- = lens _psProductId (\ s a -> s{_psProductId = a}) .- _Default- . _Coerce--instance FromJSON ProductSet where- parseJSON- = withObject "ProductSet"- (\ o ->- ProductSet' <$>- (o .:? "productVisibility" .!= mempty) <*>- (o .:? "kind" .!= "androidenterprise#productSet")- <*> (o .:? "productSetBehavior")- <*> (o .:? "productId" .!= mempty))--instance ToJSON ProductSet where- toJSON ProductSet'{..}- = object- (catMaybes- [("productVisibility" .=) <$> _psProductVisibility,- Just ("kind" .= _psKind),- ("productSetBehavior" .=) <$> _psProductSetBehavior,- ("productId" .=) <$> _psProductId])---- | The existence of an Installs resource indicates that an app is installed--- on a particular device (or that an install is pending). The API can be--- used to create an install resource using the update method. This--- triggers the actual install of the app on the device. If the user does--- not already have an entitlement for the app, then an attempt is made to--- create one. If this fails (for example, because the app is not free and--- there is no available license), then the creation of the install fails.--- The API can also be used to update an installed app. If--- the update method is used on an existing install, then the app will be--- updated to the latest available version. Note that it is not possible to--- force the installation of a specific version of an app: the version code--- is read-only. If a user installs an app themselves (as permitted by the--- enterprise), then again an install resource and possibly an entitlement--- resource are automatically created. The API can also be used to delete--- an install resource, which triggers the removal of the app from the--- device. Note that deleting an install does not automatically remove the--- corresponding entitlement, even if there are no remaining installs. The--- install resource will also be deleted if the user uninstalls the app--- themselves.------ /See:/ 'install' smart constructor.-data Install =- Install'- { _iVersionCode :: !(Maybe (Textual Int32))- , _iKind :: !Text- , _iInstallState :: !(Maybe Text)- , _iProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Install' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'iVersionCode'------ * 'iKind'------ * 'iInstallState'------ * 'iProductId'-install- :: Install-install =- Install'- { _iVersionCode = Nothing- , _iKind = "androidenterprise#install"- , _iInstallState = Nothing- , _iProductId = Nothing- }----- | The version of the installed product. Guaranteed to be set only if the--- install state is \"installed\".-iVersionCode :: Lens' Install (Maybe Int32)-iVersionCode- = lens _iVersionCode (\ s a -> s{_iVersionCode = a})- . mapping _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#install\".-iKind :: Lens' Install Text-iKind = lens _iKind (\ s a -> s{_iKind = a})---- | Install state. The state \"installPending\" means that an install--- request has recently been made and download to the device is in--- progress. The state \"installed\" means that the app has been installed.--- This field is read-only.-iInstallState :: Lens' Install (Maybe Text)-iInstallState- = lens _iInstallState- (\ s a -> s{_iInstallState = a})---- | The ID of the product that the install is for. For example,--- \"app:com.google.android.gm\".-iProductId :: Lens' Install (Maybe Text)-iProductId- = lens _iProductId (\ s a -> s{_iProductId = a})--instance FromJSON Install where- parseJSON- = withObject "Install"- (\ o ->- Install' <$>- (o .:? "versionCode") <*>- (o .:? "kind" .!= "androidenterprise#install")- <*> (o .:? "installState")- <*> (o .:? "productId"))--instance ToJSON Install where- toJSON Install'{..}- = object- (catMaybes- [("versionCode" .=) <$> _iVersionCode,- Just ("kind" .= _iKind),- ("installState" .=) <$> _iInstallState,- ("productId" .=) <$> _iProductId])---- | Maintenance window for managed Google Play Accounts. This allows Play--- store to update the apps on the foreground in the designated window.------ /See:/ 'maintenanceWindow' smart constructor.-data MaintenanceWindow =- MaintenanceWindow'- { _mwDurationMs :: !(Maybe (Textual Int64))- , _mwStartTimeAfterMidnightMs :: !(Maybe (Textual Int64))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'MaintenanceWindow' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mwDurationMs'------ * 'mwStartTimeAfterMidnightMs'-maintenanceWindow- :: MaintenanceWindow-maintenanceWindow =- MaintenanceWindow'- {_mwDurationMs = Nothing, _mwStartTimeAfterMidnightMs = Nothing}----- | Duration of the maintenance window, in milliseconds. The duration must--- be between 30 minutes and 24 hours (inclusive).-mwDurationMs :: Lens' MaintenanceWindow (Maybe Int64)-mwDurationMs- = lens _mwDurationMs (\ s a -> s{_mwDurationMs = a})- . mapping _Coerce---- | Start time of the maintenance window, in milliseconds after midnight on--- the device. Windows can span midnight.-mwStartTimeAfterMidnightMs :: Lens' MaintenanceWindow (Maybe Int64)-mwStartTimeAfterMidnightMs- = lens _mwStartTimeAfterMidnightMs- (\ s a -> s{_mwStartTimeAfterMidnightMs = a})- . mapping _Coerce--instance FromJSON MaintenanceWindow where- parseJSON- = withObject "MaintenanceWindow"- (\ o ->- MaintenanceWindow' <$>- (o .:? "durationMs") <*>- (o .:? "startTimeAfterMidnightMs"))--instance ToJSON MaintenanceWindow where- toJSON MaintenanceWindow'{..}- = object- (catMaybes- [("durationMs" .=) <$> _mwDurationMs,- ("startTimeAfterMidnightMs" .=) <$>- _mwStartTimeAfterMidnightMs])------- /See:/ 'serviceAccountKeysListResponse' smart constructor.-newtype ServiceAccountKeysListResponse =- ServiceAccountKeysListResponse'- { _saklrServiceAccountKey :: Maybe [ServiceAccountKey]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ServiceAccountKeysListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'saklrServiceAccountKey'-serviceAccountKeysListResponse- :: ServiceAccountKeysListResponse-serviceAccountKeysListResponse =- ServiceAccountKeysListResponse' {_saklrServiceAccountKey = Nothing}----- | The service account credentials.-saklrServiceAccountKey :: Lens' ServiceAccountKeysListResponse [ServiceAccountKey]-saklrServiceAccountKey- = lens _saklrServiceAccountKey- (\ s a -> s{_saklrServiceAccountKey = a})- . _Default- . _Coerce--instance FromJSON ServiceAccountKeysListResponse- where- parseJSON- = withObject "ServiceAccountKeysListResponse"- (\ o ->- ServiceAccountKeysListResponse' <$>- (o .:? "serviceAccountKey" .!= mempty))--instance ToJSON ServiceAccountKeysListResponse where- toJSON ServiceAccountKeysListResponse'{..}- = object- (catMaybes- [("serviceAccountKey" .=) <$>- _saklrServiceAccountKey])---- | Id to name association of a track.------ /See:/ 'trackInfo' smart constructor.-data TrackInfo =- TrackInfo'- { _tiTrackAlias :: !(Maybe Text)- , _tiTrackId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'TrackInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tiTrackAlias'------ * 'tiTrackId'-trackInfo- :: TrackInfo-trackInfo = TrackInfo' {_tiTrackAlias = Nothing, _tiTrackId = Nothing}----- | A modifiable name for a track. This is the visible name in the play--- developer console.-tiTrackAlias :: Lens' TrackInfo (Maybe Text)-tiTrackAlias- = lens _tiTrackAlias (\ s a -> s{_tiTrackAlias = a})---- | Unmodifiable, unique track identifier. This identifier is the--- releaseTrackId in the url of the play developer console page that--- displays the track information.-tiTrackId :: Lens' TrackInfo (Maybe Text)-tiTrackId- = lens _tiTrackId (\ s a -> s{_tiTrackId = a})--instance FromJSON TrackInfo where- parseJSON- = withObject "TrackInfo"- (\ o ->- TrackInfo' <$>- (o .:? "trackAlias") <*> (o .:? "trackId"))--instance ToJSON TrackInfo where- toJSON TrackInfo'{..}- = object- (catMaybes- [("trackAlias" .=) <$> _tiTrackAlias,- ("trackId" .=) <$> _tiTrackId])---- | A Users resource represents an account associated with an enterprise.--- The account may be specific to a device or to an individual user (who--- can then use the account across multiple devices). The account may--- provide access to managed Google Play only, or to other Google services,--- depending on the identity model: - The Google managed domain identity--- model requires synchronization to Google account sources (via--- primaryEmail). - The managed Google Play Accounts identity model--- provides a dynamic means for enterprises to create user or device--- accounts as needed. These accounts provide access to managed Google--- Play.------ /See:/ 'user' smart constructor.-data User =- User'- { _uAccountIdentifier :: !(Maybe Text)- , _uKind :: !Text- , _uDisplayName :: !(Maybe Text)- , _uId :: !(Maybe Text)- , _uPrimaryEmail :: !(Maybe Text)- , _uManagementType :: !(Maybe Text)- , _uAccountType :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'User' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'uAccountIdentifier'------ * 'uKind'------ * 'uDisplayName'------ * 'uId'------ * 'uPrimaryEmail'------ * 'uManagementType'------ * 'uAccountType'-user- :: User-user =- User'- { _uAccountIdentifier = Nothing- , _uKind = "androidenterprise#user"- , _uDisplayName = Nothing- , _uId = Nothing- , _uPrimaryEmail = Nothing- , _uManagementType = Nothing- , _uAccountType = Nothing- }----- | A unique identifier you create for this user, such as \"user342\" or--- \"asset#44418\". Do not use personally identifiable information (PII)--- for this property. Must always be set for EMM-managed users. Not set for--- Google-managed users.-uAccountIdentifier :: Lens' User (Maybe Text)-uAccountIdentifier- = lens _uAccountIdentifier- (\ s a -> s{_uAccountIdentifier = a})---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#user\".-uKind :: Lens' User Text-uKind = lens _uKind (\ s a -> s{_uKind = a})---- | The name that will appear in user interfaces. Setting this property is--- optional when creating EMM-managed users. If you do set this property,--- use something generic about the organization (such as \"Example, Inc.\")--- or your name (as EMM). Not used for Google-managed user accounts.-uDisplayName :: Lens' User (Maybe Text)-uDisplayName- = lens _uDisplayName (\ s a -> s{_uDisplayName = a})---- | The unique ID for the user.-uId :: Lens' User (Maybe Text)-uId = lens _uId (\ s a -> s{_uId = a})---- | The user\'s primary email address, for example, \"jsmith\'example.com\".--- Will always be set for Google managed users and not set for EMM managed--- users.-uPrimaryEmail :: Lens' User (Maybe Text)-uPrimaryEmail- = lens _uPrimaryEmail- (\ s a -> s{_uPrimaryEmail = a})---- | The entity that manages the user. With googleManaged users, the source--- of truth is Google so EMMs have to make sure a Google Account exists for--- the user. With emmManaged users, the EMM is in charge.-uManagementType :: Lens' User (Maybe Text)-uManagementType- = lens _uManagementType- (\ s a -> s{_uManagementType = a})---- | The type of account that this user represents. A userAccount can be--- installed on multiple devices, but a deviceAccount is specific to a--- single device. An EMM-managed user (emmManaged) can be either type--- (userAccount, deviceAccount), but a Google-managed user (googleManaged)--- is always a userAccount.-uAccountType :: Lens' User (Maybe Text)-uAccountType- = lens _uAccountType (\ s a -> s{_uAccountType = a})--instance FromJSON User where- parseJSON- = withObject "User"- (\ o ->- User' <$>- (o .:? "accountIdentifier") <*>- (o .:? "kind" .!= "androidenterprise#user")- <*> (o .:? "displayName")- <*> (o .:? "id")- <*> (o .:? "primaryEmail")- <*> (o .:? "managementType")- <*> (o .:? "accountType"))--instance ToJSON User where- toJSON User'{..}- = object- (catMaybes- [("accountIdentifier" .=) <$> _uAccountIdentifier,- Just ("kind" .= _uKind),- ("displayName" .=) <$> _uDisplayName,- ("id" .=) <$> _uId,- ("primaryEmail" .=) <$> _uPrimaryEmail,- ("managementType" .=) <$> _uManagementType,- ("accountType" .=) <$> _uAccountType])---- | The managed configuration resources for the device.------ /See:/ 'managedConfigurationsForDeviceListResponse' smart constructor.-data ManagedConfigurationsForDeviceListResponse =- ManagedConfigurationsForDeviceListResponse'- { _mcfdlrKind :: !Text- , _mcfdlrManagedConfigurationForDevice :: !(Maybe [ManagedConfiguration])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsForDeviceListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcfdlrKind'------ * 'mcfdlrManagedConfigurationForDevice'-managedConfigurationsForDeviceListResponse- :: ManagedConfigurationsForDeviceListResponse-managedConfigurationsForDeviceListResponse =- ManagedConfigurationsForDeviceListResponse'- { _mcfdlrKind =- "androidenterprise#managedConfigurationsForDeviceListResponse"- , _mcfdlrManagedConfigurationForDevice = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#managedConfigurationsForDeviceListResponse\".-mcfdlrKind :: Lens' ManagedConfigurationsForDeviceListResponse Text-mcfdlrKind- = lens _mcfdlrKind (\ s a -> s{_mcfdlrKind = a})---- | A managed configuration for an app on a specific device.-mcfdlrManagedConfigurationForDevice :: Lens' ManagedConfigurationsForDeviceListResponse [ManagedConfiguration]-mcfdlrManagedConfigurationForDevice- = lens _mcfdlrManagedConfigurationForDevice- (\ s a ->- s{_mcfdlrManagedConfigurationForDevice = a})- . _Default- . _Coerce--instance FromJSON- ManagedConfigurationsForDeviceListResponse- where- parseJSON- = withObject- "ManagedConfigurationsForDeviceListResponse"- (\ o ->- ManagedConfigurationsForDeviceListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#managedConfigurationsForDeviceListResponse")- <*>- (o .:? "managedConfigurationForDevice" .!= mempty))--instance ToJSON- ManagedConfigurationsForDeviceListResponse- where- toJSON- ManagedConfigurationsForDeviceListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _mcfdlrKind),- ("managedConfigurationForDevice" .=) <$>- _mcfdlrManagedConfigurationForDevice])------- /See:/ 'productsGenerateApprovalURLResponse' smart constructor.-newtype ProductsGenerateApprovalURLResponse =- ProductsGenerateApprovalURLResponse'- { _pgaurURL :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsGenerateApprovalURLResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pgaurURL'-productsGenerateApprovalURLResponse- :: ProductsGenerateApprovalURLResponse-productsGenerateApprovalURLResponse =- ProductsGenerateApprovalURLResponse' {_pgaurURL = Nothing}----- | A URL that can be rendered in an iframe to display the permissions (if--- any) of a product. This URL can be used to approve the product only once--- and only within 24 hours of being generated, using the Products.approve--- call. If the product is currently unapproved and has no permissions,--- this URL will point to an empty page. If the product is currently--- approved, a URL will only be generated if that product has added--- permissions since it was last approved, and the URL will only display--- those new permissions that have not yet been accepted.-pgaurURL :: Lens' ProductsGenerateApprovalURLResponse (Maybe Text)-pgaurURL = lens _pgaurURL (\ s a -> s{_pgaurURL = a})--instance FromJSON ProductsGenerateApprovalURLResponse- where- parseJSON- = withObject "ProductsGenerateApprovalURLResponse"- (\ o ->- ProductsGenerateApprovalURLResponse' <$>- (o .:? "url"))--instance ToJSON ProductsGenerateApprovalURLResponse- where- toJSON ProductsGenerateApprovalURLResponse'{..}- = object (catMaybes [("url" .=) <$> _pgaurURL])---- | Definition of a managed Google Play store page, made of a localized name--- and links to other pages. A page also contains clusters defined as a--- subcollection.------ /See:/ 'storePage' smart constructor.-data StorePage =- StorePage'- { _spKind :: !Text- , _spLink :: !(Maybe [Text])- , _spName :: !(Maybe [LocalizedText])- , _spId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorePage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'spKind'------ * 'spLink'------ * 'spName'------ * 'spId'-storePage- :: StorePage-storePage =- StorePage'- { _spKind = "androidenterprise#storePage"- , _spLink = Nothing- , _spName = Nothing- , _spId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#storePage\".-spKind :: Lens' StorePage Text-spKind = lens _spKind (\ s a -> s{_spKind = a})---- | Ordered list of pages a user should be able to reach from this page. The--- list can\'t include this page. It is recommended that the basic pages--- are created first, before adding the links between pages. The API--- doesn\'t verify that the pages exist or the pages are reachable.-spLink :: Lens' StorePage [Text]-spLink- = lens _spLink (\ s a -> s{_spLink = a}) . _Default .- _Coerce---- | Ordered list of localized strings giving the name of this page. The text--- displayed is the one that best matches the user locale, or the first--- entry if there is no good match. There needs to be at least one entry.-spName :: Lens' StorePage [LocalizedText]-spName- = lens _spName (\ s a -> s{_spName = a}) . _Default .- _Coerce---- | Unique ID of this page. Assigned by the server. Immutable once assigned.-spId :: Lens' StorePage (Maybe Text)-spId = lens _spId (\ s a -> s{_spId = a})--instance FromJSON StorePage where- parseJSON- = withObject "StorePage"- (\ o ->- StorePage' <$>- (o .:? "kind" .!= "androidenterprise#storePage") <*>- (o .:? "link" .!= mempty)- <*> (o .:? "name" .!= mempty)- <*> (o .:? "id"))--instance ToJSON StorePage where- toJSON StorePage'{..}- = object- (catMaybes- [Just ("kind" .= _spKind), ("link" .=) <$> _spLink,- ("name" .=) <$> _spName, ("id" .=) <$> _spId])------- /See:/ 'enterprisesSendTestPushNotificationResponse' smart constructor.-data EnterprisesSendTestPushNotificationResponse =- EnterprisesSendTestPushNotificationResponse'- { _estpnrTopicName :: !(Maybe Text)- , _estpnrMessageId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesSendTestPushNotificationResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'estpnrTopicName'------ * 'estpnrMessageId'-enterprisesSendTestPushNotificationResponse- :: EnterprisesSendTestPushNotificationResponse-enterprisesSendTestPushNotificationResponse =- EnterprisesSendTestPushNotificationResponse'- {_estpnrTopicName = Nothing, _estpnrMessageId = Nothing}----- | The name of the Cloud Pub\/Sub topic to which notifications for this--- enterprise\'s enrolled account will be sent.-estpnrTopicName :: Lens' EnterprisesSendTestPushNotificationResponse (Maybe Text)-estpnrTopicName- = lens _estpnrTopicName- (\ s a -> s{_estpnrTopicName = a})---- | The message ID of the test push notification that was sent.-estpnrMessageId :: Lens' EnterprisesSendTestPushNotificationResponse (Maybe Text)-estpnrMessageId- = lens _estpnrMessageId- (\ s a -> s{_estpnrMessageId = a})--instance FromJSON- EnterprisesSendTestPushNotificationResponse- where- parseJSON- = withObject- "EnterprisesSendTestPushNotificationResponse"- (\ o ->- EnterprisesSendTestPushNotificationResponse' <$>- (o .:? "topicName") <*> (o .:? "messageId"))--instance ToJSON- EnterprisesSendTestPushNotificationResponse- where- toJSON- EnterprisesSendTestPushNotificationResponse'{..}- = object- (catMaybes- [("topicName" .=) <$> _estpnrTopicName,- ("messageId" .=) <$> _estpnrMessageId])---- | A service account identity, including the name and credentials that can--- be used to authenticate as the service account.------ /See:/ 'serviceAccount' smart constructor.-data ServiceAccount =- ServiceAccount'- { _saKind :: !Text- , _saKey :: !(Maybe ServiceAccountKey)- , _saName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ServiceAccount' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'saKind'------ * 'saKey'------ * 'saName'-serviceAccount- :: ServiceAccount-serviceAccount =- ServiceAccount'- { _saKind = "androidenterprise#serviceAccount"- , _saKey = Nothing- , _saName = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#serviceAccount\".-saKind :: Lens' ServiceAccount Text-saKind = lens _saKind (\ s a -> s{_saKind = a})---- | Credentials that can be used to authenticate as this ServiceAccount.-saKey :: Lens' ServiceAccount (Maybe ServiceAccountKey)-saKey = lens _saKey (\ s a -> s{_saKey = a})---- | The account name of the service account, in the form of an email--- address. Assigned by the server.-saName :: Lens' ServiceAccount (Maybe Text)-saName = lens _saName (\ s a -> s{_saName = a})--instance FromJSON ServiceAccount where- parseJSON- = withObject "ServiceAccount"- (\ o ->- ServiceAccount' <$>- (o .:? "kind" .!= "androidenterprise#serviceAccount")- <*> (o .:? "key")- <*> (o .:? "name"))--instance ToJSON ServiceAccount where- toJSON ServiceAccount'{..}- = object- (catMaybes- [Just ("kind" .= _saKind), ("key" .=) <$> _saKey,- ("name" .=) <$> _saName])---- | A variable set is a key-value pair of EMM-provided placeholders and its--- corresponding value, which is attributed to a user. For example,--- $FIRSTNAME could be a placeholder, and its value could be Alice.--- Placeholders should start with a \'$\' sign and should be alphanumeric--- only.------ /See:/ 'variableSet' smart constructor.-data VariableSet =- VariableSet'- { _vsKind :: !Text- , _vsUserValue :: !(Maybe Text)- , _vsPlaceholder :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'VariableSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'vsKind'------ * 'vsUserValue'------ * 'vsPlaceholder'-variableSet- :: VariableSet-variableSet =- VariableSet'- { _vsKind = "androidenterprise#variableSet"- , _vsUserValue = Nothing- , _vsPlaceholder = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#variableSet\".-vsKind :: Lens' VariableSet Text-vsKind = lens _vsKind (\ s a -> s{_vsKind = a})---- | The value of the placeholder, specific to the user.-vsUserValue :: Lens' VariableSet (Maybe Text)-vsUserValue- = lens _vsUserValue (\ s a -> s{_vsUserValue = a})---- | The placeholder string; defined by EMM.-vsPlaceholder :: Lens' VariableSet (Maybe Text)-vsPlaceholder- = lens _vsPlaceholder- (\ s a -> s{_vsPlaceholder = a})--instance FromJSON VariableSet where- parseJSON- = withObject "VariableSet"- (\ o ->- VariableSet' <$>- (o .:? "kind" .!= "androidenterprise#variableSet")- <*> (o .:? "userValue")- <*> (o .:? "placeholder"))--instance ToJSON VariableSet where- toJSON VariableSet'{..}- = object- (catMaybes- [Just ("kind" .= _vsKind),- ("userValue" .=) <$> _vsUserValue,- ("placeholder" .=) <$> _vsPlaceholder])---- | An event generated when a new version of an app is uploaded to Google--- Play. Notifications are sent for new public versions only: alpha, beta,--- or canary versions do not generate this event. To fetch up-to-date--- version history for an app, use Products.Get on the EMM API.------ /See:/ 'appUpdateEvent' smart constructor.-newtype AppUpdateEvent =- AppUpdateEvent'- { _aueProductId :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppUpdateEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aueProductId'-appUpdateEvent- :: AppUpdateEvent-appUpdateEvent = AppUpdateEvent' {_aueProductId = Nothing}----- | The id of the product (e.g. \"app:com.google.android.gm\") that was--- updated. This field will always be present.-aueProductId :: Lens' AppUpdateEvent (Maybe Text)-aueProductId- = lens _aueProductId (\ s a -> s{_aueProductId = a})--instance FromJSON AppUpdateEvent where- parseJSON- = withObject "AppUpdateEvent"- (\ o -> AppUpdateEvent' <$> (o .:? "productId"))--instance ToJSON AppUpdateEvent where- toJSON AppUpdateEvent'{..}- = object- (catMaybes [("productId" .=) <$> _aueProductId])---- | The matching enterprise resources.------ /See:/ 'enterprisesListResponse' smart constructor.-data EnterprisesListResponse =- EnterprisesListResponse'- { _elrKind :: !Text- , _elrEnterprise :: !(Maybe [Enterprise])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'elrKind'------ * 'elrEnterprise'-enterprisesListResponse- :: EnterprisesListResponse-enterprisesListResponse =- EnterprisesListResponse'- { _elrKind = "androidenterprise#enterprisesListResponse"- , _elrEnterprise = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#enterprisesListResponse\".-elrKind :: Lens' EnterprisesListResponse Text-elrKind = lens _elrKind (\ s a -> s{_elrKind = a})---- | An enterprise.-elrEnterprise :: Lens' EnterprisesListResponse [Enterprise]-elrEnterprise- = lens _elrEnterprise- (\ s a -> s{_elrEnterprise = a})- . _Default- . _Coerce--instance FromJSON EnterprisesListResponse where- parseJSON- = withObject "EnterprisesListResponse"- (\ o ->- EnterprisesListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#enterprisesListResponse")- <*> (o .:? "enterprise" .!= mempty))--instance ToJSON EnterprisesListResponse where- toJSON EnterprisesListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _elrKind),- ("enterprise" .=) <$> _elrEnterprise])---- | A resource returned by the PullNotificationSet API, which contains a--- collection of notifications for enterprises associated with the service--- account authenticated for the request.------ /See:/ 'notificationSet' smart constructor.-data NotificationSet =- NotificationSet'- { _nsNotificationSetId :: !(Maybe Text)- , _nsNotification :: !(Maybe [Notification])- , _nsKind :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'NotificationSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'nsNotificationSetId'------ * 'nsNotification'------ * 'nsKind'-notificationSet- :: NotificationSet-notificationSet =- NotificationSet'- { _nsNotificationSetId = Nothing- , _nsNotification = Nothing- , _nsKind = "androidenterprise#notificationSet"- }----- | The notification set ID, required to mark the notification as received--- with the Enterprises.AcknowledgeNotification API. This will be omitted--- if no notifications are present.-nsNotificationSetId :: Lens' NotificationSet (Maybe Text)-nsNotificationSetId- = lens _nsNotificationSetId- (\ s a -> s{_nsNotificationSetId = a})---- | The notifications received, or empty if no notifications are present.-nsNotification :: Lens' NotificationSet [Notification]-nsNotification- = lens _nsNotification- (\ s a -> s{_nsNotification = a})- . _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#notificationSet\".-nsKind :: Lens' NotificationSet Text-nsKind = lens _nsKind (\ s a -> s{_nsKind = a})--instance FromJSON NotificationSet where- parseJSON- = withObject "NotificationSet"- (\ o ->- NotificationSet' <$>- (o .:? "notificationSetId") <*>- (o .:? "notification" .!= mempty)- <*>- (o .:? "kind" .!=- "androidenterprise#notificationSet"))--instance ToJSON NotificationSet where- toJSON NotificationSet'{..}- = object- (catMaybes- [("notificationSetId" .=) <$> _nsNotificationSetId,- ("notification" .=) <$> _nsNotification,- Just ("kind" .= _nsKind)])---- | Represents the list of app restrictions available to be pre-configured--- for the product.------ /See:/ 'appRestrictionsSchema' smart constructor.-data AppRestrictionsSchema =- AppRestrictionsSchema'- { _arsKind :: !Text- , _arsRestrictions :: !(Maybe [AppRestrictionsSchemaRestriction])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppRestrictionsSchema' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'arsKind'------ * 'arsRestrictions'-appRestrictionsSchema- :: AppRestrictionsSchema-appRestrictionsSchema =- AppRestrictionsSchema'- { _arsKind = "androidenterprise#appRestrictionsSchema"- , _arsRestrictions = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#appRestrictionsSchema\".-arsKind :: Lens' AppRestrictionsSchema Text-arsKind = lens _arsKind (\ s a -> s{_arsKind = a})---- | The set of restrictions that make up this schema.-arsRestrictions :: Lens' AppRestrictionsSchema [AppRestrictionsSchemaRestriction]-arsRestrictions- = lens _arsRestrictions- (\ s a -> s{_arsRestrictions = a})- . _Default- . _Coerce--instance FromJSON AppRestrictionsSchema where- parseJSON- = withObject "AppRestrictionsSchema"- (\ o ->- AppRestrictionsSchema' <$>- (o .:? "kind" .!=- "androidenterprise#appRestrictionsSchema")- <*> (o .:? "restrictions" .!= mempty))--instance ToJSON AppRestrictionsSchema where- toJSON AppRestrictionsSchema'{..}- = object- (catMaybes- [Just ("kind" .= _arsKind),- ("restrictions" .=) <$> _arsRestrictions])---- | Icon for a web app.------ /See:/ 'webAppIcon' smart constructor.-newtype WebAppIcon =- WebAppIcon'- { _waiImageData :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppIcon' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'waiImageData'-webAppIcon- :: WebAppIcon-webAppIcon = WebAppIcon' {_waiImageData = Nothing}----- | The actual bytes of the image in a base64url encoded string (c.f.--- RFC4648, section 5 \"Base 64 Encoding with URL and Filename Safe--- Alphabet\"). - The image type can be png or jpg. - The image should--- ideally be square. - The image should ideally have a size of 512x512.-waiImageData :: Lens' WebAppIcon (Maybe Text)-waiImageData- = lens _waiImageData (\ s a -> s{_waiImageData = a})--instance FromJSON WebAppIcon where- parseJSON- = withObject "WebAppIcon"- (\ o -> WebAppIcon' <$> (o .:? "imageData"))--instance ToJSON WebAppIcon where- toJSON WebAppIcon'{..}- = object- (catMaybes [("imageData" .=) <$> _waiImageData])---- | A localized string with its locale.------ /See:/ 'localizedText' smart constructor.-data LocalizedText =- LocalizedText'- { _ltText :: !(Maybe Text)- , _ltLocale :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LocalizedText' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ltText'------ * 'ltLocale'-localizedText- :: LocalizedText-localizedText = LocalizedText' {_ltText = Nothing, _ltLocale = Nothing}----- | The text localized in the associated locale.-ltText :: Lens' LocalizedText (Maybe Text)-ltText = lens _ltText (\ s a -> s{_ltText = a})---- | The BCP47 tag for a locale. (e.g. \"en-US\", \"de\").-ltLocale :: Lens' LocalizedText (Maybe Text)-ltLocale = lens _ltLocale (\ s a -> s{_ltLocale = a})--instance FromJSON LocalizedText where- parseJSON- = withObject "LocalizedText"- (\ o ->- LocalizedText' <$>- (o .:? "text") <*> (o .:? "locale"))--instance ToJSON LocalizedText where- toJSON LocalizedText'{..}- = object- (catMaybes- [("text" .=) <$> _ltText,- ("locale" .=) <$> _ltLocale])---- | A UserToken is used by a user when setting up a managed device or--- profile with their managed Google Play account on a device. When the--- user enters their email address and token (activation code) the--- appropriate EMM app can be automatically downloaded.------ /See:/ 'userToken' smart constructor.-data UserToken =- UserToken'- { _utKind :: !Text- , _utToken :: !(Maybe Text)- , _utUserId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UserToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'utKind'------ * 'utToken'------ * 'utUserId'-userToken- :: UserToken-userToken =- UserToken'- { _utKind = "androidenterprise#userToken"- , _utToken = Nothing- , _utUserId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#userToken\".-utKind :: Lens' UserToken Text-utKind = lens _utKind (\ s a -> s{_utKind = a})---- | The token (activation code) to be entered by the user. This consists of--- a sequence of decimal digits. Note that the leading digit may be 0.-utToken :: Lens' UserToken (Maybe Text)-utToken = lens _utToken (\ s a -> s{_utToken = a})---- | The unique ID for the user.-utUserId :: Lens' UserToken (Maybe Text)-utUserId = lens _utUserId (\ s a -> s{_utUserId = a})--instance FromJSON UserToken where- parseJSON- = withObject "UserToken"- (\ o ->- UserToken' <$>- (o .:? "kind" .!= "androidenterprise#userToken") <*>- (o .:? "token")- <*> (o .:? "userId"))--instance ToJSON UserToken where- toJSON UserToken'{..}- = object- (catMaybes- [Just ("kind" .= _utKind), ("token" .=) <$> _utToken,- ("userId" .=) <$> _utUserId])------- /See:/ 'administratorWebTokenSpecPrivateApps' smart constructor.-newtype AdministratorWebTokenSpecPrivateApps =- AdministratorWebTokenSpecPrivateApps'- { _awtspaEnabled :: Maybe Bool- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AdministratorWebTokenSpecPrivateApps' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'awtspaEnabled'-administratorWebTokenSpecPrivateApps- :: AdministratorWebTokenSpecPrivateApps-administratorWebTokenSpecPrivateApps =- AdministratorWebTokenSpecPrivateApps' {_awtspaEnabled = Nothing}----- | Whether the Private Apps page is displayed. Default is true.-awtspaEnabled :: Lens' AdministratorWebTokenSpecPrivateApps (Maybe Bool)-awtspaEnabled- = lens _awtspaEnabled- (\ s a -> s{_awtspaEnabled = a})--instance FromJSON- AdministratorWebTokenSpecPrivateApps- where- parseJSON- = withObject "AdministratorWebTokenSpecPrivateApps"- (\ o ->- AdministratorWebTokenSpecPrivateApps' <$>- (o .:? "enabled"))--instance ToJSON AdministratorWebTokenSpecPrivateApps- where- toJSON AdministratorWebTokenSpecPrivateApps'{..}- = object- (catMaybes [("enabled" .=) <$> _awtspaEnabled])---- | The device resources for the user.------ /See:/ 'devicesListResponse' smart constructor.-data DevicesListResponse =- DevicesListResponse'- { _dlrKind :: !Text- , _dlrDevice :: !(Maybe [Device])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DevicesListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dlrKind'------ * 'dlrDevice'-devicesListResponse- :: DevicesListResponse-devicesListResponse =- DevicesListResponse'- {_dlrKind = "androidenterprise#devicesListResponse", _dlrDevice = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#devicesListResponse\".-dlrKind :: Lens' DevicesListResponse Text-dlrKind = lens _dlrKind (\ s a -> s{_dlrKind = a})---- | A managed device.-dlrDevice :: Lens' DevicesListResponse [Device]-dlrDevice- = lens _dlrDevice (\ s a -> s{_dlrDevice = a}) .- _Default- . _Coerce--instance FromJSON DevicesListResponse where- parseJSON- = withObject "DevicesListResponse"- (\ o ->- DevicesListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#devicesListResponse")- <*> (o .:? "device" .!= mempty))--instance ToJSON DevicesListResponse where- toJSON DevicesListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _dlrKind),- ("device" .=) <$> _dlrDevice])------- /See:/ 'productSigningCertificate' smart constructor.-data ProductSigningCertificate =- ProductSigningCertificate'- { _pscCertificateHashSha256 :: !(Maybe Text)- , _pscCertificateHashSha1 :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductSigningCertificate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pscCertificateHashSha256'------ * 'pscCertificateHashSha1'-productSigningCertificate- :: ProductSigningCertificate-productSigningCertificate =- ProductSigningCertificate'- {_pscCertificateHashSha256 = Nothing, _pscCertificateHashSha1 = Nothing}----- | The base64 urlsafe encoded SHA2-256 hash of the certificate.-pscCertificateHashSha256 :: Lens' ProductSigningCertificate (Maybe Text)-pscCertificateHashSha256- = lens _pscCertificateHashSha256- (\ s a -> s{_pscCertificateHashSha256 = a})---- | The base64 urlsafe encoded SHA1 hash of the certificate. (This field is--- deprecated in favor of SHA2-256. It should not be used and may be--- removed at any time.)-pscCertificateHashSha1 :: Lens' ProductSigningCertificate (Maybe Text)-pscCertificateHashSha1- = lens _pscCertificateHashSha1- (\ s a -> s{_pscCertificateHashSha1 = a})--instance FromJSON ProductSigningCertificate where- parseJSON- = withObject "ProductSigningCertificate"- (\ o ->- ProductSigningCertificate' <$>- (o .:? "certificateHashSha256") <*>- (o .:? "certificateHashSha1"))--instance ToJSON ProductSigningCertificate where- toJSON ProductSigningCertificate'{..}- = object- (catMaybes- [("certificateHashSha256" .=) <$>- _pscCertificateHashSha256,- ("certificateHashSha1" .=) <$>- _pscCertificateHashSha1])---- | An Enterprises resource represents the binding between an EMM and a--- specific organization. That binding can be instantiated in one of two--- different ways using this API as follows: - For Google managed domain--- customers, the process involves using Enterprises.enroll and--- Enterprises.setAccount (in conjunction with artifacts obtained from the--- Admin console and the Google API Console) and submitted to the EMM--- through a more-or-less manual process. - For managed Google Play--- Accounts customers, the process involves using--- Enterprises.generateSignupUrl and Enterprises.completeSignup in--- conjunction with the managed Google Play sign-up UI (Google-provided--- mechanism) to create the binding without manual steps. As an EMM, you--- can support either or both approaches in your EMM console. See Create an--- Enterprise for details.------ /See:/ 'enterprise' smart constructor.-data Enterprise =- Enterprise'- { _eKind :: !Text- , _eAdministrator :: !(Maybe [Administrator])- , _ePrimaryDomain :: !(Maybe Text)- , _eName :: !(Maybe Text)- , _eId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Enterprise' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eKind'------ * 'eAdministrator'------ * 'ePrimaryDomain'------ * 'eName'------ * 'eId'-enterprise- :: Enterprise-enterprise =- Enterprise'- { _eKind = "androidenterprise#enterprise"- , _eAdministrator = Nothing- , _ePrimaryDomain = Nothing- , _eName = Nothing- , _eId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#enterprise\".-eKind :: Lens' Enterprise Text-eKind = lens _eKind (\ s a -> s{_eKind = a})---- | Admins of the enterprise. This is only supported for enterprises created--- via the EMM-initiated flow.-eAdministrator :: Lens' Enterprise [Administrator]-eAdministrator- = lens _eAdministrator- (\ s a -> s{_eAdministrator = a})- . _Default- . _Coerce---- | The enterprise\'s primary domain, such as \"example.com\".-ePrimaryDomain :: Lens' Enterprise (Maybe Text)-ePrimaryDomain- = lens _ePrimaryDomain- (\ s a -> s{_ePrimaryDomain = a})---- | The name of the enterprise, for example, \"Example, Inc\".-eName :: Lens' Enterprise (Maybe Text)-eName = lens _eName (\ s a -> s{_eName = a})---- | The unique ID for the enterprise.-eId :: Lens' Enterprise (Maybe Text)-eId = lens _eId (\ s a -> s{_eId = a})--instance FromJSON Enterprise where- parseJSON- = withObject "Enterprise"- (\ o ->- Enterprise' <$>- (o .:? "kind" .!= "androidenterprise#enterprise") <*>- (o .:? "administrator" .!= mempty)- <*> (o .:? "primaryDomain")- <*> (o .:? "name")- <*> (o .:? "id"))--instance ToJSON Enterprise where- toJSON Enterprise'{..}- = object- (catMaybes- [Just ("kind" .= _eKind),- ("administrator" .=) <$> _eAdministrator,- ("primaryDomain" .=) <$> _ePrimaryDomain,- ("name" .=) <$> _eName, ("id" .=) <$> _eId])---- | An event generated when an app installation failed on a device------ /See:/ 'installFailureEvent' smart constructor.-data InstallFailureEvent =- InstallFailureEvent'- { _ifeFailureReason :: !(Maybe Text)- , _ifeFailureDetails :: !(Maybe Text)- , _ifeUserId :: !(Maybe Text)- , _ifeDeviceId :: !(Maybe Text)- , _ifeProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'InstallFailureEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ifeFailureReason'------ * 'ifeFailureDetails'------ * 'ifeUserId'------ * 'ifeDeviceId'------ * 'ifeProductId'-installFailureEvent- :: InstallFailureEvent-installFailureEvent =- InstallFailureEvent'- { _ifeFailureReason = Nothing- , _ifeFailureDetails = Nothing- , _ifeUserId = Nothing- , _ifeDeviceId = Nothing- , _ifeProductId = Nothing- }----- | The reason for the installation failure. This field will always be--- present.-ifeFailureReason :: Lens' InstallFailureEvent (Maybe Text)-ifeFailureReason- = lens _ifeFailureReason- (\ s a -> s{_ifeFailureReason = a})---- | Additional details on the failure if applicable.-ifeFailureDetails :: Lens' InstallFailureEvent (Maybe Text)-ifeFailureDetails- = lens _ifeFailureDetails- (\ s a -> s{_ifeFailureDetails = a})---- | The ID of the user. This field will always be present.-ifeUserId :: Lens' InstallFailureEvent (Maybe Text)-ifeUserId- = lens _ifeUserId (\ s a -> s{_ifeUserId = a})---- | The Android ID of the device. This field will always be present.-ifeDeviceId :: Lens' InstallFailureEvent (Maybe Text)-ifeDeviceId- = lens _ifeDeviceId (\ s a -> s{_ifeDeviceId = a})---- | The id of the product (e.g. \"app:com.google.android.gm\") for which the--- install failure event occured. This field will always be present.-ifeProductId :: Lens' InstallFailureEvent (Maybe Text)-ifeProductId- = lens _ifeProductId (\ s a -> s{_ifeProductId = a})--instance FromJSON InstallFailureEvent where- parseJSON- = withObject "InstallFailureEvent"- (\ o ->- InstallFailureEvent' <$>- (o .:? "failureReason") <*> (o .:? "failureDetails")- <*> (o .:? "userId")- <*> (o .:? "deviceId")- <*> (o .:? "productId"))--instance ToJSON InstallFailureEvent where- toJSON InstallFailureEvent'{..}- = object- (catMaybes- [("failureReason" .=) <$> _ifeFailureReason,- ("failureDetails" .=) <$> _ifeFailureDetails,- ("userId" .=) <$> _ifeUserId,- ("deviceId" .=) <$> _ifeDeviceId,- ("productId" .=) <$> _ifeProductId])---- | The managed configuration resources for the user.------ /See:/ 'managedConfigurationsForUserListResponse' smart constructor.-data ManagedConfigurationsForUserListResponse =- ManagedConfigurationsForUserListResponse'- { _mcfulrManagedConfigurationForUser :: !(Maybe [ManagedConfiguration])- , _mcfulrKind :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsForUserListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcfulrManagedConfigurationForUser'------ * 'mcfulrKind'-managedConfigurationsForUserListResponse- :: ManagedConfigurationsForUserListResponse-managedConfigurationsForUserListResponse =- ManagedConfigurationsForUserListResponse'- { _mcfulrManagedConfigurationForUser = Nothing- , _mcfulrKind = "androidenterprise#managedConfigurationsForUserListResponse"- }----- | A managed configuration for an app for a specific user.-mcfulrManagedConfigurationForUser :: Lens' ManagedConfigurationsForUserListResponse [ManagedConfiguration]-mcfulrManagedConfigurationForUser- = lens _mcfulrManagedConfigurationForUser- (\ s a -> s{_mcfulrManagedConfigurationForUser = a})- . _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#managedConfigurationsForUserListResponse\".-mcfulrKind :: Lens' ManagedConfigurationsForUserListResponse Text-mcfulrKind- = lens _mcfulrKind (\ s a -> s{_mcfulrKind = a})--instance FromJSON- ManagedConfigurationsForUserListResponse- where- parseJSON- = withObject- "ManagedConfigurationsForUserListResponse"- (\ o ->- ManagedConfigurationsForUserListResponse' <$>- (o .:? "managedConfigurationForUser" .!= mempty) <*>- (o .:? "kind" .!=- "androidenterprise#managedConfigurationsForUserListResponse"))--instance ToJSON- ManagedConfigurationsForUserListResponse- where- toJSON ManagedConfigurationsForUserListResponse'{..}- = object- (catMaybes- [("managedConfigurationForUser" .=) <$>- _mcfulrManagedConfigurationForUser,- Just ("kind" .= _mcfulrKind)])---- | A configuration variables resource contains the managed configuration--- settings ID to be applied to a single user, as well as the variable set--- that is attributed to the user. The variable set will be used to replace--- placeholders in the managed configuration settings.------ /See:/ 'configurationVariables' smart constructor.-data ConfigurationVariables =- ConfigurationVariables'- { _cvKind :: !Text- , _cvMcmId :: !(Maybe Text)- , _cvVariableSet :: !(Maybe [VariableSet])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ConfigurationVariables' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cvKind'------ * 'cvMcmId'------ * 'cvVariableSet'-configurationVariables- :: ConfigurationVariables-configurationVariables =- ConfigurationVariables'- { _cvKind = "androidenterprise#configurationVariables"- , _cvMcmId = Nothing- , _cvVariableSet = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#configurationVariables\".-cvKind :: Lens' ConfigurationVariables Text-cvKind = lens _cvKind (\ s a -> s{_cvKind = a})---- | The ID of the managed configurations settings.-cvMcmId :: Lens' ConfigurationVariables (Maybe Text)-cvMcmId = lens _cvMcmId (\ s a -> s{_cvMcmId = a})---- | The variable set that is attributed to the user.-cvVariableSet :: Lens' ConfigurationVariables [VariableSet]-cvVariableSet- = lens _cvVariableSet- (\ s a -> s{_cvVariableSet = a})- . _Default- . _Coerce--instance FromJSON ConfigurationVariables where- parseJSON- = withObject "ConfigurationVariables"- (\ o ->- ConfigurationVariables' <$>- (o .:? "kind" .!=- "androidenterprise#configurationVariables")- <*> (o .:? "mcmId")- <*> (o .:? "variableSet" .!= mempty))--instance ToJSON ConfigurationVariables where- toJSON ConfigurationVariables'{..}- = object- (catMaybes- [Just ("kind" .= _cvKind), ("mcmId" .=) <$> _cvMcmId,- ("variableSet" .=) <$> _cvVariableSet])---- | General setting for the managed Google Play store layout, currently only--- specifying the page to display the first time the store is opened.------ /See:/ 'storeLayout' smart constructor.-data StoreLayout =- StoreLayout'- { _slStoreLayoutType :: !(Maybe Text)- , _slKind :: !Text- , _slHomepageId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StoreLayout' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'slStoreLayoutType'------ * 'slKind'------ * 'slHomepageId'-storeLayout- :: StoreLayout-storeLayout =- StoreLayout'- { _slStoreLayoutType = Nothing- , _slKind = "androidenterprise#storeLayout"- , _slHomepageId = Nothing- }----- | The store layout type. By default, this value is set to \"basic\" if the--- homepageId field is not set, and to \"custom\" otherwise. If set to--- \"basic\", the layout will consist of all approved apps that have been--- whitelisted for the user.-slStoreLayoutType :: Lens' StoreLayout (Maybe Text)-slStoreLayoutType- = lens _slStoreLayoutType- (\ s a -> s{_slStoreLayoutType = a})---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#storeLayout\".-slKind :: Lens' StoreLayout Text-slKind = lens _slKind (\ s a -> s{_slKind = a})---- | The ID of the store page to be used as the homepage. The homepage is the--- first page shown in the managed Google Play Store. Not specifying a--- homepage is equivalent to setting the store layout type to \"basic\".-slHomepageId :: Lens' StoreLayout (Maybe Text)-slHomepageId- = lens _slHomepageId (\ s a -> s{_slHomepageId = a})--instance FromJSON StoreLayout where- parseJSON- = withObject "StoreLayout"- (\ o ->- StoreLayout' <$>- (o .:? "storeLayoutType") <*>- (o .:? "kind" .!= "androidenterprise#storeLayout")- <*> (o .:? "homepageId"))--instance ToJSON StoreLayout where- toJSON StoreLayout'{..}- = object- (catMaybes- [("storeLayoutType" .=) <$> _slStoreLayoutType,- Just ("kind" .= _slKind),- ("homepageId" .=) <$> _slHomepageId])---- | An event generated when a new app version is uploaded to Google Play and--- its app restrictions schema changed. To fetch the app restrictions--- schema for an app, use Products.getAppRestrictionsSchema on the EMM API.------ /See:/ 'appRestrictionsSchemaChangeEvent' smart constructor.-newtype AppRestrictionsSchemaChangeEvent =- AppRestrictionsSchemaChangeEvent'- { _arsceProductId :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AppRestrictionsSchemaChangeEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'arsceProductId'-appRestrictionsSchemaChangeEvent- :: AppRestrictionsSchemaChangeEvent-appRestrictionsSchemaChangeEvent =- AppRestrictionsSchemaChangeEvent' {_arsceProductId = Nothing}----- | The id of the product (e.g. \"app:com.google.android.gm\") for which the--- app restriction schema changed. This field will always be present.-arsceProductId :: Lens' AppRestrictionsSchemaChangeEvent (Maybe Text)-arsceProductId- = lens _arsceProductId- (\ s a -> s{_arsceProductId = a})--instance FromJSON AppRestrictionsSchemaChangeEvent- where- parseJSON- = withObject "AppRestrictionsSchemaChangeEvent"- (\ o ->- AppRestrictionsSchemaChangeEvent' <$>- (o .:? "productId"))--instance ToJSON AppRestrictionsSchemaChangeEvent- where- toJSON AppRestrictionsSchemaChangeEvent'{..}- = object- (catMaybes [("productId" .=) <$> _arsceProductId])---- | An event generated when a new device is ready to be managed.------ /See:/ 'newDeviceEvent' smart constructor.-data NewDeviceEvent =- NewDeviceEvent'- { _ndeUserId :: !(Maybe Text)- , _ndeDpcPackageName :: !(Maybe Text)- , _ndeDeviceId :: !(Maybe Text)- , _ndeManagementType :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'NewDeviceEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ndeUserId'------ * 'ndeDpcPackageName'------ * 'ndeDeviceId'------ * 'ndeManagementType'-newDeviceEvent- :: NewDeviceEvent-newDeviceEvent =- NewDeviceEvent'- { _ndeUserId = Nothing- , _ndeDpcPackageName = Nothing- , _ndeDeviceId = Nothing- , _ndeManagementType = Nothing- }----- | The ID of the user. This field will always be present.-ndeUserId :: Lens' NewDeviceEvent (Maybe Text)-ndeUserId- = lens _ndeUserId (\ s a -> s{_ndeUserId = a})---- | Policy app on the device.-ndeDpcPackageName :: Lens' NewDeviceEvent (Maybe Text)-ndeDpcPackageName- = lens _ndeDpcPackageName- (\ s a -> s{_ndeDpcPackageName = a})---- | The Android ID of the device. This field will always be present.-ndeDeviceId :: Lens' NewDeviceEvent (Maybe Text)-ndeDeviceId- = lens _ndeDeviceId (\ s a -> s{_ndeDeviceId = a})---- | Identifies the extent to which the device is controlled by an Android--- EMM in various deployment configurations. Possible values include: ---- \"managedDevice\", a device where the DPC is set as device owner, ---- \"managedProfile\", a device where the DPC is set as profile owner.-ndeManagementType :: Lens' NewDeviceEvent (Maybe Text)-ndeManagementType- = lens _ndeManagementType- (\ s a -> s{_ndeManagementType = a})--instance FromJSON NewDeviceEvent where- parseJSON- = withObject "NewDeviceEvent"- (\ o ->- NewDeviceEvent' <$>- (o .:? "userId") <*> (o .:? "dpcPackageName") <*>- (o .:? "deviceId")- <*> (o .:? "managementType"))--instance ToJSON NewDeviceEvent where- toJSON NewDeviceEvent'{..}- = object- (catMaybes- [("userId" .=) <$> _ndeUserId,- ("dpcPackageName" .=) <$> _ndeDpcPackageName,- ("deviceId" .=) <$> _ndeDeviceId,- ("managementType" .=) <$> _ndeManagementType])---- | The device policy for a given managed device.------ /See:/ 'policy' smart constructor.-data Policy =- Policy'- { _pProductAvailabilityPolicy :: !(Maybe Text)- , _pProductPolicy :: !(Maybe [ProductPolicy])- , _pMaintenanceWindow :: !(Maybe MaintenanceWindow)- , _pAutoUpdatePolicy :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Policy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pProductAvailabilityPolicy'------ * 'pProductPolicy'------ * 'pMaintenanceWindow'------ * 'pAutoUpdatePolicy'-policy- :: Policy-policy =- Policy'- { _pProductAvailabilityPolicy = Nothing- , _pProductPolicy = Nothing- , _pMaintenanceWindow = Nothing- , _pAutoUpdatePolicy = Nothing- }----- | The availability granted to the device for the specified products.--- \"all\" gives the device access to all products, regardless of approval--- status. \"all\" does not enable automatic visibility of \"alpha\" or--- \"beta\" tracks. \"whitelist\" grants the device access the products--- specified in productPolicy[]. Only products that are approved or--- products that were previously approved (products with revoked approval)--- by the enterprise can be whitelisted. If no value is provided, the--- availability set at the user level is applied by default.-pProductAvailabilityPolicy :: Lens' Policy (Maybe Text)-pProductAvailabilityPolicy- = lens _pProductAvailabilityPolicy- (\ s a -> s{_pProductAvailabilityPolicy = a})---- | The list of product policies.-pProductPolicy :: Lens' Policy [ProductPolicy]-pProductPolicy- = lens _pProductPolicy- (\ s a -> s{_pProductPolicy = a})- . _Default- . _Coerce---- | The maintenance window defining when apps running in the foreground--- should be updated.-pMaintenanceWindow :: Lens' Policy (Maybe MaintenanceWindow)-pMaintenanceWindow- = lens _pMaintenanceWindow- (\ s a -> s{_pMaintenanceWindow = a})---- | The auto-update policy for apps installed on the device.--- \"choiceToTheUser\" allows the device\'s user to configure the app--- update policy. \"always\" enables auto updates. \"never\" disables auto--- updates. \"wifiOnly\" enables auto updates only when the device is--- connected to wifi.-pAutoUpdatePolicy :: Lens' Policy (Maybe Text)-pAutoUpdatePolicy- = lens _pAutoUpdatePolicy- (\ s a -> s{_pAutoUpdatePolicy = a})--instance FromJSON Policy where- parseJSON- = withObject "Policy"- (\ o ->- Policy' <$>- (o .:? "productAvailabilityPolicy") <*>- (o .:? "productPolicy" .!= mempty)- <*> (o .:? "maintenanceWindow")- <*> (o .:? "autoUpdatePolicy"))--instance ToJSON Policy where- toJSON Policy'{..}- = object- (catMaybes- [("productAvailabilityPolicy" .=) <$>- _pProductAvailabilityPolicy,- ("productPolicy" .=) <$> _pProductPolicy,- ("maintenanceWindow" .=) <$> _pMaintenanceWindow,- ("autoUpdatePolicy" .=) <$> _pAutoUpdatePolicy])---- | A token authorizing an admin to access an iframe.------ /See:/ 'administratorWebToken' smart constructor.-data AdministratorWebToken =- AdministratorWebToken'- { _awtKind :: !Text- , _awtToken :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AdministratorWebToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'awtKind'------ * 'awtToken'-administratorWebToken- :: AdministratorWebToken-administratorWebToken =- AdministratorWebToken'- {_awtKind = "androidenterprise#administratorWebToken", _awtToken = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#administratorWebToken\".-awtKind :: Lens' AdministratorWebToken Text-awtKind = lens _awtKind (\ s a -> s{_awtKind = a})---- | An opaque token to be passed to the Play front-end to generate an--- iframe.-awtToken :: Lens' AdministratorWebToken (Maybe Text)-awtToken = lens _awtToken (\ s a -> s{_awtToken = a})--instance FromJSON AdministratorWebToken where- parseJSON- = withObject "AdministratorWebToken"- (\ o ->- AdministratorWebToken' <$>- (o .:? "kind" .!=- "androidenterprise#administratorWebToken")- <*> (o .:? "token"))--instance ToJSON AdministratorWebToken where- toJSON AdministratorWebToken'{..}- = object- (catMaybes- [Just ("kind" .= _awtKind),- ("token" .=) <$> _awtToken])---- | A resource returned by the GenerateSignupUrl API, which contains the--- Signup URL and Completion Token.------ /See:/ 'signupInfo' smart constructor.-data SignupInfo =- SignupInfo'- { _siCompletionToken :: !(Maybe Text)- , _siKind :: !Text- , _siURL :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SignupInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'siCompletionToken'------ * 'siKind'------ * 'siURL'-signupInfo- :: SignupInfo-signupInfo =- SignupInfo'- { _siCompletionToken = Nothing- , _siKind = "androidenterprise#signupInfo"- , _siURL = Nothing- }----- | An opaque token that will be required, along with the Enterprise Token,--- for obtaining the enterprise resource from CompleteSignup.-siCompletionToken :: Lens' SignupInfo (Maybe Text)-siCompletionToken- = lens _siCompletionToken- (\ s a -> s{_siCompletionToken = a})---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#signupInfo\".-siKind :: Lens' SignupInfo Text-siKind = lens _siKind (\ s a -> s{_siKind = a})---- | A URL under which the Admin can sign up for an enterprise. The page--- pointed to cannot be rendered in an iframe.-siURL :: Lens' SignupInfo (Maybe Text)-siURL = lens _siURL (\ s a -> s{_siURL = a})--instance FromJSON SignupInfo where- parseJSON- = withObject "SignupInfo"- (\ o ->- SignupInfo' <$>- (o .:? "completionToken") <*>- (o .:? "kind" .!= "androidenterprise#signupInfo")- <*> (o .:? "url"))--instance ToJSON SignupInfo where- toJSON SignupInfo'{..}- = object- (catMaybes- [("completionToken" .=) <$> _siCompletionToken,- Just ("kind" .= _siKind), ("url" .=) <$> _siURL])---- | A Products resource represents an app in the Google Play store that is--- available to at least some users in the enterprise. (Some apps are--- restricted to a single enterprise, and no information about them is made--- available outside that enterprise.) The information provided for each--- product (localized name, icon, link to the full Google Play details--- page) is intended to allow a basic representation of the product within--- an EMM user interface.------ /See:/ 'product' smart constructor.-data Product =- Product'- { _pScreenshotURLs :: !(Maybe [Text])- , _pLastUpdatedTimestampMillis :: !(Maybe (Textual Int64))- , _pSmallIconURL :: !(Maybe Text)- , _pAuthorName :: !(Maybe Text)- , _pAppTracks :: !(Maybe [TrackInfo])- , _pKind :: !Text- , _pWorkDetailsURL :: !(Maybe Text)- , _pRequiresContainerApp :: !(Maybe Bool)- , _pCategory :: !(Maybe Text)- , _pAppVersion :: !(Maybe [AppVersion])- , _pProductPricing :: !(Maybe Text)- , _pDistributionChannel :: !(Maybe Text)- , _pMinAndroidSdkVersion :: !(Maybe (Textual Int32))- , _pAvailableCountries :: !(Maybe [Text])- , _pAvailableTracks :: !(Maybe [Text])- , _pIconURL :: !(Maybe Text)- , _pPermissions :: !(Maybe [ProductPermission])- , _pTitle :: !(Maybe Text)- , _pSigningCertificate :: !(Maybe ProductSigningCertificate)- , _pContentRating :: !(Maybe Text)- , _pProductId :: !(Maybe Text)- , _pRecentChanges :: !(Maybe Text)- , _pDescription :: !(Maybe Text)- , _pDetailsURL :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Product' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pScreenshotURLs'------ * 'pLastUpdatedTimestampMillis'------ * 'pSmallIconURL'------ * 'pAuthorName'------ * 'pAppTracks'------ * 'pKind'------ * 'pWorkDetailsURL'------ * 'pRequiresContainerApp'------ * 'pCategory'------ * 'pAppVersion'------ * 'pProductPricing'------ * 'pDistributionChannel'------ * 'pMinAndroidSdkVersion'------ * 'pAvailableCountries'------ * 'pAvailableTracks'------ * 'pIconURL'------ * 'pPermissions'------ * 'pTitle'------ * 'pSigningCertificate'------ * 'pContentRating'------ * 'pProductId'------ * 'pRecentChanges'------ * 'pDescription'------ * 'pDetailsURL'-product- :: Product-product =- Product'- { _pScreenshotURLs = Nothing- , _pLastUpdatedTimestampMillis = Nothing- , _pSmallIconURL = Nothing- , _pAuthorName = Nothing- , _pAppTracks = Nothing- , _pKind = "androidenterprise#product"- , _pWorkDetailsURL = Nothing- , _pRequiresContainerApp = Nothing- , _pCategory = Nothing- , _pAppVersion = Nothing- , _pProductPricing = Nothing- , _pDistributionChannel = Nothing- , _pMinAndroidSdkVersion = Nothing- , _pAvailableCountries = Nothing- , _pAvailableTracks = Nothing- , _pIconURL = Nothing- , _pPermissions = Nothing- , _pTitle = Nothing- , _pSigningCertificate = Nothing- , _pContentRating = Nothing- , _pProductId = Nothing- , _pRecentChanges = Nothing- , _pDescription = Nothing- , _pDetailsURL = Nothing- }----- | A list of screenshot links representing the app.-pScreenshotURLs :: Lens' Product [Text]-pScreenshotURLs- = lens _pScreenshotURLs- (\ s a -> s{_pScreenshotURLs = a})- . _Default- . _Coerce---- | The approximate time (within 7 days) the app was last published,--- expressed in milliseconds since epoch.-pLastUpdatedTimestampMillis :: Lens' Product (Maybe Int64)-pLastUpdatedTimestampMillis- = lens _pLastUpdatedTimestampMillis- (\ s a -> s{_pLastUpdatedTimestampMillis = a})- . mapping _Coerce---- | A link to a smaller image that can be used as an icon for the product.--- This image is suitable for use at up to 128px x 128px.-pSmallIconURL :: Lens' Product (Maybe Text)-pSmallIconURL- = lens _pSmallIconURL- (\ s a -> s{_pSmallIconURL = a})---- | The name of the author of the product (for example, the app developer).-pAuthorName :: Lens' Product (Maybe Text)-pAuthorName- = lens _pAuthorName (\ s a -> s{_pAuthorName = a})---- | The tracks visible to the enterprise.-pAppTracks :: Lens' Product [TrackInfo]-pAppTracks- = lens _pAppTracks (\ s a -> s{_pAppTracks = a}) .- _Default- . _Coerce---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#product\".-pKind :: Lens' Product Text-pKind = lens _pKind (\ s a -> s{_pKind = a})---- | A link to the managed Google Play details page for the product, for use--- by an Enterprise admin.-pWorkDetailsURL :: Lens' Product (Maybe Text)-pWorkDetailsURL- = lens _pWorkDetailsURL- (\ s a -> s{_pWorkDetailsURL = a})---- | Deprecated.-pRequiresContainerApp :: Lens' Product (Maybe Bool)-pRequiresContainerApp- = lens _pRequiresContainerApp- (\ s a -> s{_pRequiresContainerApp = a})---- | The app category (e.g. RACING, SOCIAL, etc.)-pCategory :: Lens' Product (Maybe Text)-pCategory- = lens _pCategory (\ s a -> s{_pCategory = a})---- | App versions currently available for this product.-pAppVersion :: Lens' Product [AppVersion]-pAppVersion- = lens _pAppVersion (\ s a -> s{_pAppVersion = a}) .- _Default- . _Coerce---- | Whether this product is free, free with in-app purchases, or paid. If--- the pricing is unknown, this means the product is not generally--- available anymore (even though it might still be available to people who--- own it).-pProductPricing :: Lens' Product (Maybe Text)-pProductPricing- = lens _pProductPricing- (\ s a -> s{_pProductPricing = a})---- | How and to whom the package is made available. The value--- publicGoogleHosted means that the package is available through the Play--- store and not restricted to a specific enterprise. The value--- privateGoogleHosted means that the package is a private app (restricted--- to an enterprise) but hosted by Google. The value privateSelfHosted--- means that the package is a private app (restricted to an enterprise)--- and is privately hosted.-pDistributionChannel :: Lens' Product (Maybe Text)-pDistributionChannel- = lens _pDistributionChannel- (\ s a -> s{_pDistributionChannel = a})---- | The minimum Android SDK necessary to run the app.-pMinAndroidSdkVersion :: Lens' Product (Maybe Int32)-pMinAndroidSdkVersion- = lens _pMinAndroidSdkVersion- (\ s a -> s{_pMinAndroidSdkVersion = a})- . mapping _Coerce---- | The countries which this app is available in.-pAvailableCountries :: Lens' Product [Text]-pAvailableCountries- = lens _pAvailableCountries- (\ s a -> s{_pAvailableCountries = a})- . _Default- . _Coerce---- | Deprecated, use appTracks instead.-pAvailableTracks :: Lens' Product [Text]-pAvailableTracks- = lens _pAvailableTracks- (\ s a -> s{_pAvailableTracks = a})- . _Default- . _Coerce---- | A link to an image that can be used as an icon for the product. This--- image is suitable for use at up to 512px x 512px.-pIconURL :: Lens' Product (Maybe Text)-pIconURL = lens _pIconURL (\ s a -> s{_pIconURL = a})---- | A list of permissions required by the app.-pPermissions :: Lens' Product [ProductPermission]-pPermissions- = lens _pPermissions (\ s a -> s{_pPermissions = a})- . _Default- . _Coerce---- | The name of the product.-pTitle :: Lens' Product (Maybe Text)-pTitle = lens _pTitle (\ s a -> s{_pTitle = a})---- | The certificate used to sign this product.-pSigningCertificate :: Lens' Product (Maybe ProductSigningCertificate)-pSigningCertificate- = lens _pSigningCertificate- (\ s a -> s{_pSigningCertificate = a})---- | The content rating for this app.-pContentRating :: Lens' Product (Maybe Text)-pContentRating- = lens _pContentRating- (\ s a -> s{_pContentRating = a})---- | A string of the form app:. For example, app:com.google.android.gm--- represents the Gmail app.-pProductId :: Lens' Product (Maybe Text)-pProductId- = lens _pProductId (\ s a -> s{_pProductId = a})---- | A description of the recent changes made to the app.-pRecentChanges :: Lens' Product (Maybe Text)-pRecentChanges- = lens _pRecentChanges- (\ s a -> s{_pRecentChanges = a})---- | The localized promotional description, if available.-pDescription :: Lens' Product (Maybe Text)-pDescription- = lens _pDescription (\ s a -> s{_pDescription = a})---- | A link to the (consumer) Google Play details page for the product.-pDetailsURL :: Lens' Product (Maybe Text)-pDetailsURL- = lens _pDetailsURL (\ s a -> s{_pDetailsURL = a})--instance FromJSON Product where- parseJSON- = withObject "Product"- (\ o ->- Product' <$>- (o .:? "screenshotUrls" .!= mempty) <*>- (o .:? "lastUpdatedTimestampMillis")- <*> (o .:? "smallIconUrl")- <*> (o .:? "authorName")- <*> (o .:? "appTracks" .!= mempty)- <*> (o .:? "kind" .!= "androidenterprise#product")- <*> (o .:? "workDetailsUrl")- <*> (o .:? "requiresContainerApp")- <*> (o .:? "category")- <*> (o .:? "appVersion" .!= mempty)- <*> (o .:? "productPricing")- <*> (o .:? "distributionChannel")- <*> (o .:? "minAndroidSdkVersion")- <*> (o .:? "availableCountries" .!= mempty)- <*> (o .:? "availableTracks" .!= mempty)- <*> (o .:? "iconUrl")- <*> (o .:? "permissions" .!= mempty)- <*> (o .:? "title")- <*> (o .:? "signingCertificate")- <*> (o .:? "contentRating")- <*> (o .:? "productId")- <*> (o .:? "recentChanges")- <*> (o .:? "description")- <*> (o .:? "detailsUrl"))--instance ToJSON Product where- toJSON Product'{..}- = object- (catMaybes- [("screenshotUrls" .=) <$> _pScreenshotURLs,- ("lastUpdatedTimestampMillis" .=) <$>- _pLastUpdatedTimestampMillis,- ("smallIconUrl" .=) <$> _pSmallIconURL,- ("authorName" .=) <$> _pAuthorName,- ("appTracks" .=) <$> _pAppTracks,- Just ("kind" .= _pKind),- ("workDetailsUrl" .=) <$> _pWorkDetailsURL,- ("requiresContainerApp" .=) <$>- _pRequiresContainerApp,- ("category" .=) <$> _pCategory,- ("appVersion" .=) <$> _pAppVersion,- ("productPricing" .=) <$> _pProductPricing,- ("distributionChannel" .=) <$> _pDistributionChannel,- ("minAndroidSdkVersion" .=) <$>- _pMinAndroidSdkVersion,- ("availableCountries" .=) <$> _pAvailableCountries,- ("availableTracks" .=) <$> _pAvailableTracks,- ("iconUrl" .=) <$> _pIconURL,- ("permissions" .=) <$> _pPermissions,- ("title" .=) <$> _pTitle,- ("signingCertificate" .=) <$> _pSigningCertificate,- ("contentRating" .=) <$> _pContentRating,- ("productId" .=) <$> _pProductId,- ("recentChanges" .=) <$> _pRecentChanges,- ("description" .=) <$> _pDescription,- ("detailsUrl" .=) <$> _pDetailsURL])---- | The entitlement resources for the user.------ /See:/ 'entitlementsListResponse' smart constructor.-data EntitlementsListResponse =- EntitlementsListResponse'- { _entKind :: !Text- , _entEntitlement :: !(Maybe [Entitlement])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EntitlementsListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'entKind'------ * 'entEntitlement'-entitlementsListResponse- :: EntitlementsListResponse-entitlementsListResponse =- EntitlementsListResponse'- { _entKind = "androidenterprise#entitlementsListResponse"- , _entEntitlement = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#entitlementsListResponse\".-entKind :: Lens' EntitlementsListResponse Text-entKind = lens _entKind (\ s a -> s{_entKind = a})---- | An entitlement of a user to a product (e.g. an app). For example, a free--- app that they have installed, or a paid app that they have been--- allocated a license to.-entEntitlement :: Lens' EntitlementsListResponse [Entitlement]-entEntitlement- = lens _entEntitlement- (\ s a -> s{_entEntitlement = a})- . _Default- . _Coerce--instance FromJSON EntitlementsListResponse where- parseJSON- = withObject "EntitlementsListResponse"- (\ o ->- EntitlementsListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#entitlementsListResponse")- <*> (o .:? "entitlement" .!= mempty))--instance ToJSON EntitlementsListResponse where- toJSON EntitlementsListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _entKind),- ("entitlement" .=) <$> _entEntitlement])---- | Information about the permissions required by a specific app and whether--- they have been accepted by the enterprise.------ /See:/ 'productPermissions' smart constructor.-data ProductPermissions =- ProductPermissions'- { _ppsKind :: !Text- , _ppsPermission :: !(Maybe [ProductPermission])- , _ppsProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductPermissions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ppsKind'------ * 'ppsPermission'------ * 'ppsProductId'-productPermissions- :: ProductPermissions-productPermissions =- ProductPermissions'- { _ppsKind = "androidenterprise#productPermissions"- , _ppsPermission = Nothing- , _ppsProductId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#productPermissions\".-ppsKind :: Lens' ProductPermissions Text-ppsKind = lens _ppsKind (\ s a -> s{_ppsKind = a})---- | The permissions required by the app.-ppsPermission :: Lens' ProductPermissions [ProductPermission]-ppsPermission- = lens _ppsPermission- (\ s a -> s{_ppsPermission = a})- . _Default- . _Coerce---- | The ID of the app that the permissions relate to, e.g.--- \"app:com.google.android.gm\".-ppsProductId :: Lens' ProductPermissions (Maybe Text)-ppsProductId- = lens _ppsProductId (\ s a -> s{_ppsProductId = a})--instance FromJSON ProductPermissions where- parseJSON- = withObject "ProductPermissions"- (\ o ->- ProductPermissions' <$>- (o .:? "kind" .!=- "androidenterprise#productPermissions")- <*> (o .:? "permission" .!= mempty)- <*> (o .:? "productId"))--instance ToJSON ProductPermissions where- toJSON ProductPermissions'{..}- = object- (catMaybes- [Just ("kind" .= _ppsKind),- ("permission" .=) <$> _ppsPermission,- ("productId" .=) <$> _ppsProductId])------- /See:/ 'administratorWebTokenSpecManagedConfigurations' smart constructor.-newtype AdministratorWebTokenSpecManagedConfigurations =- AdministratorWebTokenSpecManagedConfigurations'- { _awtsmcEnabled :: Maybe Bool- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AdministratorWebTokenSpecManagedConfigurations' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'awtsmcEnabled'-administratorWebTokenSpecManagedConfigurations- :: AdministratorWebTokenSpecManagedConfigurations-administratorWebTokenSpecManagedConfigurations =- AdministratorWebTokenSpecManagedConfigurations' {_awtsmcEnabled = Nothing}----- | Whether the Managed Configuration page is displayed. Default is true.-awtsmcEnabled :: Lens' AdministratorWebTokenSpecManagedConfigurations (Maybe Bool)-awtsmcEnabled- = lens _awtsmcEnabled- (\ s a -> s{_awtsmcEnabled = a})--instance FromJSON- AdministratorWebTokenSpecManagedConfigurations- where- parseJSON- = withObject- "AdministratorWebTokenSpecManagedConfigurations"- (\ o ->- AdministratorWebTokenSpecManagedConfigurations' <$>- (o .:? "enabled"))--instance ToJSON- AdministratorWebTokenSpecManagedConfigurations- where- toJSON- AdministratorWebTokenSpecManagedConfigurations'{..}- = object- (catMaybes [("enabled" .=) <$> _awtsmcEnabled])---- | A Permissions resource represents some extra capability, to be granted--- to an Android app, which requires explicit consent. An enterprise admin--- must consent to these permissions on behalf of their users before an--- entitlement for the app can be created. The permissions collection is--- read-only. The information provided for each permission (localized name--- and description) is intended to be used in the MDM user interface when--- obtaining consent from the enterprise.------ /See:/ 'permission' smart constructor.-data Permission =- Permission'- { _perKind :: !Text- , _perName :: !(Maybe Text)- , _perDescription :: !(Maybe Text)- , _perPermissionId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Permission' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'perKind'------ * 'perName'------ * 'perDescription'------ * 'perPermissionId'-permission- :: Permission-permission =- Permission'- { _perKind = "androidenterprise#permission"- , _perName = Nothing- , _perDescription = Nothing- , _perPermissionId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#permission\".-perKind :: Lens' Permission Text-perKind = lens _perKind (\ s a -> s{_perKind = a})---- | The name of the permission.-perName :: Lens' Permission (Maybe Text)-perName = lens _perName (\ s a -> s{_perName = a})---- | A longer description of the Permissions resource, giving more details of--- what it affects.-perDescription :: Lens' Permission (Maybe Text)-perDescription- = lens _perDescription- (\ s a -> s{_perDescription = a})---- | An opaque string uniquely identifying the permission.-perPermissionId :: Lens' Permission (Maybe Text)-perPermissionId- = lens _perPermissionId- (\ s a -> s{_perPermissionId = a})--instance FromJSON Permission where- parseJSON- = withObject "Permission"- (\ o ->- Permission' <$>- (o .:? "kind" .!= "androidenterprise#permission") <*>- (o .:? "name")- <*> (o .:? "description")- <*> (o .:? "permissionId"))--instance ToJSON Permission where- toJSON Permission'{..}- = object- (catMaybes- [Just ("kind" .= _perKind), ("name" .=) <$> _perName,- ("description" .=) <$> _perDescription,- ("permissionId" .=) <$> _perPermissionId])---- | The web app details for an enterprise.------ /See:/ 'webAppsListResponse' smart constructor.-data WebAppsListResponse =- WebAppsListResponse'- { _walrKind :: !Text- , _walrWebApp :: !(Maybe [WebApp])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppsListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'walrKind'------ * 'walrWebApp'-webAppsListResponse- :: WebAppsListResponse-webAppsListResponse =- WebAppsListResponse'- {_walrKind = "androidenterprise#webAppsListResponse", _walrWebApp = Nothing}----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#webAppsListResponse\".-walrKind :: Lens' WebAppsListResponse Text-walrKind = lens _walrKind (\ s a -> s{_walrKind = a})---- | The manifest describing a web app.-walrWebApp :: Lens' WebAppsListResponse [WebApp]-walrWebApp- = lens _walrWebApp (\ s a -> s{_walrWebApp = a}) .- _Default- . _Coerce--instance FromJSON WebAppsListResponse where- parseJSON- = withObject "WebAppsListResponse"- (\ o ->- WebAppsListResponse' <$>- (o .:? "kind" .!=- "androidenterprise#webAppsListResponse")- <*> (o .:? "webApp" .!= mempty))--instance ToJSON WebAppsListResponse where- toJSON WebAppsListResponse'{..}- = object- (catMaybes- [Just ("kind" .= _walrKind),- ("webApp" .=) <$> _walrWebApp])------- /See:/ 'productsApproveRequest' smart constructor.-data ProductsApproveRequest =- ProductsApproveRequest'- { _parApprovalURLInfo :: !(Maybe ApprovalURLInfo)- , _parApprovedPermissions :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsApproveRequest' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'parApprovalURLInfo'------ * 'parApprovedPermissions'-productsApproveRequest- :: ProductsApproveRequest-productsApproveRequest =- ProductsApproveRequest'- {_parApprovalURLInfo = Nothing, _parApprovedPermissions = Nothing}----- | The approval URL that was shown to the user. Only the permissions shown--- to the user with that URL will be accepted, which may not be the--- product\'s entire set of permissions. For example, the URL may only--- display new permissions from an update after the product was approved,--- or not include new permissions if the product was updated since the URL--- was generated.-parApprovalURLInfo :: Lens' ProductsApproveRequest (Maybe ApprovalURLInfo)-parApprovalURLInfo- = lens _parApprovalURLInfo- (\ s a -> s{_parApprovalURLInfo = a})---- | Sets how new permission requests for the product are handled.--- \"allPermissions\" automatically approves all current and future--- permissions for the product. \"currentPermissionsOnly\" approves the--- current set of permissions for the product, but any future permissions--- added through updates will require manual reapproval. If not specified,--- only the current set of permissions will be approved.-parApprovedPermissions :: Lens' ProductsApproveRequest (Maybe Text)-parApprovedPermissions- = lens _parApprovedPermissions- (\ s a -> s{_parApprovedPermissions = a})--instance FromJSON ProductsApproveRequest where- parseJSON- = withObject "ProductsApproveRequest"- (\ o ->- ProductsApproveRequest' <$>- (o .:? "approvalUrlInfo") <*>- (o .:? "approvedPermissions"))--instance ToJSON ProductsApproveRequest where- toJSON ProductsApproveRequest'{..}- = object- (catMaybes- [("approvalUrlInfo" .=) <$> _parApprovalURLInfo,- ("approvedPermissions" .=) <$>- _parApprovedPermissions])------- /See:/ 'autoInstallPolicy' smart constructor.-data AutoInstallPolicy =- AutoInstallPolicy'- { _aipAutoInstallConstraint :: !(Maybe [AutoInstallConstraint])- , _aipAutoInstallPriority :: !(Maybe (Textual Int32))- , _aipAutoInstallMode :: !(Maybe Text)- , _aipMinimumVersionCode :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AutoInstallPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aipAutoInstallConstraint'------ * 'aipAutoInstallPriority'------ * 'aipAutoInstallMode'------ * 'aipMinimumVersionCode'-autoInstallPolicy- :: AutoInstallPolicy-autoInstallPolicy =- AutoInstallPolicy'- { _aipAutoInstallConstraint = Nothing- , _aipAutoInstallPriority = Nothing- , _aipAutoInstallMode = Nothing- , _aipMinimumVersionCode = Nothing- }----- | The constraints for auto-installing the app. You can specify a maximum--- of one constraint.-aipAutoInstallConstraint :: Lens' AutoInstallPolicy [AutoInstallConstraint]-aipAutoInstallConstraint- = lens _aipAutoInstallConstraint- (\ s a -> s{_aipAutoInstallConstraint = a})- . _Default- . _Coerce---- | The priority of the install, as an unsigned integer. A lower number--- means higher priority.-aipAutoInstallPriority :: Lens' AutoInstallPolicy (Maybe Int32)-aipAutoInstallPriority- = lens _aipAutoInstallPriority- (\ s a -> s{_aipAutoInstallPriority = a})- . mapping _Coerce---- | The auto-install mode. If unset defaults to \"doNotAutoInstall\".-aipAutoInstallMode :: Lens' AutoInstallPolicy (Maybe Text)-aipAutoInstallMode- = lens _aipAutoInstallMode- (\ s a -> s{_aipAutoInstallMode = a})---- | The minimum version of the app. If a lower version of the app is--- installed, then the app will be auto-updated according to the--- auto-install constraints, instead of waiting for the regular--- auto-update.-aipMinimumVersionCode :: Lens' AutoInstallPolicy (Maybe Int32)-aipMinimumVersionCode- = lens _aipMinimumVersionCode- (\ s a -> s{_aipMinimumVersionCode = a})- . mapping _Coerce--instance FromJSON AutoInstallPolicy where- parseJSON- = withObject "AutoInstallPolicy"- (\ o ->- AutoInstallPolicy' <$>- (o .:? "autoInstallConstraint" .!= mempty) <*>- (o .:? "autoInstallPriority")- <*> (o .:? "autoInstallMode")- <*> (o .:? "minimumVersionCode"))--instance ToJSON AutoInstallPolicy where- toJSON AutoInstallPolicy'{..}- = object- (catMaybes- [("autoInstallConstraint" .=) <$>- _aipAutoInstallConstraint,- ("autoInstallPriority" .=) <$>- _aipAutoInstallPriority,- ("autoInstallMode" .=) <$> _aipAutoInstallMode,- ("minimumVersionCode" .=) <$>- _aipMinimumVersionCode])---- | The presence of an Entitlements resource indicates that a user has the--- right to use a particular app. Entitlements are user specific, not--- device specific. This allows a user with an entitlement to an app to--- install the app on all their devices. It\'s also possible for a user to--- hold an entitlement to an app without installing the app on any device.--- The API can be used to create an entitlement. As an option, you can also--- use the API to trigger the installation of an app on all a user\'s--- managed devices at the same time the entitlement is created. If the app--- is free, creating the entitlement also creates a group license for that--- app. For paid apps, creating the entitlement consumes one license, and--- that license remains consumed until the entitlement is removed. If the--- enterprise hasn\'t purchased enough licenses, then no entitlement is--- created and the installation fails. An entitlement is also not created--- for an app if the app requires permissions that the enterprise hasn\'t--- accepted. If an entitlement is deleted, the app may be uninstalled from--- a user\'s device. As a best practice, uninstall the app by calling--- Installs.delete() before deleting the entitlement. Entitlements for apps--- that a user pays for on an unmanaged profile have \"userPurchase\" as--- the entitlement reason. These entitlements cannot be removed via the--- API.------ /See:/ 'entitlement' smart constructor.-data Entitlement =- Entitlement'- { _eeKind :: !Text- , _eeReason :: !(Maybe Text)- , _eeProductId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Entitlement' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eeKind'------ * 'eeReason'------ * 'eeProductId'-entitlement- :: Entitlement-entitlement =- Entitlement'- { _eeKind = "androidenterprise#entitlement"- , _eeReason = Nothing- , _eeProductId = Nothing- }----- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#entitlement\".-eeKind :: Lens' Entitlement Text-eeKind = lens _eeKind (\ s a -> s{_eeKind = a})---- | The reason for the entitlement. For example, \"free\" for free apps.--- This property is temporary: it will be replaced by the acquisition kind--- field of group licenses.-eeReason :: Lens' Entitlement (Maybe Text)-eeReason = lens _eeReason (\ s a -> s{_eeReason = a})---- | The ID of the product that the entitlement is for. For example,--- \"app:com.google.android.gm\".-eeProductId :: Lens' Entitlement (Maybe Text)-eeProductId- = lens _eeProductId (\ s a -> s{_eeProductId = a})--instance FromJSON Entitlement where- parseJSON- = withObject "Entitlement"- (\ o ->- Entitlement' <$>- (o .:? "kind" .!= "androidenterprise#entitlement")- <*> (o .:? "reason")- <*> (o .:? "productId"))--instance ToJSON Entitlement where- toJSON Entitlement'{..}- = object- (catMaybes- [Just ("kind" .= _eeKind),- ("reason" .=) <$> _eeReason,- ("productId" .=) <$> _eeProductId])---- | The matching products.------ /See:/ 'productsListResponse' smart constructor.-data ProductsListResponse =- ProductsListResponse'- { _plrTokenPagination :: !(Maybe TokenPagination)- , _plrPageInfo :: !(Maybe PageInfo)- , _plrKind :: !Text- , _plrProduct :: !(Maybe [Product])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsListResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plrTokenPagination'------ * 'plrPageInfo'------ * 'plrKind'------ * 'plrProduct'-productsListResponse- :: ProductsListResponse-productsListResponse =- ProductsListResponse'- { _plrTokenPagination = Nothing- , _plrPageInfo = Nothing- , _plrKind = "androidenterprise#productsListResponse"- , _plrProduct = Nothing- }----- | Pagination information for token pagination.-plrTokenPagination :: Lens' ProductsListResponse (Maybe TokenPagination)-plrTokenPagination- = lens _plrTokenPagination- (\ s a -> s{_plrTokenPagination = a})---- | General pagination information.-plrPageInfo :: Lens' ProductsListResponse (Maybe PageInfo)-plrPageInfo- = lens _plrPageInfo (\ s a -> s{_plrPageInfo = a})---- | Identifies what kind of resource this is. Value: the fixed string--- \"androidenterprise#productsListResponse\".-plrKind :: Lens' ProductsListResponse Text-plrKind = lens _plrKind (\ s a -> s{_plrKind = a})---- | Information about a product (e.g. an app) in the Google Play store, for--- display to an enterprise admin.-plrProduct :: Lens' ProductsListResponse [Product]-plrProduct- = lens _plrProduct (\ s a -> s{_plrProduct = a}) .- _Default- . _Coerce--instance FromJSON ProductsListResponse where- parseJSON- = withObject "ProductsListResponse"- (\ o ->- ProductsListResponse' <$>- (o .:? "tokenPagination") <*> (o .:? "pageInfo") <*>- (o .:? "kind" .!=- "androidenterprise#productsListResponse")- <*> (o .:? "product" .!= mempty))--instance ToJSON ProductsListResponse where- toJSON ProductsListResponse'{..}- = object- (catMaybes- [("tokenPagination" .=) <$> _plrTokenPagination,- ("pageInfo" .=) <$> _plrPageInfo,- Just ("kind" .= _plrKind),- ("product" .=) <$> _plrProduct])---- | A WebApps resource represents a web app created for an enterprise. Web--- apps are published to managed Google Play and can be distributed like--- other Android apps. On a user\'s device, a web app opens its specified--- URL.------ /See:/ 'webApp' smart constructor.-data WebApp =- WebApp'- { _waWebAppId :: !(Maybe Text)- , _waVersionCode :: !(Maybe (Textual Int64))- , _waIcons :: !(Maybe [WebAppIcon])- , _waStartURL :: !(Maybe Text)- , _waDisplayMode :: !(Maybe Text)- , _waIsPublished :: !(Maybe Bool)- , _waTitle :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebApp' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'waWebAppId'------ * 'waVersionCode'------ * 'waIcons'------ * 'waStartURL'------ * 'waDisplayMode'------ * 'waIsPublished'------ * 'waTitle'-webApp- :: WebApp-webApp =- WebApp'- { _waWebAppId = Nothing- , _waVersionCode = Nothing- , _waIcons = Nothing- , _waStartURL = Nothing- , _waDisplayMode = Nothing- , _waIsPublished = Nothing- , _waTitle = Nothing- }----- | The ID of the application. A string of the form \"app:\" where the--- package name always starts with the prefix--- \"com.google.enterprise.webapp.\" followed by a random id.-waWebAppId :: Lens' WebApp (Maybe Text)-waWebAppId- = lens _waWebAppId (\ s a -> s{_waWebAppId = a})---- | The current version of the app. Note that the version can automatically--- increase during the lifetime of the web app, while Google does internal--- housekeeping to keep the web app up-to-date.-waVersionCode :: Lens' WebApp (Maybe Int64)-waVersionCode- = lens _waVersionCode- (\ s a -> s{_waVersionCode = a})- . mapping _Coerce---- | A list of icons representing this website. If absent, a default icon--- (for create) or the current icon (for update) will be used.-waIcons :: Lens' WebApp [WebAppIcon]-waIcons- = lens _waIcons (\ s a -> s{_waIcons = a}) . _Default- . _Coerce---- | The start URL, i.e. the URL that should load when the user opens the--- application.-waStartURL :: Lens' WebApp (Maybe Text)-waStartURL- = lens _waStartURL (\ s a -> s{_waStartURL = a})---- | The display mode of the web app. Possible values include: ---- \"minimalUi\", the device\'s status bar, navigation bar, the app\'s URL,--- and a refresh button are visible when the app is open. For HTTP URLs,--- you can only select this option. - \"standalone\", the device\'s status--- bar and navigation bar are visible when the app is open. ---- \"fullScreen\", the app opens in full screen mode, hiding the device\'s--- status and navigation bars. All browser UI elements, page URL, system--- status bar and back button are not visible, and the web app takes up the--- entirety of the available display area.-waDisplayMode :: Lens' WebApp (Maybe Text)-waDisplayMode- = lens _waDisplayMode- (\ s a -> s{_waDisplayMode = a})---- | A flag whether the app has been published to the Play store yet.-waIsPublished :: Lens' WebApp (Maybe Bool)-waIsPublished- = lens _waIsPublished- (\ s a -> s{_waIsPublished = a})---- | The title of the web app as displayed to the user (e.g., amongst a list--- of other applications, or as a label for an icon).-waTitle :: Lens' WebApp (Maybe Text)-waTitle = lens _waTitle (\ s a -> s{_waTitle = a})--instance FromJSON WebApp where- parseJSON- = withObject "WebApp"- (\ o ->- WebApp' <$>- (o .:? "webAppId") <*> (o .:? "versionCode") <*>- (o .:? "icons" .!= mempty)- <*> (o .:? "startUrl")- <*> (o .:? "displayMode")- <*> (o .:? "isPublished")- <*> (o .:? "title"))--instance ToJSON WebApp where- toJSON WebApp'{..}- = object- (catMaybes- [("webAppId" .=) <$> _waWebAppId,- ("versionCode" .=) <$> _waVersionCode,- ("icons" .=) <$> _waIcons,- ("startUrl" .=) <$> _waStartURL,- ("displayMode" .=) <$> _waDisplayMode,- ("isPublished" .=) <$> _waIsPublished,- ("title" .=) <$> _waTitle])
− gen/Network/Google/AndroidEnterprise/Types/Sum.hs
@@ -1,79 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.AndroidEnterprise.Types.Sum--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)----module Network.Google.AndroidEnterprise.Types.Sum where--import Network.Google.Prelude hiding (Bytes)---- | The request mode for pulling notifications. Specifying--- waitForNotifications will cause the request to block and wait until one--- or more notifications are present, or return an empty notification list--- if no notifications are present after some time. Speciying--- returnImmediately will cause the request to immediately return the--- pending notifications, or an empty list if no notifications are present.--- If omitted, defaults to waitForNotifications.-data EnterprisesPullNotificationSetRequestMode- = ReturnImmediately- -- ^ @returnImmediately@- | WaitForNotifications- -- ^ @waitForNotifications@- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable EnterprisesPullNotificationSetRequestMode--instance FromHttpApiData EnterprisesPullNotificationSetRequestMode where- parseQueryParam = \case- "returnImmediately" -> Right ReturnImmediately- "waitForNotifications" -> Right WaitForNotifications- x -> Left ("Unable to parse EnterprisesPullNotificationSetRequestMode from: " <> x)--instance ToHttpApiData EnterprisesPullNotificationSetRequestMode where- toQueryParam = \case- ReturnImmediately -> "returnImmediately"- WaitForNotifications -> "waitForNotifications"--instance FromJSON EnterprisesPullNotificationSetRequestMode where- parseJSON = parseJSONText "EnterprisesPullNotificationSetRequestMode"--instance ToJSON EnterprisesPullNotificationSetRequestMode where- toJSON = toJSONText---- | The type of credential to return with the service account. Required.-data EnterprisesGetServiceAccountKeyType- = GoogleCredentials- -- ^ @googleCredentials@- | PKCS12- -- ^ @pkcs12@- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable EnterprisesGetServiceAccountKeyType--instance FromHttpApiData EnterprisesGetServiceAccountKeyType where- parseQueryParam = \case- "googleCredentials" -> Right GoogleCredentials- "pkcs12" -> Right PKCS12- x -> Left ("Unable to parse EnterprisesGetServiceAccountKeyType from: " <> x)--instance ToHttpApiData EnterprisesGetServiceAccountKeyType where- toQueryParam = \case- GoogleCredentials -> "googleCredentials"- PKCS12 -> "pkcs12"--instance FromJSON EnterprisesGetServiceAccountKeyType where- parseJSON = parseJSONText "EnterprisesGetServiceAccountKeyType"--instance ToJSON EnterprisesGetServiceAccountKeyType where- toJSON = toJSONText
− gen/Network/Google/Resource/AndroidEnterprise/Devices/Get.hs
@@ -1,116 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Devices.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the details of a device.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.get@.-module Network.Google.Resource.AndroidEnterprise.Devices.Get- (- -- * REST Resource- DevicesGetResource-- -- * Creating a Request- , devicesGet- , DevicesGet-- -- * Request Lenses- , dgEnterpriseId- , dgUserId- , dgDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.devices.get@ method which the--- 'DevicesGet' request conforms to.-type DevicesGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Device---- | Retrieves the details of a device.------ /See:/ 'devicesGet' smart constructor.-data DevicesGet =- DevicesGet'- { _dgEnterpriseId :: !Text- , _dgUserId :: !Text- , _dgDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DevicesGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dgEnterpriseId'------ * 'dgUserId'------ * 'dgDeviceId'-devicesGet- :: Text -- ^ 'dgEnterpriseId'- -> Text -- ^ 'dgUserId'- -> Text -- ^ 'dgDeviceId'- -> DevicesGet-devicesGet pDgEnterpriseId_ pDgUserId_ pDgDeviceId_ =- DevicesGet'- { _dgEnterpriseId = pDgEnterpriseId_- , _dgUserId = pDgUserId_- , _dgDeviceId = pDgDeviceId_- }----- | The ID of the enterprise.-dgEnterpriseId :: Lens' DevicesGet Text-dgEnterpriseId- = lens _dgEnterpriseId- (\ s a -> s{_dgEnterpriseId = a})---- | The ID of the user.-dgUserId :: Lens' DevicesGet Text-dgUserId = lens _dgUserId (\ s a -> s{_dgUserId = a})---- | The ID of the device.-dgDeviceId :: Lens' DevicesGet Text-dgDeviceId- = lens _dgDeviceId (\ s a -> s{_dgDeviceId = a})--instance GoogleRequest DevicesGet where- type Rs DevicesGet = Device- type Scopes DevicesGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient DevicesGet'{..}- = go _dgEnterpriseId _dgUserId _dgDeviceId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy DevicesGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Devices/GetState.hs
@@ -1,127 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Devices.GetState--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves whether a device\'s access to Google services is enabled or--- disabled. The device state takes effect only if enforcing EMM policies--- on Android devices is enabled in the Google Admin Console. Otherwise,--- the device state is ignored and all devices are allowed access to Google--- services. This is only supported for Google-managed users.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.getState@.-module Network.Google.Resource.AndroidEnterprise.Devices.GetState- (- -- * REST Resource- DevicesGetStateResource-- -- * Creating a Request- , devicesGetState- , DevicesGetState-- -- * Request Lenses- , dgsEnterpriseId- , dgsUserId- , dgsDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.devices.getState@ method which the--- 'DevicesGetState' request conforms to.-type DevicesGetStateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "state" :>- QueryParam "alt" AltJSON :> Get '[JSON] DeviceState---- | Retrieves whether a device\'s access to Google services is enabled or--- disabled. The device state takes effect only if enforcing EMM policies--- on Android devices is enabled in the Google Admin Console. Otherwise,--- the device state is ignored and all devices are allowed access to Google--- services. This is only supported for Google-managed users.------ /See:/ 'devicesGetState' smart constructor.-data DevicesGetState =- DevicesGetState'- { _dgsEnterpriseId :: !Text- , _dgsUserId :: !Text- , _dgsDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DevicesGetState' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dgsEnterpriseId'------ * 'dgsUserId'------ * 'dgsDeviceId'-devicesGetState- :: Text -- ^ 'dgsEnterpriseId'- -> Text -- ^ 'dgsUserId'- -> Text -- ^ 'dgsDeviceId'- -> DevicesGetState-devicesGetState pDgsEnterpriseId_ pDgsUserId_ pDgsDeviceId_ =- DevicesGetState'- { _dgsEnterpriseId = pDgsEnterpriseId_- , _dgsUserId = pDgsUserId_- , _dgsDeviceId = pDgsDeviceId_- }----- | The ID of the enterprise.-dgsEnterpriseId :: Lens' DevicesGetState Text-dgsEnterpriseId- = lens _dgsEnterpriseId- (\ s a -> s{_dgsEnterpriseId = a})---- | The ID of the user.-dgsUserId :: Lens' DevicesGetState Text-dgsUserId- = lens _dgsUserId (\ s a -> s{_dgsUserId = a})---- | The ID of the device.-dgsDeviceId :: Lens' DevicesGetState Text-dgsDeviceId- = lens _dgsDeviceId (\ s a -> s{_dgsDeviceId = a})--instance GoogleRequest DevicesGetState where- type Rs DevicesGetState = DeviceState- type Scopes DevicesGetState =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient DevicesGetState'{..}- = go _dgsEnterpriseId _dgsUserId _dgsDeviceId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy DevicesGetStateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Devices/List.hs
@@ -1,101 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Devices.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the IDs of all of a user\'s devices.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.list@.-module Network.Google.Resource.AndroidEnterprise.Devices.List- (- -- * REST Resource- DevicesListResource-- -- * Creating a Request- , devicesList- , DevicesList-- -- * Request Lenses- , dlEnterpriseId- , dlUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.devices.list@ method which the--- 'DevicesList' request conforms to.-type DevicesListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- QueryParam "alt" AltJSON :>- Get '[JSON] DevicesListResponse---- | Retrieves the IDs of all of a user\'s devices.------ /See:/ 'devicesList' smart constructor.-data DevicesList =- DevicesList'- { _dlEnterpriseId :: !Text- , _dlUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DevicesList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dlEnterpriseId'------ * 'dlUserId'-devicesList- :: Text -- ^ 'dlEnterpriseId'- -> Text -- ^ 'dlUserId'- -> DevicesList-devicesList pDlEnterpriseId_ pDlUserId_ =- DevicesList' {_dlEnterpriseId = pDlEnterpriseId_, _dlUserId = pDlUserId_}----- | The ID of the enterprise.-dlEnterpriseId :: Lens' DevicesList Text-dlEnterpriseId- = lens _dlEnterpriseId- (\ s a -> s{_dlEnterpriseId = a})---- | The ID of the user.-dlUserId :: Lens' DevicesList Text-dlUserId = lens _dlUserId (\ s a -> s{_dlUserId = a})--instance GoogleRequest DevicesList where- type Rs DevicesList = DevicesListResponse- type Scopes DevicesList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient DevicesList'{..}- = go _dlEnterpriseId _dlUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy DevicesListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Devices/Patch.hs
@@ -1,143 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Devices.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates the device policy. This method supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.patch@.-module Network.Google.Resource.AndroidEnterprise.Devices.Patch- (- -- * REST Resource- DevicesPatchResource-- -- * Creating a Request- , devicesPatch- , DevicesPatch-- -- * Request Lenses- , dpUpdateMask- , dpEnterpriseId- , dpPayload- , dpUserId- , dpDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.devices.patch@ method which the--- 'DevicesPatch' request conforms to.-type DevicesPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- QueryParam "updateMask" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Device :> Patch '[JSON] Device---- | Updates the device policy. This method supports patch semantics.------ /See:/ 'devicesPatch' smart constructor.-data DevicesPatch =- DevicesPatch'- { _dpUpdateMask :: !(Maybe Text)- , _dpEnterpriseId :: !Text- , _dpPayload :: !Device- , _dpUserId :: !Text- , _dpDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DevicesPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dpUpdateMask'------ * 'dpEnterpriseId'------ * 'dpPayload'------ * 'dpUserId'------ * 'dpDeviceId'-devicesPatch- :: Text -- ^ 'dpEnterpriseId'- -> Device -- ^ 'dpPayload'- -> Text -- ^ 'dpUserId'- -> Text -- ^ 'dpDeviceId'- -> DevicesPatch-devicesPatch pDpEnterpriseId_ pDpPayload_ pDpUserId_ pDpDeviceId_ =- DevicesPatch'- { _dpUpdateMask = Nothing- , _dpEnterpriseId = pDpEnterpriseId_- , _dpPayload = pDpPayload_- , _dpUserId = pDpUserId_- , _dpDeviceId = pDpDeviceId_- }----- | Mask that identifies which fields to update. If not set, all modifiable--- fields will be modified. When set in a query parameter, this field--- should be specified as updateMask=,,...-dpUpdateMask :: Lens' DevicesPatch (Maybe Text)-dpUpdateMask- = lens _dpUpdateMask (\ s a -> s{_dpUpdateMask = a})---- | The ID of the enterprise.-dpEnterpriseId :: Lens' DevicesPatch Text-dpEnterpriseId- = lens _dpEnterpriseId- (\ s a -> s{_dpEnterpriseId = a})---- | Multipart request metadata.-dpPayload :: Lens' DevicesPatch Device-dpPayload- = lens _dpPayload (\ s a -> s{_dpPayload = a})---- | The ID of the user.-dpUserId :: Lens' DevicesPatch Text-dpUserId = lens _dpUserId (\ s a -> s{_dpUserId = a})---- | The ID of the device.-dpDeviceId :: Lens' DevicesPatch Text-dpDeviceId- = lens _dpDeviceId (\ s a -> s{_dpDeviceId = a})--instance GoogleRequest DevicesPatch where- type Rs DevicesPatch = Device- type Scopes DevicesPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient DevicesPatch'{..}- = go _dpEnterpriseId _dpUserId _dpDeviceId- _dpUpdateMask- (Just AltJSON)- _dpPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy DevicesPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Devices/SetState.hs
@@ -1,141 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Devices.SetState--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Sets whether a device\'s access to Google services is enabled or--- disabled. The device state takes effect only if enforcing EMM policies--- on Android devices is enabled in the Google Admin Console. Otherwise,--- the device state is ignored and all devices are allowed access to Google--- services. This is only supported for Google-managed users.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.setState@.-module Network.Google.Resource.AndroidEnterprise.Devices.SetState- (- -- * REST Resource- DevicesSetStateResource-- -- * Creating a Request- , devicesSetState- , DevicesSetState-- -- * Request Lenses- , dssEnterpriseId- , dssPayload- , dssUserId- , dssDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.devices.setState@ method which the--- 'DevicesSetState' request conforms to.-type DevicesSetStateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "state" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] DeviceState :>- Put '[JSON] DeviceState---- | Sets whether a device\'s access to Google services is enabled or--- disabled. The device state takes effect only if enforcing EMM policies--- on Android devices is enabled in the Google Admin Console. Otherwise,--- the device state is ignored and all devices are allowed access to Google--- services. This is only supported for Google-managed users.------ /See:/ 'devicesSetState' smart constructor.-data DevicesSetState =- DevicesSetState'- { _dssEnterpriseId :: !Text- , _dssPayload :: !DeviceState- , _dssUserId :: !Text- , _dssDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DevicesSetState' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dssEnterpriseId'------ * 'dssPayload'------ * 'dssUserId'------ * 'dssDeviceId'-devicesSetState- :: Text -- ^ 'dssEnterpriseId'- -> DeviceState -- ^ 'dssPayload'- -> Text -- ^ 'dssUserId'- -> Text -- ^ 'dssDeviceId'- -> DevicesSetState-devicesSetState pDssEnterpriseId_ pDssPayload_ pDssUserId_ pDssDeviceId_ =- DevicesSetState'- { _dssEnterpriseId = pDssEnterpriseId_- , _dssPayload = pDssPayload_- , _dssUserId = pDssUserId_- , _dssDeviceId = pDssDeviceId_- }----- | The ID of the enterprise.-dssEnterpriseId :: Lens' DevicesSetState Text-dssEnterpriseId- = lens _dssEnterpriseId- (\ s a -> s{_dssEnterpriseId = a})---- | Multipart request metadata.-dssPayload :: Lens' DevicesSetState DeviceState-dssPayload- = lens _dssPayload (\ s a -> s{_dssPayload = a})---- | The ID of the user.-dssUserId :: Lens' DevicesSetState Text-dssUserId- = lens _dssUserId (\ s a -> s{_dssUserId = a})---- | The ID of the device.-dssDeviceId :: Lens' DevicesSetState Text-dssDeviceId- = lens _dssDeviceId (\ s a -> s{_dssDeviceId = a})--instance GoogleRequest DevicesSetState where- type Rs DevicesSetState = DeviceState- type Scopes DevicesSetState =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient DevicesSetState'{..}- = go _dssEnterpriseId _dssUserId _dssDeviceId- (Just AltJSON)- _dssPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy DevicesSetStateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Devices/Update.hs
@@ -1,143 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Devices.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates the device policy------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.devices.update@.-module Network.Google.Resource.AndroidEnterprise.Devices.Update- (- -- * REST Resource- DevicesUpdateResource-- -- * Creating a Request- , devicesUpdate- , DevicesUpdate-- -- * Request Lenses- , duUpdateMask- , duEnterpriseId- , duPayload- , duUserId- , duDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.devices.update@ method which the--- 'DevicesUpdate' request conforms to.-type DevicesUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- QueryParam "updateMask" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Device :> Put '[JSON] Device---- | Updates the device policy------ /See:/ 'devicesUpdate' smart constructor.-data DevicesUpdate =- DevicesUpdate'- { _duUpdateMask :: !(Maybe Text)- , _duEnterpriseId :: !Text- , _duPayload :: !Device- , _duUserId :: !Text- , _duDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DevicesUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'duUpdateMask'------ * 'duEnterpriseId'------ * 'duPayload'------ * 'duUserId'------ * 'duDeviceId'-devicesUpdate- :: Text -- ^ 'duEnterpriseId'- -> Device -- ^ 'duPayload'- -> Text -- ^ 'duUserId'- -> Text -- ^ 'duDeviceId'- -> DevicesUpdate-devicesUpdate pDuEnterpriseId_ pDuPayload_ pDuUserId_ pDuDeviceId_ =- DevicesUpdate'- { _duUpdateMask = Nothing- , _duEnterpriseId = pDuEnterpriseId_- , _duPayload = pDuPayload_- , _duUserId = pDuUserId_- , _duDeviceId = pDuDeviceId_- }----- | Mask that identifies which fields to update. If not set, all modifiable--- fields will be modified. When set in a query parameter, this field--- should be specified as updateMask=,,...-duUpdateMask :: Lens' DevicesUpdate (Maybe Text)-duUpdateMask- = lens _duUpdateMask (\ s a -> s{_duUpdateMask = a})---- | The ID of the enterprise.-duEnterpriseId :: Lens' DevicesUpdate Text-duEnterpriseId- = lens _duEnterpriseId- (\ s a -> s{_duEnterpriseId = a})---- | Multipart request metadata.-duPayload :: Lens' DevicesUpdate Device-duPayload- = lens _duPayload (\ s a -> s{_duPayload = a})---- | The ID of the user.-duUserId :: Lens' DevicesUpdate Text-duUserId = lens _duUserId (\ s a -> s{_duUserId = a})---- | The ID of the device.-duDeviceId :: Lens' DevicesUpdate Text-duDeviceId- = lens _duDeviceId (\ s a -> s{_duDeviceId = a})--instance GoogleRequest DevicesUpdate where- type Rs DevicesUpdate = Device- type Scopes DevicesUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient DevicesUpdate'{..}- = go _duEnterpriseId _duUserId _duDeviceId- _duUpdateMask- (Just AltJSON)- _duPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy DevicesUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/AcknowledgeNotificationSet.hs
@@ -1,98 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Acknowledges notifications that were received from--- Enterprises.PullNotificationSet to prevent subsequent calls from--- returning the same notifications.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.acknowledgeNotificationSet@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet- (- -- * REST Resource- EnterprisesAcknowledgeNotificationSetResource-- -- * Creating a Request- , enterprisesAcknowledgeNotificationSet- , EnterprisesAcknowledgeNotificationSet-- -- * Request Lenses- , eansNotificationSetId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.acknowledgeNotificationSet@ method which the--- 'EnterprisesAcknowledgeNotificationSet' request conforms to.-type EnterprisesAcknowledgeNotificationSetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- "acknowledgeNotificationSet" :>- QueryParam "notificationSetId" Text :>- QueryParam "alt" AltJSON :> Post '[JSON] ()---- | Acknowledges notifications that were received from--- Enterprises.PullNotificationSet to prevent subsequent calls from--- returning the same notifications.------ /See:/ 'enterprisesAcknowledgeNotificationSet' smart constructor.-newtype EnterprisesAcknowledgeNotificationSet =- EnterprisesAcknowledgeNotificationSet'- { _eansNotificationSetId :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesAcknowledgeNotificationSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eansNotificationSetId'-enterprisesAcknowledgeNotificationSet- :: EnterprisesAcknowledgeNotificationSet-enterprisesAcknowledgeNotificationSet =- EnterprisesAcknowledgeNotificationSet' {_eansNotificationSetId = Nothing}----- | The notification set ID as returned by Enterprises.PullNotificationSet.--- This must be provided.-eansNotificationSetId :: Lens' EnterprisesAcknowledgeNotificationSet (Maybe Text)-eansNotificationSetId- = lens _eansNotificationSetId- (\ s a -> s{_eansNotificationSetId = a})--instance GoogleRequest- EnterprisesAcknowledgeNotificationSet- where- type Rs EnterprisesAcknowledgeNotificationSet = ()- type Scopes EnterprisesAcknowledgeNotificationSet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient- EnterprisesAcknowledgeNotificationSet'{..}- = go _eansNotificationSetId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy EnterprisesAcknowledgeNotificationSetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/CompleteSignup.hs
@@ -1,107 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.CompleteSignup--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Completes the signup flow, by specifying the Completion token and--- Enterprise token. This request must not be called multiple times for a--- given Enterprise Token.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.completeSignup@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.CompleteSignup- (- -- * REST Resource- EnterprisesCompleteSignupResource-- -- * Creating a Request- , enterprisesCompleteSignup- , EnterprisesCompleteSignup-- -- * Request Lenses- , ecsCompletionToken- , ecsEnterpriseToken- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.completeSignup@ method which the--- 'EnterprisesCompleteSignup' request conforms to.-type EnterprisesCompleteSignupResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- "completeSignup" :>- QueryParam "completionToken" Text :>- QueryParam "enterpriseToken" Text :>- QueryParam "alt" AltJSON :> Post '[JSON] Enterprise---- | Completes the signup flow, by specifying the Completion token and--- Enterprise token. This request must not be called multiple times for a--- given Enterprise Token.------ /See:/ 'enterprisesCompleteSignup' smart constructor.-data EnterprisesCompleteSignup =- EnterprisesCompleteSignup'- { _ecsCompletionToken :: !(Maybe Text)- , _ecsEnterpriseToken :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesCompleteSignup' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ecsCompletionToken'------ * 'ecsEnterpriseToken'-enterprisesCompleteSignup- :: EnterprisesCompleteSignup-enterprisesCompleteSignup =- EnterprisesCompleteSignup'- {_ecsCompletionToken = Nothing, _ecsEnterpriseToken = Nothing}----- | The Completion token initially returned by GenerateSignupUrl.-ecsCompletionToken :: Lens' EnterprisesCompleteSignup (Maybe Text)-ecsCompletionToken- = lens _ecsCompletionToken- (\ s a -> s{_ecsCompletionToken = a})---- | The Enterprise token appended to the Callback URL.-ecsEnterpriseToken :: Lens' EnterprisesCompleteSignup (Maybe Text)-ecsEnterpriseToken- = lens _ecsEnterpriseToken- (\ s a -> s{_ecsEnterpriseToken = a})--instance GoogleRequest EnterprisesCompleteSignup- where- type Rs EnterprisesCompleteSignup = Enterprise- type Scopes EnterprisesCompleteSignup =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesCompleteSignup'{..}- = go _ecsCompletionToken _ecsEnterpriseToken- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesCompleteSignupResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/CreateWebToken.hs
@@ -1,111 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns a unique token to access an embeddable UI. To generate a web UI,--- pass the generated token into the managed Google Play javascript API.--- Each token may only be used to start one UI session. See the javascript--- API documentation for further information.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.createWebToken@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken- (- -- * REST Resource- EnterprisesCreateWebTokenResource-- -- * Creating a Request- , enterprisesCreateWebToken- , EnterprisesCreateWebToken-- -- * Request Lenses- , ecwtEnterpriseId- , ecwtPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.createWebToken@ method which the--- 'EnterprisesCreateWebToken' request conforms to.-type EnterprisesCreateWebTokenResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "createWebToken" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] AdministratorWebTokenSpec :>- Post '[JSON] AdministratorWebToken---- | Returns a unique token to access an embeddable UI. To generate a web UI,--- pass the generated token into the managed Google Play javascript API.--- Each token may only be used to start one UI session. See the javascript--- API documentation for further information.------ /See:/ 'enterprisesCreateWebToken' smart constructor.-data EnterprisesCreateWebToken =- EnterprisesCreateWebToken'- { _ecwtEnterpriseId :: !Text- , _ecwtPayload :: !AdministratorWebTokenSpec- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesCreateWebToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ecwtEnterpriseId'------ * 'ecwtPayload'-enterprisesCreateWebToken- :: Text -- ^ 'ecwtEnterpriseId'- -> AdministratorWebTokenSpec -- ^ 'ecwtPayload'- -> EnterprisesCreateWebToken-enterprisesCreateWebToken pEcwtEnterpriseId_ pEcwtPayload_ =- EnterprisesCreateWebToken'- {_ecwtEnterpriseId = pEcwtEnterpriseId_, _ecwtPayload = pEcwtPayload_}----- | The ID of the enterprise.-ecwtEnterpriseId :: Lens' EnterprisesCreateWebToken Text-ecwtEnterpriseId- = lens _ecwtEnterpriseId- (\ s a -> s{_ecwtEnterpriseId = a})---- | Multipart request metadata.-ecwtPayload :: Lens' EnterprisesCreateWebToken AdministratorWebTokenSpec-ecwtPayload- = lens _ecwtPayload (\ s a -> s{_ecwtPayload = a})--instance GoogleRequest EnterprisesCreateWebToken- where- type Rs EnterprisesCreateWebToken =- AdministratorWebToken- type Scopes EnterprisesCreateWebToken =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesCreateWebToken'{..}- = go _ecwtEnterpriseId (Just AltJSON) _ecwtPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesCreateWebTokenResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Enroll.hs
@@ -1,99 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Enrolls an enterprise with the calling EMM.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.enroll@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll- (- -- * REST Resource- EnterprisesEnrollResource-- -- * Creating a Request- , enterprisesEnroll- , EnterprisesEnroll-- -- * Request Lenses- , eeToken- , eePayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.enroll@ method which the--- 'EnterprisesEnroll' request conforms to.-type EnterprisesEnrollResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- "enroll" :>- QueryParam "token" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise---- | Enrolls an enterprise with the calling EMM.------ /See:/ 'enterprisesEnroll' smart constructor.-data EnterprisesEnroll =- EnterprisesEnroll'- { _eeToken :: !Text- , _eePayload :: !Enterprise- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesEnroll' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eeToken'------ * 'eePayload'-enterprisesEnroll- :: Text -- ^ 'eeToken'- -> Enterprise -- ^ 'eePayload'- -> EnterprisesEnroll-enterprisesEnroll pEeToken_ pEePayload_ =- EnterprisesEnroll' {_eeToken = pEeToken_, _eePayload = pEePayload_}----- | The token provided by the enterprise to register the EMM.-eeToken :: Lens' EnterprisesEnroll Text-eeToken = lens _eeToken (\ s a -> s{_eeToken = a})---- | Multipart request metadata.-eePayload :: Lens' EnterprisesEnroll Enterprise-eePayload- = lens _eePayload (\ s a -> s{_eePayload = a})--instance GoogleRequest EnterprisesEnroll where- type Rs EnterprisesEnroll = Enterprise- type Scopes EnterprisesEnroll =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesEnroll'{..}- = go (Just _eeToken) (Just AltJSON) _eePayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesEnrollResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GenerateSignupURL.hs
@@ -1,97 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.GenerateSignupURL--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Generates a sign-up URL.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.generateSignupUrl@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.GenerateSignupURL- (- -- * REST Resource- EnterprisesGenerateSignupURLResource-- -- * Creating a Request- , enterprisesGenerateSignupURL- , EnterprisesGenerateSignupURL-- -- * Request Lenses- , egsuCallbackURL- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.generateSignupUrl@ method which the--- 'EnterprisesGenerateSignupURL' request conforms to.-type EnterprisesGenerateSignupURLResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- "signupUrl" :>- QueryParam "callbackUrl" Text :>- QueryParam "alt" AltJSON :> Post '[JSON] SignupInfo---- | Generates a sign-up URL.------ /See:/ 'enterprisesGenerateSignupURL' smart constructor.-newtype EnterprisesGenerateSignupURL =- EnterprisesGenerateSignupURL'- { _egsuCallbackURL :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesGenerateSignupURL' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'egsuCallbackURL'-enterprisesGenerateSignupURL- :: EnterprisesGenerateSignupURL-enterprisesGenerateSignupURL =- EnterprisesGenerateSignupURL' {_egsuCallbackURL = Nothing}----- | The callback URL to which the Admin will be redirected after--- successfully creating an enterprise. Before redirecting there the system--- will add a single query parameter to this URL named \"enterpriseToken\"--- which will contain an opaque token to be used for the CompleteSignup--- request. Beware that this means that the URL will be parsed, the--- parameter added and then a new URL formatted, i.e. there may be some--- minor formatting changes and, more importantly, the URL must be--- well-formed so that it can be parsed.-egsuCallbackURL :: Lens' EnterprisesGenerateSignupURL (Maybe Text)-egsuCallbackURL- = lens _egsuCallbackURL- (\ s a -> s{_egsuCallbackURL = a})--instance GoogleRequest EnterprisesGenerateSignupURL- where- type Rs EnterprisesGenerateSignupURL = SignupInfo- type Scopes EnterprisesGenerateSignupURL =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesGenerateSignupURL'{..}- = go _egsuCallbackURL (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesGenerateSignupURLResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Get.hs
@@ -1,88 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the name and domain of an enterprise.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.get@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.Get- (- -- * REST Resource- EnterprisesGetResource-- -- * Creating a Request- , enterprisesGet- , EnterprisesGet-- -- * Request Lenses- , eEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.get@ method which the--- 'EnterprisesGet' request conforms to.-type EnterprisesGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Enterprise---- | Retrieves the name and domain of an enterprise.------ /See:/ 'enterprisesGet' smart constructor.-newtype EnterprisesGet =- EnterprisesGet'- { _eEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eEnterpriseId'-enterprisesGet- :: Text -- ^ 'eEnterpriseId'- -> EnterprisesGet-enterprisesGet pEEnterpriseId_ =- EnterprisesGet' {_eEnterpriseId = pEEnterpriseId_}----- | The ID of the enterprise.-eEnterpriseId :: Lens' EnterprisesGet Text-eEnterpriseId- = lens _eEnterpriseId- (\ s a -> s{_eEnterpriseId = a})--instance GoogleRequest EnterprisesGet where- type Rs EnterprisesGet = Enterprise- type Scopes EnterprisesGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesGet'{..}- = go _eEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy EnterprisesGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GetServiceAccount.hs
@@ -1,125 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns a service account and credentials. The service account can be--- bound to the enterprise by calling setAccount. The service account is--- unique to this enterprise and EMM, and will be deleted if the enterprise--- is unbound. The credentials contain private key data and are not stored--- server-side. This method can only be called after calling--- Enterprises.Enroll or Enterprises.CompleteSignup, and before--- Enterprises.SetAccount; at other times it will return an error.--- Subsequent calls after the first will generate a new, unique set of--- credentials, and invalidate the previously generated credentials. Once--- the service account is bound to the enterprise, it can be managed using--- the serviceAccountKeys resource.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.getServiceAccount@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount- (- -- * REST Resource- EnterprisesGetServiceAccountResource-- -- * Creating a Request- , enterprisesGetServiceAccount- , EnterprisesGetServiceAccount-- -- * Request Lenses- , egsaKeyType- , egsaEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.getServiceAccount@ method which the--- 'EnterprisesGetServiceAccount' request conforms to.-type EnterprisesGetServiceAccountResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "serviceAccount" :>- QueryParam "keyType"- EnterprisesGetServiceAccountKeyType- :>- QueryParam "alt" AltJSON :>- Get '[JSON] ServiceAccount---- | Returns a service account and credentials. The service account can be--- bound to the enterprise by calling setAccount. The service account is--- unique to this enterprise and EMM, and will be deleted if the enterprise--- is unbound. The credentials contain private key data and are not stored--- server-side. This method can only be called after calling--- Enterprises.Enroll or Enterprises.CompleteSignup, and before--- Enterprises.SetAccount; at other times it will return an error.--- Subsequent calls after the first will generate a new, unique set of--- credentials, and invalidate the previously generated credentials. Once--- the service account is bound to the enterprise, it can be managed using--- the serviceAccountKeys resource.------ /See:/ 'enterprisesGetServiceAccount' smart constructor.-data EnterprisesGetServiceAccount =- EnterprisesGetServiceAccount'- { _egsaKeyType :: !(Maybe EnterprisesGetServiceAccountKeyType)- , _egsaEnterpriseId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesGetServiceAccount' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'egsaKeyType'------ * 'egsaEnterpriseId'-enterprisesGetServiceAccount- :: Text -- ^ 'egsaEnterpriseId'- -> EnterprisesGetServiceAccount-enterprisesGetServiceAccount pEgsaEnterpriseId_ =- EnterprisesGetServiceAccount'- {_egsaKeyType = Nothing, _egsaEnterpriseId = pEgsaEnterpriseId_}----- | The type of credential to return with the service account. Required.-egsaKeyType :: Lens' EnterprisesGetServiceAccount (Maybe EnterprisesGetServiceAccountKeyType)-egsaKeyType- = lens _egsaKeyType (\ s a -> s{_egsaKeyType = a})---- | The ID of the enterprise.-egsaEnterpriseId :: Lens' EnterprisesGetServiceAccount Text-egsaEnterpriseId- = lens _egsaEnterpriseId- (\ s a -> s{_egsaEnterpriseId = a})--instance GoogleRequest EnterprisesGetServiceAccount- where- type Rs EnterprisesGetServiceAccount = ServiceAccount- type Scopes EnterprisesGetServiceAccount =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesGetServiceAccount'{..}- = go _egsaEnterpriseId _egsaKeyType (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesGetServiceAccountResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/GetStoreLayout.hs
@@ -1,93 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Returns the store layout for the enterprise. If the store layout has not--- been set, returns \"basic\" as the store layout type and no homepage.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.getStoreLayout@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout- (- -- * REST Resource- EnterprisesGetStoreLayoutResource-- -- * Creating a Request- , enterprisesGetStoreLayout- , EnterprisesGetStoreLayout-- -- * Request Lenses- , egslEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.getStoreLayout@ method which the--- 'EnterprisesGetStoreLayout' request conforms to.-type EnterprisesGetStoreLayoutResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- QueryParam "alt" AltJSON :> Get '[JSON] StoreLayout---- | Returns the store layout for the enterprise. If the store layout has not--- been set, returns \"basic\" as the store layout type and no homepage.------ /See:/ 'enterprisesGetStoreLayout' smart constructor.-newtype EnterprisesGetStoreLayout =- EnterprisesGetStoreLayout'- { _egslEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesGetStoreLayout' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'egslEnterpriseId'-enterprisesGetStoreLayout- :: Text -- ^ 'egslEnterpriseId'- -> EnterprisesGetStoreLayout-enterprisesGetStoreLayout pEgslEnterpriseId_ =- EnterprisesGetStoreLayout' {_egslEnterpriseId = pEgslEnterpriseId_}----- | The ID of the enterprise.-egslEnterpriseId :: Lens' EnterprisesGetStoreLayout Text-egslEnterpriseId- = lens _egslEnterpriseId- (\ s a -> s{_egslEnterpriseId = a})--instance GoogleRequest EnterprisesGetStoreLayout- where- type Rs EnterprisesGetStoreLayout = StoreLayout- type Scopes EnterprisesGetStoreLayout =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesGetStoreLayout'{..}- = go _egslEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesGetStoreLayoutResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/List.hs
@@ -1,95 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Looks up an enterprise by domain name. This is only supported for--- enterprises created via the Google-initiated creation flow. Lookup of--- the id is not needed for enterprises created via the EMM-initiated flow--- since the EMM learns the enterprise ID in the callback specified in the--- Enterprises.generateSignupUrl call.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.list@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.List- (- -- * REST Resource- EnterprisesListResource-- -- * Creating a Request- , enterprisesList- , EnterprisesList-- -- * Request Lenses- , elDomain- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.list@ method which the--- 'EnterprisesList' request conforms to.-type EnterprisesListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- QueryParam "domain" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] EnterprisesListResponse---- | Looks up an enterprise by domain name. This is only supported for--- enterprises created via the Google-initiated creation flow. Lookup of--- the id is not needed for enterprises created via the EMM-initiated flow--- since the EMM learns the enterprise ID in the callback specified in the--- Enterprises.generateSignupUrl call.------ /See:/ 'enterprisesList' smart constructor.-newtype EnterprisesList =- EnterprisesList'- { _elDomain :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'elDomain'-enterprisesList- :: Text -- ^ 'elDomain'- -> EnterprisesList-enterprisesList pElDomain_ = EnterprisesList' {_elDomain = pElDomain_}----- | The exact primary domain name of the enterprise to look up.-elDomain :: Lens' EnterprisesList Text-elDomain = lens _elDomain (\ s a -> s{_elDomain = a})--instance GoogleRequest EnterprisesList where- type Rs EnterprisesList = EnterprisesListResponse- type Scopes EnterprisesList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesList'{..}- = go (Just _elDomain) (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/PullNotificationSet.hs
@@ -1,127 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.PullNotificationSet--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Pulls and returns a notification set for the enterprises associated with--- the service account authenticated for the request. The notification set--- may be empty if no notification are pending. A notification set returned--- needs to be acknowledged within 20 seconds by calling--- Enterprises.AcknowledgeNotificationSet, unless the notification set is--- empty. Notifications that are not acknowledged within the 20 seconds--- will eventually be included again in the response to another--- PullNotificationSet request, and those that are never acknowledged will--- ultimately be deleted according to the Google Cloud Platform Pub\/Sub--- system policy. Multiple requests might be performed concurrently to--- retrieve notifications, in which case the pending notifications (if any)--- will be split among each caller, if any are pending. If no notifications--- are present, an empty notification list is returned. Subsequent requests--- may return more notifications once they become available.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.pullNotificationSet@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.PullNotificationSet- (- -- * REST Resource- EnterprisesPullNotificationSetResource-- -- * Creating a Request- , enterprisesPullNotificationSet- , EnterprisesPullNotificationSet-- -- * Request Lenses- , epnsRequestMode- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.pullNotificationSet@ method which the--- 'EnterprisesPullNotificationSet' request conforms to.-type EnterprisesPullNotificationSetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- "pullNotificationSet" :>- QueryParam "requestMode"- EnterprisesPullNotificationSetRequestMode- :>- QueryParam "alt" AltJSON :>- Post '[JSON] NotificationSet---- | Pulls and returns a notification set for the enterprises associated with--- the service account authenticated for the request. The notification set--- may be empty if no notification are pending. A notification set returned--- needs to be acknowledged within 20 seconds by calling--- Enterprises.AcknowledgeNotificationSet, unless the notification set is--- empty. Notifications that are not acknowledged within the 20 seconds--- will eventually be included again in the response to another--- PullNotificationSet request, and those that are never acknowledged will--- ultimately be deleted according to the Google Cloud Platform Pub\/Sub--- system policy. Multiple requests might be performed concurrently to--- retrieve notifications, in which case the pending notifications (if any)--- will be split among each caller, if any are pending. If no notifications--- are present, an empty notification list is returned. Subsequent requests--- may return more notifications once they become available.------ /See:/ 'enterprisesPullNotificationSet' smart constructor.-newtype EnterprisesPullNotificationSet =- EnterprisesPullNotificationSet'- { _epnsRequestMode :: Maybe EnterprisesPullNotificationSetRequestMode- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesPullNotificationSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'epnsRequestMode'-enterprisesPullNotificationSet- :: EnterprisesPullNotificationSet-enterprisesPullNotificationSet =- EnterprisesPullNotificationSet' {_epnsRequestMode = Nothing}----- | The request mode for pulling notifications. Specifying--- waitForNotifications will cause the request to block and wait until one--- or more notifications are present, or return an empty notification list--- if no notifications are present after some time. Speciying--- returnImmediately will cause the request to immediately return the--- pending notifications, or an empty list if no notifications are present.--- If omitted, defaults to waitForNotifications.-epnsRequestMode :: Lens' EnterprisesPullNotificationSet (Maybe EnterprisesPullNotificationSetRequestMode)-epnsRequestMode- = lens _epnsRequestMode- (\ s a -> s{_epnsRequestMode = a})--instance GoogleRequest EnterprisesPullNotificationSet- where- type Rs EnterprisesPullNotificationSet =- NotificationSet- type Scopes EnterprisesPullNotificationSet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesPullNotificationSet'{..}- = go _epnsRequestMode (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy EnterprisesPullNotificationSetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SendTestPushNotification.hs
@@ -1,100 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Sends a test notification to validate the EMM integration with the--- Google Cloud Pub\/Sub service for this enterprise.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.sendTestPushNotification@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification- (- -- * REST Resource- EnterprisesSendTestPushNotificationResource-- -- * Creating a Request- , enterprisesSendTestPushNotification- , EnterprisesSendTestPushNotification-- -- * Request Lenses- , estpnEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.sendTestPushNotification@ method which the--- 'EnterprisesSendTestPushNotification' request conforms to.-type EnterprisesSendTestPushNotificationResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "sendTestPushNotification" :>- QueryParam "alt" AltJSON :>- Post '[JSON]- EnterprisesSendTestPushNotificationResponse---- | Sends a test notification to validate the EMM integration with the--- Google Cloud Pub\/Sub service for this enterprise.------ /See:/ 'enterprisesSendTestPushNotification' smart constructor.-newtype EnterprisesSendTestPushNotification =- EnterprisesSendTestPushNotification'- { _estpnEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesSendTestPushNotification' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'estpnEnterpriseId'-enterprisesSendTestPushNotification- :: Text -- ^ 'estpnEnterpriseId'- -> EnterprisesSendTestPushNotification-enterprisesSendTestPushNotification pEstpnEnterpriseId_ =- EnterprisesSendTestPushNotification'- {_estpnEnterpriseId = pEstpnEnterpriseId_}----- | The ID of the enterprise.-estpnEnterpriseId :: Lens' EnterprisesSendTestPushNotification Text-estpnEnterpriseId- = lens _estpnEnterpriseId- (\ s a -> s{_estpnEnterpriseId = a})--instance GoogleRequest- EnterprisesSendTestPushNotification- where- type Rs EnterprisesSendTestPushNotification =- EnterprisesSendTestPushNotificationResponse- type Scopes EnterprisesSendTestPushNotification =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient- EnterprisesSendTestPushNotification'{..}- = go _estpnEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy EnterprisesSendTestPushNotificationResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetAccount.hs
@@ -1,105 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Sets the account that will be used to authenticate to the API as the--- enterprise.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setAccount@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount- (- -- * REST Resource- EnterprisesSetAccountResource-- -- * Creating a Request- , enterprisesSetAccount- , EnterprisesSetAccount-- -- * Request Lenses- , esaEnterpriseId- , esaPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.setAccount@ method which the--- 'EnterprisesSetAccount' request conforms to.-type EnterprisesSetAccountResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "account" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] EnterpriseAccount :>- Put '[JSON] EnterpriseAccount---- | Sets the account that will be used to authenticate to the API as the--- enterprise.------ /See:/ 'enterprisesSetAccount' smart constructor.-data EnterprisesSetAccount =- EnterprisesSetAccount'- { _esaEnterpriseId :: !Text- , _esaPayload :: !EnterpriseAccount- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesSetAccount' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'esaEnterpriseId'------ * 'esaPayload'-enterprisesSetAccount- :: Text -- ^ 'esaEnterpriseId'- -> EnterpriseAccount -- ^ 'esaPayload'- -> EnterprisesSetAccount-enterprisesSetAccount pEsaEnterpriseId_ pEsaPayload_ =- EnterprisesSetAccount'- {_esaEnterpriseId = pEsaEnterpriseId_, _esaPayload = pEsaPayload_}----- | The ID of the enterprise.-esaEnterpriseId :: Lens' EnterprisesSetAccount Text-esaEnterpriseId- = lens _esaEnterpriseId- (\ s a -> s{_esaEnterpriseId = a})---- | Multipart request metadata.-esaPayload :: Lens' EnterprisesSetAccount EnterpriseAccount-esaPayload- = lens _esaPayload (\ s a -> s{_esaPayload = a})--instance GoogleRequest EnterprisesSetAccount where- type Rs EnterprisesSetAccount = EnterpriseAccount- type Scopes EnterprisesSetAccount =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesSetAccount'{..}- = go _esaEnterpriseId (Just AltJSON) _esaPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesSetAccountResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/SetStoreLayout.hs
@@ -1,116 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Sets the store layout for the enterprise. By default, storeLayoutType is--- set to \"basic\" and the basic store layout is enabled. The basic layout--- only contains apps approved by the admin, and that have been added to--- the available product set for a user (using the setAvailableProductSet--- call). Apps on the page are sorted in order of their product ID value.--- If you create a custom store layout (by setting storeLayoutType =--- \"custom\" and setting a homepage), the basic store layout is disabled.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.setStoreLayout@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout- (- -- * REST Resource- EnterprisesSetStoreLayoutResource-- -- * Creating a Request- , enterprisesSetStoreLayout- , EnterprisesSetStoreLayout-- -- * Request Lenses- , esslEnterpriseId- , esslPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.setStoreLayout@ method which the--- 'EnterprisesSetStoreLayout' request conforms to.-type EnterprisesSetStoreLayoutResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] StoreLayout :>- Put '[JSON] StoreLayout---- | Sets the store layout for the enterprise. By default, storeLayoutType is--- set to \"basic\" and the basic store layout is enabled. The basic layout--- only contains apps approved by the admin, and that have been added to--- the available product set for a user (using the setAvailableProductSet--- call). Apps on the page are sorted in order of their product ID value.--- If you create a custom store layout (by setting storeLayoutType =--- \"custom\" and setting a homepage), the basic store layout is disabled.------ /See:/ 'enterprisesSetStoreLayout' smart constructor.-data EnterprisesSetStoreLayout =- EnterprisesSetStoreLayout'- { _esslEnterpriseId :: !Text- , _esslPayload :: !StoreLayout- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesSetStoreLayout' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'esslEnterpriseId'------ * 'esslPayload'-enterprisesSetStoreLayout- :: Text -- ^ 'esslEnterpriseId'- -> StoreLayout -- ^ 'esslPayload'- -> EnterprisesSetStoreLayout-enterprisesSetStoreLayout pEsslEnterpriseId_ pEsslPayload_ =- EnterprisesSetStoreLayout'- {_esslEnterpriseId = pEsslEnterpriseId_, _esslPayload = pEsslPayload_}----- | The ID of the enterprise.-esslEnterpriseId :: Lens' EnterprisesSetStoreLayout Text-esslEnterpriseId- = lens _esslEnterpriseId- (\ s a -> s{_esslEnterpriseId = a})---- | Multipart request metadata.-esslPayload :: Lens' EnterprisesSetStoreLayout StoreLayout-esslPayload- = lens _esslPayload (\ s a -> s{_esslPayload = a})--instance GoogleRequest EnterprisesSetStoreLayout- where- type Rs EnterprisesSetStoreLayout = StoreLayout- type Scopes EnterprisesSetStoreLayout =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesSetStoreLayout'{..}- = go _esslEnterpriseId (Just AltJSON) _esslPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesSetStoreLayoutResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Enterprises/Unenroll.hs
@@ -1,90 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Unenrolls an enterprise from the calling EMM.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.enterprises.unenroll@.-module Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll- (- -- * REST Resource- EnterprisesUnenrollResource-- -- * Creating a Request- , enterprisesUnenroll- , EnterprisesUnenroll-- -- * Request Lenses- , entEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.enterprises.unenroll@ method which the--- 'EnterprisesUnenroll' request conforms to.-type EnterprisesUnenrollResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "unenroll" :>- QueryParam "alt" AltJSON :> Post '[JSON] ()---- | Unenrolls an enterprise from the calling EMM.------ /See:/ 'enterprisesUnenroll' smart constructor.-newtype EnterprisesUnenroll =- EnterprisesUnenroll'- { _entEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesUnenroll' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'entEnterpriseId'-enterprisesUnenroll- :: Text -- ^ 'entEnterpriseId'- -> EnterprisesUnenroll-enterprisesUnenroll pEntEnterpriseId_ =- EnterprisesUnenroll' {_entEnterpriseId = pEntEnterpriseId_}----- | The ID of the enterprise.-entEnterpriseId :: Lens' EnterprisesUnenroll Text-entEnterpriseId- = lens _entEnterpriseId- (\ s a -> s{_entEnterpriseId = a})--instance GoogleRequest EnterprisesUnenroll where- type Rs EnterprisesUnenroll = ()- type Scopes EnterprisesUnenroll =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EnterprisesUnenroll'{..}- = go _entEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EnterprisesUnenrollResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Delete.hs
@@ -1,119 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Removes an entitlement to an app for a user.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.delete@.-module Network.Google.Resource.AndroidEnterprise.Entitlements.Delete- (- -- * REST Resource- EntitlementsDeleteResource-- -- * Creating a Request- , entitlementsDelete- , EntitlementsDelete-- -- * Request Lenses- , edEntitlementId- , edEnterpriseId- , edUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.entitlements.delete@ method which the--- 'EntitlementsDelete' request conforms to.-type EntitlementsDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "entitlements" :>- Capture "entitlementId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Removes an entitlement to an app for a user.------ /See:/ 'entitlementsDelete' smart constructor.-data EntitlementsDelete =- EntitlementsDelete'- { _edEntitlementId :: !Text- , _edEnterpriseId :: !Text- , _edUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EntitlementsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edEntitlementId'------ * 'edEnterpriseId'------ * 'edUserId'-entitlementsDelete- :: Text -- ^ 'edEntitlementId'- -> Text -- ^ 'edEnterpriseId'- -> Text -- ^ 'edUserId'- -> EntitlementsDelete-entitlementsDelete pEdEntitlementId_ pEdEnterpriseId_ pEdUserId_ =- EntitlementsDelete'- { _edEntitlementId = pEdEntitlementId_- , _edEnterpriseId = pEdEnterpriseId_- , _edUserId = pEdUserId_- }----- | The ID of the entitlement (a product ID), e.g.--- \"app:com.google.android.gm\".-edEntitlementId :: Lens' EntitlementsDelete Text-edEntitlementId- = lens _edEntitlementId- (\ s a -> s{_edEntitlementId = a})---- | The ID of the enterprise.-edEnterpriseId :: Lens' EntitlementsDelete Text-edEnterpriseId- = lens _edEnterpriseId- (\ s a -> s{_edEnterpriseId = a})---- | The ID of the user.-edUserId :: Lens' EntitlementsDelete Text-edUserId = lens _edUserId (\ s a -> s{_edUserId = a})--instance GoogleRequest EntitlementsDelete where- type Rs EntitlementsDelete = ()- type Scopes EntitlementsDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EntitlementsDelete'{..}- = go _edEnterpriseId _edUserId _edEntitlementId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EntitlementsDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Get.hs
@@ -1,119 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of an entitlement.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.get@.-module Network.Google.Resource.AndroidEnterprise.Entitlements.Get- (- -- * REST Resource- EntitlementsGetResource-- -- * Creating a Request- , entitlementsGet- , EntitlementsGet-- -- * Request Lenses- , egEntitlementId- , egEnterpriseId- , egUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.entitlements.get@ method which the--- 'EntitlementsGet' request conforms to.-type EntitlementsGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "entitlements" :>- Capture "entitlementId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Entitlement---- | Retrieves details of an entitlement.------ /See:/ 'entitlementsGet' smart constructor.-data EntitlementsGet =- EntitlementsGet'- { _egEntitlementId :: !Text- , _egEnterpriseId :: !Text- , _egUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EntitlementsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'egEntitlementId'------ * 'egEnterpriseId'------ * 'egUserId'-entitlementsGet- :: Text -- ^ 'egEntitlementId'- -> Text -- ^ 'egEnterpriseId'- -> Text -- ^ 'egUserId'- -> EntitlementsGet-entitlementsGet pEgEntitlementId_ pEgEnterpriseId_ pEgUserId_ =- EntitlementsGet'- { _egEntitlementId = pEgEntitlementId_- , _egEnterpriseId = pEgEnterpriseId_- , _egUserId = pEgUserId_- }----- | The ID of the entitlement (a product ID), e.g.--- \"app:com.google.android.gm\".-egEntitlementId :: Lens' EntitlementsGet Text-egEntitlementId- = lens _egEntitlementId- (\ s a -> s{_egEntitlementId = a})---- | The ID of the enterprise.-egEnterpriseId :: Lens' EntitlementsGet Text-egEnterpriseId- = lens _egEnterpriseId- (\ s a -> s{_egEnterpriseId = a})---- | The ID of the user.-egUserId :: Lens' EntitlementsGet Text-egUserId = lens _egUserId (\ s a -> s{_egUserId = a})--instance GoogleRequest EntitlementsGet where- type Rs EntitlementsGet = Entitlement- type Scopes EntitlementsGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EntitlementsGet'{..}- = go _egEnterpriseId _egUserId _egEntitlementId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EntitlementsGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Entitlements/List.hs
@@ -1,102 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists all entitlements for the specified user. Only the ID is set.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.list@.-module Network.Google.Resource.AndroidEnterprise.Entitlements.List- (- -- * REST Resource- EntitlementsListResource-- -- * Creating a Request- , entitlementsList- , EntitlementsList-- -- * Request Lenses- , elEnterpriseId- , elUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.entitlements.list@ method which the--- 'EntitlementsList' request conforms to.-type EntitlementsListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "entitlements" :>- QueryParam "alt" AltJSON :>- Get '[JSON] EntitlementsListResponse---- | Lists all entitlements for the specified user. Only the ID is set.------ /See:/ 'entitlementsList' smart constructor.-data EntitlementsList =- EntitlementsList'- { _elEnterpriseId :: !Text- , _elUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EntitlementsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'elEnterpriseId'------ * 'elUserId'-entitlementsList- :: Text -- ^ 'elEnterpriseId'- -> Text -- ^ 'elUserId'- -> EntitlementsList-entitlementsList pElEnterpriseId_ pElUserId_ =- EntitlementsList' {_elEnterpriseId = pElEnterpriseId_, _elUserId = pElUserId_}----- | The ID of the enterprise.-elEnterpriseId :: Lens' EntitlementsList Text-elEnterpriseId- = lens _elEnterpriseId- (\ s a -> s{_elEnterpriseId = a})---- | The ID of the user.-elUserId :: Lens' EntitlementsList Text-elUserId = lens _elUserId (\ s a -> s{_elUserId = a})--instance GoogleRequest EntitlementsList where- type Rs EntitlementsList = EntitlementsListResponse- type Scopes EntitlementsList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EntitlementsList'{..}- = go _elEnterpriseId _elUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EntitlementsListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Patch.hs
@@ -1,150 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Adds or updates an entitlement to an app for a user. This method--- supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.patch@.-module Network.Google.Resource.AndroidEnterprise.Entitlements.Patch- (- -- * REST Resource- EntitlementsPatchResource-- -- * Creating a Request- , entitlementsPatch- , EntitlementsPatch-- -- * Request Lenses- , epEntitlementId- , epEnterpriseId- , epPayload- , epInstall- , epUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.entitlements.patch@ method which the--- 'EntitlementsPatch' request conforms to.-type EntitlementsPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "entitlements" :>- Capture "entitlementId" Text :>- QueryParam "install" Bool :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Entitlement :>- Patch '[JSON] Entitlement---- | Adds or updates an entitlement to an app for a user. This method--- supports patch semantics.------ /See:/ 'entitlementsPatch' smart constructor.-data EntitlementsPatch =- EntitlementsPatch'- { _epEntitlementId :: !Text- , _epEnterpriseId :: !Text- , _epPayload :: !Entitlement- , _epInstall :: !(Maybe Bool)- , _epUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EntitlementsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'epEntitlementId'------ * 'epEnterpriseId'------ * 'epPayload'------ * 'epInstall'------ * 'epUserId'-entitlementsPatch- :: Text -- ^ 'epEntitlementId'- -> Text -- ^ 'epEnterpriseId'- -> Entitlement -- ^ 'epPayload'- -> Text -- ^ 'epUserId'- -> EntitlementsPatch-entitlementsPatch pEpEntitlementId_ pEpEnterpriseId_ pEpPayload_ pEpUserId_ =- EntitlementsPatch'- { _epEntitlementId = pEpEntitlementId_- , _epEnterpriseId = pEpEnterpriseId_- , _epPayload = pEpPayload_- , _epInstall = Nothing- , _epUserId = pEpUserId_- }----- | The ID of the entitlement (a product ID), e.g.--- \"app:com.google.android.gm\".-epEntitlementId :: Lens' EntitlementsPatch Text-epEntitlementId- = lens _epEntitlementId- (\ s a -> s{_epEntitlementId = a})---- | The ID of the enterprise.-epEnterpriseId :: Lens' EntitlementsPatch Text-epEnterpriseId- = lens _epEnterpriseId- (\ s a -> s{_epEnterpriseId = a})---- | Multipart request metadata.-epPayload :: Lens' EntitlementsPatch Entitlement-epPayload- = lens _epPayload (\ s a -> s{_epPayload = a})---- | Set to true to also install the product on all the user\'s devices where--- possible. Failure to install on one or more devices will not prevent--- this operation from returning successfully, as long as the entitlement--- was successfully assigned to the user.-epInstall :: Lens' EntitlementsPatch (Maybe Bool)-epInstall- = lens _epInstall (\ s a -> s{_epInstall = a})---- | The ID of the user.-epUserId :: Lens' EntitlementsPatch Text-epUserId = lens _epUserId (\ s a -> s{_epUserId = a})--instance GoogleRequest EntitlementsPatch where- type Rs EntitlementsPatch = Entitlement- type Scopes EntitlementsPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EntitlementsPatch'{..}- = go _epEnterpriseId _epUserId _epEntitlementId- _epInstall- (Just AltJSON)- _epPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EntitlementsPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Entitlements/Update.hs
@@ -1,148 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Entitlements.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Adds or updates an entitlement to an app for a user.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.entitlements.update@.-module Network.Google.Resource.AndroidEnterprise.Entitlements.Update- (- -- * REST Resource- EntitlementsUpdateResource-- -- * Creating a Request- , entitlementsUpdate- , EntitlementsUpdate-- -- * Request Lenses- , euEntitlementId- , euEnterpriseId- , euPayload- , euInstall- , euUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.entitlements.update@ method which the--- 'EntitlementsUpdate' request conforms to.-type EntitlementsUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "entitlements" :>- Capture "entitlementId" Text :>- QueryParam "install" Bool :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Entitlement :>- Put '[JSON] Entitlement---- | Adds or updates an entitlement to an app for a user.------ /See:/ 'entitlementsUpdate' smart constructor.-data EntitlementsUpdate =- EntitlementsUpdate'- { _euEntitlementId :: !Text- , _euEnterpriseId :: !Text- , _euPayload :: !Entitlement- , _euInstall :: !(Maybe Bool)- , _euUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EntitlementsUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'euEntitlementId'------ * 'euEnterpriseId'------ * 'euPayload'------ * 'euInstall'------ * 'euUserId'-entitlementsUpdate- :: Text -- ^ 'euEntitlementId'- -> Text -- ^ 'euEnterpriseId'- -> Entitlement -- ^ 'euPayload'- -> Text -- ^ 'euUserId'- -> EntitlementsUpdate-entitlementsUpdate pEuEntitlementId_ pEuEnterpriseId_ pEuPayload_ pEuUserId_ =- EntitlementsUpdate'- { _euEntitlementId = pEuEntitlementId_- , _euEnterpriseId = pEuEnterpriseId_- , _euPayload = pEuPayload_- , _euInstall = Nothing- , _euUserId = pEuUserId_- }----- | The ID of the entitlement (a product ID), e.g.--- \"app:com.google.android.gm\".-euEntitlementId :: Lens' EntitlementsUpdate Text-euEntitlementId- = lens _euEntitlementId- (\ s a -> s{_euEntitlementId = a})---- | The ID of the enterprise.-euEnterpriseId :: Lens' EntitlementsUpdate Text-euEnterpriseId- = lens _euEnterpriseId- (\ s a -> s{_euEnterpriseId = a})---- | Multipart request metadata.-euPayload :: Lens' EntitlementsUpdate Entitlement-euPayload- = lens _euPayload (\ s a -> s{_euPayload = a})---- | Set to true to also install the product on all the user\'s devices where--- possible. Failure to install on one or more devices will not prevent--- this operation from returning successfully, as long as the entitlement--- was successfully assigned to the user.-euInstall :: Lens' EntitlementsUpdate (Maybe Bool)-euInstall- = lens _euInstall (\ s a -> s{_euInstall = a})---- | The ID of the user.-euUserId :: Lens' EntitlementsUpdate Text-euUserId = lens _euUserId (\ s a -> s{_euUserId = a})--instance GoogleRequest EntitlementsUpdate where- type Rs EntitlementsUpdate = Entitlement- type Scopes EntitlementsUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient EntitlementsUpdate'{..}- = go _euEnterpriseId _euUserId _euEntitlementId- _euInstall- (Just AltJSON)- _euPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy EntitlementsUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/GrouplicenseUsers/List.hs
@@ -1,112 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the IDs of the users who have been granted entitlements under--- the license.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenseusers.list@.-module Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List- (- -- * REST Resource- GrouplicenseUsersListResource-- -- * Creating a Request- , grouplicenseUsersList- , GrouplicenseUsersList-- -- * Request Lenses- , gulEnterpriseId- , gulGroupLicenseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.grouplicenseusers.list@ method which the--- 'GrouplicenseUsersList' request conforms to.-type GrouplicenseUsersListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "groupLicenses" :>- Capture "groupLicenseId" Text :>- "users" :>- QueryParam "alt" AltJSON :>- Get '[JSON] GroupLicenseUsersListResponse---- | Retrieves the IDs of the users who have been granted entitlements under--- the license.------ /See:/ 'grouplicenseUsersList' smart constructor.-data GrouplicenseUsersList =- GrouplicenseUsersList'- { _gulEnterpriseId :: !Text- , _gulGroupLicenseId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GrouplicenseUsersList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'gulEnterpriseId'------ * 'gulGroupLicenseId'-grouplicenseUsersList- :: Text -- ^ 'gulEnterpriseId'- -> Text -- ^ 'gulGroupLicenseId'- -> GrouplicenseUsersList-grouplicenseUsersList pGulEnterpriseId_ pGulGroupLicenseId_ =- GrouplicenseUsersList'- { _gulEnterpriseId = pGulEnterpriseId_- , _gulGroupLicenseId = pGulGroupLicenseId_- }----- | The ID of the enterprise.-gulEnterpriseId :: Lens' GrouplicenseUsersList Text-gulEnterpriseId- = lens _gulEnterpriseId- (\ s a -> s{_gulEnterpriseId = a})---- | The ID of the product the group license is for, e.g.--- \"app:com.google.android.gm\".-gulGroupLicenseId :: Lens' GrouplicenseUsersList Text-gulGroupLicenseId- = lens _gulGroupLicenseId- (\ s a -> s{_gulGroupLicenseId = a})--instance GoogleRequest GrouplicenseUsersList where- type Rs GrouplicenseUsersList =- GroupLicenseUsersListResponse- type Scopes GrouplicenseUsersList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient GrouplicenseUsersList'{..}- = go _gulEnterpriseId _gulGroupLicenseId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy GrouplicenseUsersListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/Get.hs
@@ -1,104 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of an enterprise\'s group license for a product.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.get@.-module Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get- (- -- * REST Resource- GrouplicensesGetResource-- -- * Creating a Request- , grouplicensesGet- , GrouplicensesGet-- -- * Request Lenses- , ggEnterpriseId- , ggGroupLicenseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.grouplicenses.get@ method which the--- 'GrouplicensesGet' request conforms to.-type GrouplicensesGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "groupLicenses" :>- Capture "groupLicenseId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] GroupLicense---- | Retrieves details of an enterprise\'s group license for a product.------ /See:/ 'grouplicensesGet' smart constructor.-data GrouplicensesGet =- GrouplicensesGet'- { _ggEnterpriseId :: !Text- , _ggGroupLicenseId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GrouplicensesGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ggEnterpriseId'------ * 'ggGroupLicenseId'-grouplicensesGet- :: Text -- ^ 'ggEnterpriseId'- -> Text -- ^ 'ggGroupLicenseId'- -> GrouplicensesGet-grouplicensesGet pGgEnterpriseId_ pGgGroupLicenseId_ =- GrouplicensesGet'- {_ggEnterpriseId = pGgEnterpriseId_, _ggGroupLicenseId = pGgGroupLicenseId_}----- | The ID of the enterprise.-ggEnterpriseId :: Lens' GrouplicensesGet Text-ggEnterpriseId- = lens _ggEnterpriseId- (\ s a -> s{_ggEnterpriseId = a})---- | The ID of the product the group license is for, e.g.--- \"app:com.google.android.gm\".-ggGroupLicenseId :: Lens' GrouplicensesGet Text-ggGroupLicenseId- = lens _ggGroupLicenseId- (\ s a -> s{_ggGroupLicenseId = a})--instance GoogleRequest GrouplicensesGet where- type Rs GrouplicensesGet = GroupLicense- type Scopes GrouplicensesGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient GrouplicensesGet'{..}- = go _ggEnterpriseId _ggGroupLicenseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy GrouplicensesGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Grouplicenses/List.hs
@@ -1,93 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Grouplicenses.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves IDs of all products for which the enterprise has a group--- license.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.grouplicenses.list@.-module Network.Google.Resource.AndroidEnterprise.Grouplicenses.List- (- -- * REST Resource- GrouplicensesListResource-- -- * Creating a Request- , grouplicensesList- , GrouplicensesList-- -- * Request Lenses- , glEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.grouplicenses.list@ method which the--- 'GrouplicensesList' request conforms to.-type GrouplicensesListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "groupLicenses" :>- QueryParam "alt" AltJSON :>- Get '[JSON] GroupLicensesListResponse---- | Retrieves IDs of all products for which the enterprise has a group--- license.------ /See:/ 'grouplicensesList' smart constructor.-newtype GrouplicensesList =- GrouplicensesList'- { _glEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'GrouplicensesList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'glEnterpriseId'-grouplicensesList- :: Text -- ^ 'glEnterpriseId'- -> GrouplicensesList-grouplicensesList pGlEnterpriseId_ =- GrouplicensesList' {_glEnterpriseId = pGlEnterpriseId_}----- | The ID of the enterprise.-glEnterpriseId :: Lens' GrouplicensesList Text-glEnterpriseId- = lens _glEnterpriseId- (\ s a -> s{_glEnterpriseId = a})--instance GoogleRequest GrouplicensesList where- type Rs GrouplicensesList = GroupLicensesListResponse- type Scopes GrouplicensesList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient GrouplicensesList'{..}- = go _glEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy GrouplicensesListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Installs/Delete.hs
@@ -1,135 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Installs.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Requests to remove an app from a device. A call to get or list will--- still show the app as installed on the device until it is actually--- removed.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.delete@.-module Network.Google.Resource.AndroidEnterprise.Installs.Delete- (- -- * REST Resource- InstallsDeleteResource-- -- * Creating a Request- , installsDelete- , InstallsDelete-- -- * Request Lenses- , idEnterpriseId- , idUserId- , idInstallId- , idDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.installs.delete@ method which the--- 'InstallsDelete' request conforms to.-type InstallsDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "installs" :>- Capture "installId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Requests to remove an app from a device. A call to get or list will--- still show the app as installed on the device until it is actually--- removed.------ /See:/ 'installsDelete' smart constructor.-data InstallsDelete =- InstallsDelete'- { _idEnterpriseId :: !Text- , _idUserId :: !Text- , _idInstallId :: !Text- , _idDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'InstallsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'idEnterpriseId'------ * 'idUserId'------ * 'idInstallId'------ * 'idDeviceId'-installsDelete- :: Text -- ^ 'idEnterpriseId'- -> Text -- ^ 'idUserId'- -> Text -- ^ 'idInstallId'- -> Text -- ^ 'idDeviceId'- -> InstallsDelete-installsDelete pIdEnterpriseId_ pIdUserId_ pIdInstallId_ pIdDeviceId_ =- InstallsDelete'- { _idEnterpriseId = pIdEnterpriseId_- , _idUserId = pIdUserId_- , _idInstallId = pIdInstallId_- , _idDeviceId = pIdDeviceId_- }----- | The ID of the enterprise.-idEnterpriseId :: Lens' InstallsDelete Text-idEnterpriseId- = lens _idEnterpriseId- (\ s a -> s{_idEnterpriseId = a})---- | The ID of the user.-idUserId :: Lens' InstallsDelete Text-idUserId = lens _idUserId (\ s a -> s{_idUserId = a})---- | The ID of the product represented by the install, e.g.--- \"app:com.google.android.gm\".-idInstallId :: Lens' InstallsDelete Text-idInstallId- = lens _idInstallId (\ s a -> s{_idInstallId = a})---- | The Android ID of the device.-idDeviceId :: Lens' InstallsDelete Text-idDeviceId- = lens _idDeviceId (\ s a -> s{_idDeviceId = a})--instance GoogleRequest InstallsDelete where- type Rs InstallsDelete = ()- type Scopes InstallsDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient InstallsDelete'{..}- = go _idEnterpriseId _idUserId _idDeviceId- _idInstallId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy InstallsDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Installs/Get.hs
@@ -1,131 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Installs.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of an installation of an app on a device.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.get@.-module Network.Google.Resource.AndroidEnterprise.Installs.Get- (- -- * REST Resource- InstallsGetResource-- -- * Creating a Request- , installsGet- , InstallsGet-- -- * Request Lenses- , igEnterpriseId- , igUserId- , igInstallId- , igDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.installs.get@ method which the--- 'InstallsGet' request conforms to.-type InstallsGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "installs" :>- Capture "installId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Install---- | Retrieves details of an installation of an app on a device.------ /See:/ 'installsGet' smart constructor.-data InstallsGet =- InstallsGet'- { _igEnterpriseId :: !Text- , _igUserId :: !Text- , _igInstallId :: !Text- , _igDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'InstallsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'igEnterpriseId'------ * 'igUserId'------ * 'igInstallId'------ * 'igDeviceId'-installsGet- :: Text -- ^ 'igEnterpriseId'- -> Text -- ^ 'igUserId'- -> Text -- ^ 'igInstallId'- -> Text -- ^ 'igDeviceId'- -> InstallsGet-installsGet pIgEnterpriseId_ pIgUserId_ pIgInstallId_ pIgDeviceId_ =- InstallsGet'- { _igEnterpriseId = pIgEnterpriseId_- , _igUserId = pIgUserId_- , _igInstallId = pIgInstallId_- , _igDeviceId = pIgDeviceId_- }----- | The ID of the enterprise.-igEnterpriseId :: Lens' InstallsGet Text-igEnterpriseId- = lens _igEnterpriseId- (\ s a -> s{_igEnterpriseId = a})---- | The ID of the user.-igUserId :: Lens' InstallsGet Text-igUserId = lens _igUserId (\ s a -> s{_igUserId = a})---- | The ID of the product represented by the install, e.g.--- \"app:com.google.android.gm\".-igInstallId :: Lens' InstallsGet Text-igInstallId- = lens _igInstallId (\ s a -> s{_igInstallId = a})---- | The Android ID of the device.-igDeviceId :: Lens' InstallsGet Text-igDeviceId- = lens _igDeviceId (\ s a -> s{_igDeviceId = a})--instance GoogleRequest InstallsGet where- type Rs InstallsGet = Install- type Scopes InstallsGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient InstallsGet'{..}- = go _igEnterpriseId _igUserId _igDeviceId- _igInstallId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy InstallsGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Installs/List.hs
@@ -1,118 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Installs.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the details of all apps installed on the specified device.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.list@.-module Network.Google.Resource.AndroidEnterprise.Installs.List- (- -- * REST Resource- InstallsListResource-- -- * Creating a Request- , installsList- , InstallsList-- -- * Request Lenses- , ilEnterpriseId- , ilUserId- , ilDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.installs.list@ method which the--- 'InstallsList' request conforms to.-type InstallsListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "installs" :>- QueryParam "alt" AltJSON :>- Get '[JSON] InstallsListResponse---- | Retrieves the details of all apps installed on the specified device.------ /See:/ 'installsList' smart constructor.-data InstallsList =- InstallsList'- { _ilEnterpriseId :: !Text- , _ilUserId :: !Text- , _ilDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'InstallsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ilEnterpriseId'------ * 'ilUserId'------ * 'ilDeviceId'-installsList- :: Text -- ^ 'ilEnterpriseId'- -> Text -- ^ 'ilUserId'- -> Text -- ^ 'ilDeviceId'- -> InstallsList-installsList pIlEnterpriseId_ pIlUserId_ pIlDeviceId_ =- InstallsList'- { _ilEnterpriseId = pIlEnterpriseId_- , _ilUserId = pIlUserId_- , _ilDeviceId = pIlDeviceId_- }----- | The ID of the enterprise.-ilEnterpriseId :: Lens' InstallsList Text-ilEnterpriseId- = lens _ilEnterpriseId- (\ s a -> s{_ilEnterpriseId = a})---- | The ID of the user.-ilUserId :: Lens' InstallsList Text-ilUserId = lens _ilUserId (\ s a -> s{_ilUserId = a})---- | The Android ID of the device.-ilDeviceId :: Lens' InstallsList Text-ilDeviceId- = lens _ilDeviceId (\ s a -> s{_ilDeviceId = a})--instance GoogleRequest InstallsList where- type Rs InstallsList = InstallsListResponse- type Scopes InstallsList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient InstallsList'{..}- = go _ilEnterpriseId _ilUserId _ilDeviceId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy InstallsListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Installs/Patch.hs
@@ -1,148 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Installs.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Requests to install the latest version of an app to a device. If the app--- is already installed, then it is updated to the latest version if--- necessary. This method supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.patch@.-module Network.Google.Resource.AndroidEnterprise.Installs.Patch- (- -- * REST Resource- InstallsPatchResource-- -- * Creating a Request- , installsPatch- , InstallsPatch-- -- * Request Lenses- , ipEnterpriseId- , ipPayload- , ipUserId- , ipInstallId- , ipDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.installs.patch@ method which the--- 'InstallsPatch' request conforms to.-type InstallsPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "installs" :>- Capture "installId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Install :> Patch '[JSON] Install---- | Requests to install the latest version of an app to a device. If the app--- is already installed, then it is updated to the latest version if--- necessary. This method supports patch semantics.------ /See:/ 'installsPatch' smart constructor.-data InstallsPatch =- InstallsPatch'- { _ipEnterpriseId :: !Text- , _ipPayload :: !Install- , _ipUserId :: !Text- , _ipInstallId :: !Text- , _ipDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'InstallsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ipEnterpriseId'------ * 'ipPayload'------ * 'ipUserId'------ * 'ipInstallId'------ * 'ipDeviceId'-installsPatch- :: Text -- ^ 'ipEnterpriseId'- -> Install -- ^ 'ipPayload'- -> Text -- ^ 'ipUserId'- -> Text -- ^ 'ipInstallId'- -> Text -- ^ 'ipDeviceId'- -> InstallsPatch-installsPatch pIpEnterpriseId_ pIpPayload_ pIpUserId_ pIpInstallId_ pIpDeviceId_ =- InstallsPatch'- { _ipEnterpriseId = pIpEnterpriseId_- , _ipPayload = pIpPayload_- , _ipUserId = pIpUserId_- , _ipInstallId = pIpInstallId_- , _ipDeviceId = pIpDeviceId_- }----- | The ID of the enterprise.-ipEnterpriseId :: Lens' InstallsPatch Text-ipEnterpriseId- = lens _ipEnterpriseId- (\ s a -> s{_ipEnterpriseId = a})---- | Multipart request metadata.-ipPayload :: Lens' InstallsPatch Install-ipPayload- = lens _ipPayload (\ s a -> s{_ipPayload = a})---- | The ID of the user.-ipUserId :: Lens' InstallsPatch Text-ipUserId = lens _ipUserId (\ s a -> s{_ipUserId = a})---- | The ID of the product represented by the install, e.g.--- \"app:com.google.android.gm\".-ipInstallId :: Lens' InstallsPatch Text-ipInstallId- = lens _ipInstallId (\ s a -> s{_ipInstallId = a})---- | The Android ID of the device.-ipDeviceId :: Lens' InstallsPatch Text-ipDeviceId- = lens _ipDeviceId (\ s a -> s{_ipDeviceId = a})--instance GoogleRequest InstallsPatch where- type Rs InstallsPatch = Install- type Scopes InstallsPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient InstallsPatch'{..}- = go _ipEnterpriseId _ipUserId _ipDeviceId- _ipInstallId- (Just AltJSON)- _ipPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy InstallsPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Installs/Update.hs
@@ -1,148 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Installs.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Requests to install the latest version of an app to a device. If the app--- is already installed, then it is updated to the latest version if--- necessary.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.installs.update@.-module Network.Google.Resource.AndroidEnterprise.Installs.Update- (- -- * REST Resource- InstallsUpdateResource-- -- * Creating a Request- , installsUpdate- , InstallsUpdate-- -- * Request Lenses- , iuEnterpriseId- , iuPayload- , iuUserId- , iuInstallId- , iuDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.installs.update@ method which the--- 'InstallsUpdate' request conforms to.-type InstallsUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "installs" :>- Capture "installId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Install :> Put '[JSON] Install---- | Requests to install the latest version of an app to a device. If the app--- is already installed, then it is updated to the latest version if--- necessary.------ /See:/ 'installsUpdate' smart constructor.-data InstallsUpdate =- InstallsUpdate'- { _iuEnterpriseId :: !Text- , _iuPayload :: !Install- , _iuUserId :: !Text- , _iuInstallId :: !Text- , _iuDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'InstallsUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'iuEnterpriseId'------ * 'iuPayload'------ * 'iuUserId'------ * 'iuInstallId'------ * 'iuDeviceId'-installsUpdate- :: Text -- ^ 'iuEnterpriseId'- -> Install -- ^ 'iuPayload'- -> Text -- ^ 'iuUserId'- -> Text -- ^ 'iuInstallId'- -> Text -- ^ 'iuDeviceId'- -> InstallsUpdate-installsUpdate pIuEnterpriseId_ pIuPayload_ pIuUserId_ pIuInstallId_ pIuDeviceId_ =- InstallsUpdate'- { _iuEnterpriseId = pIuEnterpriseId_- , _iuPayload = pIuPayload_- , _iuUserId = pIuUserId_- , _iuInstallId = pIuInstallId_- , _iuDeviceId = pIuDeviceId_- }----- | The ID of the enterprise.-iuEnterpriseId :: Lens' InstallsUpdate Text-iuEnterpriseId- = lens _iuEnterpriseId- (\ s a -> s{_iuEnterpriseId = a})---- | Multipart request metadata.-iuPayload :: Lens' InstallsUpdate Install-iuPayload- = lens _iuPayload (\ s a -> s{_iuPayload = a})---- | The ID of the user.-iuUserId :: Lens' InstallsUpdate Text-iuUserId = lens _iuUserId (\ s a -> s{_iuUserId = a})---- | The ID of the product represented by the install, e.g.--- \"app:com.google.android.gm\".-iuInstallId :: Lens' InstallsUpdate Text-iuInstallId- = lens _iuInstallId (\ s a -> s{_iuInstallId = a})---- | The Android ID of the device.-iuDeviceId :: Lens' InstallsUpdate Text-iuDeviceId- = lens _iuDeviceId (\ s a -> s{_iuDeviceId = a})--instance GoogleRequest InstallsUpdate where- type Rs InstallsUpdate = Install- type Scopes InstallsUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient InstallsUpdate'{..}- = go _iuEnterpriseId _iuUserId _iuDeviceId- _iuInstallId- (Just AltJSON)- _iuPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy InstallsUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Delete.hs
@@ -1,142 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Removes a per-device managed configuration for an app for the specified--- device.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.delete@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Delete- (- -- * REST Resource- ManagedConfigurationsforDeviceDeleteResource-- -- * Creating a Request- , managedConfigurationsforDeviceDelete- , ManagedConfigurationsforDeviceDelete-- -- * Request Lenses- , mcddEnterpriseId- , mcddUserId- , mcddDeviceId- , mcddManagedConfigurationForDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsfordevice.delete@ method which the--- 'ManagedConfigurationsforDeviceDelete' request conforms to.-type ManagedConfigurationsforDeviceDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "managedConfigurationsForDevice" :>- Capture "managedConfigurationForDeviceId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Removes a per-device managed configuration for an app for the specified--- device.------ /See:/ 'managedConfigurationsforDeviceDelete' smart constructor.-data ManagedConfigurationsforDeviceDelete =- ManagedConfigurationsforDeviceDelete'- { _mcddEnterpriseId :: !Text- , _mcddUserId :: !Text- , _mcddDeviceId :: !Text- , _mcddManagedConfigurationForDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforDeviceDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcddEnterpriseId'------ * 'mcddUserId'------ * 'mcddDeviceId'------ * 'mcddManagedConfigurationForDeviceId'-managedConfigurationsforDeviceDelete- :: Text -- ^ 'mcddEnterpriseId'- -> Text -- ^ 'mcddUserId'- -> Text -- ^ 'mcddDeviceId'- -> Text -- ^ 'mcddManagedConfigurationForDeviceId'- -> ManagedConfigurationsforDeviceDelete-managedConfigurationsforDeviceDelete pMcddEnterpriseId_ pMcddUserId_ pMcddDeviceId_ pMcddManagedConfigurationForDeviceId_ =- ManagedConfigurationsforDeviceDelete'- { _mcddEnterpriseId = pMcddEnterpriseId_- , _mcddUserId = pMcddUserId_- , _mcddDeviceId = pMcddDeviceId_- , _mcddManagedConfigurationForDeviceId =- pMcddManagedConfigurationForDeviceId_- }----- | The ID of the enterprise.-mcddEnterpriseId :: Lens' ManagedConfigurationsforDeviceDelete Text-mcddEnterpriseId- = lens _mcddEnterpriseId- (\ s a -> s{_mcddEnterpriseId = a})---- | The ID of the user.-mcddUserId :: Lens' ManagedConfigurationsforDeviceDelete Text-mcddUserId- = lens _mcddUserId (\ s a -> s{_mcddUserId = a})---- | The Android ID of the device.-mcddDeviceId :: Lens' ManagedConfigurationsforDeviceDelete Text-mcddDeviceId- = lens _mcddDeviceId (\ s a -> s{_mcddDeviceId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcddManagedConfigurationForDeviceId :: Lens' ManagedConfigurationsforDeviceDelete Text-mcddManagedConfigurationForDeviceId- = lens _mcddManagedConfigurationForDeviceId- (\ s a ->- s{_mcddManagedConfigurationForDeviceId = a})--instance GoogleRequest- ManagedConfigurationsforDeviceDelete- where- type Rs ManagedConfigurationsforDeviceDelete = ()- type Scopes ManagedConfigurationsforDeviceDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient- ManagedConfigurationsforDeviceDelete'{..}- = go _mcddEnterpriseId _mcddUserId _mcddDeviceId- _mcddManagedConfigurationForDeviceId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforDeviceDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Get.hs
@@ -1,141 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of a per-device managed configuration.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.get@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Get- (- -- * REST Resource- ManagedConfigurationsforDeviceGetResource-- -- * Creating a Request- , managedConfigurationsforDeviceGet- , ManagedConfigurationsforDeviceGet-- -- * Request Lenses- , mcdgEnterpriseId- , mcdgUserId- , mcdgDeviceId- , mcdgManagedConfigurationForDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsfordevice.get@ method which the--- 'ManagedConfigurationsforDeviceGet' request conforms to.-type ManagedConfigurationsforDeviceGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "managedConfigurationsForDevice" :>- Capture "managedConfigurationForDeviceId" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ManagedConfiguration---- | Retrieves details of a per-device managed configuration.------ /See:/ 'managedConfigurationsforDeviceGet' smart constructor.-data ManagedConfigurationsforDeviceGet =- ManagedConfigurationsforDeviceGet'- { _mcdgEnterpriseId :: !Text- , _mcdgUserId :: !Text- , _mcdgDeviceId :: !Text- , _mcdgManagedConfigurationForDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforDeviceGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcdgEnterpriseId'------ * 'mcdgUserId'------ * 'mcdgDeviceId'------ * 'mcdgManagedConfigurationForDeviceId'-managedConfigurationsforDeviceGet- :: Text -- ^ 'mcdgEnterpriseId'- -> Text -- ^ 'mcdgUserId'- -> Text -- ^ 'mcdgDeviceId'- -> Text -- ^ 'mcdgManagedConfigurationForDeviceId'- -> ManagedConfigurationsforDeviceGet-managedConfigurationsforDeviceGet pMcdgEnterpriseId_ pMcdgUserId_ pMcdgDeviceId_ pMcdgManagedConfigurationForDeviceId_ =- ManagedConfigurationsforDeviceGet'- { _mcdgEnterpriseId = pMcdgEnterpriseId_- , _mcdgUserId = pMcdgUserId_- , _mcdgDeviceId = pMcdgDeviceId_- , _mcdgManagedConfigurationForDeviceId =- pMcdgManagedConfigurationForDeviceId_- }----- | The ID of the enterprise.-mcdgEnterpriseId :: Lens' ManagedConfigurationsforDeviceGet Text-mcdgEnterpriseId- = lens _mcdgEnterpriseId- (\ s a -> s{_mcdgEnterpriseId = a})---- | The ID of the user.-mcdgUserId :: Lens' ManagedConfigurationsforDeviceGet Text-mcdgUserId- = lens _mcdgUserId (\ s a -> s{_mcdgUserId = a})---- | The Android ID of the device.-mcdgDeviceId :: Lens' ManagedConfigurationsforDeviceGet Text-mcdgDeviceId- = lens _mcdgDeviceId (\ s a -> s{_mcdgDeviceId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcdgManagedConfigurationForDeviceId :: Lens' ManagedConfigurationsforDeviceGet Text-mcdgManagedConfigurationForDeviceId- = lens _mcdgManagedConfigurationForDeviceId- (\ s a ->- s{_mcdgManagedConfigurationForDeviceId = a})--instance GoogleRequest- ManagedConfigurationsforDeviceGet- where- type Rs ManagedConfigurationsforDeviceGet =- ManagedConfiguration- type Scopes ManagedConfigurationsforDeviceGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationsforDeviceGet'{..}- = go _mcdgEnterpriseId _mcdgUserId _mcdgDeviceId- _mcdgManagedConfigurationForDeviceId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforDeviceGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/List.hs
@@ -1,127 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists all the per-device managed configurations for the specified--- device. Only the ID is set.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.list@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.List- (- -- * REST Resource- ManagedConfigurationsforDeviceListResource-- -- * Creating a Request- , managedConfigurationsforDeviceList- , ManagedConfigurationsforDeviceList-- -- * Request Lenses- , mcdlEnterpriseId- , mcdlUserId- , mcdlDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsfordevice.list@ method which the--- 'ManagedConfigurationsforDeviceList' request conforms to.-type ManagedConfigurationsforDeviceListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "managedConfigurationsForDevice" :>- QueryParam "alt" AltJSON :>- Get '[JSON]- ManagedConfigurationsForDeviceListResponse---- | Lists all the per-device managed configurations for the specified--- device. Only the ID is set.------ /See:/ 'managedConfigurationsforDeviceList' smart constructor.-data ManagedConfigurationsforDeviceList =- ManagedConfigurationsforDeviceList'- { _mcdlEnterpriseId :: !Text- , _mcdlUserId :: !Text- , _mcdlDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforDeviceList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcdlEnterpriseId'------ * 'mcdlUserId'------ * 'mcdlDeviceId'-managedConfigurationsforDeviceList- :: Text -- ^ 'mcdlEnterpriseId'- -> Text -- ^ 'mcdlUserId'- -> Text -- ^ 'mcdlDeviceId'- -> ManagedConfigurationsforDeviceList-managedConfigurationsforDeviceList pMcdlEnterpriseId_ pMcdlUserId_ pMcdlDeviceId_ =- ManagedConfigurationsforDeviceList'- { _mcdlEnterpriseId = pMcdlEnterpriseId_- , _mcdlUserId = pMcdlUserId_- , _mcdlDeviceId = pMcdlDeviceId_- }----- | The ID of the enterprise.-mcdlEnterpriseId :: Lens' ManagedConfigurationsforDeviceList Text-mcdlEnterpriseId- = lens _mcdlEnterpriseId- (\ s a -> s{_mcdlEnterpriseId = a})---- | The ID of the user.-mcdlUserId :: Lens' ManagedConfigurationsforDeviceList Text-mcdlUserId- = lens _mcdlUserId (\ s a -> s{_mcdlUserId = a})---- | The Android ID of the device.-mcdlDeviceId :: Lens' ManagedConfigurationsforDeviceList Text-mcdlDeviceId- = lens _mcdlDeviceId (\ s a -> s{_mcdlDeviceId = a})--instance GoogleRequest- ManagedConfigurationsforDeviceList- where- type Rs ManagedConfigurationsforDeviceList =- ManagedConfigurationsForDeviceListResponse- type Scopes ManagedConfigurationsforDeviceList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationsforDeviceList'{..}- = go _mcdlEnterpriseId _mcdlUserId _mcdlDeviceId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforDeviceListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Patch.hs
@@ -1,157 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Adds or updates a per-device managed configuration for an app for the--- specified device. This method supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.patch@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Patch- (- -- * REST Resource- ManagedConfigurationsforDevicePatchResource-- -- * Creating a Request- , managedConfigurationsforDevicePatch- , ManagedConfigurationsforDevicePatch-- -- * Request Lenses- , mcdpEnterpriseId- , mcdpPayload- , mcdpUserId- , mcdpDeviceId- , mcdpManagedConfigurationForDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsfordevice.patch@ method which the--- 'ManagedConfigurationsforDevicePatch' request conforms to.-type ManagedConfigurationsforDevicePatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "managedConfigurationsForDevice" :>- Capture "managedConfigurationForDeviceId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ManagedConfiguration :>- Patch '[JSON] ManagedConfiguration---- | Adds or updates a per-device managed configuration for an app for the--- specified device. This method supports patch semantics.------ /See:/ 'managedConfigurationsforDevicePatch' smart constructor.-data ManagedConfigurationsforDevicePatch =- ManagedConfigurationsforDevicePatch'- { _mcdpEnterpriseId :: !Text- , _mcdpPayload :: !ManagedConfiguration- , _mcdpUserId :: !Text- , _mcdpDeviceId :: !Text- , _mcdpManagedConfigurationForDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforDevicePatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcdpEnterpriseId'------ * 'mcdpPayload'------ * 'mcdpUserId'------ * 'mcdpDeviceId'------ * 'mcdpManagedConfigurationForDeviceId'-managedConfigurationsforDevicePatch- :: Text -- ^ 'mcdpEnterpriseId'- -> ManagedConfiguration -- ^ 'mcdpPayload'- -> Text -- ^ 'mcdpUserId'- -> Text -- ^ 'mcdpDeviceId'- -> Text -- ^ 'mcdpManagedConfigurationForDeviceId'- -> ManagedConfigurationsforDevicePatch-managedConfigurationsforDevicePatch pMcdpEnterpriseId_ pMcdpPayload_ pMcdpUserId_ pMcdpDeviceId_ pMcdpManagedConfigurationForDeviceId_ =- ManagedConfigurationsforDevicePatch'- { _mcdpEnterpriseId = pMcdpEnterpriseId_- , _mcdpPayload = pMcdpPayload_- , _mcdpUserId = pMcdpUserId_- , _mcdpDeviceId = pMcdpDeviceId_- , _mcdpManagedConfigurationForDeviceId =- pMcdpManagedConfigurationForDeviceId_- }----- | The ID of the enterprise.-mcdpEnterpriseId :: Lens' ManagedConfigurationsforDevicePatch Text-mcdpEnterpriseId- = lens _mcdpEnterpriseId- (\ s a -> s{_mcdpEnterpriseId = a})---- | Multipart request metadata.-mcdpPayload :: Lens' ManagedConfigurationsforDevicePatch ManagedConfiguration-mcdpPayload- = lens _mcdpPayload (\ s a -> s{_mcdpPayload = a})---- | The ID of the user.-mcdpUserId :: Lens' ManagedConfigurationsforDevicePatch Text-mcdpUserId- = lens _mcdpUserId (\ s a -> s{_mcdpUserId = a})---- | The Android ID of the device.-mcdpDeviceId :: Lens' ManagedConfigurationsforDevicePatch Text-mcdpDeviceId- = lens _mcdpDeviceId (\ s a -> s{_mcdpDeviceId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcdpManagedConfigurationForDeviceId :: Lens' ManagedConfigurationsforDevicePatch Text-mcdpManagedConfigurationForDeviceId- = lens _mcdpManagedConfigurationForDeviceId- (\ s a ->- s{_mcdpManagedConfigurationForDeviceId = a})--instance GoogleRequest- ManagedConfigurationsforDevicePatch- where- type Rs ManagedConfigurationsforDevicePatch =- ManagedConfiguration- type Scopes ManagedConfigurationsforDevicePatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient- ManagedConfigurationsforDevicePatch'{..}- = go _mcdpEnterpriseId _mcdpUserId _mcdpDeviceId- _mcdpManagedConfigurationForDeviceId- (Just AltJSON)- _mcdpPayload- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforDevicePatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforDevice/Update.hs
@@ -1,157 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Adds or updates a per-device managed configuration for an app for the--- specified device.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsfordevice.update@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Update- (- -- * REST Resource- ManagedConfigurationsforDeviceUpdateResource-- -- * Creating a Request- , managedConfigurationsforDeviceUpdate- , ManagedConfigurationsforDeviceUpdate-- -- * Request Lenses- , mcduEnterpriseId- , mcduPayload- , mcduUserId- , mcduDeviceId- , mcduManagedConfigurationForDeviceId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsfordevice.update@ method which the--- 'ManagedConfigurationsforDeviceUpdate' request conforms to.-type ManagedConfigurationsforDeviceUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "devices" :>- Capture "deviceId" Text :>- "managedConfigurationsForDevice" :>- Capture "managedConfigurationForDeviceId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ManagedConfiguration :>- Put '[JSON] ManagedConfiguration---- | Adds or updates a per-device managed configuration for an app for the--- specified device.------ /See:/ 'managedConfigurationsforDeviceUpdate' smart constructor.-data ManagedConfigurationsforDeviceUpdate =- ManagedConfigurationsforDeviceUpdate'- { _mcduEnterpriseId :: !Text- , _mcduPayload :: !ManagedConfiguration- , _mcduUserId :: !Text- , _mcduDeviceId :: !Text- , _mcduManagedConfigurationForDeviceId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforDeviceUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcduEnterpriseId'------ * 'mcduPayload'------ * 'mcduUserId'------ * 'mcduDeviceId'------ * 'mcduManagedConfigurationForDeviceId'-managedConfigurationsforDeviceUpdate- :: Text -- ^ 'mcduEnterpriseId'- -> ManagedConfiguration -- ^ 'mcduPayload'- -> Text -- ^ 'mcduUserId'- -> Text -- ^ 'mcduDeviceId'- -> Text -- ^ 'mcduManagedConfigurationForDeviceId'- -> ManagedConfigurationsforDeviceUpdate-managedConfigurationsforDeviceUpdate pMcduEnterpriseId_ pMcduPayload_ pMcduUserId_ pMcduDeviceId_ pMcduManagedConfigurationForDeviceId_ =- ManagedConfigurationsforDeviceUpdate'- { _mcduEnterpriseId = pMcduEnterpriseId_- , _mcduPayload = pMcduPayload_- , _mcduUserId = pMcduUserId_- , _mcduDeviceId = pMcduDeviceId_- , _mcduManagedConfigurationForDeviceId =- pMcduManagedConfigurationForDeviceId_- }----- | The ID of the enterprise.-mcduEnterpriseId :: Lens' ManagedConfigurationsforDeviceUpdate Text-mcduEnterpriseId- = lens _mcduEnterpriseId- (\ s a -> s{_mcduEnterpriseId = a})---- | Multipart request metadata.-mcduPayload :: Lens' ManagedConfigurationsforDeviceUpdate ManagedConfiguration-mcduPayload- = lens _mcduPayload (\ s a -> s{_mcduPayload = a})---- | The ID of the user.-mcduUserId :: Lens' ManagedConfigurationsforDeviceUpdate Text-mcduUserId- = lens _mcduUserId (\ s a -> s{_mcduUserId = a})---- | The Android ID of the device.-mcduDeviceId :: Lens' ManagedConfigurationsforDeviceUpdate Text-mcduDeviceId- = lens _mcduDeviceId (\ s a -> s{_mcduDeviceId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcduManagedConfigurationForDeviceId :: Lens' ManagedConfigurationsforDeviceUpdate Text-mcduManagedConfigurationForDeviceId- = lens _mcduManagedConfigurationForDeviceId- (\ s a ->- s{_mcduManagedConfigurationForDeviceId = a})--instance GoogleRequest- ManagedConfigurationsforDeviceUpdate- where- type Rs ManagedConfigurationsforDeviceUpdate =- ManagedConfiguration- type Scopes ManagedConfigurationsforDeviceUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient- ManagedConfigurationsforDeviceUpdate'{..}- = go _mcduEnterpriseId _mcduUserId _mcduDeviceId- _mcduManagedConfigurationForDeviceId- (Just AltJSON)- _mcduPayload- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforDeviceUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Delete.hs
@@ -1,126 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Removes a per-user managed configuration for an app for the specified--- user.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.delete@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Delete- (- -- * REST Resource- ManagedConfigurationsforUserDeleteResource-- -- * Creating a Request- , managedConfigurationsforUserDelete- , ManagedConfigurationsforUserDelete-- -- * Request Lenses- , mcudEnterpriseId- , mcudUserId- , mcudManagedConfigurationForUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsforuser.delete@ method which the--- 'ManagedConfigurationsforUserDelete' request conforms to.-type ManagedConfigurationsforUserDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "managedConfigurationsForUser" :>- Capture "managedConfigurationForUserId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Removes a per-user managed configuration for an app for the specified--- user.------ /See:/ 'managedConfigurationsforUserDelete' smart constructor.-data ManagedConfigurationsforUserDelete =- ManagedConfigurationsforUserDelete'- { _mcudEnterpriseId :: !Text- , _mcudUserId :: !Text- , _mcudManagedConfigurationForUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforUserDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcudEnterpriseId'------ * 'mcudUserId'------ * 'mcudManagedConfigurationForUserId'-managedConfigurationsforUserDelete- :: Text -- ^ 'mcudEnterpriseId'- -> Text -- ^ 'mcudUserId'- -> Text -- ^ 'mcudManagedConfigurationForUserId'- -> ManagedConfigurationsforUserDelete-managedConfigurationsforUserDelete pMcudEnterpriseId_ pMcudUserId_ pMcudManagedConfigurationForUserId_ =- ManagedConfigurationsforUserDelete'- { _mcudEnterpriseId = pMcudEnterpriseId_- , _mcudUserId = pMcudUserId_- , _mcudManagedConfigurationForUserId = pMcudManagedConfigurationForUserId_- }----- | The ID of the enterprise.-mcudEnterpriseId :: Lens' ManagedConfigurationsforUserDelete Text-mcudEnterpriseId- = lens _mcudEnterpriseId- (\ s a -> s{_mcudEnterpriseId = a})---- | The ID of the user.-mcudUserId :: Lens' ManagedConfigurationsforUserDelete Text-mcudUserId- = lens _mcudUserId (\ s a -> s{_mcudUserId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcudManagedConfigurationForUserId :: Lens' ManagedConfigurationsforUserDelete Text-mcudManagedConfigurationForUserId- = lens _mcudManagedConfigurationForUserId- (\ s a -> s{_mcudManagedConfigurationForUserId = a})--instance GoogleRequest- ManagedConfigurationsforUserDelete- where- type Rs ManagedConfigurationsforUserDelete = ()- type Scopes ManagedConfigurationsforUserDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationsforUserDelete'{..}- = go _mcudEnterpriseId _mcudUserId- _mcudManagedConfigurationForUserId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforUserDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Get.hs
@@ -1,128 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of a per-user managed configuration for an app for the--- specified user.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.get@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Get- (- -- * REST Resource- ManagedConfigurationsforUserGetResource-- -- * Creating a Request- , managedConfigurationsforUserGet- , ManagedConfigurationsforUserGet-- -- * Request Lenses- , mcugEnterpriseId- , mcugUserId- , mcugManagedConfigurationForUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsforuser.get@ method which the--- 'ManagedConfigurationsforUserGet' request conforms to.-type ManagedConfigurationsforUserGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "managedConfigurationsForUser" :>- Capture "managedConfigurationForUserId" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ManagedConfiguration---- | Retrieves details of a per-user managed configuration for an app for the--- specified user.------ /See:/ 'managedConfigurationsforUserGet' smart constructor.-data ManagedConfigurationsforUserGet =- ManagedConfigurationsforUserGet'- { _mcugEnterpriseId :: !Text- , _mcugUserId :: !Text- , _mcugManagedConfigurationForUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforUserGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcugEnterpriseId'------ * 'mcugUserId'------ * 'mcugManagedConfigurationForUserId'-managedConfigurationsforUserGet- :: Text -- ^ 'mcugEnterpriseId'- -> Text -- ^ 'mcugUserId'- -> Text -- ^ 'mcugManagedConfigurationForUserId'- -> ManagedConfigurationsforUserGet-managedConfigurationsforUserGet pMcugEnterpriseId_ pMcugUserId_ pMcugManagedConfigurationForUserId_ =- ManagedConfigurationsforUserGet'- { _mcugEnterpriseId = pMcugEnterpriseId_- , _mcugUserId = pMcugUserId_- , _mcugManagedConfigurationForUserId = pMcugManagedConfigurationForUserId_- }----- | The ID of the enterprise.-mcugEnterpriseId :: Lens' ManagedConfigurationsforUserGet Text-mcugEnterpriseId- = lens _mcugEnterpriseId- (\ s a -> s{_mcugEnterpriseId = a})---- | The ID of the user.-mcugUserId :: Lens' ManagedConfigurationsforUserGet Text-mcugUserId- = lens _mcugUserId (\ s a -> s{_mcugUserId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcugManagedConfigurationForUserId :: Lens' ManagedConfigurationsforUserGet Text-mcugManagedConfigurationForUserId- = lens _mcugManagedConfigurationForUserId- (\ s a -> s{_mcugManagedConfigurationForUserId = a})--instance GoogleRequest- ManagedConfigurationsforUserGet- where- type Rs ManagedConfigurationsforUserGet =- ManagedConfiguration- type Scopes ManagedConfigurationsforUserGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationsforUserGet'{..}- = go _mcugEnterpriseId _mcugUserId- _mcugManagedConfigurationForUserId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforUserGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/List.hs
@@ -1,110 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists all the per-user managed configurations for the specified user.--- Only the ID is set.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.list@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.List- (- -- * REST Resource- ManagedConfigurationsforUserListResource-- -- * Creating a Request- , managedConfigurationsforUserList- , ManagedConfigurationsforUserList-- -- * Request Lenses- , mculEnterpriseId- , mculUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsforuser.list@ method which the--- 'ManagedConfigurationsforUserList' request conforms to.-type ManagedConfigurationsforUserListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "managedConfigurationsForUser" :>- QueryParam "alt" AltJSON :>- Get '[JSON] ManagedConfigurationsForUserListResponse---- | Lists all the per-user managed configurations for the specified user.--- Only the ID is set.------ /See:/ 'managedConfigurationsforUserList' smart constructor.-data ManagedConfigurationsforUserList =- ManagedConfigurationsforUserList'- { _mculEnterpriseId :: !Text- , _mculUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforUserList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mculEnterpriseId'------ * 'mculUserId'-managedConfigurationsforUserList- :: Text -- ^ 'mculEnterpriseId'- -> Text -- ^ 'mculUserId'- -> ManagedConfigurationsforUserList-managedConfigurationsforUserList pMculEnterpriseId_ pMculUserId_ =- ManagedConfigurationsforUserList'- {_mculEnterpriseId = pMculEnterpriseId_, _mculUserId = pMculUserId_}----- | The ID of the enterprise.-mculEnterpriseId :: Lens' ManagedConfigurationsforUserList Text-mculEnterpriseId- = lens _mculEnterpriseId- (\ s a -> s{_mculEnterpriseId = a})---- | The ID of the user.-mculUserId :: Lens' ManagedConfigurationsforUserList Text-mculUserId- = lens _mculUserId (\ s a -> s{_mculUserId = a})--instance GoogleRequest- ManagedConfigurationsforUserList- where- type Rs ManagedConfigurationsforUserList =- ManagedConfigurationsForUserListResponse- type Scopes ManagedConfigurationsforUserList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationsforUserList'{..}- = go _mculEnterpriseId _mculUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforUserListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Patch.hs
@@ -1,149 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Adds or updates the managed configuration settings for an app for the--- specified user. If you support the Managed configurations iframe, you--- can apply managed configurations to a user by specifying an mcmId and--- its associated configuration variables (if any) in the request.--- Alternatively, all EMMs can apply managed configurations by passing a--- list of managed properties. This method supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.patch@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Patch- (- -- * REST Resource- ManagedConfigurationsforUserPatchResource-- -- * Creating a Request- , managedConfigurationsforUserPatch- , ManagedConfigurationsforUserPatch-- -- * Request Lenses- , mcupEnterpriseId- , mcupPayload- , mcupUserId- , mcupManagedConfigurationForUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsforuser.patch@ method which the--- 'ManagedConfigurationsforUserPatch' request conforms to.-type ManagedConfigurationsforUserPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "managedConfigurationsForUser" :>- Capture "managedConfigurationForUserId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ManagedConfiguration :>- Patch '[JSON] ManagedConfiguration---- | Adds or updates the managed configuration settings for an app for the--- specified user. If you support the Managed configurations iframe, you--- can apply managed configurations to a user by specifying an mcmId and--- its associated configuration variables (if any) in the request.--- Alternatively, all EMMs can apply managed configurations by passing a--- list of managed properties. This method supports patch semantics.------ /See:/ 'managedConfigurationsforUserPatch' smart constructor.-data ManagedConfigurationsforUserPatch =- ManagedConfigurationsforUserPatch'- { _mcupEnterpriseId :: !Text- , _mcupPayload :: !ManagedConfiguration- , _mcupUserId :: !Text- , _mcupManagedConfigurationForUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforUserPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcupEnterpriseId'------ * 'mcupPayload'------ * 'mcupUserId'------ * 'mcupManagedConfigurationForUserId'-managedConfigurationsforUserPatch- :: Text -- ^ 'mcupEnterpriseId'- -> ManagedConfiguration -- ^ 'mcupPayload'- -> Text -- ^ 'mcupUserId'- -> Text -- ^ 'mcupManagedConfigurationForUserId'- -> ManagedConfigurationsforUserPatch-managedConfigurationsforUserPatch pMcupEnterpriseId_ pMcupPayload_ pMcupUserId_ pMcupManagedConfigurationForUserId_ =- ManagedConfigurationsforUserPatch'- { _mcupEnterpriseId = pMcupEnterpriseId_- , _mcupPayload = pMcupPayload_- , _mcupUserId = pMcupUserId_- , _mcupManagedConfigurationForUserId = pMcupManagedConfigurationForUserId_- }----- | The ID of the enterprise.-mcupEnterpriseId :: Lens' ManagedConfigurationsforUserPatch Text-mcupEnterpriseId- = lens _mcupEnterpriseId- (\ s a -> s{_mcupEnterpriseId = a})---- | Multipart request metadata.-mcupPayload :: Lens' ManagedConfigurationsforUserPatch ManagedConfiguration-mcupPayload- = lens _mcupPayload (\ s a -> s{_mcupPayload = a})---- | The ID of the user.-mcupUserId :: Lens' ManagedConfigurationsforUserPatch Text-mcupUserId- = lens _mcupUserId (\ s a -> s{_mcupUserId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcupManagedConfigurationForUserId :: Lens' ManagedConfigurationsforUserPatch Text-mcupManagedConfigurationForUserId- = lens _mcupManagedConfigurationForUserId- (\ s a -> s{_mcupManagedConfigurationForUserId = a})--instance GoogleRequest- ManagedConfigurationsforUserPatch- where- type Rs ManagedConfigurationsforUserPatch =- ManagedConfiguration- type Scopes ManagedConfigurationsforUserPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationsforUserPatch'{..}- = go _mcupEnterpriseId _mcupUserId- _mcupManagedConfigurationForUserId- (Just AltJSON)- _mcupPayload- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforUserPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationsforUser/Update.hs
@@ -1,149 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Adds or updates the managed configuration settings for an app for the--- specified user. If you support the Managed configurations iframe, you--- can apply managed configurations to a user by specifying an mcmId and--- its associated configuration variables (if any) in the request.--- Alternatively, all EMMs can apply managed configurations by passing a--- list of managed properties.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationsforuser.update@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Update- (- -- * REST Resource- ManagedConfigurationsforUserUpdateResource-- -- * Creating a Request- , managedConfigurationsforUserUpdate- , ManagedConfigurationsforUserUpdate-- -- * Request Lenses- , mcuuEnterpriseId- , mcuuPayload- , mcuuUserId- , mcuuManagedConfigurationForUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationsforuser.update@ method which the--- 'ManagedConfigurationsforUserUpdate' request conforms to.-type ManagedConfigurationsforUserUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "managedConfigurationsForUser" :>- Capture "managedConfigurationForUserId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ManagedConfiguration :>- Put '[JSON] ManagedConfiguration---- | Adds or updates the managed configuration settings for an app for the--- specified user. If you support the Managed configurations iframe, you--- can apply managed configurations to a user by specifying an mcmId and--- its associated configuration variables (if any) in the request.--- Alternatively, all EMMs can apply managed configurations by passing a--- list of managed properties.------ /See:/ 'managedConfigurationsforUserUpdate' smart constructor.-data ManagedConfigurationsforUserUpdate =- ManagedConfigurationsforUserUpdate'- { _mcuuEnterpriseId :: !Text- , _mcuuPayload :: !ManagedConfiguration- , _mcuuUserId :: !Text- , _mcuuManagedConfigurationForUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationsforUserUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mcuuEnterpriseId'------ * 'mcuuPayload'------ * 'mcuuUserId'------ * 'mcuuManagedConfigurationForUserId'-managedConfigurationsforUserUpdate- :: Text -- ^ 'mcuuEnterpriseId'- -> ManagedConfiguration -- ^ 'mcuuPayload'- -> Text -- ^ 'mcuuUserId'- -> Text -- ^ 'mcuuManagedConfigurationForUserId'- -> ManagedConfigurationsforUserUpdate-managedConfigurationsforUserUpdate pMcuuEnterpriseId_ pMcuuPayload_ pMcuuUserId_ pMcuuManagedConfigurationForUserId_ =- ManagedConfigurationsforUserUpdate'- { _mcuuEnterpriseId = pMcuuEnterpriseId_- , _mcuuPayload = pMcuuPayload_- , _mcuuUserId = pMcuuUserId_- , _mcuuManagedConfigurationForUserId = pMcuuManagedConfigurationForUserId_- }----- | The ID of the enterprise.-mcuuEnterpriseId :: Lens' ManagedConfigurationsforUserUpdate Text-mcuuEnterpriseId- = lens _mcuuEnterpriseId- (\ s a -> s{_mcuuEnterpriseId = a})---- | Multipart request metadata.-mcuuPayload :: Lens' ManagedConfigurationsforUserUpdate ManagedConfiguration-mcuuPayload- = lens _mcuuPayload (\ s a -> s{_mcuuPayload = a})---- | The ID of the user.-mcuuUserId :: Lens' ManagedConfigurationsforUserUpdate Text-mcuuUserId- = lens _mcuuUserId (\ s a -> s{_mcuuUserId = a})---- | The ID of the managed configuration (a product ID), e.g.--- \"app:com.google.android.gm\".-mcuuManagedConfigurationForUserId :: Lens' ManagedConfigurationsforUserUpdate Text-mcuuManagedConfigurationForUserId- = lens _mcuuManagedConfigurationForUserId- (\ s a -> s{_mcuuManagedConfigurationForUserId = a})--instance GoogleRequest- ManagedConfigurationsforUserUpdate- where- type Rs ManagedConfigurationsforUserUpdate =- ManagedConfiguration- type Scopes ManagedConfigurationsforUserUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationsforUserUpdate'{..}- = go _mcuuEnterpriseId _mcuuUserId- _mcuuManagedConfigurationForUserId- (Just AltJSON)- _mcuuPayload- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationsforUserUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ManagedConfigurationssettings/List.hs
@@ -1,111 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ManagedConfigurationssettings.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists all the managed configurations settings for the specified app.--- Only the ID and the name is set.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.managedconfigurationssettings.list@.-module Network.Google.Resource.AndroidEnterprise.ManagedConfigurationssettings.List- (- -- * REST Resource- ManagedConfigurationssettingsListResource-- -- * Creating a Request- , managedConfigurationssettingsList- , ManagedConfigurationssettingsList-- -- * Request Lenses- , mclEnterpriseId- , mclProductId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.managedconfigurationssettings.list@ method which the--- 'ManagedConfigurationssettingsList' request conforms to.-type ManagedConfigurationssettingsListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- Capture "productId" Text :>- "managedConfigurationsSettings" :>- QueryParam "alt" AltJSON :>- Get '[JSON] ManagedConfigurationsSettingsListResponse---- | Lists all the managed configurations settings for the specified app.--- Only the ID and the name is set.------ /See:/ 'managedConfigurationssettingsList' smart constructor.-data ManagedConfigurationssettingsList =- ManagedConfigurationssettingsList'- { _mclEnterpriseId :: !Text- , _mclProductId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationssettingsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mclEnterpriseId'------ * 'mclProductId'-managedConfigurationssettingsList- :: Text -- ^ 'mclEnterpriseId'- -> Text -- ^ 'mclProductId'- -> ManagedConfigurationssettingsList-managedConfigurationssettingsList pMclEnterpriseId_ pMclProductId_ =- ManagedConfigurationssettingsList'- {_mclEnterpriseId = pMclEnterpriseId_, _mclProductId = pMclProductId_}----- | The ID of the enterprise.-mclEnterpriseId :: Lens' ManagedConfigurationssettingsList Text-mclEnterpriseId- = lens _mclEnterpriseId- (\ s a -> s{_mclEnterpriseId = a})---- | The ID of the product for which the managed configurations settings--- applies to.-mclProductId :: Lens' ManagedConfigurationssettingsList Text-mclProductId- = lens _mclProductId (\ s a -> s{_mclProductId = a})--instance GoogleRequest- ManagedConfigurationssettingsList- where- type Rs ManagedConfigurationssettingsList =- ManagedConfigurationsSettingsListResponse- type Scopes ManagedConfigurationssettingsList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ManagedConfigurationssettingsList'{..}- = go _mclEnterpriseId _mclProductId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ManagedConfigurationssettingsListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Permissions/Get.hs
@@ -1,101 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Permissions.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of an Android app permission for display to an--- enterprise admin.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.permissions.get@.-module Network.Google.Resource.AndroidEnterprise.Permissions.Get- (- -- * REST Resource- PermissionsGetResource-- -- * Creating a Request- , permissionsGet- , PermissionsGet-- -- * Request Lenses- , pgLanguage- , pgPermissionId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.permissions.get@ method which the--- 'PermissionsGet' request conforms to.-type PermissionsGetResource =- "androidenterprise" :>- "v1" :>- "permissions" :>- Capture "permissionId" Text :>- QueryParam "language" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Permission---- | Retrieves details of an Android app permission for display to an--- enterprise admin.------ /See:/ 'permissionsGet' smart constructor.-data PermissionsGet =- PermissionsGet'- { _pgLanguage :: !(Maybe Text)- , _pgPermissionId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PermissionsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pgLanguage'------ * 'pgPermissionId'-permissionsGet- :: Text -- ^ 'pgPermissionId'- -> PermissionsGet-permissionsGet pPgPermissionId_ =- PermissionsGet' {_pgLanguage = Nothing, _pgPermissionId = pPgPermissionId_}----- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\",--- \"de\")-pgLanguage :: Lens' PermissionsGet (Maybe Text)-pgLanguage- = lens _pgLanguage (\ s a -> s{_pgLanguage = a})---- | The ID of the permission.-pgPermissionId :: Lens' PermissionsGet Text-pgPermissionId- = lens _pgPermissionId- (\ s a -> s{_pgPermissionId = a})--instance GoogleRequest PermissionsGet where- type Rs PermissionsGet = Permission- type Scopes PermissionsGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient PermissionsGet'{..}- = go _pgPermissionId _pgLanguage (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy PermissionsGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Products/Approve.hs
@@ -1,127 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Products.Approve--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Approves the specified product and the relevant app permissions, if any.--- The maximum number of products that you can approve per enterprise--- customer is 1,000. To learn how to use managed Google Play to design and--- create a store layout to display approved products to your users, see--- Store Layout Design.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.approve@.-module Network.Google.Resource.AndroidEnterprise.Products.Approve- (- -- * REST Resource- ProductsApproveResource-- -- * Creating a Request- , productsApprove- , ProductsApprove-- -- * Request Lenses- , paEnterpriseId- , paPayload- , paProductId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.products.approve@ method which the--- 'ProductsApprove' request conforms to.-type ProductsApproveResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- Capture "productId" Text :>- "approve" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ProductsApproveRequest :>- Post '[JSON] ()---- | Approves the specified product and the relevant app permissions, if any.--- The maximum number of products that you can approve per enterprise--- customer is 1,000. To learn how to use managed Google Play to design and--- create a store layout to display approved products to your users, see--- Store Layout Design.------ /See:/ 'productsApprove' smart constructor.-data ProductsApprove =- ProductsApprove'- { _paEnterpriseId :: !Text- , _paPayload :: !ProductsApproveRequest- , _paProductId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsApprove' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'paEnterpriseId'------ * 'paPayload'------ * 'paProductId'-productsApprove- :: Text -- ^ 'paEnterpriseId'- -> ProductsApproveRequest -- ^ 'paPayload'- -> Text -- ^ 'paProductId'- -> ProductsApprove-productsApprove pPaEnterpriseId_ pPaPayload_ pPaProductId_ =- ProductsApprove'- { _paEnterpriseId = pPaEnterpriseId_- , _paPayload = pPaPayload_- , _paProductId = pPaProductId_- }----- | The ID of the enterprise.-paEnterpriseId :: Lens' ProductsApprove Text-paEnterpriseId- = lens _paEnterpriseId- (\ s a -> s{_paEnterpriseId = a})---- | Multipart request metadata.-paPayload :: Lens' ProductsApprove ProductsApproveRequest-paPayload- = lens _paPayload (\ s a -> s{_paPayload = a})---- | The ID of the product.-paProductId :: Lens' ProductsApprove Text-paProductId- = lens _paProductId (\ s a -> s{_paProductId = a})--instance GoogleRequest ProductsApprove where- type Rs ProductsApprove = ()- type Scopes ProductsApprove =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ProductsApprove'{..}- = go _paEnterpriseId _paProductId (Just AltJSON)- _paPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy ProductsApproveResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Products/GenerateApprovalURL.hs
@@ -1,138 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Generates a URL that can be rendered in an iframe to display the--- permissions (if any) of a product. An enterprise admin must view these--- permissions and accept them on behalf of their organization in order to--- approve that product. Admins should accept the displayed permissions by--- interacting with a separate UI element in the EMM console, which in turn--- should trigger the use of this URL as the approvalUrlInfo.approvalUrl--- property in a Products.approve call to approve the product. This URL can--- only be used to display permissions for up to 1 day.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.generateApprovalUrl@.-module Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL- (- -- * REST Resource- ProductsGenerateApprovalURLResource-- -- * Creating a Request- , productsGenerateApprovalURL- , ProductsGenerateApprovalURL-- -- * Request Lenses- , pgauLanguageCode- , pgauEnterpriseId- , pgauProductId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.products.generateApprovalUrl@ method which the--- 'ProductsGenerateApprovalURL' request conforms to.-type ProductsGenerateApprovalURLResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- Capture "productId" Text :>- "generateApprovalUrl" :>- QueryParam "languageCode" Text :>- QueryParam "alt" AltJSON :>- Post '[JSON] ProductsGenerateApprovalURLResponse---- | Generates a URL that can be rendered in an iframe to display the--- permissions (if any) of a product. An enterprise admin must view these--- permissions and accept them on behalf of their organization in order to--- approve that product. Admins should accept the displayed permissions by--- interacting with a separate UI element in the EMM console, which in turn--- should trigger the use of this URL as the approvalUrlInfo.approvalUrl--- property in a Products.approve call to approve the product. This URL can--- only be used to display permissions for up to 1 day.------ /See:/ 'productsGenerateApprovalURL' smart constructor.-data ProductsGenerateApprovalURL =- ProductsGenerateApprovalURL'- { _pgauLanguageCode :: !(Maybe Text)- , _pgauEnterpriseId :: !Text- , _pgauProductId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsGenerateApprovalURL' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pgauLanguageCode'------ * 'pgauEnterpriseId'------ * 'pgauProductId'-productsGenerateApprovalURL- :: Text -- ^ 'pgauEnterpriseId'- -> Text -- ^ 'pgauProductId'- -> ProductsGenerateApprovalURL-productsGenerateApprovalURL pPgauEnterpriseId_ pPgauProductId_ =- ProductsGenerateApprovalURL'- { _pgauLanguageCode = Nothing- , _pgauEnterpriseId = pPgauEnterpriseId_- , _pgauProductId = pPgauProductId_- }----- | The BCP 47 language code used for permission names and descriptions in--- the returned iframe, for instance \"en-US\".-pgauLanguageCode :: Lens' ProductsGenerateApprovalURL (Maybe Text)-pgauLanguageCode- = lens _pgauLanguageCode- (\ s a -> s{_pgauLanguageCode = a})---- | The ID of the enterprise.-pgauEnterpriseId :: Lens' ProductsGenerateApprovalURL Text-pgauEnterpriseId- = lens _pgauEnterpriseId- (\ s a -> s{_pgauEnterpriseId = a})---- | The ID of the product.-pgauProductId :: Lens' ProductsGenerateApprovalURL Text-pgauProductId- = lens _pgauProductId- (\ s a -> s{_pgauProductId = a})--instance GoogleRequest ProductsGenerateApprovalURL- where- type Rs ProductsGenerateApprovalURL =- ProductsGenerateApprovalURLResponse- type Scopes ProductsGenerateApprovalURL =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ProductsGenerateApprovalURL'{..}- = go _pgauEnterpriseId _pgauProductId- _pgauLanguageCode- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy ProductsGenerateApprovalURLResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Products/Get.hs
@@ -1,116 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Products.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of a product for display to an enterprise admin.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.get@.-module Network.Google.Resource.AndroidEnterprise.Products.Get- (- -- * REST Resource- ProductsGetResource-- -- * Creating a Request- , productsGet- , ProductsGet-- -- * Request Lenses- , proEnterpriseId- , proLanguage- , proProductId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.products.get@ method which the--- 'ProductsGet' request conforms to.-type ProductsGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- Capture "productId" Text :>- QueryParam "language" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Product---- | Retrieves details of a product for display to an enterprise admin.------ /See:/ 'productsGet' smart constructor.-data ProductsGet =- ProductsGet'- { _proEnterpriseId :: !Text- , _proLanguage :: !(Maybe Text)- , _proProductId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'proEnterpriseId'------ * 'proLanguage'------ * 'proProductId'-productsGet- :: Text -- ^ 'proEnterpriseId'- -> Text -- ^ 'proProductId'- -> ProductsGet-productsGet pProEnterpriseId_ pProProductId_ =- ProductsGet'- { _proEnterpriseId = pProEnterpriseId_- , _proLanguage = Nothing- , _proProductId = pProProductId_- }----- | The ID of the enterprise.-proEnterpriseId :: Lens' ProductsGet Text-proEnterpriseId- = lens _proEnterpriseId- (\ s a -> s{_proEnterpriseId = a})---- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\",--- \"de\").-proLanguage :: Lens' ProductsGet (Maybe Text)-proLanguage- = lens _proLanguage (\ s a -> s{_proLanguage = a})---- | The ID of the product, e.g. \"app:com.google.android.gm\".-proProductId :: Lens' ProductsGet Text-proProductId- = lens _proProductId (\ s a -> s{_proProductId = a})--instance GoogleRequest ProductsGet where- type Rs ProductsGet = Product- type Scopes ProductsGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ProductsGet'{..}- = go _proEnterpriseId _proProductId _proLanguage- (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy ProductsGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Products/GetAppRestrictionsSchema.hs
@@ -1,136 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the schema that defines the configurable properties for this--- product. All products have a schema, but this schema may be empty if no--- managed configurations have been defined. This schema can be used to--- populate a UI that allows an admin to configure the product. To apply a--- managed configuration based on the schema obtained using this API, see--- Managed Configurations through Play.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getAppRestrictionsSchema@.-module Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema- (- -- * REST Resource- ProductsGetAppRestrictionsSchemaResource-- -- * Creating a Request- , productsGetAppRestrictionsSchema- , ProductsGetAppRestrictionsSchema-- -- * Request Lenses- , pgarsEnterpriseId- , pgarsLanguage- , pgarsProductId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.products.getAppRestrictionsSchema@ method which the--- 'ProductsGetAppRestrictionsSchema' request conforms to.-type ProductsGetAppRestrictionsSchemaResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- Capture "productId" Text :>- "appRestrictionsSchema" :>- QueryParam "language" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] AppRestrictionsSchema---- | Retrieves the schema that defines the configurable properties for this--- product. All products have a schema, but this schema may be empty if no--- managed configurations have been defined. This schema can be used to--- populate a UI that allows an admin to configure the product. To apply a--- managed configuration based on the schema obtained using this API, see--- Managed Configurations through Play.------ /See:/ 'productsGetAppRestrictionsSchema' smart constructor.-data ProductsGetAppRestrictionsSchema =- ProductsGetAppRestrictionsSchema'- { _pgarsEnterpriseId :: !Text- , _pgarsLanguage :: !(Maybe Text)- , _pgarsProductId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsGetAppRestrictionsSchema' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pgarsEnterpriseId'------ * 'pgarsLanguage'------ * 'pgarsProductId'-productsGetAppRestrictionsSchema- :: Text -- ^ 'pgarsEnterpriseId'- -> Text -- ^ 'pgarsProductId'- -> ProductsGetAppRestrictionsSchema-productsGetAppRestrictionsSchema pPgarsEnterpriseId_ pPgarsProductId_ =- ProductsGetAppRestrictionsSchema'- { _pgarsEnterpriseId = pPgarsEnterpriseId_- , _pgarsLanguage = Nothing- , _pgarsProductId = pPgarsProductId_- }----- | The ID of the enterprise.-pgarsEnterpriseId :: Lens' ProductsGetAppRestrictionsSchema Text-pgarsEnterpriseId- = lens _pgarsEnterpriseId- (\ s a -> s{_pgarsEnterpriseId = a})---- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\",--- \"de\").-pgarsLanguage :: Lens' ProductsGetAppRestrictionsSchema (Maybe Text)-pgarsLanguage- = lens _pgarsLanguage- (\ s a -> s{_pgarsLanguage = a})---- | The ID of the product.-pgarsProductId :: Lens' ProductsGetAppRestrictionsSchema Text-pgarsProductId- = lens _pgarsProductId- (\ s a -> s{_pgarsProductId = a})--instance GoogleRequest- ProductsGetAppRestrictionsSchema- where- type Rs ProductsGetAppRestrictionsSchema =- AppRestrictionsSchema- type Scopes ProductsGetAppRestrictionsSchema =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ProductsGetAppRestrictionsSchema'{..}- = go _pgarsEnterpriseId _pgarsProductId- _pgarsLanguage- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy ProductsGetAppRestrictionsSchemaResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Products/GetPermissions.hs
@@ -1,104 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Products.GetPermissions--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the Android app permissions required by this app.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.getPermissions@.-module Network.Google.Resource.AndroidEnterprise.Products.GetPermissions- (- -- * REST Resource- ProductsGetPermissionsResource-- -- * Creating a Request- , productsGetPermissions- , ProductsGetPermissions-- -- * Request Lenses- , pgpEnterpriseId- , pgpProductId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.products.getPermissions@ method which the--- 'ProductsGetPermissions' request conforms to.-type ProductsGetPermissionsResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- Capture "productId" Text :>- "permissions" :>- QueryParam "alt" AltJSON :>- Get '[JSON] ProductPermissions---- | Retrieves the Android app permissions required by this app.------ /See:/ 'productsGetPermissions' smart constructor.-data ProductsGetPermissions =- ProductsGetPermissions'- { _pgpEnterpriseId :: !Text- , _pgpProductId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsGetPermissions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pgpEnterpriseId'------ * 'pgpProductId'-productsGetPermissions- :: Text -- ^ 'pgpEnterpriseId'- -> Text -- ^ 'pgpProductId'- -> ProductsGetPermissions-productsGetPermissions pPgpEnterpriseId_ pPgpProductId_ =- ProductsGetPermissions'- {_pgpEnterpriseId = pPgpEnterpriseId_, _pgpProductId = pPgpProductId_}----- | The ID of the enterprise.-pgpEnterpriseId :: Lens' ProductsGetPermissions Text-pgpEnterpriseId- = lens _pgpEnterpriseId- (\ s a -> s{_pgpEnterpriseId = a})---- | The ID of the product.-pgpProductId :: Lens' ProductsGetPermissions Text-pgpProductId- = lens _pgpProductId (\ s a -> s{_pgpProductId = a})--instance GoogleRequest ProductsGetPermissions where- type Rs ProductsGetPermissions = ProductPermissions- type Scopes ProductsGetPermissions =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ProductsGetPermissions'{..}- = go _pgpEnterpriseId _pgpProductId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy ProductsGetPermissionsResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Products/List.hs
@@ -1,163 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Products.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Finds approved products that match a query, or all approved products if--- there is no query.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.list@.-module Network.Google.Resource.AndroidEnterprise.Products.List- (- -- * REST Resource- ProductsListResource-- -- * Creating a Request- , productsList- , ProductsList-- -- * Request Lenses- , plEnterpriseId- , plToken- , plQuery- , plLanguage- , plApproved- , plMaxResults- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.products.list@ method which the--- 'ProductsList' request conforms to.-type ProductsListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- QueryParam "token" Text :>- QueryParam "query" Text :>- QueryParam "language" Text :>- QueryParam "approved" Bool :>- QueryParam "maxResults" (Textual Word32) :>- QueryParam "alt" AltJSON :>- Get '[JSON] ProductsListResponse---- | Finds approved products that match a query, or all approved products if--- there is no query.------ /See:/ 'productsList' smart constructor.-data ProductsList =- ProductsList'- { _plEnterpriseId :: !Text- , _plToken :: !(Maybe Text)- , _plQuery :: !(Maybe Text)- , _plLanguage :: !(Maybe Text)- , _plApproved :: !(Maybe Bool)- , _plMaxResults :: !(Maybe (Textual Word32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'plEnterpriseId'------ * 'plToken'------ * 'plQuery'------ * 'plLanguage'------ * 'plApproved'------ * 'plMaxResults'-productsList- :: Text -- ^ 'plEnterpriseId'- -> ProductsList-productsList pPlEnterpriseId_ =- ProductsList'- { _plEnterpriseId = pPlEnterpriseId_- , _plToken = Nothing- , _plQuery = Nothing- , _plLanguage = Nothing- , _plApproved = Nothing- , _plMaxResults = Nothing- }----- | The ID of the enterprise.-plEnterpriseId :: Lens' ProductsList Text-plEnterpriseId- = lens _plEnterpriseId- (\ s a -> s{_plEnterpriseId = a})---- | A pagination token is contained in a request\'s response when there are--- more products. The token can be used in a subsequent request to obtain--- more products, and so forth. This parameter cannot be used in the--- initial request.-plToken :: Lens' ProductsList (Maybe Text)-plToken = lens _plToken (\ s a -> s{_plToken = a})---- | The search query as typed in the Google Play store search box. If--- omitted, all approved apps will be returned (using the pagination--- parameters), including apps that are not available in the store (e.g.--- unpublished apps).-plQuery :: Lens' ProductsList (Maybe Text)-plQuery = lens _plQuery (\ s a -> s{_plQuery = a})---- | The BCP47 tag for the user\'s preferred language (e.g. \"en-US\",--- \"de\"). Results are returned in the language best matching the--- preferred language.-plLanguage :: Lens' ProductsList (Maybe Text)-plLanguage- = lens _plLanguage (\ s a -> s{_plLanguage = a})---- | Specifies whether to search among all products (false) or among only--- products that have been approved (true). Only \"true\" is supported, and--- should be specified.-plApproved :: Lens' ProductsList (Maybe Bool)-plApproved- = lens _plApproved (\ s a -> s{_plApproved = a})---- | Specifies the maximum number of products that can be returned per--- request. If not specified, uses a default value of 100, which is also--- the maximum retrievable within a single response.-plMaxResults :: Lens' ProductsList (Maybe Word32)-plMaxResults- = lens _plMaxResults (\ s a -> s{_plMaxResults = a})- . mapping _Coerce--instance GoogleRequest ProductsList where- type Rs ProductsList = ProductsListResponse- type Scopes ProductsList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ProductsList'{..}- = go _plEnterpriseId _plToken _plQuery _plLanguage- _plApproved- _plMaxResults- (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy ProductsListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Products/UnApprove.hs
@@ -1,105 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Products.UnApprove--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Unapproves the specified product (and the relevant app permissions, if--- any)------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.products.unapprove@.-module Network.Google.Resource.AndroidEnterprise.Products.UnApprove- (- -- * REST Resource- ProductsUnApproveResource-- -- * Creating a Request- , productsUnApprove- , ProductsUnApprove-- -- * Request Lenses- , puaEnterpriseId- , puaProductId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.products.unapprove@ method which the--- 'ProductsUnApprove' request conforms to.-type ProductsUnApproveResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "products" :>- Capture "productId" Text :>- "unapprove" :>- QueryParam "alt" AltJSON :> Post '[JSON] ()---- | Unapproves the specified product (and the relevant app permissions, if--- any)------ /See:/ 'productsUnApprove' smart constructor.-data ProductsUnApprove =- ProductsUnApprove'- { _puaEnterpriseId :: !Text- , _puaProductId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProductsUnApprove' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'puaEnterpriseId'------ * 'puaProductId'-productsUnApprove- :: Text -- ^ 'puaEnterpriseId'- -> Text -- ^ 'puaProductId'- -> ProductsUnApprove-productsUnApprove pPuaEnterpriseId_ pPuaProductId_ =- ProductsUnApprove'- {_puaEnterpriseId = pPuaEnterpriseId_, _puaProductId = pPuaProductId_}----- | The ID of the enterprise.-puaEnterpriseId :: Lens' ProductsUnApprove Text-puaEnterpriseId- = lens _puaEnterpriseId- (\ s a -> s{_puaEnterpriseId = a})---- | The ID of the product.-puaProductId :: Lens' ProductsUnApprove Text-puaProductId- = lens _puaProductId (\ s a -> s{_puaProductId = a})--instance GoogleRequest ProductsUnApprove where- type Rs ProductsUnApprove = ()- type Scopes ProductsUnApprove =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ProductsUnApprove'{..}- = go _puaEnterpriseId _puaProductId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy ProductsUnApproveResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ServiceAccountkeys/Delete.hs
@@ -1,109 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Removes and invalidates the specified credentials for the service--- account associated with this enterprise. The calling service account--- must have been retrieved by calling Enterprises.GetServiceAccount and--- must have been set as the enterprise service account by calling--- Enterprises.SetAccount.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.serviceaccountkeys.delete@.-module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete- (- -- * REST Resource- ServiceAccountkeysDeleteResource-- -- * Creating a Request- , serviceAccountkeysDelete- , ServiceAccountkeysDelete-- -- * Request Lenses- , sadKeyId- , sadEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.serviceaccountkeys.delete@ method which the--- 'ServiceAccountkeysDelete' request conforms to.-type ServiceAccountkeysDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "serviceAccountKeys" :>- Capture "keyId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Removes and invalidates the specified credentials for the service--- account associated with this enterprise. The calling service account--- must have been retrieved by calling Enterprises.GetServiceAccount and--- must have been set as the enterprise service account by calling--- Enterprises.SetAccount.------ /See:/ 'serviceAccountkeysDelete' smart constructor.-data ServiceAccountkeysDelete =- ServiceAccountkeysDelete'- { _sadKeyId :: !Text- , _sadEnterpriseId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ServiceAccountkeysDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sadKeyId'------ * 'sadEnterpriseId'-serviceAccountkeysDelete- :: Text -- ^ 'sadKeyId'- -> Text -- ^ 'sadEnterpriseId'- -> ServiceAccountkeysDelete-serviceAccountkeysDelete pSadKeyId_ pSadEnterpriseId_ =- ServiceAccountkeysDelete'- {_sadKeyId = pSadKeyId_, _sadEnterpriseId = pSadEnterpriseId_}----- | The ID of the key.-sadKeyId :: Lens' ServiceAccountkeysDelete Text-sadKeyId = lens _sadKeyId (\ s a -> s{_sadKeyId = a})---- | The ID of the enterprise.-sadEnterpriseId :: Lens' ServiceAccountkeysDelete Text-sadEnterpriseId- = lens _sadEnterpriseId- (\ s a -> s{_sadEnterpriseId = a})--instance GoogleRequest ServiceAccountkeysDelete where- type Rs ServiceAccountkeysDelete = ()- type Scopes ServiceAccountkeysDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ServiceAccountkeysDelete'{..}- = go _sadEnterpriseId _sadKeyId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy ServiceAccountkeysDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ServiceAccountkeys/Insert.hs
@@ -1,111 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Generates new credentials for the service account associated with this--- enterprise. The calling service account must have been retrieved by--- calling Enterprises.GetServiceAccount and must have been set as the--- enterprise service account by calling Enterprises.SetAccount. Only the--- type of the key should be populated in the resource to be inserted.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.serviceaccountkeys.insert@.-module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert- (- -- * REST Resource- ServiceAccountkeysInsertResource-- -- * Creating a Request- , serviceAccountkeysInsert- , ServiceAccountkeysInsert-- -- * Request Lenses- , saiEnterpriseId- , saiPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.serviceaccountkeys.insert@ method which the--- 'ServiceAccountkeysInsert' request conforms to.-type ServiceAccountkeysInsertResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "serviceAccountKeys" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ServiceAccountKey :>- Post '[JSON] ServiceAccountKey---- | Generates new credentials for the service account associated with this--- enterprise. The calling service account must have been retrieved by--- calling Enterprises.GetServiceAccount and must have been set as the--- enterprise service account by calling Enterprises.SetAccount. Only the--- type of the key should be populated in the resource to be inserted.------ /See:/ 'serviceAccountkeysInsert' smart constructor.-data ServiceAccountkeysInsert =- ServiceAccountkeysInsert'- { _saiEnterpriseId :: !Text- , _saiPayload :: !ServiceAccountKey- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ServiceAccountkeysInsert' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'saiEnterpriseId'------ * 'saiPayload'-serviceAccountkeysInsert- :: Text -- ^ 'saiEnterpriseId'- -> ServiceAccountKey -- ^ 'saiPayload'- -> ServiceAccountkeysInsert-serviceAccountkeysInsert pSaiEnterpriseId_ pSaiPayload_ =- ServiceAccountkeysInsert'- {_saiEnterpriseId = pSaiEnterpriseId_, _saiPayload = pSaiPayload_}----- | The ID of the enterprise.-saiEnterpriseId :: Lens' ServiceAccountkeysInsert Text-saiEnterpriseId- = lens _saiEnterpriseId- (\ s a -> s{_saiEnterpriseId = a})---- | Multipart request metadata.-saiPayload :: Lens' ServiceAccountkeysInsert ServiceAccountKey-saiPayload- = lens _saiPayload (\ s a -> s{_saiPayload = a})--instance GoogleRequest ServiceAccountkeysInsert where- type Rs ServiceAccountkeysInsert = ServiceAccountKey- type Scopes ServiceAccountkeysInsert =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ServiceAccountkeysInsert'{..}- = go _saiEnterpriseId (Just AltJSON) _saiPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy ServiceAccountkeysInsertResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/ServiceAccountkeys/List.hs
@@ -1,100 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Lists all active credentials for the service account associated with--- this enterprise. Only the ID and key type are returned. The calling--- service account must have been retrieved by calling--- Enterprises.GetServiceAccount and must have been set as the enterprise--- service account by calling Enterprises.SetAccount.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.serviceaccountkeys.list@.-module Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List- (- -- * REST Resource- ServiceAccountkeysListResource-- -- * Creating a Request- , serviceAccountkeysList- , ServiceAccountkeysList-- -- * Request Lenses- , salEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.serviceaccountkeys.list@ method which the--- 'ServiceAccountkeysList' request conforms to.-type ServiceAccountkeysListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "serviceAccountKeys" :>- QueryParam "alt" AltJSON :>- Get '[JSON] ServiceAccountKeysListResponse---- | Lists all active credentials for the service account associated with--- this enterprise. Only the ID and key type are returned. The calling--- service account must have been retrieved by calling--- Enterprises.GetServiceAccount and must have been set as the enterprise--- service account by calling Enterprises.SetAccount.------ /See:/ 'serviceAccountkeysList' smart constructor.-newtype ServiceAccountkeysList =- ServiceAccountkeysList'- { _salEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ServiceAccountkeysList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'salEnterpriseId'-serviceAccountkeysList- :: Text -- ^ 'salEnterpriseId'- -> ServiceAccountkeysList-serviceAccountkeysList pSalEnterpriseId_ =- ServiceAccountkeysList' {_salEnterpriseId = pSalEnterpriseId_}----- | The ID of the enterprise.-salEnterpriseId :: Lens' ServiceAccountkeysList Text-salEnterpriseId- = lens _salEnterpriseId- (\ s a -> s{_salEnterpriseId = a})--instance GoogleRequest ServiceAccountkeysList where- type Rs ServiceAccountkeysList =- ServiceAccountKeysListResponse- type Scopes ServiceAccountkeysList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient ServiceAccountkeysList'{..}- = go _salEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy ServiceAccountkeysListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Delete.hs
@@ -1,120 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Deletes a cluster.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.delete@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete- (- -- * REST Resource- StorelayoutclustersDeleteResource-- -- * Creating a Request- , storelayoutclustersDelete- , StorelayoutclustersDelete-- -- * Request Lenses- , sddEnterpriseId- , sddPageId- , sddClusterId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutclusters.delete@ method which the--- 'StorelayoutclustersDelete' request conforms to.-type StorelayoutclustersDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- "clusters" :>- Capture "clusterId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Deletes a cluster.------ /See:/ 'storelayoutclustersDelete' smart constructor.-data StorelayoutclustersDelete =- StorelayoutclustersDelete'- { _sddEnterpriseId :: !Text- , _sddPageId :: !Text- , _sddClusterId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutclustersDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sddEnterpriseId'------ * 'sddPageId'------ * 'sddClusterId'-storelayoutclustersDelete- :: Text -- ^ 'sddEnterpriseId'- -> Text -- ^ 'sddPageId'- -> Text -- ^ 'sddClusterId'- -> StorelayoutclustersDelete-storelayoutclustersDelete pSddEnterpriseId_ pSddPageId_ pSddClusterId_ =- StorelayoutclustersDelete'- { _sddEnterpriseId = pSddEnterpriseId_- , _sddPageId = pSddPageId_- , _sddClusterId = pSddClusterId_- }----- | The ID of the enterprise.-sddEnterpriseId :: Lens' StorelayoutclustersDelete Text-sddEnterpriseId- = lens _sddEnterpriseId- (\ s a -> s{_sddEnterpriseId = a})---- | The ID of the page.-sddPageId :: Lens' StorelayoutclustersDelete Text-sddPageId- = lens _sddPageId (\ s a -> s{_sddPageId = a})---- | The ID of the cluster.-sddClusterId :: Lens' StorelayoutclustersDelete Text-sddClusterId- = lens _sddClusterId (\ s a -> s{_sddClusterId = a})--instance GoogleRequest StorelayoutclustersDelete- where- type Rs StorelayoutclustersDelete = ()- type Scopes StorelayoutclustersDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutclustersDelete'{..}- = go _sddEnterpriseId _sddPageId _sddClusterId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutclustersDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Get.hs
@@ -1,119 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of a cluster.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.get@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get- (- -- * REST Resource- StorelayoutclustersGetResource-- -- * Creating a Request- , storelayoutclustersGet- , StorelayoutclustersGet-- -- * Request Lenses- , stoEnterpriseId- , stoPageId- , stoClusterId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutclusters.get@ method which the--- 'StorelayoutclustersGet' request conforms to.-type StorelayoutclustersGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- "clusters" :>- Capture "clusterId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] StoreCluster---- | Retrieves details of a cluster.------ /See:/ 'storelayoutclustersGet' smart constructor.-data StorelayoutclustersGet =- StorelayoutclustersGet'- { _stoEnterpriseId :: !Text- , _stoPageId :: !Text- , _stoClusterId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutclustersGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'stoEnterpriseId'------ * 'stoPageId'------ * 'stoClusterId'-storelayoutclustersGet- :: Text -- ^ 'stoEnterpriseId'- -> Text -- ^ 'stoPageId'- -> Text -- ^ 'stoClusterId'- -> StorelayoutclustersGet-storelayoutclustersGet pStoEnterpriseId_ pStoPageId_ pStoClusterId_ =- StorelayoutclustersGet'- { _stoEnterpriseId = pStoEnterpriseId_- , _stoPageId = pStoPageId_- , _stoClusterId = pStoClusterId_- }----- | The ID of the enterprise.-stoEnterpriseId :: Lens' StorelayoutclustersGet Text-stoEnterpriseId- = lens _stoEnterpriseId- (\ s a -> s{_stoEnterpriseId = a})---- | The ID of the page.-stoPageId :: Lens' StorelayoutclustersGet Text-stoPageId- = lens _stoPageId (\ s a -> s{_stoPageId = a})---- | The ID of the cluster.-stoClusterId :: Lens' StorelayoutclustersGet Text-stoClusterId- = lens _stoClusterId (\ s a -> s{_stoClusterId = a})--instance GoogleRequest StorelayoutclustersGet where- type Rs StorelayoutclustersGet = StoreCluster- type Scopes StorelayoutclustersGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutclustersGet'{..}- = go _stoEnterpriseId _stoPageId _stoClusterId- (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutclustersGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Insert.hs
@@ -1,118 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Inserts a new cluster in a page.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.insert@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert- (- -- * REST Resource- StorelayoutclustersInsertResource-- -- * Creating a Request- , storelayoutclustersInsert- , StorelayoutclustersInsert-- -- * Request Lenses- , sEnterpriseId- , sPageId- , sPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutclusters.insert@ method which the--- 'StorelayoutclustersInsert' request conforms to.-type StorelayoutclustersInsertResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- "clusters" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] StoreCluster :>- Post '[JSON] StoreCluster---- | Inserts a new cluster in a page.------ /See:/ 'storelayoutclustersInsert' smart constructor.-data StorelayoutclustersInsert =- StorelayoutclustersInsert'- { _sEnterpriseId :: !Text- , _sPageId :: !Text- , _sPayload :: !StoreCluster- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutclustersInsert' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sEnterpriseId'------ * 'sPageId'------ * 'sPayload'-storelayoutclustersInsert- :: Text -- ^ 'sEnterpriseId'- -> Text -- ^ 'sPageId'- -> StoreCluster -- ^ 'sPayload'- -> StorelayoutclustersInsert-storelayoutclustersInsert pSEnterpriseId_ pSPageId_ pSPayload_ =- StorelayoutclustersInsert'- { _sEnterpriseId = pSEnterpriseId_- , _sPageId = pSPageId_- , _sPayload = pSPayload_- }----- | The ID of the enterprise.-sEnterpriseId :: Lens' StorelayoutclustersInsert Text-sEnterpriseId- = lens _sEnterpriseId- (\ s a -> s{_sEnterpriseId = a})---- | The ID of the page.-sPageId :: Lens' StorelayoutclustersInsert Text-sPageId = lens _sPageId (\ s a -> s{_sPageId = a})---- | Multipart request metadata.-sPayload :: Lens' StorelayoutclustersInsert StoreCluster-sPayload = lens _sPayload (\ s a -> s{_sPayload = a})--instance GoogleRequest StorelayoutclustersInsert- where- type Rs StorelayoutclustersInsert = StoreCluster- type Scopes StorelayoutclustersInsert =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutclustersInsert'{..}- = go _sEnterpriseId _sPageId (Just AltJSON) _sPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutclustersInsertResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/List.hs
@@ -1,106 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the details of all clusters on the specified page.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.list@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List- (- -- * REST Resource- StorelayoutclustersListResource-- -- * Creating a Request- , storelayoutclustersList- , StorelayoutclustersList-- -- * Request Lenses- , sllEnterpriseId- , sllPageId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutclusters.list@ method which the--- 'StorelayoutclustersList' request conforms to.-type StorelayoutclustersListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- "clusters" :>- QueryParam "alt" AltJSON :>- Get '[JSON] StoreLayoutClustersListResponse---- | Retrieves the details of all clusters on the specified page.------ /See:/ 'storelayoutclustersList' smart constructor.-data StorelayoutclustersList =- StorelayoutclustersList'- { _sllEnterpriseId :: !Text- , _sllPageId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutclustersList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sllEnterpriseId'------ * 'sllPageId'-storelayoutclustersList- :: Text -- ^ 'sllEnterpriseId'- -> Text -- ^ 'sllPageId'- -> StorelayoutclustersList-storelayoutclustersList pSllEnterpriseId_ pSllPageId_ =- StorelayoutclustersList'- {_sllEnterpriseId = pSllEnterpriseId_, _sllPageId = pSllPageId_}----- | The ID of the enterprise.-sllEnterpriseId :: Lens' StorelayoutclustersList Text-sllEnterpriseId- = lens _sllEnterpriseId- (\ s a -> s{_sllEnterpriseId = a})---- | The ID of the page.-sllPageId :: Lens' StorelayoutclustersList Text-sllPageId- = lens _sllPageId (\ s a -> s{_sllPageId = a})--instance GoogleRequest StorelayoutclustersList where- type Rs StorelayoutclustersList =- StoreLayoutClustersListResponse- type Scopes StorelayoutclustersList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutclustersList'{..}- = go _sllEnterpriseId _sllPageId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutclustersListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Patch.hs
@@ -1,133 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates a cluster. This method supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.patch@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch- (- -- * REST Resource- StorelayoutclustersPatchResource-- -- * Creating a Request- , storelayoutclustersPatch- , StorelayoutclustersPatch-- -- * Request Lenses- , sppEnterpriseId- , sppPageId- , sppPayload- , sppClusterId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutclusters.patch@ method which the--- 'StorelayoutclustersPatch' request conforms to.-type StorelayoutclustersPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- "clusters" :>- Capture "clusterId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] StoreCluster :>- Patch '[JSON] StoreCluster---- | Updates a cluster. This method supports patch semantics.------ /See:/ 'storelayoutclustersPatch' smart constructor.-data StorelayoutclustersPatch =- StorelayoutclustersPatch'- { _sppEnterpriseId :: !Text- , _sppPageId :: !Text- , _sppPayload :: !StoreCluster- , _sppClusterId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutclustersPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sppEnterpriseId'------ * 'sppPageId'------ * 'sppPayload'------ * 'sppClusterId'-storelayoutclustersPatch- :: Text -- ^ 'sppEnterpriseId'- -> Text -- ^ 'sppPageId'- -> StoreCluster -- ^ 'sppPayload'- -> Text -- ^ 'sppClusterId'- -> StorelayoutclustersPatch-storelayoutclustersPatch pSppEnterpriseId_ pSppPageId_ pSppPayload_ pSppClusterId_ =- StorelayoutclustersPatch'- { _sppEnterpriseId = pSppEnterpriseId_- , _sppPageId = pSppPageId_- , _sppPayload = pSppPayload_- , _sppClusterId = pSppClusterId_- }----- | The ID of the enterprise.-sppEnterpriseId :: Lens' StorelayoutclustersPatch Text-sppEnterpriseId- = lens _sppEnterpriseId- (\ s a -> s{_sppEnterpriseId = a})---- | The ID of the page.-sppPageId :: Lens' StorelayoutclustersPatch Text-sppPageId- = lens _sppPageId (\ s a -> s{_sppPageId = a})---- | Multipart request metadata.-sppPayload :: Lens' StorelayoutclustersPatch StoreCluster-sppPayload- = lens _sppPayload (\ s a -> s{_sppPayload = a})---- | The ID of the cluster.-sppClusterId :: Lens' StorelayoutclustersPatch Text-sppClusterId- = lens _sppClusterId (\ s a -> s{_sppClusterId = a})--instance GoogleRequest StorelayoutclustersPatch where- type Rs StorelayoutclustersPatch = StoreCluster- type Scopes StorelayoutclustersPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutclustersPatch'{..}- = go _sppEnterpriseId _sppPageId _sppClusterId- (Just AltJSON)- _sppPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutclustersPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutclusters/Update.hs
@@ -1,134 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates a cluster.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutclusters.update@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update- (- -- * REST Resource- StorelayoutclustersUpdateResource-- -- * Creating a Request- , storelayoutclustersUpdate- , StorelayoutclustersUpdate-- -- * Request Lenses- , suuEnterpriseId- , suuPageId- , suuPayload- , suuClusterId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutclusters.update@ method which the--- 'StorelayoutclustersUpdate' request conforms to.-type StorelayoutclustersUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- "clusters" :>- Capture "clusterId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] StoreCluster :>- Put '[JSON] StoreCluster---- | Updates a cluster.------ /See:/ 'storelayoutclustersUpdate' smart constructor.-data StorelayoutclustersUpdate =- StorelayoutclustersUpdate'- { _suuEnterpriseId :: !Text- , _suuPageId :: !Text- , _suuPayload :: !StoreCluster- , _suuClusterId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutclustersUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'suuEnterpriseId'------ * 'suuPageId'------ * 'suuPayload'------ * 'suuClusterId'-storelayoutclustersUpdate- :: Text -- ^ 'suuEnterpriseId'- -> Text -- ^ 'suuPageId'- -> StoreCluster -- ^ 'suuPayload'- -> Text -- ^ 'suuClusterId'- -> StorelayoutclustersUpdate-storelayoutclustersUpdate pSuuEnterpriseId_ pSuuPageId_ pSuuPayload_ pSuuClusterId_ =- StorelayoutclustersUpdate'- { _suuEnterpriseId = pSuuEnterpriseId_- , _suuPageId = pSuuPageId_- , _suuPayload = pSuuPayload_- , _suuClusterId = pSuuClusterId_- }----- | The ID of the enterprise.-suuEnterpriseId :: Lens' StorelayoutclustersUpdate Text-suuEnterpriseId- = lens _suuEnterpriseId- (\ s a -> s{_suuEnterpriseId = a})---- | The ID of the page.-suuPageId :: Lens' StorelayoutclustersUpdate Text-suuPageId- = lens _suuPageId (\ s a -> s{_suuPageId = a})---- | Multipart request metadata.-suuPayload :: Lens' StorelayoutclustersUpdate StoreCluster-suuPayload- = lens _suuPayload (\ s a -> s{_suuPayload = a})---- | The ID of the cluster.-suuClusterId :: Lens' StorelayoutclustersUpdate Text-suuClusterId- = lens _suuClusterId (\ s a -> s{_suuClusterId = a})--instance GoogleRequest StorelayoutclustersUpdate- where- type Rs StorelayoutclustersUpdate = StoreCluster- type Scopes StorelayoutclustersUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutclustersUpdate'{..}- = go _suuEnterpriseId _suuPageId _suuClusterId- (Just AltJSON)- _suuPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutclustersUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Delete.hs
@@ -1,102 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Deletes a store page.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.delete@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete- (- -- * REST Resource- StorelayoutpagesDeleteResource-- -- * Creating a Request- , storelayoutpagesDelete- , StorelayoutpagesDelete-- -- * Request Lenses- , sdEnterpriseId- , sdPageId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutpages.delete@ method which the--- 'StorelayoutpagesDelete' request conforms to.-type StorelayoutpagesDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Deletes a store page.------ /See:/ 'storelayoutpagesDelete' smart constructor.-data StorelayoutpagesDelete =- StorelayoutpagesDelete'- { _sdEnterpriseId :: !Text- , _sdPageId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutpagesDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sdEnterpriseId'------ * 'sdPageId'-storelayoutpagesDelete- :: Text -- ^ 'sdEnterpriseId'- -> Text -- ^ 'sdPageId'- -> StorelayoutpagesDelete-storelayoutpagesDelete pSdEnterpriseId_ pSdPageId_ =- StorelayoutpagesDelete'- {_sdEnterpriseId = pSdEnterpriseId_, _sdPageId = pSdPageId_}----- | The ID of the enterprise.-sdEnterpriseId :: Lens' StorelayoutpagesDelete Text-sdEnterpriseId- = lens _sdEnterpriseId- (\ s a -> s{_sdEnterpriseId = a})---- | The ID of the page.-sdPageId :: Lens' StorelayoutpagesDelete Text-sdPageId = lens _sdPageId (\ s a -> s{_sdPageId = a})--instance GoogleRequest StorelayoutpagesDelete where- type Rs StorelayoutpagesDelete = ()- type Scopes StorelayoutpagesDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutpagesDelete'{..}- = go _sdEnterpriseId _sdPageId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutpagesDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Get.hs
@@ -1,102 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves details of a store page.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.get@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get- (- -- * REST Resource- StorelayoutpagesGetResource-- -- * Creating a Request- , storelayoutpagesGet- , StorelayoutpagesGet-- -- * Request Lenses- , sgEnterpriseId- , sgPageId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutpages.get@ method which the--- 'StorelayoutpagesGet' request conforms to.-type StorelayoutpagesGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] StorePage---- | Retrieves details of a store page.------ /See:/ 'storelayoutpagesGet' smart constructor.-data StorelayoutpagesGet =- StorelayoutpagesGet'- { _sgEnterpriseId :: !Text- , _sgPageId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutpagesGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sgEnterpriseId'------ * 'sgPageId'-storelayoutpagesGet- :: Text -- ^ 'sgEnterpriseId'- -> Text -- ^ 'sgPageId'- -> StorelayoutpagesGet-storelayoutpagesGet pSgEnterpriseId_ pSgPageId_ =- StorelayoutpagesGet'- {_sgEnterpriseId = pSgEnterpriseId_, _sgPageId = pSgPageId_}----- | The ID of the enterprise.-sgEnterpriseId :: Lens' StorelayoutpagesGet Text-sgEnterpriseId- = lens _sgEnterpriseId- (\ s a -> s{_sgEnterpriseId = a})---- | The ID of the page.-sgPageId :: Lens' StorelayoutpagesGet Text-sgPageId = lens _sgPageId (\ s a -> s{_sgPageId = a})--instance GoogleRequest StorelayoutpagesGet where- type Rs StorelayoutpagesGet = StorePage- type Scopes StorelayoutpagesGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutpagesGet'{..}- = go _sgEnterpriseId _sgPageId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutpagesGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Insert.hs
@@ -1,103 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Inserts a new store page.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.insert@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert- (- -- * REST Resource- StorelayoutpagesInsertResource-- -- * Creating a Request- , storelayoutpagesInsert- , StorelayoutpagesInsert-- -- * Request Lenses- , siEnterpriseId- , siPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutpages.insert@ method which the--- 'StorelayoutpagesInsert' request conforms to.-type StorelayoutpagesInsertResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] StorePage :> Post '[JSON] StorePage---- | Inserts a new store page.------ /See:/ 'storelayoutpagesInsert' smart constructor.-data StorelayoutpagesInsert =- StorelayoutpagesInsert'- { _siEnterpriseId :: !Text- , _siPayload :: !StorePage- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutpagesInsert' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'siEnterpriseId'------ * 'siPayload'-storelayoutpagesInsert- :: Text -- ^ 'siEnterpriseId'- -> StorePage -- ^ 'siPayload'- -> StorelayoutpagesInsert-storelayoutpagesInsert pSiEnterpriseId_ pSiPayload_ =- StorelayoutpagesInsert'- {_siEnterpriseId = pSiEnterpriseId_, _siPayload = pSiPayload_}----- | The ID of the enterprise.-siEnterpriseId :: Lens' StorelayoutpagesInsert Text-siEnterpriseId- = lens _siEnterpriseId- (\ s a -> s{_siEnterpriseId = a})---- | Multipart request metadata.-siPayload :: Lens' StorelayoutpagesInsert StorePage-siPayload- = lens _siPayload (\ s a -> s{_siPayload = a})--instance GoogleRequest StorelayoutpagesInsert where- type Rs StorelayoutpagesInsert = StorePage- type Scopes StorelayoutpagesInsert =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutpagesInsert'{..}- = go _siEnterpriseId (Just AltJSON) _siPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutpagesInsertResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/List.hs
@@ -1,93 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the details of all pages in the store.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.list@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List- (- -- * REST Resource- StorelayoutpagesListResource-- -- * Creating a Request- , storelayoutpagesList- , StorelayoutpagesList-- -- * Request Lenses- , slEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutpages.list@ method which the--- 'StorelayoutpagesList' request conforms to.-type StorelayoutpagesListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- QueryParam "alt" AltJSON :>- Get '[JSON] StoreLayoutPagesListResponse---- | Retrieves the details of all pages in the store.------ /See:/ 'storelayoutpagesList' smart constructor.-newtype StorelayoutpagesList =- StorelayoutpagesList'- { _slEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutpagesList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'slEnterpriseId'-storelayoutpagesList- :: Text -- ^ 'slEnterpriseId'- -> StorelayoutpagesList-storelayoutpagesList pSlEnterpriseId_ =- StorelayoutpagesList' {_slEnterpriseId = pSlEnterpriseId_}----- | The ID of the enterprise.-slEnterpriseId :: Lens' StorelayoutpagesList Text-slEnterpriseId- = lens _slEnterpriseId- (\ s a -> s{_slEnterpriseId = a})--instance GoogleRequest StorelayoutpagesList where- type Rs StorelayoutpagesList =- StoreLayoutPagesListResponse- type Scopes StorelayoutpagesList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutpagesList'{..}- = go _slEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutpagesListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Patch.hs
@@ -1,119 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates the content of a store page. This method supports patch--- semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.patch@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch- (- -- * REST Resource- StorelayoutpagesPatchResource-- -- * Creating a Request- , storelayoutpagesPatch- , StorelayoutpagesPatch-- -- * Request Lenses- , spEnterpriseId- , spPageId- , spPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutpages.patch@ method which the--- 'StorelayoutpagesPatch' request conforms to.-type StorelayoutpagesPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] StorePage :> Patch '[JSON] StorePage---- | Updates the content of a store page. This method supports patch--- semantics.------ /See:/ 'storelayoutpagesPatch' smart constructor.-data StorelayoutpagesPatch =- StorelayoutpagesPatch'- { _spEnterpriseId :: !Text- , _spPageId :: !Text- , _spPayload :: !StorePage- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutpagesPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'spEnterpriseId'------ * 'spPageId'------ * 'spPayload'-storelayoutpagesPatch- :: Text -- ^ 'spEnterpriseId'- -> Text -- ^ 'spPageId'- -> StorePage -- ^ 'spPayload'- -> StorelayoutpagesPatch-storelayoutpagesPatch pSpEnterpriseId_ pSpPageId_ pSpPayload_ =- StorelayoutpagesPatch'- { _spEnterpriseId = pSpEnterpriseId_- , _spPageId = pSpPageId_- , _spPayload = pSpPayload_- }----- | The ID of the enterprise.-spEnterpriseId :: Lens' StorelayoutpagesPatch Text-spEnterpriseId- = lens _spEnterpriseId- (\ s a -> s{_spEnterpriseId = a})---- | The ID of the page.-spPageId :: Lens' StorelayoutpagesPatch Text-spPageId = lens _spPageId (\ s a -> s{_spPageId = a})---- | Multipart request metadata.-spPayload :: Lens' StorelayoutpagesPatch StorePage-spPayload- = lens _spPayload (\ s a -> s{_spPayload = a})--instance GoogleRequest StorelayoutpagesPatch where- type Rs StorelayoutpagesPatch = StorePage- type Scopes StorelayoutpagesPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutpagesPatch'{..}- = go _spEnterpriseId _spPageId (Just AltJSON)- _spPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutpagesPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Storelayoutpages/Update.hs
@@ -1,117 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates the content of a store page.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.storelayoutpages.update@.-module Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update- (- -- * REST Resource- StorelayoutpagesUpdateResource-- -- * Creating a Request- , storelayoutpagesUpdate- , StorelayoutpagesUpdate-- -- * Request Lenses- , suEnterpriseId- , suPageId- , suPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.storelayoutpages.update@ method which the--- 'StorelayoutpagesUpdate' request conforms to.-type StorelayoutpagesUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "storeLayout" :>- "pages" :>- Capture "pageId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] StorePage :> Put '[JSON] StorePage---- | Updates the content of a store page.------ /See:/ 'storelayoutpagesUpdate' smart constructor.-data StorelayoutpagesUpdate =- StorelayoutpagesUpdate'- { _suEnterpriseId :: !Text- , _suPageId :: !Text- , _suPayload :: !StorePage- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StorelayoutpagesUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'suEnterpriseId'------ * 'suPageId'------ * 'suPayload'-storelayoutpagesUpdate- :: Text -- ^ 'suEnterpriseId'- -> Text -- ^ 'suPageId'- -> StorePage -- ^ 'suPayload'- -> StorelayoutpagesUpdate-storelayoutpagesUpdate pSuEnterpriseId_ pSuPageId_ pSuPayload_ =- StorelayoutpagesUpdate'- { _suEnterpriseId = pSuEnterpriseId_- , _suPageId = pSuPageId_- , _suPayload = pSuPayload_- }----- | The ID of the enterprise.-suEnterpriseId :: Lens' StorelayoutpagesUpdate Text-suEnterpriseId- = lens _suEnterpriseId- (\ s a -> s{_suEnterpriseId = a})---- | The ID of the page.-suPageId :: Lens' StorelayoutpagesUpdate Text-suPageId = lens _suPageId (\ s a -> s{_suPageId = a})---- | Multipart request metadata.-suPayload :: Lens' StorelayoutpagesUpdate StorePage-suPayload- = lens _suPayload (\ s a -> s{_suPayload = a})--instance GoogleRequest StorelayoutpagesUpdate where- type Rs StorelayoutpagesUpdate = StorePage- type Scopes StorelayoutpagesUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient StorelayoutpagesUpdate'{..}- = go _suEnterpriseId _suPageId (Just AltJSON)- _suPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy StorelayoutpagesUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/Delete.hs
@@ -1,99 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Deleted an EMM-managed user.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.delete@.-module Network.Google.Resource.AndroidEnterprise.Users.Delete- (- -- * REST Resource- UsersDeleteResource-- -- * Creating a Request- , usersDelete- , UsersDelete-- -- * Request Lenses- , udEnterpriseId- , udUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.delete@ method which the--- 'UsersDelete' request conforms to.-type UsersDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Deleted an EMM-managed user.------ /See:/ 'usersDelete' smart constructor.-data UsersDelete =- UsersDelete'- { _udEnterpriseId :: !Text- , _udUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'udEnterpriseId'------ * 'udUserId'-usersDelete- :: Text -- ^ 'udEnterpriseId'- -> Text -- ^ 'udUserId'- -> UsersDelete-usersDelete pUdEnterpriseId_ pUdUserId_ =- UsersDelete' {_udEnterpriseId = pUdEnterpriseId_, _udUserId = pUdUserId_}----- | The ID of the enterprise.-udEnterpriseId :: Lens' UsersDelete Text-udEnterpriseId- = lens _udEnterpriseId- (\ s a -> s{_udEnterpriseId = a})---- | The ID of the user.-udUserId :: Lens' UsersDelete Text-udUserId = lens _udUserId (\ s a -> s{_udUserId = a})--instance GoogleRequest UsersDelete where- type Rs UsersDelete = ()- type Scopes UsersDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersDelete'{..}- = go _udEnterpriseId _udUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy UsersDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateAuthenticationToken.hs
@@ -1,116 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.GenerateAuthenticationToken--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Generates an authentication token which the device policy client can use--- to provision the given EMM-managed user account on a device. The--- generated token is single-use and expires after a few minutes. You can--- provision a maximum of 10 devices per user. This call only works with--- EMM-managed accounts.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateAuthenticationToken@.-module Network.Google.Resource.AndroidEnterprise.Users.GenerateAuthenticationToken- (- -- * REST Resource- UsersGenerateAuthenticationTokenResource-- -- * Creating a Request- , usersGenerateAuthenticationToken- , UsersGenerateAuthenticationToken-- -- * Request Lenses- , ugatEnterpriseId- , ugatUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.generateAuthenticationToken@ method which the--- 'UsersGenerateAuthenticationToken' request conforms to.-type UsersGenerateAuthenticationTokenResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "authenticationToken" :>- QueryParam "alt" AltJSON :>- Post '[JSON] AuthenticationToken---- | Generates an authentication token which the device policy client can use--- to provision the given EMM-managed user account on a device. The--- generated token is single-use and expires after a few minutes. You can--- provision a maximum of 10 devices per user. This call only works with--- EMM-managed accounts.------ /See:/ 'usersGenerateAuthenticationToken' smart constructor.-data UsersGenerateAuthenticationToken =- UsersGenerateAuthenticationToken'- { _ugatEnterpriseId :: !Text- , _ugatUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersGenerateAuthenticationToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ugatEnterpriseId'------ * 'ugatUserId'-usersGenerateAuthenticationToken- :: Text -- ^ 'ugatEnterpriseId'- -> Text -- ^ 'ugatUserId'- -> UsersGenerateAuthenticationToken-usersGenerateAuthenticationToken pUgatEnterpriseId_ pUgatUserId_ =- UsersGenerateAuthenticationToken'- {_ugatEnterpriseId = pUgatEnterpriseId_, _ugatUserId = pUgatUserId_}----- | The ID of the enterprise.-ugatEnterpriseId :: Lens' UsersGenerateAuthenticationToken Text-ugatEnterpriseId- = lens _ugatEnterpriseId- (\ s a -> s{_ugatEnterpriseId = a})---- | The ID of the user.-ugatUserId :: Lens' UsersGenerateAuthenticationToken Text-ugatUserId- = lens _ugatUserId (\ s a -> s{_ugatUserId = a})--instance GoogleRequest- UsersGenerateAuthenticationToken- where- type Rs UsersGenerateAuthenticationToken =- AuthenticationToken- type Scopes UsersGenerateAuthenticationToken =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersGenerateAuthenticationToken'{..}- = go _ugatEnterpriseId _ugatUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy ::- Proxy UsersGenerateAuthenticationTokenResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/GenerateToken.hs
@@ -1,109 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.GenerateToken--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Generates a token (activation code) to allow this user to configure--- their managed account in the Android Setup Wizard. Revokes any--- previously generated token. This call only works with Google managed--- accounts.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.generateToken@.-module Network.Google.Resource.AndroidEnterprise.Users.GenerateToken- (- -- * REST Resource- UsersGenerateTokenResource-- -- * Creating a Request- , usersGenerateToken- , UsersGenerateToken-- -- * Request Lenses- , ugtEnterpriseId- , ugtUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.generateToken@ method which the--- 'UsersGenerateToken' request conforms to.-type UsersGenerateTokenResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "token" :>- QueryParam "alt" AltJSON :> Post '[JSON] UserToken---- | Generates a token (activation code) to allow this user to configure--- their managed account in the Android Setup Wizard. Revokes any--- previously generated token. This call only works with Google managed--- accounts.------ /See:/ 'usersGenerateToken' smart constructor.-data UsersGenerateToken =- UsersGenerateToken'- { _ugtEnterpriseId :: !Text- , _ugtUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersGenerateToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ugtEnterpriseId'------ * 'ugtUserId'-usersGenerateToken- :: Text -- ^ 'ugtEnterpriseId'- -> Text -- ^ 'ugtUserId'- -> UsersGenerateToken-usersGenerateToken pUgtEnterpriseId_ pUgtUserId_ =- UsersGenerateToken'- {_ugtEnterpriseId = pUgtEnterpriseId_, _ugtUserId = pUgtUserId_}----- | The ID of the enterprise.-ugtEnterpriseId :: Lens' UsersGenerateToken Text-ugtEnterpriseId- = lens _ugtEnterpriseId- (\ s a -> s{_ugtEnterpriseId = a})---- | The ID of the user.-ugtUserId :: Lens' UsersGenerateToken Text-ugtUserId- = lens _ugtUserId (\ s a -> s{_ugtUserId = a})--instance GoogleRequest UsersGenerateToken where- type Rs UsersGenerateToken = UserToken- type Scopes UsersGenerateToken =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersGenerateToken'{..}- = go _ugtEnterpriseId _ugtUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy UsersGenerateTokenResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/Get.hs
@@ -1,99 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves a user\'s details.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.get@.-module Network.Google.Resource.AndroidEnterprise.Users.Get- (- -- * REST Resource- UsersGetResource-- -- * Creating a Request- , usersGet- , UsersGet-- -- * Request Lenses- , ugEnterpriseId- , ugUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.get@ method which the--- 'UsersGet' request conforms to.-type UsersGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] User---- | Retrieves a user\'s details.------ /See:/ 'usersGet' smart constructor.-data UsersGet =- UsersGet'- { _ugEnterpriseId :: !Text- , _ugUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ugEnterpriseId'------ * 'ugUserId'-usersGet- :: Text -- ^ 'ugEnterpriseId'- -> Text -- ^ 'ugUserId'- -> UsersGet-usersGet pUgEnterpriseId_ pUgUserId_ =- UsersGet' {_ugEnterpriseId = pUgEnterpriseId_, _ugUserId = pUgUserId_}----- | The ID of the enterprise.-ugEnterpriseId :: Lens' UsersGet Text-ugEnterpriseId- = lens _ugEnterpriseId- (\ s a -> s{_ugEnterpriseId = a})---- | The ID of the user.-ugUserId :: Lens' UsersGet Text-ugUserId = lens _ugUserId (\ s a -> s{_ugUserId = a})--instance GoogleRequest UsersGet where- type Rs UsersGet = User- type Scopes UsersGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersGet'{..}- = go _ugEnterpriseId _ugUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy UsersGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/GetAvailableProductSet.hs
@@ -1,104 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the set of products a user is entitled to access.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.getAvailableProductSet@.-module Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet- (- -- * REST Resource- UsersGetAvailableProductSetResource-- -- * Creating a Request- , usersGetAvailableProductSet- , UsersGetAvailableProductSet-- -- * Request Lenses- , ugapsEnterpriseId- , ugapsUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.getAvailableProductSet@ method which the--- 'UsersGetAvailableProductSet' request conforms to.-type UsersGetAvailableProductSetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "availableProductSet" :>- QueryParam "alt" AltJSON :> Get '[JSON] ProductSet---- | Retrieves the set of products a user is entitled to access.------ /See:/ 'usersGetAvailableProductSet' smart constructor.-data UsersGetAvailableProductSet =- UsersGetAvailableProductSet'- { _ugapsEnterpriseId :: !Text- , _ugapsUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersGetAvailableProductSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ugapsEnterpriseId'------ * 'ugapsUserId'-usersGetAvailableProductSet- :: Text -- ^ 'ugapsEnterpriseId'- -> Text -- ^ 'ugapsUserId'- -> UsersGetAvailableProductSet-usersGetAvailableProductSet pUgapsEnterpriseId_ pUgapsUserId_ =- UsersGetAvailableProductSet'- {_ugapsEnterpriseId = pUgapsEnterpriseId_, _ugapsUserId = pUgapsUserId_}----- | The ID of the enterprise.-ugapsEnterpriseId :: Lens' UsersGetAvailableProductSet Text-ugapsEnterpriseId- = lens _ugapsEnterpriseId- (\ s a -> s{_ugapsEnterpriseId = a})---- | The ID of the user.-ugapsUserId :: Lens' UsersGetAvailableProductSet Text-ugapsUserId- = lens _ugapsUserId (\ s a -> s{_ugapsUserId = a})--instance GoogleRequest UsersGetAvailableProductSet- where- type Rs UsersGetAvailableProductSet = ProductSet- type Scopes UsersGetAvailableProductSet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersGetAvailableProductSet'{..}- = go _ugapsEnterpriseId _ugapsUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy UsersGetAvailableProductSetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/Insert.hs
@@ -1,108 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.Insert--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Creates a new EMM-managed user. The Users resource passed in the body of--- the request should include an accountIdentifier and an accountType. If a--- corresponding user already exists with the same account identifier, the--- user will be updated with the resource. In this case only the--- displayName field can be changed.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.insert@.-module Network.Google.Resource.AndroidEnterprise.Users.Insert- (- -- * REST Resource- UsersInsertResource-- -- * Creating a Request- , usersInsert- , UsersInsert-- -- * Request Lenses- , uiEnterpriseId- , uiPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.insert@ method which the--- 'UsersInsert' request conforms to.-type UsersInsertResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] User :> Post '[JSON] User---- | Creates a new EMM-managed user. The Users resource passed in the body of--- the request should include an accountIdentifier and an accountType. If a--- corresponding user already exists with the same account identifier, the--- user will be updated with the resource. In this case only the--- displayName field can be changed.------ /See:/ 'usersInsert' smart constructor.-data UsersInsert =- UsersInsert'- { _uiEnterpriseId :: !Text- , _uiPayload :: !User- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersInsert' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'uiEnterpriseId'------ * 'uiPayload'-usersInsert- :: Text -- ^ 'uiEnterpriseId'- -> User -- ^ 'uiPayload'- -> UsersInsert-usersInsert pUiEnterpriseId_ pUiPayload_ =- UsersInsert' {_uiEnterpriseId = pUiEnterpriseId_, _uiPayload = pUiPayload_}----- | The ID of the enterprise.-uiEnterpriseId :: Lens' UsersInsert Text-uiEnterpriseId- = lens _uiEnterpriseId- (\ s a -> s{_uiEnterpriseId = a})---- | Multipart request metadata.-uiPayload :: Lens' UsersInsert User-uiPayload- = lens _uiPayload (\ s a -> s{_uiPayload = a})--instance GoogleRequest UsersInsert where- type Rs UsersInsert = User- type Scopes UsersInsert =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersInsert'{..}- = go _uiEnterpriseId (Just AltJSON) _uiPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy UsersInsertResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/List.hs
@@ -1,106 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Looks up a user by primary email address. This is only supported for--- Google-managed users. Lookup of the id is not needed for EMM-managed--- users because the id is already returned in the result of the--- Users.insert call.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.list@.-module Network.Google.Resource.AndroidEnterprise.Users.List- (- -- * REST Resource- UsersListResource-- -- * Creating a Request- , usersList- , UsersList-- -- * Request Lenses- , ulEmail- , ulEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.list@ method which the--- 'UsersList' request conforms to.-type UsersListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- QueryParam "email" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] UsersListResponse---- | Looks up a user by primary email address. This is only supported for--- Google-managed users. Lookup of the id is not needed for EMM-managed--- users because the id is already returned in the result of the--- Users.insert call.------ /See:/ 'usersList' smart constructor.-data UsersList =- UsersList'- { _ulEmail :: !Text- , _ulEnterpriseId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ulEmail'------ * 'ulEnterpriseId'-usersList- :: Text -- ^ 'ulEmail'- -> Text -- ^ 'ulEnterpriseId'- -> UsersList-usersList pUlEmail_ pUlEnterpriseId_ =- UsersList' {_ulEmail = pUlEmail_, _ulEnterpriseId = pUlEnterpriseId_}----- | The exact primary email address of the user to look up.-ulEmail :: Lens' UsersList Text-ulEmail = lens _ulEmail (\ s a -> s{_ulEmail = a})---- | The ID of the enterprise.-ulEnterpriseId :: Lens' UsersList Text-ulEnterpriseId- = lens _ulEnterpriseId- (\ s a -> s{_ulEnterpriseId = a})--instance GoogleRequest UsersList where- type Rs UsersList = UsersListResponse- type Scopes UsersList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersList'{..}- = go _ulEnterpriseId (Just _ulEmail) (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy UsersListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/Patch.hs
@@ -1,123 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates the details of an EMM-managed user. Can be used with EMM-managed--- users only (not Google managed users). Pass the new details in the Users--- resource in the request body. Only the displayName field can be changed.--- Other fields must either be unset or have the currently active value.--- This method supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.patch@.-module Network.Google.Resource.AndroidEnterprise.Users.Patch- (- -- * REST Resource- UsersPatchResource-- -- * Creating a Request- , usersPatch- , UsersPatch-- -- * Request Lenses- , upEnterpriseId- , upPayload- , upUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.patch@ method which the--- 'UsersPatch' request conforms to.-type UsersPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] User :> Patch '[JSON] User---- | Updates the details of an EMM-managed user. Can be used with EMM-managed--- users only (not Google managed users). Pass the new details in the Users--- resource in the request body. Only the displayName field can be changed.--- Other fields must either be unset or have the currently active value.--- This method supports patch semantics.------ /See:/ 'usersPatch' smart constructor.-data UsersPatch =- UsersPatch'- { _upEnterpriseId :: !Text- , _upPayload :: !User- , _upUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'upEnterpriseId'------ * 'upPayload'------ * 'upUserId'-usersPatch- :: Text -- ^ 'upEnterpriseId'- -> User -- ^ 'upPayload'- -> Text -- ^ 'upUserId'- -> UsersPatch-usersPatch pUpEnterpriseId_ pUpPayload_ pUpUserId_ =- UsersPatch'- { _upEnterpriseId = pUpEnterpriseId_- , _upPayload = pUpPayload_- , _upUserId = pUpUserId_- }----- | The ID of the enterprise.-upEnterpriseId :: Lens' UsersPatch Text-upEnterpriseId- = lens _upEnterpriseId- (\ s a -> s{_upEnterpriseId = a})---- | Multipart request metadata.-upPayload :: Lens' UsersPatch User-upPayload- = lens _upPayload (\ s a -> s{_upPayload = a})---- | The ID of the user.-upUserId :: Lens' UsersPatch Text-upUserId = lens _upUserId (\ s a -> s{_upUserId = a})--instance GoogleRequest UsersPatch where- type Rs UsersPatch = User- type Scopes UsersPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersPatch'{..}- = go _upEnterpriseId _upUserId (Just AltJSON)- _upPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy UsersPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeDeviceAccess.hs
@@ -1,107 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.RevokeDeviceAccess--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Revokes access to all devices currently provisioned to the user. The--- user will no longer be able to use the managed Play store on any of--- their managed devices. This call only works with EMM-managed accounts.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.revokeDeviceAccess@.-module Network.Google.Resource.AndroidEnterprise.Users.RevokeDeviceAccess- (- -- * REST Resource- UsersRevokeDeviceAccessResource-- -- * Creating a Request- , usersRevokeDeviceAccess- , UsersRevokeDeviceAccess-- -- * Request Lenses- , urdaEnterpriseId- , urdaUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.revokeDeviceAccess@ method which the--- 'UsersRevokeDeviceAccess' request conforms to.-type UsersRevokeDeviceAccessResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "deviceAccess" :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Revokes access to all devices currently provisioned to the user. The--- user will no longer be able to use the managed Play store on any of--- their managed devices. This call only works with EMM-managed accounts.------ /See:/ 'usersRevokeDeviceAccess' smart constructor.-data UsersRevokeDeviceAccess =- UsersRevokeDeviceAccess'- { _urdaEnterpriseId :: !Text- , _urdaUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersRevokeDeviceAccess' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'urdaEnterpriseId'------ * 'urdaUserId'-usersRevokeDeviceAccess- :: Text -- ^ 'urdaEnterpriseId'- -> Text -- ^ 'urdaUserId'- -> UsersRevokeDeviceAccess-usersRevokeDeviceAccess pUrdaEnterpriseId_ pUrdaUserId_ =- UsersRevokeDeviceAccess'- {_urdaEnterpriseId = pUrdaEnterpriseId_, _urdaUserId = pUrdaUserId_}----- | The ID of the enterprise.-urdaEnterpriseId :: Lens' UsersRevokeDeviceAccess Text-urdaEnterpriseId- = lens _urdaEnterpriseId- (\ s a -> s{_urdaEnterpriseId = a})---- | The ID of the user.-urdaUserId :: Lens' UsersRevokeDeviceAccess Text-urdaUserId- = lens _urdaUserId (\ s a -> s{_urdaUserId = a})--instance GoogleRequest UsersRevokeDeviceAccess where- type Rs UsersRevokeDeviceAccess = ()- type Scopes UsersRevokeDeviceAccess =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersRevokeDeviceAccess'{..}- = go _urdaEnterpriseId _urdaUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy UsersRevokeDeviceAccessResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/RevokeToken.hs
@@ -1,103 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.RevokeToken--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Revokes a previously generated token (activation code) for the user.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.revokeToken@.-module Network.Google.Resource.AndroidEnterprise.Users.RevokeToken- (- -- * REST Resource- UsersRevokeTokenResource-- -- * Creating a Request- , usersRevokeToken- , UsersRevokeToken-- -- * Request Lenses- , urtEnterpriseId- , urtUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.revokeToken@ method which the--- 'UsersRevokeToken' request conforms to.-type UsersRevokeTokenResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "token" :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Revokes a previously generated token (activation code) for the user.------ /See:/ 'usersRevokeToken' smart constructor.-data UsersRevokeToken =- UsersRevokeToken'- { _urtEnterpriseId :: !Text- , _urtUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersRevokeToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'urtEnterpriseId'------ * 'urtUserId'-usersRevokeToken- :: Text -- ^ 'urtEnterpriseId'- -> Text -- ^ 'urtUserId'- -> UsersRevokeToken-usersRevokeToken pUrtEnterpriseId_ pUrtUserId_ =- UsersRevokeToken'- {_urtEnterpriseId = pUrtEnterpriseId_, _urtUserId = pUrtUserId_}----- | The ID of the enterprise.-urtEnterpriseId :: Lens' UsersRevokeToken Text-urtEnterpriseId- = lens _urtEnterpriseId- (\ s a -> s{_urtEnterpriseId = a})---- | The ID of the user.-urtUserId :: Lens' UsersRevokeToken Text-urtUserId- = lens _urtUserId (\ s a -> s{_urtUserId = a})--instance GoogleRequest UsersRevokeToken where- type Rs UsersRevokeToken = ()- type Scopes UsersRevokeToken =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersRevokeToken'{..}- = go _urtEnterpriseId _urtUserId (Just AltJSON)- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy UsersRevokeTokenResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/SetAvailableProductSet.hs
@@ -1,125 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Modifies the set of products that a user is entitled to access (referred--- to as whitelisted products). Only products that are approved or products--- that were previously approved (products with revoked approval) can be--- whitelisted.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.setAvailableProductSet@.-module Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet- (- -- * REST Resource- UsersSetAvailableProductSetResource-- -- * Creating a Request- , usersSetAvailableProductSet- , UsersSetAvailableProductSet-- -- * Request Lenses- , usapsEnterpriseId- , usapsPayload- , usapsUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.setAvailableProductSet@ method which the--- 'UsersSetAvailableProductSet' request conforms to.-type UsersSetAvailableProductSetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- "availableProductSet" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] ProductSet :> Put '[JSON] ProductSet---- | Modifies the set of products that a user is entitled to access (referred--- to as whitelisted products). Only products that are approved or products--- that were previously approved (products with revoked approval) can be--- whitelisted.------ /See:/ 'usersSetAvailableProductSet' smart constructor.-data UsersSetAvailableProductSet =- UsersSetAvailableProductSet'- { _usapsEnterpriseId :: !Text- , _usapsPayload :: !ProductSet- , _usapsUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersSetAvailableProductSet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'usapsEnterpriseId'------ * 'usapsPayload'------ * 'usapsUserId'-usersSetAvailableProductSet- :: Text -- ^ 'usapsEnterpriseId'- -> ProductSet -- ^ 'usapsPayload'- -> Text -- ^ 'usapsUserId'- -> UsersSetAvailableProductSet-usersSetAvailableProductSet pUsapsEnterpriseId_ pUsapsPayload_ pUsapsUserId_ =- UsersSetAvailableProductSet'- { _usapsEnterpriseId = pUsapsEnterpriseId_- , _usapsPayload = pUsapsPayload_- , _usapsUserId = pUsapsUserId_- }----- | The ID of the enterprise.-usapsEnterpriseId :: Lens' UsersSetAvailableProductSet Text-usapsEnterpriseId- = lens _usapsEnterpriseId- (\ s a -> s{_usapsEnterpriseId = a})---- | Multipart request metadata.-usapsPayload :: Lens' UsersSetAvailableProductSet ProductSet-usapsPayload- = lens _usapsPayload (\ s a -> s{_usapsPayload = a})---- | The ID of the user.-usapsUserId :: Lens' UsersSetAvailableProductSet Text-usapsUserId- = lens _usapsUserId (\ s a -> s{_usapsUserId = a})--instance GoogleRequest UsersSetAvailableProductSet- where- type Rs UsersSetAvailableProductSet = ProductSet- type Scopes UsersSetAvailableProductSet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersSetAvailableProductSet'{..}- = go _usapsEnterpriseId _usapsUserId (Just AltJSON)- _usapsPayload- androidEnterpriseService- where go- = buildClient- (Proxy :: Proxy UsersSetAvailableProductSetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/Users/Update.hs
@@ -1,121 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.Users.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates the details of an EMM-managed user. Can be used with EMM-managed--- users only (not Google managed users). Pass the new details in the Users--- resource in the request body. Only the displayName field can be changed.--- Other fields must either be unset or have the currently active value.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.users.update@.-module Network.Google.Resource.AndroidEnterprise.Users.Update- (- -- * REST Resource- UsersUpdateResource-- -- * Creating a Request- , usersUpdate- , UsersUpdate-- -- * Request Lenses- , uuEnterpriseId- , uuPayload- , uuUserId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.users.update@ method which the--- 'UsersUpdate' request conforms to.-type UsersUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "users" :>- Capture "userId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] User :> Put '[JSON] User---- | Updates the details of an EMM-managed user. Can be used with EMM-managed--- users only (not Google managed users). Pass the new details in the Users--- resource in the request body. Only the displayName field can be changed.--- Other fields must either be unset or have the currently active value.------ /See:/ 'usersUpdate' smart constructor.-data UsersUpdate =- UsersUpdate'- { _uuEnterpriseId :: !Text- , _uuPayload :: !User- , _uuUserId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UsersUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'uuEnterpriseId'------ * 'uuPayload'------ * 'uuUserId'-usersUpdate- :: Text -- ^ 'uuEnterpriseId'- -> User -- ^ 'uuPayload'- -> Text -- ^ 'uuUserId'- -> UsersUpdate-usersUpdate pUuEnterpriseId_ pUuPayload_ pUuUserId_ =- UsersUpdate'- { _uuEnterpriseId = pUuEnterpriseId_- , _uuPayload = pUuPayload_- , _uuUserId = pUuUserId_- }----- | The ID of the enterprise.-uuEnterpriseId :: Lens' UsersUpdate Text-uuEnterpriseId- = lens _uuEnterpriseId- (\ s a -> s{_uuEnterpriseId = a})---- | Multipart request metadata.-uuPayload :: Lens' UsersUpdate User-uuPayload- = lens _uuPayload (\ s a -> s{_uuPayload = a})---- | The ID of the user.-uuUserId :: Lens' UsersUpdate Text-uuUserId = lens _uuUserId (\ s a -> s{_uuUserId = a})--instance GoogleRequest UsersUpdate where- type Rs UsersUpdate = User- type Scopes UsersUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient UsersUpdate'{..}- = go _uuEnterpriseId _uuUserId (Just AltJSON)- _uuPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy UsersUpdateResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/WebApps/Delete.hs
@@ -1,101 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.WebApps.Delete--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Deletes an existing web app.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.delete@.-module Network.Google.Resource.AndroidEnterprise.WebApps.Delete- (- -- * REST Resource- WebAppsDeleteResource-- -- * Creating a Request- , webAppsDelete- , WebAppsDelete-- -- * Request Lenses- , wadWebAppId- , wadEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.webapps.delete@ method which the--- 'WebAppsDelete' request conforms to.-type WebAppsDeleteResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "webApps" :>- Capture "webAppId" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] ()---- | Deletes an existing web app.------ /See:/ 'webAppsDelete' smart constructor.-data WebAppsDelete =- WebAppsDelete'- { _wadWebAppId :: !Text- , _wadEnterpriseId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wadWebAppId'------ * 'wadEnterpriseId'-webAppsDelete- :: Text -- ^ 'wadWebAppId'- -> Text -- ^ 'wadEnterpriseId'- -> WebAppsDelete-webAppsDelete pWadWebAppId_ pWadEnterpriseId_ =- WebAppsDelete'- {_wadWebAppId = pWadWebAppId_, _wadEnterpriseId = pWadEnterpriseId_}----- | The ID of the web app.-wadWebAppId :: Lens' WebAppsDelete Text-wadWebAppId- = lens _wadWebAppId (\ s a -> s{_wadWebAppId = a})---- | The ID of the enterprise.-wadEnterpriseId :: Lens' WebAppsDelete Text-wadEnterpriseId- = lens _wadEnterpriseId- (\ s a -> s{_wadEnterpriseId = a})--instance GoogleRequest WebAppsDelete where- type Rs WebAppsDelete = ()- type Scopes WebAppsDelete =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient WebAppsDelete'{..}- = go _wadEnterpriseId _wadWebAppId (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy WebAppsDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/WebApps/Get.hs
@@ -1,101 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.WebApps.Get--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Gets an existing web app.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.get@.-module Network.Google.Resource.AndroidEnterprise.WebApps.Get- (- -- * REST Resource- WebAppsGetResource-- -- * Creating a Request- , webAppsGet- , WebAppsGet-- -- * Request Lenses- , wagWebAppId- , wagEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.webapps.get@ method which the--- 'WebAppsGet' request conforms to.-type WebAppsGetResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "webApps" :>- Capture "webAppId" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] WebApp---- | Gets an existing web app.------ /See:/ 'webAppsGet' smart constructor.-data WebAppsGet =- WebAppsGet'- { _wagWebAppId :: !Text- , _wagEnterpriseId :: !Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wagWebAppId'------ * 'wagEnterpriseId'-webAppsGet- :: Text -- ^ 'wagWebAppId'- -> Text -- ^ 'wagEnterpriseId'- -> WebAppsGet-webAppsGet pWagWebAppId_ pWagEnterpriseId_ =- WebAppsGet'- {_wagWebAppId = pWagWebAppId_, _wagEnterpriseId = pWagEnterpriseId_}----- | The ID of the web app.-wagWebAppId :: Lens' WebAppsGet Text-wagWebAppId- = lens _wagWebAppId (\ s a -> s{_wagWebAppId = a})---- | The ID of the enterprise.-wagEnterpriseId :: Lens' WebAppsGet Text-wagEnterpriseId- = lens _wagEnterpriseId- (\ s a -> s{_wagEnterpriseId = a})--instance GoogleRequest WebAppsGet where- type Rs WebAppsGet = WebApp- type Scopes WebAppsGet =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient WebAppsGet'{..}- = go _wagEnterpriseId _wagWebAppId (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy WebAppsGetResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/WebApps/Insert.hs
@@ -1,101 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.WebApps.Insert--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Creates a new web app for the enterprise.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.insert@.-module Network.Google.Resource.AndroidEnterprise.WebApps.Insert- (- -- * REST Resource- WebAppsInsertResource-- -- * Creating a Request- , webAppsInsert- , WebAppsInsert-- -- * Request Lenses- , waiEnterpriseId- , waiPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.webapps.insert@ method which the--- 'WebAppsInsert' request conforms to.-type WebAppsInsertResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "webApps" :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] WebApp :> Post '[JSON] WebApp---- | Creates a new web app for the enterprise.------ /See:/ 'webAppsInsert' smart constructor.-data WebAppsInsert =- WebAppsInsert'- { _waiEnterpriseId :: !Text- , _waiPayload :: !WebApp- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppsInsert' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'waiEnterpriseId'------ * 'waiPayload'-webAppsInsert- :: Text -- ^ 'waiEnterpriseId'- -> WebApp -- ^ 'waiPayload'- -> WebAppsInsert-webAppsInsert pWaiEnterpriseId_ pWaiPayload_ =- WebAppsInsert'- {_waiEnterpriseId = pWaiEnterpriseId_, _waiPayload = pWaiPayload_}----- | The ID of the enterprise.-waiEnterpriseId :: Lens' WebAppsInsert Text-waiEnterpriseId- = lens _waiEnterpriseId- (\ s a -> s{_waiEnterpriseId = a})---- | Multipart request metadata.-waiPayload :: Lens' WebAppsInsert WebApp-waiPayload- = lens _waiPayload (\ s a -> s{_waiPayload = a})--instance GoogleRequest WebAppsInsert where- type Rs WebAppsInsert = WebApp- type Scopes WebAppsInsert =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient WebAppsInsert'{..}- = go _waiEnterpriseId (Just AltJSON) _waiPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy WebAppsInsertResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/WebApps/List.hs
@@ -1,90 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.WebApps.List--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Retrieves the details of all web apps for a given enterprise.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.list@.-module Network.Google.Resource.AndroidEnterprise.WebApps.List- (- -- * REST Resource- WebAppsListResource-- -- * Creating a Request- , webAppsList- , WebAppsList-- -- * Request Lenses- , walEnterpriseId- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.webapps.list@ method which the--- 'WebAppsList' request conforms to.-type WebAppsListResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "webApps" :>- QueryParam "alt" AltJSON :>- Get '[JSON] WebAppsListResponse---- | Retrieves the details of all web apps for a given enterprise.------ /See:/ 'webAppsList' smart constructor.-newtype WebAppsList =- WebAppsList'- { _walEnterpriseId :: Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'walEnterpriseId'-webAppsList- :: Text -- ^ 'walEnterpriseId'- -> WebAppsList-webAppsList pWalEnterpriseId_ =- WebAppsList' {_walEnterpriseId = pWalEnterpriseId_}----- | The ID of the enterprise.-walEnterpriseId :: Lens' WebAppsList Text-walEnterpriseId- = lens _walEnterpriseId- (\ s a -> s{_walEnterpriseId = a})--instance GoogleRequest WebAppsList where- type Rs WebAppsList = WebAppsListResponse- type Scopes WebAppsList =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient WebAppsList'{..}- = go _walEnterpriseId (Just AltJSON)- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy WebAppsListResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/WebApps/Patch.hs
@@ -1,116 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.WebApps.Patch--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates an existing web app. This method supports patch semantics.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.patch@.-module Network.Google.Resource.AndroidEnterprise.WebApps.Patch- (- -- * REST Resource- WebAppsPatchResource-- -- * Creating a Request- , webAppsPatch- , WebAppsPatch-- -- * Request Lenses- , wapWebAppId- , wapEnterpriseId- , wapPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.webapps.patch@ method which the--- 'WebAppsPatch' request conforms to.-type WebAppsPatchResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "webApps" :>- Capture "webAppId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] WebApp :> Patch '[JSON] WebApp---- | Updates an existing web app. This method supports patch semantics.------ /See:/ 'webAppsPatch' smart constructor.-data WebAppsPatch =- WebAppsPatch'- { _wapWebAppId :: !Text- , _wapEnterpriseId :: !Text- , _wapPayload :: !WebApp- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wapWebAppId'------ * 'wapEnterpriseId'------ * 'wapPayload'-webAppsPatch- :: Text -- ^ 'wapWebAppId'- -> Text -- ^ 'wapEnterpriseId'- -> WebApp -- ^ 'wapPayload'- -> WebAppsPatch-webAppsPatch pWapWebAppId_ pWapEnterpriseId_ pWapPayload_ =- WebAppsPatch'- { _wapWebAppId = pWapWebAppId_- , _wapEnterpriseId = pWapEnterpriseId_- , _wapPayload = pWapPayload_- }----- | The ID of the web app.-wapWebAppId :: Lens' WebAppsPatch Text-wapWebAppId- = lens _wapWebAppId (\ s a -> s{_wapWebAppId = a})---- | The ID of the enterprise.-wapEnterpriseId :: Lens' WebAppsPatch Text-wapEnterpriseId- = lens _wapEnterpriseId- (\ s a -> s{_wapEnterpriseId = a})---- | Multipart request metadata.-wapPayload :: Lens' WebAppsPatch WebApp-wapPayload- = lens _wapPayload (\ s a -> s{_wapPayload = a})--instance GoogleRequest WebAppsPatch where- type Rs WebAppsPatch = WebApp- type Scopes WebAppsPatch =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient WebAppsPatch'{..}- = go _wapEnterpriseId _wapWebAppId (Just AltJSON)- _wapPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy WebAppsPatchResource)- mempty
− gen/Network/Google/Resource/AndroidEnterprise/WebApps/Update.hs
@@ -1,116 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE FlexibleInstances #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}-{-# LANGUAGE RecordWildCards #-}-{-# LANGUAGE TypeFamilies #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}-{-# OPTIONS_GHC -fno-warn-unused-binds #-}-{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.Resource.AndroidEnterprise.WebApps.Update--- Copyright : (c) 2015-2016 Brendan Hay--- License : Mozilla Public License, v. 2.0.--- Maintainer : Brendan Hay <brendan.g.hay@gmail.com>--- Stability : auto-generated--- Portability : non-portable (GHC extensions)------ Updates an existing web app.------ /See:/ <https://developers.google.com/android/work/play/emm-api Google Play EMM API Reference> for @androidenterprise.webapps.update@.-module Network.Google.Resource.AndroidEnterprise.WebApps.Update- (- -- * REST Resource- WebAppsUpdateResource-- -- * Creating a Request- , webAppsUpdate- , WebAppsUpdate-- -- * Request Lenses- , wauWebAppId- , wauEnterpriseId- , wauPayload- ) where--import Network.Google.AndroidEnterprise.Types-import Network.Google.Prelude---- | A resource alias for @androidenterprise.webapps.update@ method which the--- 'WebAppsUpdate' request conforms to.-type WebAppsUpdateResource =- "androidenterprise" :>- "v1" :>- "enterprises" :>- Capture "enterpriseId" Text :>- "webApps" :>- Capture "webAppId" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] WebApp :> Put '[JSON] WebApp---- | Updates an existing web app.------ /See:/ 'webAppsUpdate' smart constructor.-data WebAppsUpdate =- WebAppsUpdate'- { _wauWebAppId :: !Text- , _wauEnterpriseId :: !Text- , _wauPayload :: !WebApp- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebAppsUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wauWebAppId'------ * 'wauEnterpriseId'------ * 'wauPayload'-webAppsUpdate- :: Text -- ^ 'wauWebAppId'- -> Text -- ^ 'wauEnterpriseId'- -> WebApp -- ^ 'wauPayload'- -> WebAppsUpdate-webAppsUpdate pWauWebAppId_ pWauEnterpriseId_ pWauPayload_ =- WebAppsUpdate'- { _wauWebAppId = pWauWebAppId_- , _wauEnterpriseId = pWauEnterpriseId_- , _wauPayload = pWauPayload_- }----- | The ID of the web app.-wauWebAppId :: Lens' WebAppsUpdate Text-wauWebAppId- = lens _wauWebAppId (\ s a -> s{_wauWebAppId = a})---- | The ID of the enterprise.-wauEnterpriseId :: Lens' WebAppsUpdate Text-wauEnterpriseId- = lens _wauEnterpriseId- (\ s a -> s{_wauEnterpriseId = a})---- | Multipart request metadata.-wauPayload :: Lens' WebAppsUpdate WebApp-wauPayload- = lens _wauPayload (\ s a -> s{_wauPayload = a})--instance GoogleRequest WebAppsUpdate where- type Rs WebAppsUpdate = WebApp- type Scopes WebAppsUpdate =- '["https://www.googleapis.com/auth/androidenterprise"]- requestClient WebAppsUpdate'{..}- = go _wauEnterpriseId _wauWebAppId (Just AltJSON)- _wauPayload- androidEnterpriseService- where go- = buildClient (Proxy :: Proxy WebAppsUpdateResource)- mempty
gogol-android-enterprise.cabal view
@@ -1,130 +1,137 @@-name: gogol-android-enterprise-version: 0.5.0-synopsis: Google Play EMM SDK.-homepage: https://github.com/brendanhay/gogol-bug-reports: https://github.com/brendanhay/gogol/issues-license: OtherLicense-license-file: LICENSE-author: Brendan Hay-maintainer: Brendan Hay <brendan.g.hay@gmail.com>-copyright: Copyright (c) 2015-2016 Brendan Hay-category: Network, Google, Cloud-build-type: Simple-cabal-version: >= 1.10-extra-source-files: README.md src/.gitkeep+cabal-version: 2.2+name: gogol-android-enterprise+version: 1.0.0+synopsis: Google Play EMM SDK.+homepage: https://github.com/brendanhay/gogol+bug-reports: https://github.com/brendanhay/gogol/issues+license: MPL-2.0+license-file: LICENSE+author: Brendan Hay+maintainer:+ Brendan Hay <brendan.g.hay+gogol@gmail.com>, Toni Cebrián <toni@tonicebrian.com> +copyright: Copyright (c) 2015-2025 Brendan Hay+category: Google+build-type: Simple+extra-source-files:+ README.md+ src/.gitkeep+ description:- Manages the deployment of apps to Android for Work users.- .- /Warning:/ This is an experimental prototype/preview release which is still- under exploratory development and not intended for public use, caveat emptor!- .- This library is compatible with version @v1@- of the API.+ Manages the deployment of apps to Android Enterprise devices.+ .+ /Warning:/ This is an experimental prototype/preview release which is still+ under exploratory development and not intended for public use, caveat emptor!+ .+ This library is compatible with version @v1@+ of the API. source-repository head- type: git- location: git://github.com/brendanhay/gogol.git+ type: git+ location: git://github.com/brendanhay/gogol.git+ subdir: gogol-android-enterprise +flag field-selectors+ description:+ If record field selectors should be enabled. Disabling this requires GHC >=9.2 and the NoFieldSelectors extension.++ default: False+ manual: True+ library- default-language: Haskell2010- hs-source-dirs: src gen+ default-language: GHC2021+ hs-source-dirs: src gen+ ghc-options:+ -Wall -fwarn-incomplete-uni-patterns+ -fwarn-incomplete-record-updates -funbox-strict-fields+ -fwarn-unused-packages - ghc-options: -Wall+ if (!flag(field-selectors) && impl(ghc >=9.2))+ default-extensions: NoFieldSelectors - exposed-modules:- Network.Google.AndroidEnterprise- , Network.Google.AndroidEnterprise.Types- , Network.Google.Resource.AndroidEnterprise.Devices.Get- , Network.Google.Resource.AndroidEnterprise.Devices.GetState- , Network.Google.Resource.AndroidEnterprise.Devices.List- , Network.Google.Resource.AndroidEnterprise.Devices.Patch- , Network.Google.Resource.AndroidEnterprise.Devices.SetState- , Network.Google.Resource.AndroidEnterprise.Devices.Update- , Network.Google.Resource.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet- , Network.Google.Resource.AndroidEnterprise.Enterprises.CompleteSignup- , Network.Google.Resource.AndroidEnterprise.Enterprises.CreateWebToken- , Network.Google.Resource.AndroidEnterprise.Enterprises.Enroll- , Network.Google.Resource.AndroidEnterprise.Enterprises.GenerateSignupURL- , Network.Google.Resource.AndroidEnterprise.Enterprises.Get- , Network.Google.Resource.AndroidEnterprise.Enterprises.GetServiceAccount- , Network.Google.Resource.AndroidEnterprise.Enterprises.GetStoreLayout- , Network.Google.Resource.AndroidEnterprise.Enterprises.List- , Network.Google.Resource.AndroidEnterprise.Enterprises.PullNotificationSet- , Network.Google.Resource.AndroidEnterprise.Enterprises.SendTestPushNotification- , Network.Google.Resource.AndroidEnterprise.Enterprises.SetAccount- , Network.Google.Resource.AndroidEnterprise.Enterprises.SetStoreLayout- , Network.Google.Resource.AndroidEnterprise.Enterprises.Unenroll- , Network.Google.Resource.AndroidEnterprise.Entitlements.Delete- , Network.Google.Resource.AndroidEnterprise.Entitlements.Get- , Network.Google.Resource.AndroidEnterprise.Entitlements.List- , Network.Google.Resource.AndroidEnterprise.Entitlements.Patch- , Network.Google.Resource.AndroidEnterprise.Entitlements.Update- , Network.Google.Resource.AndroidEnterprise.GrouplicenseUsers.List- , Network.Google.Resource.AndroidEnterprise.Grouplicenses.Get- , Network.Google.Resource.AndroidEnterprise.Grouplicenses.List- , Network.Google.Resource.AndroidEnterprise.Installs.Delete- , Network.Google.Resource.AndroidEnterprise.Installs.Get- , Network.Google.Resource.AndroidEnterprise.Installs.List- , Network.Google.Resource.AndroidEnterprise.Installs.Patch- , Network.Google.Resource.AndroidEnterprise.Installs.Update- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Delete- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Get- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.List- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Patch- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforDevice.Update- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Delete- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Get- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.List- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Patch- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationsforUser.Update- , Network.Google.Resource.AndroidEnterprise.ManagedConfigurationssettings.List- , Network.Google.Resource.AndroidEnterprise.Permissions.Get- , Network.Google.Resource.AndroidEnterprise.Products.Approve- , Network.Google.Resource.AndroidEnterprise.Products.GenerateApprovalURL- , Network.Google.Resource.AndroidEnterprise.Products.Get- , Network.Google.Resource.AndroidEnterprise.Products.GetAppRestrictionsSchema- , Network.Google.Resource.AndroidEnterprise.Products.GetPermissions- , Network.Google.Resource.AndroidEnterprise.Products.List- , Network.Google.Resource.AndroidEnterprise.Products.UnApprove- , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Delete- , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.Insert- , Network.Google.Resource.AndroidEnterprise.ServiceAccountkeys.List- , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Delete- , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Get- , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Insert- , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.List- , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Patch- , Network.Google.Resource.AndroidEnterprise.Storelayoutclusters.Update- , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Delete- , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Get- , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Insert- , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.List- , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Patch- , Network.Google.Resource.AndroidEnterprise.Storelayoutpages.Update- , Network.Google.Resource.AndroidEnterprise.Users.Delete- , Network.Google.Resource.AndroidEnterprise.Users.GenerateAuthenticationToken- , Network.Google.Resource.AndroidEnterprise.Users.GenerateToken- , Network.Google.Resource.AndroidEnterprise.Users.Get- , Network.Google.Resource.AndroidEnterprise.Users.GetAvailableProductSet- , Network.Google.Resource.AndroidEnterprise.Users.Insert- , Network.Google.Resource.AndroidEnterprise.Users.List- , Network.Google.Resource.AndroidEnterprise.Users.Patch- , Network.Google.Resource.AndroidEnterprise.Users.RevokeDeviceAccess- , Network.Google.Resource.AndroidEnterprise.Users.RevokeToken- , Network.Google.Resource.AndroidEnterprise.Users.SetAvailableProductSet- , Network.Google.Resource.AndroidEnterprise.Users.Update- , Network.Google.Resource.AndroidEnterprise.WebApps.Delete- , Network.Google.Resource.AndroidEnterprise.WebApps.Get- , Network.Google.Resource.AndroidEnterprise.WebApps.Insert- , Network.Google.Resource.AndroidEnterprise.WebApps.List- , Network.Google.Resource.AndroidEnterprise.WebApps.Patch- , Network.Google.Resource.AndroidEnterprise.WebApps.Update+ exposed-modules:+ Gogol.AndroidEnterprise+ Gogol.AndroidEnterprise.Devices.ForceReportUpload+ Gogol.AndroidEnterprise.Devices.Get+ Gogol.AndroidEnterprise.Devices.GetState+ Gogol.AndroidEnterprise.Devices.List+ Gogol.AndroidEnterprise.Devices.SetState+ Gogol.AndroidEnterprise.Devices.Update+ Gogol.AndroidEnterprise.EnrollmentTokens.Create+ Gogol.AndroidEnterprise.Enterprises.AcknowledgeNotificationSet+ Gogol.AndroidEnterprise.Enterprises.CompleteSignup+ Gogol.AndroidEnterprise.Enterprises.CreateWebToken+ Gogol.AndroidEnterprise.Enterprises.Enroll+ Gogol.AndroidEnterprise.Enterprises.GenerateEnterpriseUpgradeUrl+ Gogol.AndroidEnterprise.Enterprises.GenerateSignupUrl+ Gogol.AndroidEnterprise.Enterprises.Get+ Gogol.AndroidEnterprise.Enterprises.GetServiceAccount+ Gogol.AndroidEnterprise.Enterprises.GetStoreLayout+ Gogol.AndroidEnterprise.Enterprises.List+ Gogol.AndroidEnterprise.Enterprises.PullNotificationSet+ Gogol.AndroidEnterprise.Enterprises.SendTestPushNotification+ Gogol.AndroidEnterprise.Enterprises.SetAccount+ Gogol.AndroidEnterprise.Enterprises.SetStoreLayout+ Gogol.AndroidEnterprise.Enterprises.Unenroll+ Gogol.AndroidEnterprise.Entitlements.Delete+ Gogol.AndroidEnterprise.Entitlements.Get+ Gogol.AndroidEnterprise.Entitlements.List+ Gogol.AndroidEnterprise.Entitlements.Update+ Gogol.AndroidEnterprise.Grouplicenses.Get+ Gogol.AndroidEnterprise.Grouplicenses.List+ Gogol.AndroidEnterprise.Grouplicenseusers.List+ Gogol.AndroidEnterprise.Installs.Delete+ Gogol.AndroidEnterprise.Installs.Get+ Gogol.AndroidEnterprise.Installs.List+ Gogol.AndroidEnterprise.Installs.Update+ Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Delete+ Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Get+ Gogol.AndroidEnterprise.Managedconfigurationsfordevice.List+ Gogol.AndroidEnterprise.Managedconfigurationsfordevice.Update+ Gogol.AndroidEnterprise.Managedconfigurationsforuser.Delete+ Gogol.AndroidEnterprise.Managedconfigurationsforuser.Get+ Gogol.AndroidEnterprise.Managedconfigurationsforuser.List+ Gogol.AndroidEnterprise.Managedconfigurationsforuser.Update+ Gogol.AndroidEnterprise.Managedconfigurationssettings.List+ Gogol.AndroidEnterprise.Permissions.Get+ Gogol.AndroidEnterprise.Products.Approve+ Gogol.AndroidEnterprise.Products.GenerateApprovalUrl+ Gogol.AndroidEnterprise.Products.Get+ Gogol.AndroidEnterprise.Products.GetAppRestrictionsSchema+ Gogol.AndroidEnterprise.Products.GetPermissions+ Gogol.AndroidEnterprise.Products.List+ Gogol.AndroidEnterprise.Products.Unapprove+ Gogol.AndroidEnterprise.Serviceaccountkeys.Delete+ Gogol.AndroidEnterprise.Serviceaccountkeys.Insert+ Gogol.AndroidEnterprise.Serviceaccountkeys.List+ Gogol.AndroidEnterprise.Storelayoutclusters.Delete+ Gogol.AndroidEnterprise.Storelayoutclusters.Get+ Gogol.AndroidEnterprise.Storelayoutclusters.Insert+ Gogol.AndroidEnterprise.Storelayoutclusters.List+ Gogol.AndroidEnterprise.Storelayoutclusters.Update+ Gogol.AndroidEnterprise.Storelayoutpages.Delete+ Gogol.AndroidEnterprise.Storelayoutpages.Get+ Gogol.AndroidEnterprise.Storelayoutpages.Insert+ Gogol.AndroidEnterprise.Storelayoutpages.List+ Gogol.AndroidEnterprise.Storelayoutpages.Update+ Gogol.AndroidEnterprise.Types+ Gogol.AndroidEnterprise.Users.Delete+ Gogol.AndroidEnterprise.Users.GenerateAuthenticationToken+ Gogol.AndroidEnterprise.Users.Get+ Gogol.AndroidEnterprise.Users.GetAvailableProductSet+ Gogol.AndroidEnterprise.Users.Insert+ Gogol.AndroidEnterprise.Users.List+ Gogol.AndroidEnterprise.Users.RevokeDeviceAccess+ Gogol.AndroidEnterprise.Users.SetAvailableProductSet+ Gogol.AndroidEnterprise.Users.Update+ Gogol.AndroidEnterprise.Webapps.Delete+ Gogol.AndroidEnterprise.Webapps.Get+ Gogol.AndroidEnterprise.Webapps.Insert+ Gogol.AndroidEnterprise.Webapps.List+ Gogol.AndroidEnterprise.Webapps.Update - other-modules:- Network.Google.AndroidEnterprise.Types.Product- , Network.Google.AndroidEnterprise.Types.Sum+ other-modules:+ Gogol.AndroidEnterprise.Internal.Product+ Gogol.AndroidEnterprise.Internal.Sum - build-depends:- gogol-core == 0.5.0.*- , base >= 4.7 && < 5+ build-depends: gogol-core ^>=1.0.0