gogol-androidmanagement 0.5.0 → 1.0.0
raw patch · 71 files changed
+20541/−13786 lines, 71 filesdep −basedep ~gogol-coresetup-changed
Dependencies removed: base
Dependency ranges changed: gogol-core
Files
- README.md +1/−1
- Setup.hs +2/−1
- gen/Gogol/AndroidManagement.hs +1217/−0
- gen/Gogol/AndroidManagement/Enterprises/Applications/Get.hs +119/−0
- gen/Gogol/AndroidManagement/Enterprises/Create.hs +132/−0
- gen/Gogol/AndroidManagement/Enterprises/Delete.hs +111/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/Delete.hs +126/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/Get.hs +111/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/IssueCommand.hs +122/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/List.hs +124/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/Operations/Cancel.hs +117/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/Operations/Get.hs +118/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/Operations/List.hs +133/−0
- gen/Gogol/AndroidManagement/Enterprises/Devices/Patch.hs +126/−0
- gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/Create.hs +129/−0
- gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/Delete.hs +117/−0
- gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/Get.hs +117/−0
- gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/List.hs +129/−0
- gen/Gogol/AndroidManagement/Enterprises/GenerateEnterpriseUpgradeUrl.hs +129/−0
- gen/Gogol/AndroidManagement/Enterprises/Get.hs +109/−0
- gen/Gogol/AndroidManagement/Enterprises/List.hs +123/−0
- gen/Gogol/AndroidManagement/Enterprises/MigrationTokens/Create.hs +126/−0
- gen/Gogol/AndroidManagement/Enterprises/MigrationTokens/Get.hs +117/−0
- gen/Gogol/AndroidManagement/Enterprises/MigrationTokens/List.hs +128/−0
- gen/Gogol/AndroidManagement/Enterprises/Patch.hs +123/−0
- gen/Gogol/AndroidManagement/Enterprises/Policies/Delete.hs +114/−0
- gen/Gogol/AndroidManagement/Enterprises/Policies/Get.hs +111/−0
- gen/Gogol/AndroidManagement/Enterprises/Policies/List.hs +127/−0
- gen/Gogol/AndroidManagement/Enterprises/Policies/Patch.hs +126/−0
- gen/Gogol/AndroidManagement/Enterprises/WebApps/Create.hs +122/−0
- gen/Gogol/AndroidManagement/Enterprises/WebApps/Delete.hs +114/−0
- gen/Gogol/AndroidManagement/Enterprises/WebApps/Get.hs +111/−0
- gen/Gogol/AndroidManagement/Enterprises/WebApps/List.hs +124/−0
- gen/Gogol/AndroidManagement/Enterprises/WebApps/Patch.hs +126/−0
- gen/Gogol/AndroidManagement/Enterprises/WebTokens/Create.hs +122/−0
- gen/Gogol/AndroidManagement/Internal/Product.hs +8047/−0
- gen/Gogol/AndroidManagement/Internal/Sum.hs +6051/−0
- gen/Gogol/AndroidManagement/ProvisioningInfo/Get.hs +111/−0
- gen/Gogol/AndroidManagement/SignupUrls/Create.hs +125/−0
- gen/Gogol/AndroidManagement/Types.hs +1020/−0
- gen/Network/Google/AndroidManagement.hs +0/−850
- gen/Network/Google/AndroidManagement/Types.hs +0/−714
- gen/Network/Google/AndroidManagement/Types/Product.hs +0/−6346
- gen/Network/Google/AndroidManagement/Types/Sum.hs +0/−1478
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Applications/Get.hs +0/−165
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Create.hs +0/−190
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Delete.hs +0/−165
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Get.hs +0/−149
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/IssueCommand.hs +0/−169
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/List.hs +0/−177
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/Cancel.hs +0/−168
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/Delete.hs +0/−158
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/Get.hs +0/−156
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/List.hs +0/−208
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Patch.hs +0/−176
- gen/Network/Google/Resource/AndroidManagement/Enterprises/EnrollmentTokens/Create.hs +0/−169
- gen/Network/Google/Resource/AndroidManagement/Enterprises/EnrollmentTokens/Delete.hs +0/−155
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Get.hs +0/−146
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Patch.hs +0/−173
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/Delete.hs +0/−152
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/Get.hs +0/−149
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/List.hs +0/−178
- gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/Patch.hs +0/−176
- gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Create.hs +0/−164
- gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Delete.hs +0/−150
- gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Get.hs +0/−150
- gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/List.hs +0/−179
- gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Patch.hs +0/−177
- gen/Network/Google/Resource/AndroidManagement/Enterprises/WebTokens/Create.hs +0/−167
- gen/Network/Google/Resource/AndroidManagement/SignupURLs/Create.hs +0/−168
- gogol-androidmanagement.cabal +84/−62
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/AndroidManagement.hs view
@@ -0,0 +1,1217 @@+{-# 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.AndroidManagement+-- 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)+--+-- The Android Management API provides remote enterprise management of Android devices and apps.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference>+module Gogol.AndroidManagement+ ( -- * Configuration+ androidManagementService,++ -- * OAuth Scopes+ Androidmanagement'FullControl,++ -- * Resources++ -- ** androidmanagement.enterprises.applications.get+ AndroidManagementEnterprisesApplicationsGetResource,+ AndroidManagementEnterprisesApplicationsGet (..),+ newAndroidManagementEnterprisesApplicationsGet,++ -- ** androidmanagement.enterprises.create+ AndroidManagementEnterprisesCreateResource,+ AndroidManagementEnterprisesCreate (..),+ newAndroidManagementEnterprisesCreate,++ -- ** androidmanagement.enterprises.delete+ AndroidManagementEnterprisesDeleteResource,+ AndroidManagementEnterprisesDelete (..),+ newAndroidManagementEnterprisesDelete,++ -- ** androidmanagement.enterprises.devices.delete+ AndroidManagementEnterprisesDevicesDeleteResource,+ AndroidManagementEnterprisesDevicesDelete (..),+ newAndroidManagementEnterprisesDevicesDelete,++ -- ** androidmanagement.enterprises.devices.get+ AndroidManagementEnterprisesDevicesGetResource,+ AndroidManagementEnterprisesDevicesGet (..),+ newAndroidManagementEnterprisesDevicesGet,++ -- ** androidmanagement.enterprises.devices.issueCommand+ AndroidManagementEnterprisesDevicesIssueCommandResource,+ AndroidManagementEnterprisesDevicesIssueCommand (..),+ newAndroidManagementEnterprisesDevicesIssueCommand,++ -- ** androidmanagement.enterprises.devices.list+ AndroidManagementEnterprisesDevicesListResource,+ AndroidManagementEnterprisesDevicesList (..),+ newAndroidManagementEnterprisesDevicesList,++ -- ** androidmanagement.enterprises.devices.operations.cancel+ AndroidManagementEnterprisesDevicesOperationsCancelResource,+ AndroidManagementEnterprisesDevicesOperationsCancel (..),+ newAndroidManagementEnterprisesDevicesOperationsCancel,++ -- ** androidmanagement.enterprises.devices.operations.get+ AndroidManagementEnterprisesDevicesOperationsGetResource,+ AndroidManagementEnterprisesDevicesOperationsGet (..),+ newAndroidManagementEnterprisesDevicesOperationsGet,++ -- ** androidmanagement.enterprises.devices.operations.list+ AndroidManagementEnterprisesDevicesOperationsListResource,+ AndroidManagementEnterprisesDevicesOperationsList (..),+ newAndroidManagementEnterprisesDevicesOperationsList,++ -- ** androidmanagement.enterprises.devices.patch+ AndroidManagementEnterprisesDevicesPatchResource,+ AndroidManagementEnterprisesDevicesPatch (..),+ newAndroidManagementEnterprisesDevicesPatch,++ -- ** androidmanagement.enterprises.enrollmentTokens.create+ AndroidManagementEnterprisesEnrollmentTokensCreateResource,+ AndroidManagementEnterprisesEnrollmentTokensCreate (..),+ newAndroidManagementEnterprisesEnrollmentTokensCreate,++ -- ** androidmanagement.enterprises.enrollmentTokens.delete+ AndroidManagementEnterprisesEnrollmentTokensDeleteResource,+ AndroidManagementEnterprisesEnrollmentTokensDelete (..),+ newAndroidManagementEnterprisesEnrollmentTokensDelete,++ -- ** androidmanagement.enterprises.enrollmentTokens.get+ AndroidManagementEnterprisesEnrollmentTokensGetResource,+ AndroidManagementEnterprisesEnrollmentTokensGet (..),+ newAndroidManagementEnterprisesEnrollmentTokensGet,++ -- ** androidmanagement.enterprises.enrollmentTokens.list+ AndroidManagementEnterprisesEnrollmentTokensListResource,+ AndroidManagementEnterprisesEnrollmentTokensList (..),+ newAndroidManagementEnterprisesEnrollmentTokensList,++ -- ** androidmanagement.enterprises.generateEnterpriseUpgradeUrl+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrlResource,+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl (..),+ newAndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl,++ -- ** androidmanagement.enterprises.get+ AndroidManagementEnterprisesGetResource,+ AndroidManagementEnterprisesGet (..),+ newAndroidManagementEnterprisesGet,++ -- ** androidmanagement.enterprises.list+ AndroidManagementEnterprisesListResource,+ AndroidManagementEnterprisesList (..),+ newAndroidManagementEnterprisesList,++ -- ** androidmanagement.enterprises.migrationTokens.create+ AndroidManagementEnterprisesMigrationTokensCreateResource,+ AndroidManagementEnterprisesMigrationTokensCreate (..),+ newAndroidManagementEnterprisesMigrationTokensCreate,++ -- ** androidmanagement.enterprises.migrationTokens.get+ AndroidManagementEnterprisesMigrationTokensGetResource,+ AndroidManagementEnterprisesMigrationTokensGet (..),+ newAndroidManagementEnterprisesMigrationTokensGet,++ -- ** androidmanagement.enterprises.migrationTokens.list+ AndroidManagementEnterprisesMigrationTokensListResource,+ AndroidManagementEnterprisesMigrationTokensList (..),+ newAndroidManagementEnterprisesMigrationTokensList,++ -- ** androidmanagement.enterprises.patch+ AndroidManagementEnterprisesPatchResource,+ AndroidManagementEnterprisesPatch (..),+ newAndroidManagementEnterprisesPatch,++ -- ** androidmanagement.enterprises.policies.delete+ AndroidManagementEnterprisesPoliciesDeleteResource,+ AndroidManagementEnterprisesPoliciesDelete (..),+ newAndroidManagementEnterprisesPoliciesDelete,++ -- ** androidmanagement.enterprises.policies.get+ AndroidManagementEnterprisesPoliciesGetResource,+ AndroidManagementEnterprisesPoliciesGet (..),+ newAndroidManagementEnterprisesPoliciesGet,++ -- ** androidmanagement.enterprises.policies.list+ AndroidManagementEnterprisesPoliciesListResource,+ AndroidManagementEnterprisesPoliciesList (..),+ newAndroidManagementEnterprisesPoliciesList,++ -- ** androidmanagement.enterprises.policies.patch+ AndroidManagementEnterprisesPoliciesPatchResource,+ AndroidManagementEnterprisesPoliciesPatch (..),+ newAndroidManagementEnterprisesPoliciesPatch,++ -- ** androidmanagement.enterprises.webApps.create+ AndroidManagementEnterprisesWebAppsCreateResource,+ AndroidManagementEnterprisesWebAppsCreate (..),+ newAndroidManagementEnterprisesWebAppsCreate,++ -- ** androidmanagement.enterprises.webApps.delete+ AndroidManagementEnterprisesWebAppsDeleteResource,+ AndroidManagementEnterprisesWebAppsDelete (..),+ newAndroidManagementEnterprisesWebAppsDelete,++ -- ** androidmanagement.enterprises.webApps.get+ AndroidManagementEnterprisesWebAppsGetResource,+ AndroidManagementEnterprisesWebAppsGet (..),+ newAndroidManagementEnterprisesWebAppsGet,++ -- ** androidmanagement.enterprises.webApps.list+ AndroidManagementEnterprisesWebAppsListResource,+ AndroidManagementEnterprisesWebAppsList (..),+ newAndroidManagementEnterprisesWebAppsList,++ -- ** androidmanagement.enterprises.webApps.patch+ AndroidManagementEnterprisesWebAppsPatchResource,+ AndroidManagementEnterprisesWebAppsPatch (..),+ newAndroidManagementEnterprisesWebAppsPatch,++ -- ** androidmanagement.enterprises.webTokens.create+ AndroidManagementEnterprisesWebTokensCreateResource,+ AndroidManagementEnterprisesWebTokensCreate (..),+ newAndroidManagementEnterprisesWebTokensCreate,++ -- ** androidmanagement.provisioningInfo.get+ AndroidManagementProvisioningInfoGetResource,+ AndroidManagementProvisioningInfoGet (..),+ newAndroidManagementProvisioningInfoGet,++ -- ** androidmanagement.signupUrls.create+ AndroidManagementSignupUrlsCreateResource,+ AndroidManagementSignupUrlsCreate (..),+ newAndroidManagementSignupUrlsCreate,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AdbShellCommandEvent+ AdbShellCommandEvent (..),+ newAdbShellCommandEvent,++ -- ** AdbShellInteractiveEvent+ AdbShellInteractiveEvent (..),+ newAdbShellInteractiveEvent,++ -- ** AdvancedSecurityOverrides+ AdvancedSecurityOverrides (..),+ newAdvancedSecurityOverrides,++ -- ** AdvancedSecurityOverrides_CommonCriteriaMode+ AdvancedSecurityOverrides_CommonCriteriaMode (..),++ -- ** AdvancedSecurityOverrides_ContentProtectionPolicy+ AdvancedSecurityOverrides_ContentProtectionPolicy (..),++ -- ** AdvancedSecurityOverrides_DeveloperSettings+ AdvancedSecurityOverrides_DeveloperSettings (..),++ -- ** AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps (..),++ -- ** AdvancedSecurityOverrides_MtePolicy+ AdvancedSecurityOverrides_MtePolicy (..),++ -- ** AdvancedSecurityOverrides_UntrustedAppsPolicy+ AdvancedSecurityOverrides_UntrustedAppsPolicy (..),++ -- ** AlwaysOnVpnPackage+ AlwaysOnVpnPackage (..),+ newAlwaysOnVpnPackage,++ -- ** ApiLevelCondition+ ApiLevelCondition (..),+ newApiLevelCondition,++ -- ** AppProcessInfo+ AppProcessInfo (..),+ newAppProcessInfo,++ -- ** AppProcessStartEvent+ AppProcessStartEvent (..),+ newAppProcessStartEvent,++ -- ** AppTrackInfo+ AppTrackInfo (..),+ newAppTrackInfo,++ -- ** AppVersion+ AppVersion (..),+ newAppVersion,++ -- ** Application+ Application (..),+ newApplication,++ -- ** Application_AppPricing+ Application_AppPricing (..),++ -- ** Application_ContentRating+ Application_ContentRating (..),++ -- ** Application_DistributionChannel+ Application_DistributionChannel (..),++ -- ** Application_FeaturesItem+ Application_FeaturesItem (..),++ -- ** ApplicationEvent+ ApplicationEvent (..),+ newApplicationEvent,++ -- ** ApplicationEvent_EventType+ ApplicationEvent_EventType (..),++ -- ** ApplicationPermission+ ApplicationPermission (..),+ newApplicationPermission,++ -- ** ApplicationPolicy+ ApplicationPolicy (..),+ newApplicationPolicy,++ -- ** ApplicationPolicy_AlwaysOnVpnLockdownExemption+ ApplicationPolicy_AlwaysOnVpnLockdownExemption (..),++ -- ** ApplicationPolicy_AutoUpdateMode+ ApplicationPolicy_AutoUpdateMode (..),++ -- ** ApplicationPolicy_ConnectedWorkAndPersonalApp+ ApplicationPolicy_ConnectedWorkAndPersonalApp (..),++ -- ** ApplicationPolicy_CredentialProviderPolicy+ ApplicationPolicy_CredentialProviderPolicy (..),++ -- ** ApplicationPolicy_DefaultPermissionPolicy+ ApplicationPolicy_DefaultPermissionPolicy (..),++ -- ** ApplicationPolicy_DelegatedScopesItem+ ApplicationPolicy_DelegatedScopesItem (..),++ -- ** ApplicationPolicy_InstallType+ ApplicationPolicy_InstallType (..),++ -- ** ApplicationPolicy_ManagedConfiguration+ ApplicationPolicy_ManagedConfiguration (..),+ newApplicationPolicy_ManagedConfiguration,++ -- ** ApplicationPolicy_UserControlSettings+ ApplicationPolicy_UserControlSettings (..),++ -- ** ApplicationPolicy_WorkProfileWidgets+ ApplicationPolicy_WorkProfileWidgets (..),++ -- ** ApplicationReport+ ApplicationReport (..),+ newApplicationReport,++ -- ** ApplicationReport_ApplicationSource+ ApplicationReport_ApplicationSource (..),++ -- ** ApplicationReport_State+ ApplicationReport_State (..),++ -- ** ApplicationReport_UserFacingType+ ApplicationReport_UserFacingType (..),++ -- ** ApplicationReportingSettings+ ApplicationReportingSettings (..),+ newApplicationReportingSettings,++ -- ** BatchUsageLogEvents+ BatchUsageLogEvents (..),+ newBatchUsageLogEvents,++ -- ** BlockAction+ BlockAction (..),+ newBlockAction,++ -- ** BlockAction_BlockScope+ BlockAction_BlockScope (..),++ -- ** CertAuthorityInstalledEvent+ CertAuthorityInstalledEvent (..),+ newCertAuthorityInstalledEvent,++ -- ** CertAuthorityRemovedEvent+ CertAuthorityRemovedEvent (..),+ newCertAuthorityRemovedEvent,++ -- ** CertValidationFailureEvent+ CertValidationFailureEvent (..),+ newCertValidationFailureEvent,++ -- ** ChoosePrivateKeyRule+ ChoosePrivateKeyRule (..),+ newChoosePrivateKeyRule,++ -- ** ClearAppsDataParams+ ClearAppsDataParams (..),+ newClearAppsDataParams,++ -- ** ClearAppsDataStatus+ ClearAppsDataStatus (..),+ newClearAppsDataStatus,++ -- ** ClearAppsDataStatus_Results+ ClearAppsDataStatus_Results (..),+ newClearAppsDataStatus_Results,++ -- ** Command+ Command (..),+ newCommand,++ -- ** Command_ErrorCode+ Command_ErrorCode (..),++ -- ** Command_ResetPasswordFlagsItem+ Command_ResetPasswordFlagsItem (..),++ -- ** Command_Type+ Command_Type (..),++ -- ** CommonCriteriaModeInfo+ CommonCriteriaModeInfo (..),+ newCommonCriteriaModeInfo,++ -- ** CommonCriteriaModeInfo_CommonCriteriaModeStatus+ CommonCriteriaModeInfo_CommonCriteriaModeStatus (..),++ -- ** CommonCriteriaModeInfo_PolicySignatureVerificationStatus+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus (..),++ -- ** ComplianceRule+ ComplianceRule (..),+ newComplianceRule,++ -- ** ConnectEvent+ ConnectEvent (..),+ newConnectEvent,++ -- ** ContactInfo+ ContactInfo (..),+ newContactInfo,++ -- ** ContentProviderEndpoint+ ContentProviderEndpoint (..),+ newContentProviderEndpoint,++ -- ** CrossProfilePolicies+ CrossProfilePolicies (..),+ newCrossProfilePolicies,++ -- ** CrossProfilePolicies_CrossProfileCopyPaste+ CrossProfilePolicies_CrossProfileCopyPaste (..),++ -- ** CrossProfilePolicies_CrossProfileDataSharing+ CrossProfilePolicies_CrossProfileDataSharing (..),++ -- ** CrossProfilePolicies_ShowWorkContactsInPersonalProfile+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile (..),++ -- ** CrossProfilePolicies_WorkProfileWidgetsDefault+ CrossProfilePolicies_WorkProfileWidgetsDefault (..),++ -- ** CryptoSelfTestCompletedEvent+ CryptoSelfTestCompletedEvent (..),+ newCryptoSelfTestCompletedEvent,++ -- ** Date+ Date (..),+ newDate,++ -- ** Device+ Device (..),+ newDevice,++ -- ** Device_AppliedState+ Device_AppliedState (..),++ -- ** Device_ManagementMode+ Device_ManagementMode (..),++ -- ** Device_Ownership+ Device_Ownership (..),++ -- ** Device_State+ Device_State (..),++ -- ** Device_SystemProperties+ Device_SystemProperties (..),+ newDevice_SystemProperties,++ -- ** DeviceConnectivityManagement+ DeviceConnectivityManagement (..),+ newDeviceConnectivityManagement,++ -- ** DeviceConnectivityManagement_ConfigureWifi+ DeviceConnectivityManagement_ConfigureWifi (..),++ -- ** DeviceConnectivityManagement_TetheringSettings+ DeviceConnectivityManagement_TetheringSettings (..),++ -- ** DeviceConnectivityManagement_UsbDataAccess+ DeviceConnectivityManagement_UsbDataAccess (..),++ -- ** DeviceConnectivityManagement_WifiDirectSettings+ DeviceConnectivityManagement_WifiDirectSettings (..),++ -- ** DeviceRadioState+ DeviceRadioState (..),+ newDeviceRadioState,++ -- ** DeviceRadioState_AirplaneModeState+ DeviceRadioState_AirplaneModeState (..),++ -- ** DeviceRadioState_CellularTwoGState+ DeviceRadioState_CellularTwoGState (..),++ -- ** DeviceRadioState_MinimumWifiSecurityLevel+ DeviceRadioState_MinimumWifiSecurityLevel (..),++ -- ** DeviceRadioState_UltraWidebandState+ DeviceRadioState_UltraWidebandState (..),++ -- ** DeviceRadioState_WifiState+ DeviceRadioState_WifiState (..),++ -- ** DeviceSettings+ DeviceSettings (..),+ newDeviceSettings,++ -- ** DeviceSettings_EncryptionStatus+ DeviceSettings_EncryptionStatus (..),++ -- ** Display+ Display (..),+ newDisplay,++ -- ** Display_State+ Display_State (..),++ -- ** DisplaySettings+ DisplaySettings (..),+ newDisplaySettings,++ -- ** DnsEvent+ DnsEvent (..),+ newDnsEvent,++ -- ** DpcMigrationInfo+ DpcMigrationInfo (..),+ newDpcMigrationInfo,++ -- ** Empty+ Empty (..),+ newEmpty,++ -- ** EnrollmentCompleteEvent+ EnrollmentCompleteEvent (..),+ newEnrollmentCompleteEvent,++ -- ** EnrollmentToken+ EnrollmentToken (..),+ newEnrollmentToken,++ -- ** EnrollmentToken_AllowPersonalUsage+ EnrollmentToken_AllowPersonalUsage (..),++ -- ** Enterprise+ Enterprise (..),+ newEnterprise,++ -- ** Enterprise_EnabledNotificationTypesItem+ Enterprise_EnabledNotificationTypesItem (..),++ -- ** Enterprise_EnterpriseType+ Enterprise_EnterpriseType (..),++ -- ** Enterprise_ManagedGoogleDomainType+ Enterprise_ManagedGoogleDomainType (..),++ -- ** Enterprise_ManagedGooglePlayAccountsEnterpriseType+ Enterprise_ManagedGooglePlayAccountsEnterpriseType (..),++ -- ** ExtensionConfig+ ExtensionConfig (..),+ newExtensionConfig,++ -- ** ExternalData+ ExternalData (..),+ newExternalData,++ -- ** FilePulledEvent+ FilePulledEvent (..),+ newFilePulledEvent,++ -- ** FilePushedEvent+ FilePushedEvent (..),+ newFilePushedEvent,++ -- ** FreezePeriod+ FreezePeriod (..),+ newFreezePeriod,++ -- ** GenerateEnterpriseUpgradeUrlRequest+ GenerateEnterpriseUpgradeUrlRequest (..),+ newGenerateEnterpriseUpgradeUrlRequest,++ -- ** GenerateEnterpriseUpgradeUrlResponse+ GenerateEnterpriseUpgradeUrlResponse (..),+ newGenerateEnterpriseUpgradeUrlResponse,++ -- ** GoogleAuthenticationSettings+ GoogleAuthenticationSettings (..),+ newGoogleAuthenticationSettings,++ -- ** GoogleAuthenticationSettings_GoogleAuthenticationRequired+ GoogleAuthenticationSettings_GoogleAuthenticationRequired (..),++ -- ** HardwareInfo+ HardwareInfo (..),+ newHardwareInfo,++ -- ** HardwareStatus+ HardwareStatus (..),+ newHardwareStatus,++ -- ** InstallConstraint+ InstallConstraint (..),+ newInstallConstraint,++ -- ** InstallConstraint_ChargingConstraint+ InstallConstraint_ChargingConstraint (..),++ -- ** InstallConstraint_DeviceIdleConstraint+ InstallConstraint_DeviceIdleConstraint (..),++ -- ** InstallConstraint_NetworkTypeConstraint+ InstallConstraint_NetworkTypeConstraint (..),++ -- ** IssueCommandResponse+ IssueCommandResponse (..),+ newIssueCommandResponse,++ -- ** KeyDestructionEvent+ KeyDestructionEvent (..),+ newKeyDestructionEvent,++ -- ** KeyGeneratedEvent+ KeyGeneratedEvent (..),+ newKeyGeneratedEvent,++ -- ** KeyImportEvent+ KeyImportEvent (..),+ newKeyImportEvent,++ -- ** KeyIntegrityViolationEvent+ KeyIntegrityViolationEvent (..),+ newKeyIntegrityViolationEvent,++ -- ** KeyedAppState+ KeyedAppState (..),+ newKeyedAppState,++ -- ** KeyedAppState_Severity+ KeyedAppState_Severity (..),++ -- ** KeyguardDismissAuthAttemptEvent+ KeyguardDismissAuthAttemptEvent (..),+ newKeyguardDismissAuthAttemptEvent,++ -- ** KeyguardDismissedEvent+ KeyguardDismissedEvent (..),+ newKeyguardDismissedEvent,++ -- ** KeyguardSecuredEvent+ KeyguardSecuredEvent (..),+ newKeyguardSecuredEvent,++ -- ** KioskCustomization+ KioskCustomization (..),+ newKioskCustomization,++ -- ** KioskCustomization_DeviceSettings+ KioskCustomization_DeviceSettings (..),++ -- ** KioskCustomization_PowerButtonActions+ KioskCustomization_PowerButtonActions (..),++ -- ** KioskCustomization_StatusBar+ KioskCustomization_StatusBar (..),++ -- ** KioskCustomization_SystemErrorWarnings+ KioskCustomization_SystemErrorWarnings (..),++ -- ** KioskCustomization_SystemNavigation+ KioskCustomization_SystemNavigation (..),++ -- ** LaunchAppAction+ LaunchAppAction (..),+ newLaunchAppAction,++ -- ** ListDevicesResponse+ ListDevicesResponse (..),+ newListDevicesResponse,++ -- ** ListEnrollmentTokensResponse+ ListEnrollmentTokensResponse (..),+ newListEnrollmentTokensResponse,++ -- ** ListEnterprisesResponse+ ListEnterprisesResponse (..),+ newListEnterprisesResponse,++ -- ** ListMigrationTokensResponse+ ListMigrationTokensResponse (..),+ newListMigrationTokensResponse,++ -- ** ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- ** ListPoliciesResponse+ ListPoliciesResponse (..),+ newListPoliciesResponse,++ -- ** ListWebAppsResponse+ ListWebAppsResponse (..),+ newListWebAppsResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** LogBufferSizeCriticalEvent+ LogBufferSizeCriticalEvent (..),+ newLogBufferSizeCriticalEvent,++ -- ** LoggingStartedEvent+ LoggingStartedEvent (..),+ newLoggingStartedEvent,++ -- ** LoggingStoppedEvent+ LoggingStoppedEvent (..),+ newLoggingStoppedEvent,++ -- ** LostModeLocationEvent+ LostModeLocationEvent (..),+ newLostModeLocationEvent,++ -- ** LostModeOutgoingPhoneCallEvent+ LostModeOutgoingPhoneCallEvent (..),+ newLostModeOutgoingPhoneCallEvent,++ -- ** ManagedConfigurationTemplate+ ManagedConfigurationTemplate (..),+ newManagedConfigurationTemplate,++ -- ** ManagedConfigurationTemplate_ConfigurationVariables+ ManagedConfigurationTemplate_ConfigurationVariables (..),+ newManagedConfigurationTemplate_ConfigurationVariables,++ -- ** ManagedProperty+ ManagedProperty (..),+ newManagedProperty,++ -- ** ManagedProperty_Type+ ManagedProperty_Type (..),++ -- ** ManagedPropertyEntry+ ManagedPropertyEntry (..),+ newManagedPropertyEntry,++ -- ** MediaMountEvent+ MediaMountEvent (..),+ newMediaMountEvent,++ -- ** MediaUnmountEvent+ MediaUnmountEvent (..),+ newMediaUnmountEvent,++ -- ** MemoryEvent+ MemoryEvent (..),+ newMemoryEvent,++ -- ** MemoryEvent_EventType+ MemoryEvent_EventType (..),++ -- ** MemoryInfo+ MemoryInfo (..),+ newMemoryInfo,++ -- ** MigrationToken+ MigrationToken (..),+ newMigrationToken,++ -- ** MigrationToken_ManagementMode+ MigrationToken_ManagementMode (..),++ -- ** NetworkInfo+ NetworkInfo (..),+ newNetworkInfo,++ -- ** NonComplianceDetail+ NonComplianceDetail (..),+ newNonComplianceDetail,++ -- ** NonComplianceDetail_InstallationFailureReason+ NonComplianceDetail_InstallationFailureReason (..),++ -- ** NonComplianceDetail_NonComplianceReason+ NonComplianceDetail_NonComplianceReason (..),++ -- ** NonComplianceDetail_SpecificNonComplianceReason+ NonComplianceDetail_SpecificNonComplianceReason (..),++ -- ** NonComplianceDetailCondition+ NonComplianceDetailCondition (..),+ newNonComplianceDetailCondition,++ -- ** NonComplianceDetailCondition_NonComplianceReason+ NonComplianceDetailCondition_NonComplianceReason (..),++ -- ** OncCertificateProvider+ OncCertificateProvider (..),+ newOncCertificateProvider,++ -- ** OncWifiContext+ OncWifiContext (..),+ newOncWifiContext,++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** OsShutdownEvent+ OsShutdownEvent (..),+ newOsShutdownEvent,++ -- ** OsStartupEvent+ OsStartupEvent (..),+ newOsStartupEvent,++ -- ** OsStartupEvent_VerifiedBootState+ OsStartupEvent_VerifiedBootState (..),++ -- ** OsStartupEvent_VerityMode+ OsStartupEvent_VerityMode (..),++ -- ** PackageNameList+ PackageNameList (..),+ newPackageNameList,++ -- ** PasswordPoliciesContext+ PasswordPoliciesContext (..),+ newPasswordPoliciesContext,++ -- ** PasswordPoliciesContext_PasswordPolicyScope+ PasswordPoliciesContext_PasswordPolicyScope (..),++ -- ** PasswordRequirements+ PasswordRequirements (..),+ newPasswordRequirements,++ -- ** PasswordRequirements_PasswordQuality+ PasswordRequirements_PasswordQuality (..),++ -- ** PasswordRequirements_PasswordScope+ PasswordRequirements_PasswordScope (..),++ -- ** PasswordRequirements_RequirePasswordUnlock+ PasswordRequirements_RequirePasswordUnlock (..),++ -- ** PasswordRequirements_UnifiedLockSettings+ PasswordRequirements_UnifiedLockSettings (..),++ -- ** PerAppResult+ PerAppResult (..),+ newPerAppResult,++ -- ** PerAppResult_ClearingResult+ PerAppResult_ClearingResult (..),++ -- ** PermissionGrant+ PermissionGrant (..),+ newPermissionGrant,++ -- ** PermissionGrant_Policy+ PermissionGrant_Policy (..),++ -- ** PersistentPreferredActivity+ PersistentPreferredActivity (..),+ newPersistentPreferredActivity,++ -- ** PersonalApplicationPolicy+ PersonalApplicationPolicy (..),+ newPersonalApplicationPolicy,++ -- ** PersonalApplicationPolicy_InstallType+ PersonalApplicationPolicy_InstallType (..),++ -- ** PersonalUsagePolicies+ PersonalUsagePolicies (..),+ newPersonalUsagePolicies,++ -- ** PersonalUsagePolicies_PersonalPlayStoreMode+ PersonalUsagePolicies_PersonalPlayStoreMode (..),++ -- ** PersonalUsagePolicies_PrivateSpacePolicy+ PersonalUsagePolicies_PrivateSpacePolicy (..),++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** Policy_AndroidDevicePolicyTracksItem+ Policy_AndroidDevicePolicyTracksItem (..),++ -- ** Policy_AppAutoUpdatePolicy+ Policy_AppAutoUpdatePolicy (..),++ -- ** Policy_AssistContentPolicy+ Policy_AssistContentPolicy (..),++ -- ** Policy_AutoDateAndTimeZone+ Policy_AutoDateAndTimeZone (..),++ -- ** Policy_CameraAccess+ Policy_CameraAccess (..),++ -- ** Policy_CredentialProviderPolicyDefault+ Policy_CredentialProviderPolicyDefault (..),++ -- ** Policy_DefaultPermissionPolicy+ Policy_DefaultPermissionPolicy (..),++ -- ** Policy_EncryptionPolicy+ Policy_EncryptionPolicy (..),++ -- ** Policy_KeyguardDisabledFeaturesItem+ Policy_KeyguardDisabledFeaturesItem (..),++ -- ** Policy_LocationMode+ Policy_LocationMode (..),++ -- ** Policy_MicrophoneAccess+ Policy_MicrophoneAccess (..),++ -- ** Policy_OpenNetworkConfiguration+ Policy_OpenNetworkConfiguration (..),+ newPolicy_OpenNetworkConfiguration,++ -- ** Policy_PlayStoreMode+ Policy_PlayStoreMode (..),++ -- ** Policy_PreferentialNetworkService+ Policy_PreferentialNetworkService (..),++ -- ** Policy_PrintingPolicy+ Policy_PrintingPolicy (..),++ -- ** Policy_StayOnPluggedModesItem+ Policy_StayOnPluggedModesItem (..),++ -- ** PolicyEnforcementRule+ PolicyEnforcementRule (..),+ newPolicyEnforcementRule,++ -- ** PostureDetail+ PostureDetail (..),+ newPostureDetail,++ -- ** PostureDetail_SecurityRisk+ PostureDetail_SecurityRisk (..),++ -- ** PowerManagementEvent+ PowerManagementEvent (..),+ newPowerManagementEvent,++ -- ** PowerManagementEvent_EventType+ PowerManagementEvent_EventType (..),++ -- ** ProvisioningInfo+ ProvisioningInfo (..),+ newProvisioningInfo,++ -- ** ProvisioningInfo_ManagementMode+ ProvisioningInfo_ManagementMode (..),++ -- ** ProvisioningInfo_Ownership+ ProvisioningInfo_Ownership (..),++ -- ** ProxyInfo+ ProxyInfo (..),+ newProxyInfo,++ -- ** RemoteLockEvent+ RemoteLockEvent (..),+ newRemoteLockEvent,++ -- ** ScreenBrightnessSettings+ ScreenBrightnessSettings (..),+ newScreenBrightnessSettings,++ -- ** ScreenBrightnessSettings_ScreenBrightnessMode+ ScreenBrightnessSettings_ScreenBrightnessMode (..),++ -- ** ScreenTimeoutSettings+ ScreenTimeoutSettings (..),+ newScreenTimeoutSettings,++ -- ** ScreenTimeoutSettings_ScreenTimeoutMode+ ScreenTimeoutSettings_ScreenTimeoutMode (..),++ -- ** SecurityPosture+ SecurityPosture (..),+ newSecurityPosture,++ -- ** SecurityPosture_DevicePosture+ SecurityPosture_DevicePosture (..),++ -- ** SetupAction+ SetupAction (..),+ newSetupAction,++ -- ** SigninDetail+ SigninDetail (..),+ newSigninDetail,++ -- ** SigninDetail_AllowPersonalUsage+ SigninDetail_AllowPersonalUsage (..),++ -- ** SigninDetail_DefaultStatus+ SigninDetail_DefaultStatus (..),++ -- ** SignupUrl+ SignupUrl (..),+ newSignupUrl,++ -- ** SoftwareInfo+ SoftwareInfo (..),+ newSoftwareInfo,++ -- ** SpecificNonComplianceContext+ SpecificNonComplianceContext (..),+ newSpecificNonComplianceContext,++ -- ** StartLostModeParams+ StartLostModeParams (..),+ newStartLostModeParams,++ -- ** StartLostModeStatus+ StartLostModeStatus (..),+ newStartLostModeStatus,++ -- ** StartLostModeStatus_Status+ StartLostModeStatus_Status (..),++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** StatusReportingSettings+ StatusReportingSettings (..),+ newStatusReportingSettings,++ -- ** StopLostModeParams+ StopLostModeParams (..),+ newStopLostModeParams,++ -- ** StopLostModeStatus+ StopLostModeStatus (..),+ newStopLostModeStatus,++ -- ** StopLostModeStatus_Status+ StopLostModeStatus_Status (..),++ -- ** StopLostModeUserAttemptEvent+ StopLostModeUserAttemptEvent (..),+ newStopLostModeUserAttemptEvent,++ -- ** StopLostModeUserAttemptEvent_Status+ StopLostModeUserAttemptEvent_Status (..),++ -- ** SystemUpdate+ SystemUpdate (..),+ newSystemUpdate,++ -- ** SystemUpdate_Type+ SystemUpdate_Type (..),++ -- ** SystemUpdateInfo+ SystemUpdateInfo (..),+ newSystemUpdateInfo,++ -- ** SystemUpdateInfo_UpdateStatus+ SystemUpdateInfo_UpdateStatus (..),++ -- ** TelephonyInfo+ TelephonyInfo (..),+ newTelephonyInfo,++ -- ** TermsAndConditions+ TermsAndConditions (..),+ newTermsAndConditions,++ -- ** UsageLog+ UsageLog (..),+ newUsageLog,++ -- ** UsageLog_EnabledLogTypesItem+ UsageLog_EnabledLogTypesItem (..),++ -- ** UsageLog_UploadOnCellularAllowedItem+ UsageLog_UploadOnCellularAllowedItem (..),++ -- ** UsageLogEvent+ UsageLogEvent (..),+ newUsageLogEvent,++ -- ** UsageLogEvent_EventType+ UsageLogEvent_EventType (..),++ -- ** User+ User (..),+ newUser,++ -- ** UserFacingMessage+ UserFacingMessage (..),+ newUserFacingMessage,++ -- ** UserFacingMessage_LocalizedMessages+ UserFacingMessage_LocalizedMessages (..),+ newUserFacingMessage_LocalizedMessages,++ -- ** WebApp+ WebApp (..),+ newWebApp,++ -- ** WebApp_DisplayMode+ WebApp_DisplayMode (..),++ -- ** WebAppIcon+ WebAppIcon (..),+ newWebAppIcon,++ -- ** WebToken+ WebToken (..),+ newWebToken,++ -- ** WebToken_EnabledFeaturesItem+ WebToken_EnabledFeaturesItem (..),++ -- ** WebToken_PermissionsItem+ WebToken_PermissionsItem (..),++ -- ** WifiRoamingPolicy+ WifiRoamingPolicy (..),+ newWifiRoamingPolicy,++ -- ** WifiRoamingSetting+ WifiRoamingSetting (..),+ newWifiRoamingSetting,++ -- ** WifiRoamingSetting_WifiRoamingMode+ WifiRoamingSetting_WifiRoamingMode (..),++ -- ** WifiSsid+ WifiSsid (..),+ newWifiSsid,++ -- ** WifiSsidPolicy+ WifiSsidPolicy (..),+ newWifiSsidPolicy,++ -- ** WifiSsidPolicy_WifiSsidPolicyType+ WifiSsidPolicy_WifiSsidPolicyType (..),++ -- ** WipeAction+ WipeAction (..),+ newWipeAction,++ -- ** WipeFailureEvent+ WipeFailureEvent (..),+ newWipeFailureEvent,++ -- ** EnterprisesDevicesDeleteWipeDataFlags+ EnterprisesDevicesDeleteWipeDataFlags (..),++ -- ** EnterprisesListView+ EnterprisesListView (..),+ )+where++import Gogol.AndroidManagement.Enterprises.Applications.Get+import Gogol.AndroidManagement.Enterprises.Create+import Gogol.AndroidManagement.Enterprises.Delete+import Gogol.AndroidManagement.Enterprises.Devices.Delete+import Gogol.AndroidManagement.Enterprises.Devices.Get+import Gogol.AndroidManagement.Enterprises.Devices.IssueCommand+import Gogol.AndroidManagement.Enterprises.Devices.List+import Gogol.AndroidManagement.Enterprises.Devices.Operations.Cancel+import Gogol.AndroidManagement.Enterprises.Devices.Operations.Get+import Gogol.AndroidManagement.Enterprises.Devices.Operations.List+import Gogol.AndroidManagement.Enterprises.Devices.Patch+import Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Create+import Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Delete+import Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Get+import Gogol.AndroidManagement.Enterprises.EnrollmentTokens.List+import Gogol.AndroidManagement.Enterprises.GenerateEnterpriseUpgradeUrl+import Gogol.AndroidManagement.Enterprises.Get+import Gogol.AndroidManagement.Enterprises.List+import Gogol.AndroidManagement.Enterprises.MigrationTokens.Create+import Gogol.AndroidManagement.Enterprises.MigrationTokens.Get+import Gogol.AndroidManagement.Enterprises.MigrationTokens.List+import Gogol.AndroidManagement.Enterprises.Patch+import Gogol.AndroidManagement.Enterprises.Policies.Delete+import Gogol.AndroidManagement.Enterprises.Policies.Get+import Gogol.AndroidManagement.Enterprises.Policies.List+import Gogol.AndroidManagement.Enterprises.Policies.Patch+import Gogol.AndroidManagement.Enterprises.WebApps.Create+import Gogol.AndroidManagement.Enterprises.WebApps.Delete+import Gogol.AndroidManagement.Enterprises.WebApps.Get+import Gogol.AndroidManagement.Enterprises.WebApps.List+import Gogol.AndroidManagement.Enterprises.WebApps.Patch+import Gogol.AndroidManagement.Enterprises.WebTokens.Create+import Gogol.AndroidManagement.ProvisioningInfo.Get+import Gogol.AndroidManagement.SignupUrls.Create+import Gogol.AndroidManagement.Types
+ gen/Gogol/AndroidManagement/Enterprises/Applications/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.AndroidManagement.Enterprises.Applications.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 info about an application.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.applications.get@.+module Gogol.AndroidManagement.Enterprises.Applications.Get+ ( -- * Resource+ AndroidManagementEnterprisesApplicationsGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesApplicationsGet (..),+ newAndroidManagementEnterprisesApplicationsGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.applications.get@ method which the+-- 'AndroidManagementEnterprisesApplicationsGet' request conforms to.+type AndroidManagementEnterprisesApplicationsGetResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ 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.Get '[Core.JSON] Application++-- | Gets info about an application.+--+-- /See:/ 'newAndroidManagementEnterprisesApplicationsGet' smart constructor.+data AndroidManagementEnterprisesApplicationsGet = AndroidManagementEnterprisesApplicationsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The preferred language for localized application info, as a BCP47 tag (e.g. \"en-US\", \"de\"). If not specified the default language of the application will be used.+ languageCode :: (Core.Maybe Core.Text),+ -- | The name of the application in the form enterprises\/{enterpriseId}\/applications\/{package_name}.+ name :: 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 'AndroidManagementEnterprisesApplicationsGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesApplicationsGet ::+ -- | The name of the application in the form enterprises\/{enterpriseId}\/applications\/{package_name}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesApplicationsGet+newAndroidManagementEnterprisesApplicationsGet name =+ AndroidManagementEnterprisesApplicationsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ languageCode = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesApplicationsGet+ where+ type Rs AndroidManagementEnterprisesApplicationsGet = Application+ type+ Scopes AndroidManagementEnterprisesApplicationsGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesApplicationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ languageCode+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesApplicationsGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Create.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.AndroidManagement.Enterprises.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)+--+-- Creates an enterprise. This is the last step in the enterprise signup flow. See also: SigninDetail+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.create@.+module Gogol.AndroidManagement.Enterprises.Create+ ( -- * Resource+ AndroidManagementEnterprisesCreateResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesCreate (..),+ newAndroidManagementEnterprisesCreate,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.create@ method which the+-- 'AndroidManagementEnterprisesCreate' request conforms to.+type AndroidManagementEnterprisesCreateResource =+ "v1"+ Core.:> "enterprises"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "agreementAccepted" Core.Bool+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "enterpriseToken" Core.Text+ Core.:> Core.QueryParam "projectId" Core.Text+ Core.:> Core.QueryParam "signupUrlName" 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++-- | Creates an enterprise. This is the last step in the enterprise signup flow. See also: SigninDetail+--+-- /See:/ 'newAndroidManagementEnterprisesCreate' smart constructor.+data AndroidManagementEnterprisesCreate = AndroidManagementEnterprisesCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | Whether the enterprise admin has seen and agreed to the managed Google Play Agreement (https:\/\/www.android.com\/enterprise\/terms\/). Do not set this field for any customer-managed enterprise (https:\/\/developers.google.com\/android\/management\/create-enterprise#customer-managed/enterprises). Set this to field to true for all EMM-managed enterprises (https:\/\/developers.google.com\/android\/management\/create-enterprise#emm-managed/enterprises).+ agreementAccepted :: (Core.Maybe Core.Bool),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The enterprise token appended to the callback URL. Set this when creating a customer-managed enterprise (https:\/\/developers.google.com\/android\/management\/create-enterprise#customer-managed/enterprises) and not when creating a deprecated EMM-managed enterprise (https:\/\/developers.google.com\/android\/management\/create-enterprise#emm-managed/enterprises).+ enterpriseToken :: (Core.Maybe Core.Text),+ -- | Multipart request metadata.+ payload :: Enterprise,+ -- | The ID of the Google Cloud Platform project which will own the enterprise.+ projectId :: (Core.Maybe Core.Text),+ -- | The name of the SignupUrl used to sign up for the enterprise. Set this when creating a customer-managed enterprise (https:\/\/developers.google.com\/android\/management\/create-enterprise#customer-managed/enterprises) and not when creating a deprecated EMM-managed enterprise (https:\/\/developers.google.com\/android\/management\/create-enterprise#emm-managed/enterprises).+ signupUrlName :: (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 'AndroidManagementEnterprisesCreate' with the minimum fields required to make a request.+newAndroidManagementEnterprisesCreate ::+ -- | Multipart request metadata. See 'payload'.+ Enterprise ->+ AndroidManagementEnterprisesCreate+newAndroidManagementEnterprisesCreate payload =+ AndroidManagementEnterprisesCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ agreementAccepted = Core.Nothing,+ callback = Core.Nothing,+ enterpriseToken = Core.Nothing,+ payload = payload,+ projectId = Core.Nothing,+ signupUrlName = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesCreate where+ type Rs AndroidManagementEnterprisesCreate = Enterprise+ type+ Scopes AndroidManagementEnterprisesCreate =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesCreate {..} =+ go+ xgafv+ accessToken+ agreementAccepted+ callback+ enterpriseToken+ projectId+ signupUrlName+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesCreateResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Delete.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.AndroidManagement.Enterprises.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)+--+-- Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted enterprise. Only available for EMM-managed enterprises.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.delete@.+module Gogol.AndroidManagement.Enterprises.Delete+ ( -- * Resource+ AndroidManagementEnterprisesDeleteResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDelete (..),+ newAndroidManagementEnterprisesDelete,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.delete@ method which the+-- 'AndroidManagementEnterprisesDelete' request conforms to.+type AndroidManagementEnterprisesDeleteResource =+ "v1"+ Core.:> Core.Capture "name" 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] Empty++-- | Permanently deletes an enterprise and all accounts and data associated with it. Warning: this will result in a cascaded deletion of all AM API devices associated with the deleted enterprise. Only available for EMM-managed enterprises.+--+-- /See:/ 'newAndroidManagementEnterprisesDelete' smart constructor.+data AndroidManagementEnterprisesDelete = AndroidManagementEnterprisesDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ name :: 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 'AndroidManagementEnterprisesDelete' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDelete ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesDelete+newAndroidManagementEnterprisesDelete name =+ AndroidManagementEnterprisesDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesDelete where+ type Rs AndroidManagementEnterprisesDelete = Empty+ type+ Scopes AndroidManagementEnterprisesDelete =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/Delete.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.AndroidManagement.Enterprises.Devices.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 device. This operation wipes the device. Deleted devices do not show up in enterprises.devices.list calls and a 404 is returned from enterprises.devices.get.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.delete@.+module Gogol.AndroidManagement.Enterprises.Devices.Delete+ ( -- * Resource+ AndroidManagementEnterprisesDevicesDeleteResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesDelete (..),+ newAndroidManagementEnterprisesDevicesDelete,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.delete@ method which the+-- 'AndroidManagementEnterprisesDevicesDelete' request conforms to.+type AndroidManagementEnterprisesDevicesDeleteResource =+ "v1"+ Core.:> Core.Capture "name" 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.QueryParams+ "wipeDataFlags"+ EnterprisesDevicesDeleteWipeDataFlags+ Core.:> Core.QueryParam "wipeReasonMessage" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Delete '[Core.JSON] Empty++-- | Deletes a device. This operation wipes the device. Deleted devices do not show up in enterprises.devices.list calls and a 404 is returned from enterprises.devices.get.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesDelete' smart constructor.+data AndroidManagementEnterprisesDevicesDelete = AndroidManagementEnterprisesDevicesDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}.+ name :: 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),+ -- | Optional flags that control the device wiping behavior.+ wipeDataFlags :: (Core.Maybe [EnterprisesDevicesDeleteWipeDataFlags]),+ -- | Optional. A short message displayed to the user before wiping the work profile on personal devices. This has no effect on company owned devices. The maximum message length is 200 characters.+ wipeReasonMessage :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidManagementEnterprisesDevicesDelete' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesDelete ::+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesDevicesDelete+newAndroidManagementEnterprisesDevicesDelete name =+ AndroidManagementEnterprisesDevicesDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ wipeDataFlags = Core.Nothing,+ wipeReasonMessage = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesDevicesDelete+ where+ type Rs AndroidManagementEnterprisesDevicesDelete = Empty+ type+ Scopes AndroidManagementEnterprisesDevicesDelete =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDevicesDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (wipeDataFlags Core.^. Core._Default)+ wipeReasonMessage+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesDevicesDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/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.AndroidManagement.Enterprises.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)+--+-- Gets a device. Deleted devices will respond with a 404 error.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.get@.+module Gogol.AndroidManagement.Enterprises.Devices.Get+ ( -- * Resource+ AndroidManagementEnterprisesDevicesGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesGet (..),+ newAndroidManagementEnterprisesDevicesGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.get@ method which the+-- 'AndroidManagementEnterprisesDevicesGet' request conforms to.+type AndroidManagementEnterprisesDevicesGetResource =+ "v1"+ Core.:> Core.Capture "name" 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++-- | Gets a device. Deleted devices will respond with a 404 error.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesGet' smart constructor.+data AndroidManagementEnterprisesDevicesGet = AndroidManagementEnterprisesDevicesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}.+ name :: 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 'AndroidManagementEnterprisesDevicesGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesGet ::+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesDevicesGet+newAndroidManagementEnterprisesDevicesGet name =+ AndroidManagementEnterprisesDevicesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesDevicesGet where+ type Rs AndroidManagementEnterprisesDevicesGet = Device+ type+ Scopes AndroidManagementEnterprisesDevicesGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDevicesGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesDevicesGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/IssueCommand.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.AndroidManagement.Enterprises.Devices.IssueCommand+-- 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)+--+-- Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.issueCommand@.+module Gogol.AndroidManagement.Enterprises.Devices.IssueCommand+ ( -- * Resource+ AndroidManagementEnterprisesDevicesIssueCommandResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesIssueCommand (..),+ newAndroidManagementEnterprisesDevicesIssueCommand,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.issueCommand@ method which the+-- 'AndroidManagementEnterprisesDevicesIssueCommand' request conforms to.+type AndroidManagementEnterprisesDevicesIssueCommandResource =+ "v1"+ Core.:> Core.CaptureMode "name" "issueCommand" 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] Command+ Core.:> Core.Post '[Core.JSON] Operation++-- | Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesIssueCommand' smart constructor.+data AndroidManagementEnterprisesDevicesIssueCommand = AndroidManagementEnterprisesDevicesIssueCommand+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Command,+ -- | 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 'AndroidManagementEnterprisesDevicesIssueCommand' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesIssueCommand ::+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Command ->+ AndroidManagementEnterprisesDevicesIssueCommand+newAndroidManagementEnterprisesDevicesIssueCommand name payload =+ AndroidManagementEnterprisesDevicesIssueCommand+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesDevicesIssueCommand+ where+ type Rs AndroidManagementEnterprisesDevicesIssueCommand = Operation+ type+ Scopes AndroidManagementEnterprisesDevicesIssueCommand =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDevicesIssueCommand {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesDevicesIssueCommandResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/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.AndroidManagement.Enterprises.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)+--+-- Lists devices for a given enterprise. Deleted devices are not returned in the response.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.list@.+module Gogol.AndroidManagement.Enterprises.Devices.List+ ( -- * Resource+ AndroidManagementEnterprisesDevicesListResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesList (..),+ newAndroidManagementEnterprisesDevicesList,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.list@ method which the+-- 'AndroidManagementEnterprisesDevicesList' request conforms to.+type AndroidManagementEnterprisesDevicesListResource =+ "v1"+ Core.:> Core.Capture "parent" 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 "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" 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] ListDevicesResponse++-- | Lists devices for a given enterprise. Deleted devices are not returned in the response.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesList' smart constructor.+data AndroidManagementEnterprisesDevicesList = AndroidManagementEnterprisesDevicesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The requested page size. The actual page size may be fixed to a min or max value.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A token identifying a page of results returned by the server.+ pageToken :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ parent :: 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 'AndroidManagementEnterprisesDevicesList' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesList ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'parent'.+ Core.Text ->+ AndroidManagementEnterprisesDevicesList+newAndroidManagementEnterprisesDevicesList parent =+ AndroidManagementEnterprisesDevicesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesDevicesList where+ type+ Rs AndroidManagementEnterprisesDevicesList =+ ListDevicesResponse+ type+ Scopes AndroidManagementEnterprisesDevicesList =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDevicesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesDevicesListResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/Operations/Cancel.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.AndroidManagement.Enterprises.Devices.Operations.Cancel+-- 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)+--+-- Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn\'t support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.operations.cancel@.+module Gogol.AndroidManagement.Enterprises.Devices.Operations.Cancel+ ( -- * Resource+ AndroidManagementEnterprisesDevicesOperationsCancelResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesOperationsCancel (..),+ newAndroidManagementEnterprisesDevicesOperationsCancel,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.operations.cancel@ method which the+-- 'AndroidManagementEnterprisesDevicesOperationsCancel' request conforms to.+type AndroidManagementEnterprisesDevicesOperationsCancelResource =+ "v1"+ Core.:> Core.CaptureMode "name" "cancel" 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.Post '[Core.JSON] Empty++-- | Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn\'t support this method, it returns google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of 1, corresponding to Code.CANCELLED.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesOperationsCancel' smart constructor.+data AndroidManagementEnterprisesDevicesOperationsCancel = AndroidManagementEnterprisesDevicesOperationsCancel+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the operation resource to be cancelled.+ name :: 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 'AndroidManagementEnterprisesDevicesOperationsCancel' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesOperationsCancel ::+ -- | The name of the operation resource to be cancelled. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesDevicesOperationsCancel+newAndroidManagementEnterprisesDevicesOperationsCancel name =+ AndroidManagementEnterprisesDevicesOperationsCancel+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesDevicesOperationsCancel+ where+ type Rs AndroidManagementEnterprisesDevicesOperationsCancel = Empty+ type+ Scopes AndroidManagementEnterprisesDevicesOperationsCancel =+ '[Androidmanagement'FullControl]+ requestClient+ AndroidManagementEnterprisesDevicesOperationsCancel {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesDevicesOperationsCancelResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/Operations/Get.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.AndroidManagement.Enterprises.Devices.Operations.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 the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.operations.get@.+module Gogol.AndroidManagement.Enterprises.Devices.Operations.Get+ ( -- * Resource+ AndroidManagementEnterprisesDevicesOperationsGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesOperationsGet (..),+ newAndroidManagementEnterprisesDevicesOperationsGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.operations.get@ method which the+-- 'AndroidManagementEnterprisesDevicesOperationsGet' request conforms to.+type AndroidManagementEnterprisesDevicesOperationsGetResource =+ "v1"+ Core.:> Core.Capture "name" 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] Operation++-- | Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesOperationsGet' smart constructor.+data AndroidManagementEnterprisesDevicesOperationsGet = AndroidManagementEnterprisesDevicesOperationsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the operation resource.+ name :: 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 'AndroidManagementEnterprisesDevicesOperationsGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesOperationsGet ::+ -- | The name of the operation resource. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesDevicesOperationsGet+newAndroidManagementEnterprisesDevicesOperationsGet name =+ AndroidManagementEnterprisesDevicesOperationsGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesDevicesOperationsGet+ where+ type+ Rs AndroidManagementEnterprisesDevicesOperationsGet =+ Operation+ type+ Scopes AndroidManagementEnterprisesDevicesOperationsGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDevicesOperationsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesDevicesOperationsGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/Operations/List.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.AndroidManagement.Enterprises.Devices.Operations.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 operations that match the specified filter in the request. If the server doesn\'t support this method, it returns UNIMPLEMENTED.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.operations.list@.+module Gogol.AndroidManagement.Enterprises.Devices.Operations.List+ ( -- * Resource+ AndroidManagementEnterprisesDevicesOperationsListResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesOperationsList (..),+ newAndroidManagementEnterprisesDevicesOperationsList,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.operations.list@ method which the+-- 'AndroidManagementEnterprisesDevicesOperationsList' request conforms to.+type AndroidManagementEnterprisesDevicesOperationsListResource =+ "v1"+ Core.:> Core.Capture "name" Core.Text+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "filter" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" 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] ListOperationsResponse++-- | Lists operations that match the specified filter in the request. If the server doesn\'t support this method, it returns UNIMPLEMENTED.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesOperationsList' smart constructor.+data AndroidManagementEnterprisesDevicesOperationsList = AndroidManagementEnterprisesDevicesOperationsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The standard list filter.+ filter :: (Core.Maybe Core.Text),+ -- | The name of the operation\'s parent resource.+ name :: Core.Text,+ -- | The standard list page size.+ pageSize :: (Core.Maybe Core.Int32),+ -- | The standard list page token.+ pageToken :: (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 'AndroidManagementEnterprisesDevicesOperationsList' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesOperationsList ::+ -- | The name of the operation\'s parent resource. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesDevicesOperationsList+newAndroidManagementEnterprisesDevicesOperationsList name =+ AndroidManagementEnterprisesDevicesOperationsList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ filter = Core.Nothing,+ name = name,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesDevicesOperationsList+ where+ type+ Rs AndroidManagementEnterprisesDevicesOperationsList =+ ListOperationsResponse+ type+ Scopes AndroidManagementEnterprisesDevicesOperationsList =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDevicesOperationsList {..} =+ go+ name+ xgafv+ accessToken+ callback+ filter+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesDevicesOperationsListResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Devices/Patch.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.AndroidManagement.Enterprises.Devices.Patch+-- 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 device.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.patch@.+module Gogol.AndroidManagement.Enterprises.Devices.Patch+ ( -- * Resource+ AndroidManagementEnterprisesDevicesPatchResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesDevicesPatch (..),+ newAndroidManagementEnterprisesDevicesPatch,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.devices.patch@ method which the+-- 'AndroidManagementEnterprisesDevicesPatch' request conforms to.+type AndroidManagementEnterprisesDevicesPatchResource =+ "v1"+ Core.:> Core.Capture "name" 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.FieldMask+ 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.Patch '[Core.JSON] Device++-- | Updates a device.+--+-- /See:/ 'newAndroidManagementEnterprisesDevicesPatch' smart constructor.+data AndroidManagementEnterprisesDevicesPatch = AndroidManagementEnterprisesDevicesPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Device,+ -- | The field mask indicating the fields to update. If not set, all modifiable fields will be modified.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | 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 'AndroidManagementEnterprisesDevicesPatch' with the minimum fields required to make a request.+newAndroidManagementEnterprisesDevicesPatch ::+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Device ->+ AndroidManagementEnterprisesDevicesPatch+newAndroidManagementEnterprisesDevicesPatch name payload =+ AndroidManagementEnterprisesDevicesPatch+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesDevicesPatch+ where+ type Rs AndroidManagementEnterprisesDevicesPatch = Device+ type+ Scopes AndroidManagementEnterprisesDevicesPatch =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesDevicesPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesDevicesPatchResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/Create.hs view
@@ -0,0 +1,129 @@+{-# 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.AndroidManagement.Enterprises.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)+--+-- Creates an enrollment token for a given enterprise. It\'s up to the caller\'s responsibility to manage the lifecycle of newly created tokens and deleting them when they\'re not intended to be used anymore.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.enrollmentTokens.create@.+module Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Create+ ( -- * Resource+ AndroidManagementEnterprisesEnrollmentTokensCreateResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesEnrollmentTokensCreate (..),+ newAndroidManagementEnterprisesEnrollmentTokensCreate,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.enrollmentTokens.create@ method which the+-- 'AndroidManagementEnterprisesEnrollmentTokensCreate' request conforms to.+type AndroidManagementEnterprisesEnrollmentTokensCreateResource =+ "v1"+ Core.:> Core.Capture "parent" 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++-- | Creates an enrollment token for a given enterprise. It\'s up to the caller\'s responsibility to manage the lifecycle of newly created tokens and deleting them when they\'re not intended to be used anymore.+--+-- /See:/ 'newAndroidManagementEnterprisesEnrollmentTokensCreate' smart constructor.+data AndroidManagementEnterprisesEnrollmentTokensCreate = AndroidManagementEnterprisesEnrollmentTokensCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ parent :: 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 'AndroidManagementEnterprisesEnrollmentTokensCreate' with the minimum fields required to make a request.+newAndroidManagementEnterprisesEnrollmentTokensCreate ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ EnrollmentToken ->+ AndroidManagementEnterprisesEnrollmentTokensCreate+newAndroidManagementEnterprisesEnrollmentTokensCreate+ parent+ payload =+ AndroidManagementEnterprisesEnrollmentTokensCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesEnrollmentTokensCreate+ where+ type+ Rs AndroidManagementEnterprisesEnrollmentTokensCreate =+ EnrollmentToken+ type+ Scopes AndroidManagementEnterprisesEnrollmentTokensCreate =+ '[Androidmanagement'FullControl]+ requestClient+ AndroidManagementEnterprisesEnrollmentTokensCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesEnrollmentTokensCreateResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/Delete.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.AndroidManagement.Enterprises.EnrollmentTokens.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 enrollment token. This operation invalidates the token, preventing its future use.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.enrollmentTokens.delete@.+module Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Delete+ ( -- * Resource+ AndroidManagementEnterprisesEnrollmentTokensDeleteResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesEnrollmentTokensDelete (..),+ newAndroidManagementEnterprisesEnrollmentTokensDelete,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.enrollmentTokens.delete@ method which the+-- 'AndroidManagementEnterprisesEnrollmentTokensDelete' request conforms to.+type AndroidManagementEnterprisesEnrollmentTokensDeleteResource =+ "v1"+ Core.:> Core.Capture "name" 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] Empty++-- | Deletes an enrollment token. This operation invalidates the token, preventing its future use.+--+-- /See:/ 'newAndroidManagementEnterprisesEnrollmentTokensDelete' smart constructor.+data AndroidManagementEnterprisesEnrollmentTokensDelete = AndroidManagementEnterprisesEnrollmentTokensDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the enrollment token in the form enterprises\/{enterpriseId}\/enrollmentTokens\/{enrollmentTokenId}.+ name :: 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 'AndroidManagementEnterprisesEnrollmentTokensDelete' with the minimum fields required to make a request.+newAndroidManagementEnterprisesEnrollmentTokensDelete ::+ -- | The name of the enrollment token in the form enterprises\/{enterpriseId}\/enrollmentTokens\/{enrollmentTokenId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesEnrollmentTokensDelete+newAndroidManagementEnterprisesEnrollmentTokensDelete name =+ AndroidManagementEnterprisesEnrollmentTokensDelete+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesEnrollmentTokensDelete+ where+ type Rs AndroidManagementEnterprisesEnrollmentTokensDelete = Empty+ type+ Scopes AndroidManagementEnterprisesEnrollmentTokensDelete =+ '[Androidmanagement'FullControl]+ requestClient+ AndroidManagementEnterprisesEnrollmentTokensDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesEnrollmentTokensDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/Get.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.AndroidManagement.Enterprises.EnrollmentTokens.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 active, unexpired enrollment token. A partial view of the enrollment token is returned. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it\'s recommended to delete active enrollment tokens as soon as they\'re not intended to be used anymore.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.enrollmentTokens.get@.+module Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Get+ ( -- * Resource+ AndroidManagementEnterprisesEnrollmentTokensGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesEnrollmentTokensGet (..),+ newAndroidManagementEnterprisesEnrollmentTokensGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.enrollmentTokens.get@ method which the+-- 'AndroidManagementEnterprisesEnrollmentTokensGet' request conforms to.+type AndroidManagementEnterprisesEnrollmentTokensGetResource =+ "v1"+ Core.:> Core.Capture "name" 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] EnrollmentToken++-- | Gets an active, unexpired enrollment token. A partial view of the enrollment token is returned. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it\'s recommended to delete active enrollment tokens as soon as they\'re not intended to be used anymore.+--+-- /See:/ 'newAndroidManagementEnterprisesEnrollmentTokensGet' smart constructor.+data AndroidManagementEnterprisesEnrollmentTokensGet = AndroidManagementEnterprisesEnrollmentTokensGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the enrollment token in the form enterprises\/{enterpriseId}\/enrollmentTokens\/{enrollmentTokenId}.+ name :: 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 'AndroidManagementEnterprisesEnrollmentTokensGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesEnrollmentTokensGet ::+ -- | Required. The name of the enrollment token in the form enterprises\/{enterpriseId}\/enrollmentTokens\/{enrollmentTokenId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesEnrollmentTokensGet+newAndroidManagementEnterprisesEnrollmentTokensGet name =+ AndroidManagementEnterprisesEnrollmentTokensGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesEnrollmentTokensGet+ where+ type+ Rs AndroidManagementEnterprisesEnrollmentTokensGet =+ EnrollmentToken+ type+ Scopes AndroidManagementEnterprisesEnrollmentTokensGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesEnrollmentTokensGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesEnrollmentTokensGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/EnrollmentTokens/List.hs view
@@ -0,0 +1,129 @@+{-# 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.AndroidManagement.Enterprises.EnrollmentTokens.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 active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken object. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it\'s recommended to delete active enrollment tokens as soon as they\'re not intended to be used anymore.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.enrollmentTokens.list@.+module Gogol.AndroidManagement.Enterprises.EnrollmentTokens.List+ ( -- * Resource+ AndroidManagementEnterprisesEnrollmentTokensListResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesEnrollmentTokensList (..),+ newAndroidManagementEnterprisesEnrollmentTokensList,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.enrollmentTokens.list@ method which the+-- 'AndroidManagementEnterprisesEnrollmentTokensList' request conforms to.+type AndroidManagementEnterprisesEnrollmentTokensListResource =+ "v1"+ Core.:> Core.Capture "parent" 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 "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" 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] ListEnrollmentTokensResponse++-- | Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken object. Only the following fields are populated: name, expirationTimestamp, allowPersonalUsage, value, qrCode. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it\'s recommended to delete active enrollment tokens as soon as they\'re not intended to be used anymore.+--+-- /See:/ 'newAndroidManagementEnterprisesEnrollmentTokensList' smart constructor.+data AndroidManagementEnterprisesEnrollmentTokensList = AndroidManagementEnterprisesEnrollmentTokensList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The requested page size. The service may return fewer than this value. If unspecified, at most 10 items will be returned. The maximum value is 100; values above 100 will be coerced to 100.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A token identifying a page of results returned by the server.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The name of the enterprise in the form enterprises\/{enterpriseId}.+ parent :: 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 'AndroidManagementEnterprisesEnrollmentTokensList' with the minimum fields required to make a request.+newAndroidManagementEnterprisesEnrollmentTokensList ::+ -- | Required. The name of the enterprise in the form enterprises\/{enterpriseId}. See 'parent'.+ Core.Text ->+ AndroidManagementEnterprisesEnrollmentTokensList+newAndroidManagementEnterprisesEnrollmentTokensList parent =+ AndroidManagementEnterprisesEnrollmentTokensList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesEnrollmentTokensList+ where+ type+ Rs AndroidManagementEnterprisesEnrollmentTokensList =+ ListEnrollmentTokensResponse+ type+ Scopes AndroidManagementEnterprisesEnrollmentTokensList =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesEnrollmentTokensList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesEnrollmentTokensListResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/GenerateEnterpriseUpgradeUrl.hs view
@@ -0,0 +1,129 @@+{-# 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.AndroidManagement.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/management Android Management API Reference> for @androidmanagement.enterprises.generateEnterpriseUpgradeUrl@.+module Gogol.AndroidManagement.Enterprises.GenerateEnterpriseUpgradeUrl+ ( -- * Resource+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrlResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl (..),+ newAndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.generateEnterpriseUpgradeUrl@ method which the+-- 'AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl' request conforms to.+type AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrlResource =+ "v1"+ Core.:> Core.CaptureMode "name" "generateEnterpriseUpgradeUrl" 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] GenerateEnterpriseUpgradeUrlRequest+ 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:/ 'newAndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl' smart constructor.+data AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl = AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the enterprise to be upgraded in the form enterprises\/{enterpriseId}.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: GenerateEnterpriseUpgradeUrlRequest,+ -- | 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 'AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl' with the minimum fields required to make a request.+newAndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl ::+ -- | Required. The name of the enterprise to be upgraded in the form enterprises\/{enterpriseId}. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ GenerateEnterpriseUpgradeUrlRequest ->+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl+newAndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl+ name+ payload =+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl+ where+ type+ Rs AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl =+ GenerateEnterpriseUpgradeUrlResponse+ type+ Scopes+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl =+ '[Androidmanagement'FullControl]+ requestClient+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrl {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesGenerateEnterpriseUpgradeUrlResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Get.hs view
@@ -0,0 +1,109 @@+{-# 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.AndroidManagement.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)+--+-- Gets an enterprise.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.get@.+module Gogol.AndroidManagement.Enterprises.Get+ ( -- * Resource+ AndroidManagementEnterprisesGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesGet (..),+ newAndroidManagementEnterprisesGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.get@ method which the+-- 'AndroidManagementEnterprisesGet' request conforms to.+type AndroidManagementEnterprisesGetResource =+ "v1"+ Core.:> Core.Capture "name" 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++-- | Gets an enterprise.+--+-- /See:/ 'newAndroidManagementEnterprisesGet' smart constructor.+data AndroidManagementEnterprisesGet = AndroidManagementEnterprisesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ name :: 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 'AndroidManagementEnterprisesGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesGet ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesGet+newAndroidManagementEnterprisesGet name =+ AndroidManagementEnterprisesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesGet where+ type Rs AndroidManagementEnterprisesGet = Enterprise+ type+ Scopes AndroidManagementEnterprisesGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidManagementEnterprisesGetResource)+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/List.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.AndroidManagement.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)+--+-- Lists EMM-managed enterprises. Only BASIC fields are returned.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.list@.+module Gogol.AndroidManagement.Enterprises.List+ ( -- * Resource+ AndroidManagementEnterprisesListResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesList (..),+ newAndroidManagementEnterprisesList,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.list@ method which the+-- 'AndroidManagementEnterprisesList' request conforms to.+type AndroidManagementEnterprisesListResource =+ "v1"+ Core.:> "enterprises"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" Core.Text+ Core.:> Core.QueryParam "projectId" Core.Text+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "view" EnterprisesListView+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.Get '[Core.JSON] ListEnterprisesResponse++-- | Lists EMM-managed enterprises. Only BASIC fields are returned.+--+-- /See:/ 'newAndroidManagementEnterprisesList' smart constructor.+data AndroidManagementEnterprisesList = AndroidManagementEnterprisesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The requested page size. The actual page size may be fixed to a min or max value.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A token identifying a page of results returned by the server.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The Cloud project ID of the EMM managing the enterprises.+ projectId :: (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),+ -- | Specifies which Enterprise fields to return. This method only supports BASIC.+ view :: (Core.Maybe EnterprisesListView)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AndroidManagementEnterprisesList' with the minimum fields required to make a request.+newAndroidManagementEnterprisesList ::+ AndroidManagementEnterprisesList+newAndroidManagementEnterprisesList =+ AndroidManagementEnterprisesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ projectId = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing,+ view = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesList where+ type Rs AndroidManagementEnterprisesList = ListEnterprisesResponse+ type+ Scopes AndroidManagementEnterprisesList =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesList {..} =+ go+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ projectId+ uploadType+ uploadProtocol+ view+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ (Core.Proxy :: Core.Proxy AndroidManagementEnterprisesListResource)+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/MigrationTokens/Create.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.AndroidManagement.Enterprises.MigrationTokens.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)+--+-- Creates a migration token, to migrate an existing device from being managed by the EMM\'s Device Policy Controller (DPC) to being managed by the Android Management API. See the guide (https:\/\/developers.google.com\/android\/management\/dpc-migration) for more details.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.migrationTokens.create@.+module Gogol.AndroidManagement.Enterprises.MigrationTokens.Create+ ( -- * Resource+ AndroidManagementEnterprisesMigrationTokensCreateResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesMigrationTokensCreate (..),+ newAndroidManagementEnterprisesMigrationTokensCreate,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.migrationTokens.create@ method which the+-- 'AndroidManagementEnterprisesMigrationTokensCreate' request conforms to.+type AndroidManagementEnterprisesMigrationTokensCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "migrationTokens"+ 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] MigrationToken+ Core.:> Core.Post '[Core.JSON] MigrationToken++-- | Creates a migration token, to migrate an existing device from being managed by the EMM\'s Device Policy Controller (DPC) to being managed by the Android Management API. See the guide (https:\/\/developers.google.com\/android\/management\/dpc-migration) for more details.+--+-- /See:/ 'newAndroidManagementEnterprisesMigrationTokensCreate' smart constructor.+data AndroidManagementEnterprisesMigrationTokensCreate = AndroidManagementEnterprisesMigrationTokensCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The enterprise in which this migration token is created. This must be the same enterprise which already manages the device in the Play EMM API. Format: enterprises\/{enterprise}+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: MigrationToken,+ -- | 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 'AndroidManagementEnterprisesMigrationTokensCreate' with the minimum fields required to make a request.+newAndroidManagementEnterprisesMigrationTokensCreate ::+ -- | Required. The enterprise in which this migration token is created. This must be the same enterprise which already manages the device in the Play EMM API. Format: enterprises\/{enterprise} See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ MigrationToken ->+ AndroidManagementEnterprisesMigrationTokensCreate+newAndroidManagementEnterprisesMigrationTokensCreate parent payload =+ AndroidManagementEnterprisesMigrationTokensCreate+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesMigrationTokensCreate+ where+ type+ Rs AndroidManagementEnterprisesMigrationTokensCreate =+ MigrationToken+ type+ Scopes AndroidManagementEnterprisesMigrationTokensCreate =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesMigrationTokensCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy+ AndroidManagementEnterprisesMigrationTokensCreateResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/MigrationTokens/Get.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.AndroidManagement.Enterprises.MigrationTokens.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 a migration token.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.migrationTokens.get@.+module Gogol.AndroidManagement.Enterprises.MigrationTokens.Get+ ( -- * Resource+ AndroidManagementEnterprisesMigrationTokensGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesMigrationTokensGet (..),+ newAndroidManagementEnterprisesMigrationTokensGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.migrationTokens.get@ method which the+-- 'AndroidManagementEnterprisesMigrationTokensGet' request conforms to.+type AndroidManagementEnterprisesMigrationTokensGetResource =+ "v1"+ Core.:> Core.Capture "name" 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] MigrationToken++-- | Gets a migration token.+--+-- /See:/ 'newAndroidManagementEnterprisesMigrationTokensGet' smart constructor.+data AndroidManagementEnterprisesMigrationTokensGet = AndroidManagementEnterprisesMigrationTokensGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The name of the migration token to retrieve. Format: enterprises\/{enterprise}\/migrationTokens\/{migration_token}+ name :: 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 'AndroidManagementEnterprisesMigrationTokensGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesMigrationTokensGet ::+ -- | Required. The name of the migration token to retrieve. Format: enterprises\/{enterprise}\/migrationTokens\/{migration_token} See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesMigrationTokensGet+newAndroidManagementEnterprisesMigrationTokensGet name =+ AndroidManagementEnterprisesMigrationTokensGet+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesMigrationTokensGet+ where+ type+ Rs AndroidManagementEnterprisesMigrationTokensGet =+ MigrationToken+ type+ Scopes AndroidManagementEnterprisesMigrationTokensGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesMigrationTokensGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesMigrationTokensGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/MigrationTokens/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.AndroidManagement.Enterprises.MigrationTokens.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 migration tokens.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.migrationTokens.list@.+module Gogol.AndroidManagement.Enterprises.MigrationTokens.List+ ( -- * Resource+ AndroidManagementEnterprisesMigrationTokensListResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesMigrationTokensList (..),+ newAndroidManagementEnterprisesMigrationTokensList,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.migrationTokens.list@ method which the+-- 'AndroidManagementEnterprisesMigrationTokensList' request conforms to.+type AndroidManagementEnterprisesMigrationTokensListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "migrationTokens"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" 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] ListMigrationTokensResponse++-- | Lists migration tokens.+--+-- /See:/ 'newAndroidManagementEnterprisesMigrationTokensList' smart constructor.+data AndroidManagementEnterprisesMigrationTokensList = AndroidManagementEnterprisesMigrationTokensList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The maximum number of migration tokens to return. Fewer migration tokens may be returned. If unspecified, at most 100 migration tokens will be returned. The maximum value is 100; values above 100 will be coerced to 100.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A page token, received from a previous ListMigrationTokens call. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to ListMigrationTokens must match the call that provided the page token.+ pageToken :: (Core.Maybe Core.Text),+ -- | Required. The enterprise which the migration tokens belong to. Format: enterprises\/{enterprise}+ parent :: 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 'AndroidManagementEnterprisesMigrationTokensList' with the minimum fields required to make a request.+newAndroidManagementEnterprisesMigrationTokensList ::+ -- | Required. The enterprise which the migration tokens belong to. Format: enterprises\/{enterprise} See 'parent'.+ Core.Text ->+ AndroidManagementEnterprisesMigrationTokensList+newAndroidManagementEnterprisesMigrationTokensList parent =+ AndroidManagementEnterprisesMigrationTokensList+ { xgafv =+ Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesMigrationTokensList+ where+ type+ Rs AndroidManagementEnterprisesMigrationTokensList =+ ListMigrationTokensResponse+ type+ Scopes AndroidManagementEnterprisesMigrationTokensList =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesMigrationTokensList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesMigrationTokensListResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Patch.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.AndroidManagement.Enterprises.Patch+-- 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 enterprise. See also: SigninDetail+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.patch@.+module Gogol.AndroidManagement.Enterprises.Patch+ ( -- * Resource+ AndroidManagementEnterprisesPatchResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesPatch (..),+ newAndroidManagementEnterprisesPatch,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.patch@ method which the+-- 'AndroidManagementEnterprisesPatch' request conforms to.+type AndroidManagementEnterprisesPatchResource =+ "v1"+ Core.:> Core.Capture "name" 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.FieldMask+ 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.Patch '[Core.JSON] Enterprise++-- | Updates an enterprise. See also: SigninDetail+--+-- /See:/ 'newAndroidManagementEnterprisesPatch' smart constructor.+data AndroidManagementEnterprisesPatch = AndroidManagementEnterprisesPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Enterprise,+ -- | The field mask indicating the fields to update. If not set, all modifiable fields will be modified.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | 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 'AndroidManagementEnterprisesPatch' with the minimum fields required to make a request.+newAndroidManagementEnterprisesPatch ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Enterprise ->+ AndroidManagementEnterprisesPatch+newAndroidManagementEnterprisesPatch name payload =+ AndroidManagementEnterprisesPatch+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesPatch where+ type Rs AndroidManagementEnterprisesPatch = Enterprise+ type+ Scopes AndroidManagementEnterprisesPatch =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesPatchResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Policies/Delete.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.AndroidManagement.Enterprises.Policies.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 policy. This operation is only permitted if no devices are currently referencing the policy.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.delete@.+module Gogol.AndroidManagement.Enterprises.Policies.Delete+ ( -- * Resource+ AndroidManagementEnterprisesPoliciesDeleteResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesPoliciesDelete (..),+ newAndroidManagementEnterprisesPoliciesDelete,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.policies.delete@ method which the+-- 'AndroidManagementEnterprisesPoliciesDelete' request conforms to.+type AndroidManagementEnterprisesPoliciesDeleteResource =+ "v1"+ Core.:> Core.Capture "name" 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] Empty++-- | Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.+--+-- /See:/ 'newAndroidManagementEnterprisesPoliciesDelete' smart constructor.+data AndroidManagementEnterprisesPoliciesDelete = AndroidManagementEnterprisesPoliciesDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the policy in the form enterprises\/{enterpriseId}\/policies\/{policyId}.+ name :: 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 'AndroidManagementEnterprisesPoliciesDelete' with the minimum fields required to make a request.+newAndroidManagementEnterprisesPoliciesDelete ::+ -- | The name of the policy in the form enterprises\/{enterpriseId}\/policies\/{policyId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesPoliciesDelete+newAndroidManagementEnterprisesPoliciesDelete name =+ AndroidManagementEnterprisesPoliciesDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesPoliciesDelete+ where+ type Rs AndroidManagementEnterprisesPoliciesDelete = Empty+ type+ Scopes AndroidManagementEnterprisesPoliciesDelete =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesPoliciesDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesPoliciesDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Policies/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.AndroidManagement.Enterprises.Policies.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 a policy.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.get@.+module Gogol.AndroidManagement.Enterprises.Policies.Get+ ( -- * Resource+ AndroidManagementEnterprisesPoliciesGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesPoliciesGet (..),+ newAndroidManagementEnterprisesPoliciesGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.policies.get@ method which the+-- 'AndroidManagementEnterprisesPoliciesGet' request conforms to.+type AndroidManagementEnterprisesPoliciesGetResource =+ "v1"+ Core.:> Core.Capture "name" 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] Policy++-- | Gets a policy.+--+-- /See:/ 'newAndroidManagementEnterprisesPoliciesGet' smart constructor.+data AndroidManagementEnterprisesPoliciesGet = AndroidManagementEnterprisesPoliciesGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the policy in the form enterprises\/{enterpriseId}\/policies\/{policyId}.+ name :: 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 'AndroidManagementEnterprisesPoliciesGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesPoliciesGet ::+ -- | The name of the policy in the form enterprises\/{enterpriseId}\/policies\/{policyId}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesPoliciesGet+newAndroidManagementEnterprisesPoliciesGet name =+ AndroidManagementEnterprisesPoliciesGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesPoliciesGet where+ type Rs AndroidManagementEnterprisesPoliciesGet = Policy+ type+ Scopes AndroidManagementEnterprisesPoliciesGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesPoliciesGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesPoliciesGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Policies/List.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.AndroidManagement.Enterprises.Policies.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 policies for a given enterprise.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.list@.+module Gogol.AndroidManagement.Enterprises.Policies.List+ ( -- * Resource+ AndroidManagementEnterprisesPoliciesListResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesPoliciesList (..),+ newAndroidManagementEnterprisesPoliciesList,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.policies.list@ method which the+-- 'AndroidManagementEnterprisesPoliciesList' request conforms to.+type AndroidManagementEnterprisesPoliciesListResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "policies"+ Core.:> Core.QueryParam "$.xgafv" Xgafv+ Core.:> Core.QueryParam "access_token" Core.Text+ Core.:> Core.QueryParam "callback" Core.Text+ Core.:> Core.QueryParam "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" 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] ListPoliciesResponse++-- | Lists policies for a given enterprise.+--+-- /See:/ 'newAndroidManagementEnterprisesPoliciesList' smart constructor.+data AndroidManagementEnterprisesPoliciesList = AndroidManagementEnterprisesPoliciesList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The requested page size. The actual page size may be fixed to a min or max value.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A token identifying a page of results returned by the server.+ pageToken :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ parent :: 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 'AndroidManagementEnterprisesPoliciesList' with the minimum fields required to make a request.+newAndroidManagementEnterprisesPoliciesList ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'parent'.+ Core.Text ->+ AndroidManagementEnterprisesPoliciesList+newAndroidManagementEnterprisesPoliciesList parent =+ AndroidManagementEnterprisesPoliciesList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesPoliciesList+ where+ type+ Rs AndroidManagementEnterprisesPoliciesList =+ ListPoliciesResponse+ type+ Scopes AndroidManagementEnterprisesPoliciesList =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesPoliciesList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesPoliciesListResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/Policies/Patch.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.AndroidManagement.Enterprises.Policies.Patch+-- 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 or creates a policy.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.patch@.+module Gogol.AndroidManagement.Enterprises.Policies.Patch+ ( -- * Resource+ AndroidManagementEnterprisesPoliciesPatchResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesPoliciesPatch (..),+ newAndroidManagementEnterprisesPoliciesPatch,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.policies.patch@ method which the+-- 'AndroidManagementEnterprisesPoliciesPatch' request conforms to.+type AndroidManagementEnterprisesPoliciesPatchResource =+ "v1"+ Core.:> Core.Capture "name" 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.FieldMask+ Core.:> Core.QueryParam "uploadType" Core.Text+ Core.:> Core.QueryParam "upload_protocol" Core.Text+ Core.:> Core.QueryParam "alt" Core.AltJSON+ Core.:> Core.ReqBody '[Core.JSON] Policy+ Core.:> Core.Patch '[Core.JSON] Policy++-- | Updates or creates a policy.+--+-- /See:/ 'newAndroidManagementEnterprisesPoliciesPatch' smart constructor.+data AndroidManagementEnterprisesPoliciesPatch = AndroidManagementEnterprisesPoliciesPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the policy in the form enterprises\/{enterpriseId}\/policies\/{policyId}.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: Policy,+ -- | The field mask indicating the fields to update. If not set, all modifiable fields will be modified.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | 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 'AndroidManagementEnterprisesPoliciesPatch' with the minimum fields required to make a request.+newAndroidManagementEnterprisesPoliciesPatch ::+ -- | The name of the policy in the form enterprises\/{enterpriseId}\/policies\/{policyId}. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ Policy ->+ AndroidManagementEnterprisesPoliciesPatch+newAndroidManagementEnterprisesPoliciesPatch name payload =+ AndroidManagementEnterprisesPoliciesPatch+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesPoliciesPatch+ where+ type Rs AndroidManagementEnterprisesPoliciesPatch = Policy+ type+ Scopes AndroidManagementEnterprisesPoliciesPatch =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesPoliciesPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesPoliciesPatchResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/WebApps/Create.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.AndroidManagement.Enterprises.WebApps.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)+--+-- Creates a web app.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.create@.+module Gogol.AndroidManagement.Enterprises.WebApps.Create+ ( -- * Resource+ AndroidManagementEnterprisesWebAppsCreateResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesWebAppsCreate (..),+ newAndroidManagementEnterprisesWebAppsCreate,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.webApps.create@ method which the+-- 'AndroidManagementEnterprisesWebAppsCreate' request conforms to.+type AndroidManagementEnterprisesWebAppsCreateResource =+ "v1"+ Core.:> Core.Capture "parent" 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 web app.+--+-- /See:/ 'newAndroidManagementEnterprisesWebAppsCreate' smart constructor.+data AndroidManagementEnterprisesWebAppsCreate = AndroidManagementEnterprisesWebAppsCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ parent :: 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 'AndroidManagementEnterprisesWebAppsCreate' with the minimum fields required to make a request.+newAndroidManagementEnterprisesWebAppsCreate ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ WebApp ->+ AndroidManagementEnterprisesWebAppsCreate+newAndroidManagementEnterprisesWebAppsCreate parent payload =+ AndroidManagementEnterprisesWebAppsCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesWebAppsCreate+ where+ type Rs AndroidManagementEnterprisesWebAppsCreate = WebApp+ type+ Scopes AndroidManagementEnterprisesWebAppsCreate =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesWebAppsCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesWebAppsCreateResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/WebApps/Delete.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.AndroidManagement.Enterprises.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 a web app.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.delete@.+module Gogol.AndroidManagement.Enterprises.WebApps.Delete+ ( -- * Resource+ AndroidManagementEnterprisesWebAppsDeleteResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesWebAppsDelete (..),+ newAndroidManagementEnterprisesWebAppsDelete,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.webApps.delete@ method which the+-- 'AndroidManagementEnterprisesWebAppsDelete' request conforms to.+type AndroidManagementEnterprisesWebAppsDeleteResource =+ "v1"+ Core.:> Core.Capture "name" 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] Empty++-- | Deletes a web app.+--+-- /See:/ 'newAndroidManagementEnterprisesWebAppsDelete' smart constructor.+data AndroidManagementEnterprisesWebAppsDelete = AndroidManagementEnterprisesWebAppsDelete+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the web app in the form enterprises\/{enterpriseId}\/webApps\/{packageName}.+ name :: 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 'AndroidManagementEnterprisesWebAppsDelete' with the minimum fields required to make a request.+newAndroidManagementEnterprisesWebAppsDelete ::+ -- | The name of the web app in the form enterprises\/{enterpriseId}\/webApps\/{packageName}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesWebAppsDelete+newAndroidManagementEnterprisesWebAppsDelete name =+ AndroidManagementEnterprisesWebAppsDelete+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesWebAppsDelete+ where+ type Rs AndroidManagementEnterprisesWebAppsDelete = Empty+ type+ Scopes AndroidManagementEnterprisesWebAppsDelete =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesWebAppsDelete {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesWebAppsDeleteResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/WebApps/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.AndroidManagement.Enterprises.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 a web app.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.get@.+module Gogol.AndroidManagement.Enterprises.WebApps.Get+ ( -- * Resource+ AndroidManagementEnterprisesWebAppsGetResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesWebAppsGet (..),+ newAndroidManagementEnterprisesWebAppsGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.webApps.get@ method which the+-- 'AndroidManagementEnterprisesWebAppsGet' request conforms to.+type AndroidManagementEnterprisesWebAppsGetResource =+ "v1"+ Core.:> Core.Capture "name" 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 a web app.+--+-- /See:/ 'newAndroidManagementEnterprisesWebAppsGet' smart constructor.+data AndroidManagementEnterprisesWebAppsGet = AndroidManagementEnterprisesWebAppsGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the web app in the form enterprises\/{enterpriseId}\/webApp\/{packageName}.+ name :: 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 'AndroidManagementEnterprisesWebAppsGet' with the minimum fields required to make a request.+newAndroidManagementEnterprisesWebAppsGet ::+ -- | The name of the web app in the form enterprises\/{enterpriseId}\/webApp\/{packageName}. See 'name'.+ Core.Text ->+ AndroidManagementEnterprisesWebAppsGet+newAndroidManagementEnterprisesWebAppsGet name =+ AndroidManagementEnterprisesWebAppsGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesWebAppsGet where+ type Rs AndroidManagementEnterprisesWebAppsGet = WebApp+ type+ Scopes AndroidManagementEnterprisesWebAppsGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesWebAppsGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesWebAppsGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/WebApps/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.AndroidManagement.Enterprises.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)+--+-- Lists web apps for a given enterprise.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.list@.+module Gogol.AndroidManagement.Enterprises.WebApps.List+ ( -- * Resource+ AndroidManagementEnterprisesWebAppsListResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesWebAppsList (..),+ newAndroidManagementEnterprisesWebAppsList,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.webApps.list@ method which the+-- 'AndroidManagementEnterprisesWebAppsList' request conforms to.+type AndroidManagementEnterprisesWebAppsListResource =+ "v1"+ Core.:> Core.Capture "parent" 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 "pageSize" Core.Int32+ Core.:> Core.QueryParam "pageToken" 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] ListWebAppsResponse++-- | Lists web apps for a given enterprise.+--+-- /See:/ 'newAndroidManagementEnterprisesWebAppsList' smart constructor.+data AndroidManagementEnterprisesWebAppsList = AndroidManagementEnterprisesWebAppsList+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The requested page size. This is a hint and the actual page size in the response may be different.+ pageSize :: (Core.Maybe Core.Int32),+ -- | A token identifying a page of results returned by the server.+ pageToken :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ parent :: 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 'AndroidManagementEnterprisesWebAppsList' with the minimum fields required to make a request.+newAndroidManagementEnterprisesWebAppsList ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'parent'.+ Core.Text ->+ AndroidManagementEnterprisesWebAppsList+newAndroidManagementEnterprisesWebAppsList parent =+ AndroidManagementEnterprisesWebAppsList+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ pageSize = Core.Nothing,+ pageToken = Core.Nothing,+ parent = parent,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementEnterprisesWebAppsList where+ type+ Rs AndroidManagementEnterprisesWebAppsList =+ ListWebAppsResponse+ type+ Scopes AndroidManagementEnterprisesWebAppsList =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesWebAppsList {..} =+ go+ parent+ xgafv+ accessToken+ callback+ pageSize+ pageToken+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesWebAppsListResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/WebApps/Patch.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.AndroidManagement.Enterprises.WebApps.Patch+-- 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 web app.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.patch@.+module Gogol.AndroidManagement.Enterprises.WebApps.Patch+ ( -- * Resource+ AndroidManagementEnterprisesWebAppsPatchResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesWebAppsPatch (..),+ newAndroidManagementEnterprisesWebAppsPatch,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.webApps.patch@ method which the+-- 'AndroidManagementEnterprisesWebAppsPatch' request conforms to.+type AndroidManagementEnterprisesWebAppsPatchResource =+ "v1"+ Core.:> Core.Capture "name" 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.FieldMask+ 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.Patch '[Core.JSON] WebApp++-- | Updates a web app.+--+-- /See:/ 'newAndroidManagementEnterprisesWebAppsPatch' smart constructor.+data AndroidManagementEnterprisesWebAppsPatch = AndroidManagementEnterprisesWebAppsPatch+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the web app in the form enterprises\/{enterpriseId}\/webApps\/{packageName}.+ name :: Core.Text,+ -- | Multipart request metadata.+ payload :: WebApp,+ -- | The field mask indicating the fields to update. If not set, all modifiable fields will be modified.+ updateMask :: (Core.Maybe Core.FieldMask),+ -- | 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 'AndroidManagementEnterprisesWebAppsPatch' with the minimum fields required to make a request.+newAndroidManagementEnterprisesWebAppsPatch ::+ -- | The name of the web app in the form enterprises\/{enterpriseId}\/webApps\/{packageName}. See 'name'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ WebApp ->+ AndroidManagementEnterprisesWebAppsPatch+newAndroidManagementEnterprisesWebAppsPatch name payload =+ AndroidManagementEnterprisesWebAppsPatch+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ payload = payload,+ updateMask = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesWebAppsPatch+ where+ type Rs AndroidManagementEnterprisesWebAppsPatch = WebApp+ type+ Scopes AndroidManagementEnterprisesWebAppsPatch =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesWebAppsPatch {..} =+ go+ name+ xgafv+ accessToken+ callback+ updateMask+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesWebAppsPatchResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Enterprises/WebTokens/Create.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.AndroidManagement.Enterprises.WebTokens.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)+--+-- Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webTokens.create@.+module Gogol.AndroidManagement.Enterprises.WebTokens.Create+ ( -- * Resource+ AndroidManagementEnterprisesWebTokensCreateResource,++ -- ** Constructing a Request+ AndroidManagementEnterprisesWebTokensCreate (..),+ newAndroidManagementEnterprisesWebTokensCreate,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.enterprises.webTokens.create@ method which the+-- 'AndroidManagementEnterprisesWebTokensCreate' request conforms to.+type AndroidManagementEnterprisesWebTokensCreateResource =+ "v1"+ Core.:> Core.Capture "parent" Core.Text+ Core.:> "webTokens"+ 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] WebToken+ Core.:> Core.Post '[Core.JSON] WebToken++-- | Creates a web token to access an embeddable managed Google Play web UI for a given enterprise.+--+-- /See:/ 'newAndroidManagementEnterprisesWebTokensCreate' smart constructor.+data AndroidManagementEnterprisesWebTokensCreate = AndroidManagementEnterprisesWebTokensCreate+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}.+ parent :: Core.Text,+ -- | Multipart request metadata.+ payload :: WebToken,+ -- | 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 'AndroidManagementEnterprisesWebTokensCreate' with the minimum fields required to make a request.+newAndroidManagementEnterprisesWebTokensCreate ::+ -- | The name of the enterprise in the form enterprises\/{enterpriseId}. See 'parent'.+ Core.Text ->+ -- | Multipart request metadata. See 'payload'.+ WebToken ->+ AndroidManagementEnterprisesWebTokensCreate+newAndroidManagementEnterprisesWebTokensCreate parent payload =+ AndroidManagementEnterprisesWebTokensCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ parent = parent,+ payload = payload,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance+ Core.GoogleRequest+ AndroidManagementEnterprisesWebTokensCreate+ where+ type Rs AndroidManagementEnterprisesWebTokensCreate = WebToken+ type+ Scopes AndroidManagementEnterprisesWebTokensCreate =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementEnterprisesWebTokensCreate {..} =+ go+ parent+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ payload+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementEnterprisesWebTokensCreateResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Internal/Product.hs view
@@ -0,0 +1,8047 @@+{-# 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.AndroidManagement.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.AndroidManagement.Internal.Product+ ( -- * AdbShellCommandEvent+ AdbShellCommandEvent (..),+ newAdbShellCommandEvent,++ -- * AdbShellInteractiveEvent+ AdbShellInteractiveEvent (..),+ newAdbShellInteractiveEvent,++ -- * AdvancedSecurityOverrides+ AdvancedSecurityOverrides (..),+ newAdvancedSecurityOverrides,++ -- * AlwaysOnVpnPackage+ AlwaysOnVpnPackage (..),+ newAlwaysOnVpnPackage,++ -- * ApiLevelCondition+ ApiLevelCondition (..),+ newApiLevelCondition,++ -- * AppProcessInfo+ AppProcessInfo (..),+ newAppProcessInfo,++ -- * AppProcessStartEvent+ AppProcessStartEvent (..),+ newAppProcessStartEvent,++ -- * AppTrackInfo+ AppTrackInfo (..),+ newAppTrackInfo,++ -- * AppVersion+ AppVersion (..),+ newAppVersion,++ -- * Application+ Application (..),+ newApplication,++ -- * ApplicationEvent+ ApplicationEvent (..),+ newApplicationEvent,++ -- * ApplicationPermission+ ApplicationPermission (..),+ newApplicationPermission,++ -- * ApplicationPolicy+ ApplicationPolicy (..),+ newApplicationPolicy,++ -- * ApplicationPolicy_ManagedConfiguration+ ApplicationPolicy_ManagedConfiguration (..),+ newApplicationPolicy_ManagedConfiguration,++ -- * ApplicationReport+ ApplicationReport (..),+ newApplicationReport,++ -- * ApplicationReportingSettings+ ApplicationReportingSettings (..),+ newApplicationReportingSettings,++ -- * BatchUsageLogEvents+ BatchUsageLogEvents (..),+ newBatchUsageLogEvents,++ -- * BlockAction+ BlockAction (..),+ newBlockAction,++ -- * CertAuthorityInstalledEvent+ CertAuthorityInstalledEvent (..),+ newCertAuthorityInstalledEvent,++ -- * CertAuthorityRemovedEvent+ CertAuthorityRemovedEvent (..),+ newCertAuthorityRemovedEvent,++ -- * CertValidationFailureEvent+ CertValidationFailureEvent (..),+ newCertValidationFailureEvent,++ -- * ChoosePrivateKeyRule+ ChoosePrivateKeyRule (..),+ newChoosePrivateKeyRule,++ -- * ClearAppsDataParams+ ClearAppsDataParams (..),+ newClearAppsDataParams,++ -- * ClearAppsDataStatus+ ClearAppsDataStatus (..),+ newClearAppsDataStatus,++ -- * ClearAppsDataStatus_Results+ ClearAppsDataStatus_Results (..),+ newClearAppsDataStatus_Results,++ -- * Command+ Command (..),+ newCommand,++ -- * CommonCriteriaModeInfo+ CommonCriteriaModeInfo (..),+ newCommonCriteriaModeInfo,++ -- * ComplianceRule+ ComplianceRule (..),+ newComplianceRule,++ -- * ConnectEvent+ ConnectEvent (..),+ newConnectEvent,++ -- * ContactInfo+ ContactInfo (..),+ newContactInfo,++ -- * ContentProviderEndpoint+ ContentProviderEndpoint (..),+ newContentProviderEndpoint,++ -- * CrossProfilePolicies+ CrossProfilePolicies (..),+ newCrossProfilePolicies,++ -- * CryptoSelfTestCompletedEvent+ CryptoSelfTestCompletedEvent (..),+ newCryptoSelfTestCompletedEvent,++ -- * Date+ Date (..),+ newDate,++ -- * Device+ Device (..),+ newDevice,++ -- * Device_SystemProperties+ Device_SystemProperties (..),+ newDevice_SystemProperties,++ -- * DeviceConnectivityManagement+ DeviceConnectivityManagement (..),+ newDeviceConnectivityManagement,++ -- * DeviceRadioState+ DeviceRadioState (..),+ newDeviceRadioState,++ -- * DeviceSettings+ DeviceSettings (..),+ newDeviceSettings,++ -- * Display+ Display (..),+ newDisplay,++ -- * DisplaySettings+ DisplaySettings (..),+ newDisplaySettings,++ -- * DnsEvent+ DnsEvent (..),+ newDnsEvent,++ -- * DpcMigrationInfo+ DpcMigrationInfo (..),+ newDpcMigrationInfo,++ -- * Empty+ Empty (..),+ newEmpty,++ -- * EnrollmentCompleteEvent+ EnrollmentCompleteEvent (..),+ newEnrollmentCompleteEvent,++ -- * EnrollmentToken+ EnrollmentToken (..),+ newEnrollmentToken,++ -- * Enterprise+ Enterprise (..),+ newEnterprise,++ -- * ExtensionConfig+ ExtensionConfig (..),+ newExtensionConfig,++ -- * ExternalData+ ExternalData (..),+ newExternalData,++ -- * FilePulledEvent+ FilePulledEvent (..),+ newFilePulledEvent,++ -- * FilePushedEvent+ FilePushedEvent (..),+ newFilePushedEvent,++ -- * FreezePeriod+ FreezePeriod (..),+ newFreezePeriod,++ -- * GenerateEnterpriseUpgradeUrlRequest+ GenerateEnterpriseUpgradeUrlRequest (..),+ newGenerateEnterpriseUpgradeUrlRequest,++ -- * GenerateEnterpriseUpgradeUrlResponse+ GenerateEnterpriseUpgradeUrlResponse (..),+ newGenerateEnterpriseUpgradeUrlResponse,++ -- * GoogleAuthenticationSettings+ GoogleAuthenticationSettings (..),+ newGoogleAuthenticationSettings,++ -- * HardwareInfo+ HardwareInfo (..),+ newHardwareInfo,++ -- * HardwareStatus+ HardwareStatus (..),+ newHardwareStatus,++ -- * InstallConstraint+ InstallConstraint (..),+ newInstallConstraint,++ -- * IssueCommandResponse+ IssueCommandResponse (..),+ newIssueCommandResponse,++ -- * KeyDestructionEvent+ KeyDestructionEvent (..),+ newKeyDestructionEvent,++ -- * KeyGeneratedEvent+ KeyGeneratedEvent (..),+ newKeyGeneratedEvent,++ -- * KeyImportEvent+ KeyImportEvent (..),+ newKeyImportEvent,++ -- * KeyIntegrityViolationEvent+ KeyIntegrityViolationEvent (..),+ newKeyIntegrityViolationEvent,++ -- * KeyedAppState+ KeyedAppState (..),+ newKeyedAppState,++ -- * KeyguardDismissAuthAttemptEvent+ KeyguardDismissAuthAttemptEvent (..),+ newKeyguardDismissAuthAttemptEvent,++ -- * KeyguardDismissedEvent+ KeyguardDismissedEvent (..),+ newKeyguardDismissedEvent,++ -- * KeyguardSecuredEvent+ KeyguardSecuredEvent (..),+ newKeyguardSecuredEvent,++ -- * KioskCustomization+ KioskCustomization (..),+ newKioskCustomization,++ -- * LaunchAppAction+ LaunchAppAction (..),+ newLaunchAppAction,++ -- * ListDevicesResponse+ ListDevicesResponse (..),+ newListDevicesResponse,++ -- * ListEnrollmentTokensResponse+ ListEnrollmentTokensResponse (..),+ newListEnrollmentTokensResponse,++ -- * ListEnterprisesResponse+ ListEnterprisesResponse (..),+ newListEnterprisesResponse,++ -- * ListMigrationTokensResponse+ ListMigrationTokensResponse (..),+ newListMigrationTokensResponse,++ -- * ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- * ListPoliciesResponse+ ListPoliciesResponse (..),+ newListPoliciesResponse,++ -- * ListWebAppsResponse+ ListWebAppsResponse (..),+ newListWebAppsResponse,++ -- * Location+ Location (..),+ newLocation,++ -- * LogBufferSizeCriticalEvent+ LogBufferSizeCriticalEvent (..),+ newLogBufferSizeCriticalEvent,++ -- * LoggingStartedEvent+ LoggingStartedEvent (..),+ newLoggingStartedEvent,++ -- * LoggingStoppedEvent+ LoggingStoppedEvent (..),+ newLoggingStoppedEvent,++ -- * LostModeLocationEvent+ LostModeLocationEvent (..),+ newLostModeLocationEvent,++ -- * LostModeOutgoingPhoneCallEvent+ LostModeOutgoingPhoneCallEvent (..),+ newLostModeOutgoingPhoneCallEvent,++ -- * ManagedConfigurationTemplate+ ManagedConfigurationTemplate (..),+ newManagedConfigurationTemplate,++ -- * ManagedConfigurationTemplate_ConfigurationVariables+ ManagedConfigurationTemplate_ConfigurationVariables (..),+ newManagedConfigurationTemplate_ConfigurationVariables,++ -- * ManagedProperty+ ManagedProperty (..),+ newManagedProperty,++ -- * ManagedPropertyEntry+ ManagedPropertyEntry (..),+ newManagedPropertyEntry,++ -- * MediaMountEvent+ MediaMountEvent (..),+ newMediaMountEvent,++ -- * MediaUnmountEvent+ MediaUnmountEvent (..),+ newMediaUnmountEvent,++ -- * MemoryEvent+ MemoryEvent (..),+ newMemoryEvent,++ -- * MemoryInfo+ MemoryInfo (..),+ newMemoryInfo,++ -- * MigrationToken+ MigrationToken (..),+ newMigrationToken,++ -- * NetworkInfo+ NetworkInfo (..),+ newNetworkInfo,++ -- * NonComplianceDetail+ NonComplianceDetail (..),+ newNonComplianceDetail,++ -- * NonComplianceDetailCondition+ NonComplianceDetailCondition (..),+ newNonComplianceDetailCondition,++ -- * OncCertificateProvider+ OncCertificateProvider (..),+ newOncCertificateProvider,++ -- * OncWifiContext+ OncWifiContext (..),+ newOncWifiContext,++ -- * Operation+ Operation (..),+ newOperation,++ -- * Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- * Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- * OsShutdownEvent+ OsShutdownEvent (..),+ newOsShutdownEvent,++ -- * OsStartupEvent+ OsStartupEvent (..),+ newOsStartupEvent,++ -- * PackageNameList+ PackageNameList (..),+ newPackageNameList,++ -- * PasswordPoliciesContext+ PasswordPoliciesContext (..),+ newPasswordPoliciesContext,++ -- * PasswordRequirements+ PasswordRequirements (..),+ newPasswordRequirements,++ -- * PerAppResult+ PerAppResult (..),+ newPerAppResult,++ -- * PermissionGrant+ PermissionGrant (..),+ newPermissionGrant,++ -- * PersistentPreferredActivity+ PersistentPreferredActivity (..),+ newPersistentPreferredActivity,++ -- * PersonalApplicationPolicy+ PersonalApplicationPolicy (..),+ newPersonalApplicationPolicy,++ -- * PersonalUsagePolicies+ PersonalUsagePolicies (..),+ newPersonalUsagePolicies,++ -- * Policy+ Policy (..),+ newPolicy,++ -- * Policy_OpenNetworkConfiguration+ Policy_OpenNetworkConfiguration (..),+ newPolicy_OpenNetworkConfiguration,++ -- * PolicyEnforcementRule+ PolicyEnforcementRule (..),+ newPolicyEnforcementRule,++ -- * PostureDetail+ PostureDetail (..),+ newPostureDetail,++ -- * PowerManagementEvent+ PowerManagementEvent (..),+ newPowerManagementEvent,++ -- * ProvisioningInfo+ ProvisioningInfo (..),+ newProvisioningInfo,++ -- * ProxyInfo+ ProxyInfo (..),+ newProxyInfo,++ -- * RemoteLockEvent+ RemoteLockEvent (..),+ newRemoteLockEvent,++ -- * ScreenBrightnessSettings+ ScreenBrightnessSettings (..),+ newScreenBrightnessSettings,++ -- * ScreenTimeoutSettings+ ScreenTimeoutSettings (..),+ newScreenTimeoutSettings,++ -- * SecurityPosture+ SecurityPosture (..),+ newSecurityPosture,++ -- * SetupAction+ SetupAction (..),+ newSetupAction,++ -- * SigninDetail+ SigninDetail (..),+ newSigninDetail,++ -- * SignupUrl+ SignupUrl (..),+ newSignupUrl,++ -- * SoftwareInfo+ SoftwareInfo (..),+ newSoftwareInfo,++ -- * SpecificNonComplianceContext+ SpecificNonComplianceContext (..),+ newSpecificNonComplianceContext,++ -- * StartLostModeParams+ StartLostModeParams (..),+ newStartLostModeParams,++ -- * StartLostModeStatus+ StartLostModeStatus (..),+ newStartLostModeStatus,++ -- * Status+ Status (..),+ newStatus,++ -- * Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- * StatusReportingSettings+ StatusReportingSettings (..),+ newStatusReportingSettings,++ -- * StopLostModeParams+ StopLostModeParams (..),+ newStopLostModeParams,++ -- * StopLostModeStatus+ StopLostModeStatus (..),+ newStopLostModeStatus,++ -- * StopLostModeUserAttemptEvent+ StopLostModeUserAttemptEvent (..),+ newStopLostModeUserAttemptEvent,++ -- * SystemUpdate+ SystemUpdate (..),+ newSystemUpdate,++ -- * SystemUpdateInfo+ SystemUpdateInfo (..),+ newSystemUpdateInfo,++ -- * TelephonyInfo+ TelephonyInfo (..),+ newTelephonyInfo,++ -- * TermsAndConditions+ TermsAndConditions (..),+ newTermsAndConditions,++ -- * UsageLog+ UsageLog (..),+ newUsageLog,++ -- * UsageLogEvent+ UsageLogEvent (..),+ newUsageLogEvent,++ -- * User+ User (..),+ newUser,++ -- * UserFacingMessage+ UserFacingMessage (..),+ newUserFacingMessage,++ -- * UserFacingMessage_LocalizedMessages+ UserFacingMessage_LocalizedMessages (..),+ newUserFacingMessage_LocalizedMessages,++ -- * WebApp+ WebApp (..),+ newWebApp,++ -- * WebAppIcon+ WebAppIcon (..),+ newWebAppIcon,++ -- * WebToken+ WebToken (..),+ newWebToken,++ -- * WifiRoamingPolicy+ WifiRoamingPolicy (..),+ newWifiRoamingPolicy,++ -- * WifiRoamingSetting+ WifiRoamingSetting (..),+ newWifiRoamingSetting,++ -- * WifiSsid+ WifiSsid (..),+ newWifiSsid,++ -- * WifiSsidPolicy+ WifiSsidPolicy (..),+ newWifiSsidPolicy,++ -- * WipeAction+ WipeAction (..),+ newWipeAction,++ -- * WipeFailureEvent+ WipeFailureEvent (..),+ newWipeFailureEvent,+ )+where++import Gogol.AndroidManagement.Internal.Sum+import Gogol.Prelude qualified as Core++-- | A shell command was issued over ADB via “adb shell command”.+--+-- /See:/ 'newAdbShellCommandEvent' smart constructor.+newtype AdbShellCommandEvent = AdbShellCommandEvent+ { -- | Shell command that was issued over ADB via \"adb shell command\". Redacted to empty string on organization-owned managed profile devices.+ shellCmd :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdbShellCommandEvent' with the minimum fields required to make a request.+newAdbShellCommandEvent ::+ AdbShellCommandEvent+newAdbShellCommandEvent =+ AdbShellCommandEvent {shellCmd = Core.Nothing}++instance Core.FromJSON AdbShellCommandEvent where+ parseJSON =+ Core.withObject+ "AdbShellCommandEvent"+ (\o -> AdbShellCommandEvent Core.<$> (o Core..:? "shellCmd"))++instance Core.ToJSON AdbShellCommandEvent where+ toJSON AdbShellCommandEvent {..} =+ Core.object+ (Core.catMaybes [("shellCmd" Core..=) Core.<$> shellCmd])++-- | An ADB interactive shell was opened via “adb shell”. Intentionally empty.+--+-- /See:/ 'newAdbShellInteractiveEvent' smart constructor.+data AdbShellInteractiveEvent = AdbShellInteractiveEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdbShellInteractiveEvent' with the minimum fields required to make a request.+newAdbShellInteractiveEvent ::+ AdbShellInteractiveEvent+newAdbShellInteractiveEvent = AdbShellInteractiveEvent++instance Core.FromJSON AdbShellInteractiveEvent where+ parseJSON =+ Core.withObject+ "AdbShellInteractiveEvent"+ (\o -> Core.pure AdbShellInteractiveEvent)++instance Core.ToJSON AdbShellInteractiveEvent where+ toJSON = Core.const Core.emptyObject++-- | Advanced security settings. In most cases, setting these is not needed.+--+-- /See:/ 'newAdvancedSecurityOverrides' smart constructor.+data AdvancedSecurityOverrides = AdvancedSecurityOverrides+ { -- | Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https:\/\/www.commoncriteriaportal.org\/) (CC). Enabling Common Criteria Mode increases certain security components on a device, see CommonCriteriaMode for details.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. If Common Criteria Mode is turned off after being enabled previously, all user-configured Wi-Fi networks may be lost and any enterprise-configured Wi-Fi networks that require user input may need to be reconfigured.+ commonCriteriaMode :: (Core.Maybe AdvancedSecurityOverrides_CommonCriteriaMode),+ -- | Optional. Controls whether content protection, which scans for deceptive apps, is enabled. This is supported on Android 15 and above.+ contentProtectionPolicy :: (Core.Maybe AdvancedSecurityOverrides_ContentProtectionPolicy),+ -- | Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated).+ developerSettings :: (Core.Maybe AdvancedSecurityOverrides_DeveloperSettings),+ -- | Whether Google Play Protect verification (https:\/\/support.google.com\/accounts\/answer\/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated).+ googlePlayProtectVerifyApps :: (Core.Maybe AdvancedSecurityOverrides_GooglePlayProtectVerifyApps),+ -- | Optional. Controls Memory Tagging Extension (MTE) (https:\/\/source.android.com\/docs\/security\/test\/memory-safety\/arm-mte) on the device. The device needs to be rebooted to apply changes to the MTE policy.+ mtePolicy :: (Core.Maybe AdvancedSecurityOverrides_MtePolicy),+ -- | Personal apps that can read work profile notifications using a NotificationListenerService (https:\/\/developer.android.com\/reference\/android\/service\/notification\/NotificationListenerService). By default, no personal apps (aside from system apps) can read work notifications. Each value in the list must be a package name.+ personalAppsThatCanReadWorkNotifications :: (Core.Maybe [Core.Text]),+ -- | The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install/unknown/sources_allowed (deprecated).+ untrustedAppsPolicy :: (Core.Maybe AdvancedSecurityOverrides_UntrustedAppsPolicy)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AdvancedSecurityOverrides' with the minimum fields required to make a request.+newAdvancedSecurityOverrides ::+ AdvancedSecurityOverrides+newAdvancedSecurityOverrides =+ AdvancedSecurityOverrides+ { commonCriteriaMode = Core.Nothing,+ contentProtectionPolicy = Core.Nothing,+ developerSettings = Core.Nothing,+ googlePlayProtectVerifyApps = Core.Nothing,+ mtePolicy = Core.Nothing,+ personalAppsThatCanReadWorkNotifications = Core.Nothing,+ untrustedAppsPolicy = Core.Nothing+ }++instance Core.FromJSON AdvancedSecurityOverrides where+ parseJSON =+ Core.withObject+ "AdvancedSecurityOverrides"+ ( \o ->+ AdvancedSecurityOverrides+ Core.<$> (o Core..:? "commonCriteriaMode")+ Core.<*> (o Core..:? "contentProtectionPolicy")+ Core.<*> (o Core..:? "developerSettings")+ Core.<*> (o Core..:? "googlePlayProtectVerifyApps")+ Core.<*> (o Core..:? "mtePolicy")+ Core.<*> (o Core..:? "personalAppsThatCanReadWorkNotifications")+ Core.<*> (o Core..:? "untrustedAppsPolicy")+ )++instance Core.ToJSON AdvancedSecurityOverrides where+ toJSON AdvancedSecurityOverrides {..} =+ Core.object+ ( Core.catMaybes+ [ ("commonCriteriaMode" Core..=) Core.<$> commonCriteriaMode,+ ("contentProtectionPolicy" Core..=)+ Core.<$> contentProtectionPolicy,+ ("developerSettings" Core..=) Core.<$> developerSettings,+ ("googlePlayProtectVerifyApps" Core..=)+ Core.<$> googlePlayProtectVerifyApps,+ ("mtePolicy" Core..=) Core.<$> mtePolicy,+ ("personalAppsThatCanReadWorkNotifications" Core..=)+ Core.<$> personalAppsThatCanReadWorkNotifications,+ ("untrustedAppsPolicy" Core..=) Core.<$> untrustedAppsPolicy+ ]+ )++-- | Configuration for an always-on VPN connection.+--+-- /See:/ 'newAlwaysOnVpnPackage' smart constructor.+data AlwaysOnVpnPackage = AlwaysOnVpnPackage+ { -- | Disallows networking when the VPN is not connected.+ lockdownEnabled :: (Core.Maybe Core.Bool),+ -- | The package name of the VPN app.+ packageName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AlwaysOnVpnPackage' with the minimum fields required to make a request.+newAlwaysOnVpnPackage ::+ AlwaysOnVpnPackage+newAlwaysOnVpnPackage =+ AlwaysOnVpnPackage+ { lockdownEnabled = Core.Nothing,+ packageName = Core.Nothing+ }++instance Core.FromJSON AlwaysOnVpnPackage where+ parseJSON =+ Core.withObject+ "AlwaysOnVpnPackage"+ ( \o ->+ AlwaysOnVpnPackage+ Core.<$> (o Core..:? "lockdownEnabled")+ Core.<*> (o Core..:? "packageName")+ )++instance Core.ToJSON AlwaysOnVpnPackage where+ toJSON AlwaysOnVpnPackage {..} =+ Core.object+ ( Core.catMaybes+ [ ("lockdownEnabled" Core..=) Core.<$> lockdownEnabled,+ ("packageName" Core..=) Core.<$> packageName+ ]+ )++-- | A compliance rule condition which is satisfied if the Android Framework API level on the device doesn\'t meet a minimum requirement. There can only be one rule with this type of condition per policy.+--+-- /See:/ 'newApiLevelCondition' smart constructor.+newtype ApiLevelCondition = ApiLevelCondition+ { -- | The minimum desired Android Framework API level. If the device doesn\'t meet the minimum requirement, this condition is satisfied. Must be greater than zero.+ minApiLevel :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApiLevelCondition' with the minimum fields required to make a request.+newApiLevelCondition ::+ ApiLevelCondition+newApiLevelCondition =+ ApiLevelCondition {minApiLevel = Core.Nothing}++instance Core.FromJSON ApiLevelCondition where+ parseJSON =+ Core.withObject+ "ApiLevelCondition"+ (\o -> ApiLevelCondition Core.<$> (o Core..:? "minApiLevel"))++instance Core.ToJSON ApiLevelCondition where+ toJSON ApiLevelCondition {..} =+ Core.object+ (Core.catMaybes [("minApiLevel" Core..=) Core.<$> minApiLevel])++-- | Information about a process. It contains process name, start time, app Uid, app Pid, seinfo tag, hash of the base APK.+--+-- /See:/ 'newAppProcessInfo' smart constructor.+data AppProcessInfo = AppProcessInfo+ { -- | SHA-256 hash of the base APK, in hexadecimal format.+ apkSha256Hash :: (Core.Maybe Core.Text),+ -- | Package names of all packages that are associated with the particular user ID. In most cases, this will be a single package name, the package that has been assigned that user ID. If multiple application share a UID then all packages sharing UID will be included.+ packageNames :: (Core.Maybe [Core.Text]),+ -- | Process ID.+ pid :: (Core.Maybe Core.Int32),+ -- | Process name.+ processName :: (Core.Maybe Core.Text),+ -- | SELinux policy info.+ seinfo :: (Core.Maybe Core.Text),+ -- | Process start time.+ startTime :: (Core.Maybe Core.DateTime),+ -- | UID of the package.+ uid :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppProcessInfo' with the minimum fields required to make a request.+newAppProcessInfo ::+ AppProcessInfo+newAppProcessInfo =+ AppProcessInfo+ { apkSha256Hash = Core.Nothing,+ packageNames = Core.Nothing,+ pid = Core.Nothing,+ processName = Core.Nothing,+ seinfo = Core.Nothing,+ startTime = Core.Nothing,+ uid = Core.Nothing+ }++instance Core.FromJSON AppProcessInfo where+ parseJSON =+ Core.withObject+ "AppProcessInfo"+ ( \o ->+ AppProcessInfo+ Core.<$> (o Core..:? "apkSha256Hash")+ Core.<*> (o Core..:? "packageNames")+ Core.<*> (o Core..:? "pid")+ Core.<*> (o Core..:? "processName")+ Core.<*> (o Core..:? "seinfo")+ Core.<*> (o Core..:? "startTime")+ Core.<*> (o Core..:? "uid")+ )++instance Core.ToJSON AppProcessInfo where+ toJSON AppProcessInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("apkSha256Hash" Core..=) Core.<$> apkSha256Hash,+ ("packageNames" Core..=) Core.<$> packageNames,+ ("pid" Core..=) Core.<$> pid,+ ("processName" Core..=) Core.<$> processName,+ ("seinfo" Core..=) Core.<$> seinfo,+ ("startTime" Core..=) Core.<$> startTime,+ ("uid" Core..=) Core.<$> uid+ ]+ )++-- | An app process was started. This is available device-wide on fully managed devices and within the work profile on organization-owned devices with a work profile.+--+-- /See:/ 'newAppProcessStartEvent' smart constructor.+newtype AppProcessStartEvent = AppProcessStartEvent+ { -- | Information about a process.+ processInfo :: (Core.Maybe AppProcessInfo)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppProcessStartEvent' with the minimum fields required to make a request.+newAppProcessStartEvent ::+ AppProcessStartEvent+newAppProcessStartEvent =+ AppProcessStartEvent {processInfo = Core.Nothing}++instance Core.FromJSON AppProcessStartEvent where+ parseJSON =+ Core.withObject+ "AppProcessStartEvent"+ (\o -> AppProcessStartEvent Core.<$> (o Core..:? "processInfo"))++instance Core.ToJSON AppProcessStartEvent where+ toJSON AppProcessStartEvent {..} =+ Core.object+ (Core.catMaybes [("processInfo" Core..=) Core.<$> processInfo])++-- | Id to name association of a app track.+--+-- /See:/ 'newAppTrackInfo' smart constructor.+data AppTrackInfo = AppTrackInfo+ { -- | The track name associated with the trackId, set in the Play Console. The name is modifiable from Play Console.+ trackAlias :: (Core.Maybe Core.Text),+ -- | The unmodifiable unique track identifier, taken from the releaseTrackId in the URL of the Play Console page that displays the app’s track information.+ trackId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'AppTrackInfo' with the minimum fields required to make a request.+newAppTrackInfo ::+ AppTrackInfo+newAppTrackInfo =+ AppTrackInfo {trackAlias = Core.Nothing, trackId = Core.Nothing}++instance Core.FromJSON AppTrackInfo where+ parseJSON =+ Core.withObject+ "AppTrackInfo"+ ( \o ->+ AppTrackInfo+ Core.<$> (o Core..:? "trackAlias")+ Core.<*> (o Core..:? "trackId")+ )++instance Core.ToJSON AppTrackInfo where+ toJSON AppTrackInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("trackAlias" Core..=) Core.<$> trackAlias,+ ("trackId" Core..=) Core.<$> trackId+ ]+ )++-- | This represents a single version of the app.+--+-- /See:/ 'newAppVersion' smart constructor.+data AppVersion = AppVersion+ { -- | If the value is True, it indicates that this version is a production track.+ production :: (Core.Maybe Core.Bool),+ -- | Track identifiers that the app version is published in. This does not include the production track (see production instead).+ trackIds :: (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+ { production = Core.Nothing,+ trackIds = Core.Nothing,+ versionCode = Core.Nothing,+ versionString = Core.Nothing+ }++instance Core.FromJSON AppVersion where+ parseJSON =+ Core.withObject+ "AppVersion"+ ( \o ->+ AppVersion+ Core.<$> (o Core..:? "production")+ Core.<*> (o Core..:? "trackIds")+ Core.<*> (o Core..:? "versionCode")+ Core.<*> (o Core..:? "versionString")+ )++instance Core.ToJSON AppVersion where+ toJSON AppVersion {..} =+ Core.object+ ( Core.catMaybes+ [ ("production" Core..=) Core.<$> production,+ ("trackIds" Core..=) Core.<$> trackIds,+ ("versionCode" Core..=) Core.<$> versionCode,+ ("versionString" Core..=) Core.<$> versionString+ ]+ )++-- | Information about an app.+--+-- /See:/ 'newApplication' smart constructor.+data Application = Application+ { -- | Whether this app is free, free with in-app purchases, or paid. If the pricing is unspecified, this means the app is not generally available anymore (even though it might still be available to people who own it).+ appPricing :: (Core.Maybe Application_AppPricing),+ -- | Application tracks visible to the enterprise.+ appTracks :: (Core.Maybe [AppTrackInfo]),+ -- | Versions currently available for this app.+ appVersions :: (Core.Maybe [AppVersion]),+ -- | The name of the author of the apps (for example, the app developer).+ author :: (Core.Maybe Core.Text),+ -- | The countries which this app is available in as per ISO 3166-1 alpha-2.+ availableCountries :: (Core.Maybe [Core.Text]),+ -- | The app category (e.g. RACING, SOCIAL, etc.)+ category :: (Core.Maybe Core.Text),+ -- | The content rating for this app.+ contentRating :: (Core.Maybe Application_ContentRating),+ -- | The localized promotional description, if available.+ description :: (Core.Maybe Core.Text),+ -- | How and to whom the package is made available.+ distributionChannel :: (Core.Maybe Application_DistributionChannel),+ -- | Noteworthy features (if any) of this app.+ features :: (Core.Maybe [Application_FeaturesItem]),+ -- | Full app description, if available.+ fullDescription :: (Core.Maybe Core.Text),+ -- | A link to an image that can be used as an icon for the app. This image is suitable for use up to a pixel size of 512 x 512.+ iconUrl :: (Core.Maybe Core.Text),+ -- | The set of managed properties available to be pre-configured for the app.+ managedProperties :: (Core.Maybe [ManagedProperty]),+ -- | The minimum Android SDK necessary to run the app.+ minAndroidSdkVersion :: (Core.Maybe Core.Int32),+ -- | The name of the app in the form enterprises\/{enterprise}\/applications\/{package_name}.+ name :: (Core.Maybe Core.Text),+ -- | The permissions required by the app.+ permissions :: (Core.Maybe [ApplicationPermission]),+ -- | A link to the (consumer) Google Play details page for the app.+ playStoreUrl :: (Core.Maybe Core.Text),+ -- | A localised description of the recent changes made to the app.+ recentChanges :: (Core.Maybe Core.Text),+ -- | A list of screenshot links representing the app.+ screenshotUrls :: (Core.Maybe [Core.Text]),+ -- | A link to a smaller image that can be used as an icon for the app. This image is suitable for use up to a pixel size of 128 x 128.+ smallIconUrl :: (Core.Maybe Core.Text),+ -- | The title of the app. Localized.+ title :: (Core.Maybe Core.Text),+ -- | Output only. The approximate time (within 7 days) the app was last published.+ updateTime :: (Core.Maybe Core.DateTime)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Application' with the minimum fields required to make a request.+newApplication ::+ Application+newApplication =+ Application+ { appPricing = Core.Nothing,+ appTracks = Core.Nothing,+ appVersions = Core.Nothing,+ author = Core.Nothing,+ availableCountries = Core.Nothing,+ category = Core.Nothing,+ contentRating = Core.Nothing,+ description = Core.Nothing,+ distributionChannel = Core.Nothing,+ features = Core.Nothing,+ fullDescription = Core.Nothing,+ iconUrl = Core.Nothing,+ managedProperties = Core.Nothing,+ minAndroidSdkVersion = Core.Nothing,+ name = Core.Nothing,+ permissions = Core.Nothing,+ playStoreUrl = Core.Nothing,+ recentChanges = Core.Nothing,+ screenshotUrls = Core.Nothing,+ smallIconUrl = Core.Nothing,+ title = Core.Nothing,+ updateTime = Core.Nothing+ }++instance Core.FromJSON Application where+ parseJSON =+ Core.withObject+ "Application"+ ( \o ->+ Application+ Core.<$> (o Core..:? "appPricing")+ Core.<*> (o Core..:? "appTracks")+ Core.<*> (o Core..:? "appVersions")+ Core.<*> (o Core..:? "author")+ Core.<*> (o Core..:? "availableCountries")+ Core.<*> (o Core..:? "category")+ Core.<*> (o Core..:? "contentRating")+ Core.<*> (o Core..:? "description")+ Core.<*> (o Core..:? "distributionChannel")+ Core.<*> (o Core..:? "features")+ Core.<*> (o Core..:? "fullDescription")+ Core.<*> (o Core..:? "iconUrl")+ Core.<*> (o Core..:? "managedProperties")+ Core.<*> (o Core..:? "minAndroidSdkVersion")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "permissions")+ Core.<*> (o Core..:? "playStoreUrl")+ Core.<*> (o Core..:? "recentChanges")+ Core.<*> (o Core..:? "screenshotUrls")+ Core.<*> (o Core..:? "smallIconUrl")+ Core.<*> (o Core..:? "title")+ Core.<*> (o Core..:? "updateTime")+ )++instance Core.ToJSON Application where+ toJSON Application {..} =+ Core.object+ ( Core.catMaybes+ [ ("appPricing" Core..=) Core.<$> appPricing,+ ("appTracks" Core..=) Core.<$> appTracks,+ ("appVersions" Core..=) Core.<$> appVersions,+ ("author" Core..=) Core.<$> author,+ ("availableCountries" Core..=) Core.<$> availableCountries,+ ("category" Core..=) Core.<$> category,+ ("contentRating" Core..=) Core.<$> contentRating,+ ("description" Core..=) Core.<$> description,+ ("distributionChannel" Core..=) Core.<$> distributionChannel,+ ("features" Core..=) Core.<$> features,+ ("fullDescription" Core..=) Core.<$> fullDescription,+ ("iconUrl" Core..=) Core.<$> iconUrl,+ ("managedProperties" Core..=) Core.<$> managedProperties,+ ("minAndroidSdkVersion" Core..=) Core.<$> minAndroidSdkVersion,+ ("name" Core..=) Core.<$> name,+ ("permissions" Core..=) Core.<$> permissions,+ ("playStoreUrl" Core..=) Core.<$> playStoreUrl,+ ("recentChanges" Core..=) Core.<$> recentChanges,+ ("screenshotUrls" Core..=) Core.<$> screenshotUrls,+ ("smallIconUrl" Core..=) Core.<$> smallIconUrl,+ ("title" Core..=) Core.<$> title,+ ("updateTime" Core..=) Core.<$> updateTime+ ]+ )++-- | An app-related event.+--+-- /See:/ 'newApplicationEvent' smart constructor.+data ApplicationEvent = ApplicationEvent+ { -- | The creation time of the event.+ createTime :: (Core.Maybe Core.DateTime),+ -- | App event type.+ eventType :: (Core.Maybe ApplicationEvent_EventType)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApplicationEvent' with the minimum fields required to make a request.+newApplicationEvent ::+ ApplicationEvent+newApplicationEvent =+ ApplicationEvent+ { createTime = Core.Nothing,+ eventType = Core.Nothing+ }++instance Core.FromJSON ApplicationEvent where+ parseJSON =+ Core.withObject+ "ApplicationEvent"+ ( \o ->+ ApplicationEvent+ Core.<$> (o Core..:? "createTime")+ Core.<*> (o Core..:? "eventType")+ )++instance Core.ToJSON ApplicationEvent where+ toJSON ApplicationEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("createTime" Core..=) Core.<$> createTime,+ ("eventType" Core..=) Core.<$> eventType+ ]+ )++-- | A permission required by the app.+--+-- /See:/ 'newApplicationPermission' smart constructor.+data ApplicationPermission = ApplicationPermission+ { -- | A longer description of the permission, providing more detail on what it affects. Localized.+ description :: (Core.Maybe Core.Text),+ -- | The name of the permission. Localized.+ name :: (Core.Maybe Core.Text),+ -- | An opaque string uniquely identifying the permission. Not localized.+ permissionId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApplicationPermission' with the minimum fields required to make a request.+newApplicationPermission ::+ ApplicationPermission+newApplicationPermission =+ ApplicationPermission+ { description = Core.Nothing,+ name = Core.Nothing,+ permissionId = Core.Nothing+ }++instance Core.FromJSON ApplicationPermission where+ parseJSON =+ Core.withObject+ "ApplicationPermission"+ ( \o ->+ ApplicationPermission+ Core.<$> (o Core..:? "description")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "permissionId")+ )++instance Core.ToJSON ApplicationPermission where+ toJSON ApplicationPermission {..} =+ Core.object+ ( Core.catMaybes+ [ ("description" Core..=) Core.<$> description,+ ("name" Core..=) Core.<$> name,+ ("permissionId" Core..=) Core.<$> permissionId+ ]+ )++-- | Policy for an individual app. Note: Application availability on a given device cannot be changed using this policy if installAppsDisabled is enabled. The maximum number of applications that you can specify per policy is 3,000.+--+-- /See:/ 'newApplicationPolicy' smart constructor.+data ApplicationPolicy = ApplicationPolicy+ { -- | List of the app’s track IDs that a device belonging to the enterprise can access. If the list contains multiple track IDs, devices receive the latest version among all accessible tracks. If the list contains no track IDs, devices only have access to the app’s production track. More details about each track are available in AppTrackInfo.+ accessibleTrackIds :: (Core.Maybe [Core.Text]),+ -- | Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN/LOCKDOWN/ENFORCED, the app is not allowed networking, and if set to VPN/LOCKDOWN/EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a NonComplianceDetail with non/compliance/reason set to API/LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a NonComplianceDetail with non/compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the package in the applications policy.+ alwaysOnVpnLockdownExemption :: (Core.Maybe ApplicationPolicy_AlwaysOnVpnLockdownExemption),+ -- | Controls the auto-update mode for the app.+ autoUpdateMode :: (Core.Maybe ApplicationPolicy_AutoUpdateMode),+ -- | Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent.+ connectedWorkAndPersonalApp :: (Core.Maybe ApplicationPolicy_ConnectedWorkAndPersonalApp),+ -- | Optional. Whether the app is allowed to act as a credential provider on Android 14 and above.+ credentialProviderPolicy :: (Core.Maybe ApplicationPolicy_CredentialProviderPolicy),+ -- | The default policy for all permissions requested by the app. If specified, this overrides the policy-level default/permission/policy which applies to all apps. It does not override the permission_grants which applies to all apps.+ defaultPermissionPolicy :: (Core.Maybe ApplicationPolicy_DefaultPermissionPolicy),+ -- | The scopes delegated to the app from Android Device Policy. These provide additional privileges for the applications they are applied to.+ delegatedScopes :: (Core.Maybe [ApplicationPolicy_DelegatedScopesItem]),+ -- | Whether the app is disabled. When disabled, the app data is still preserved.+ disabled :: (Core.Maybe Core.Bool),+ -- | Configuration to enable this app as an extension app, with the capability of interacting with Android Device Policy offline.This field can be set for at most one app.+ extensionConfig :: (Core.Maybe ExtensionConfig),+ -- | Optional. The constraints for installing the app. You can specify a maximum of one InstallConstraint. Multiple constraints are rejected.+ installConstraint :: (Core.Maybe [InstallConstraint]),+ -- | Optional. Amongst apps with installType set to: FORCE_INSTALLED PREINSTALLEDthis controls the relative priority of installation. A value of 0 (default) means this app has no priority over other apps. For values between 1 and 10,000, a lower value means a higher priority. Values outside of the range 0 to 10,000 inclusive are rejected.+ installPriority :: (Core.Maybe Core.Int32),+ -- | The type of installation to perform.+ installType :: (Core.Maybe ApplicationPolicy_InstallType),+ -- | Whether the app is allowed to lock itself in full-screen mode. DEPRECATED. Use InstallType KIOSK or kioskCustomLauncherEnabled to configure a dedicated device.+ lockTaskAllowed :: (Core.Maybe Core.Bool),+ -- | Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: /type/ /JSON value/ BOOL true or false STRING string INTEGER number CHOICE string MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects+ managedConfiguration :: (Core.Maybe ApplicationPolicy_ManagedConfiguration),+ -- | The managed configurations template for the app, saved from the managed configurations iframe. This field is ignored if managed_configuration is set.+ managedConfigurationTemplate :: (Core.Maybe ManagedConfigurationTemplate),+ -- | The minimum version of the app that runs on the device. If set, the device attempts to update the app to at least this version code. If the app is not up-to-date, the device will contain a NonComplianceDetail with non/compliance/reason set to APP/NOT/UPDATED. The app must already be published to Google Play with a version code greater than or equal to this value. At most 20 apps may specify a minimum version code per policy.+ minimumVersionCode :: (Core.Maybe Core.Int32),+ -- | The package name of the app. For example, com.google.android.youtube for the YouTube app.+ packageName :: (Core.Maybe Core.Text),+ -- | Explicit permission grants or denials for the app. These values override the default/permission/policy and permission_grants which apply to all apps.+ permissionGrants :: (Core.Maybe [PermissionGrant]),+ -- | Optional. Specifies whether user control is permitted for the app. User control includes user actions like force-stopping and clearing app data. Supported on Android 11 and above.+ userControlSettings :: (Core.Maybe ApplicationPolicy_UserControlSettings),+ -- | Specifies whether the app installed in the work profile is allowed to add widgets to the home screen.+ workProfileWidgets :: (Core.Maybe ApplicationPolicy_WorkProfileWidgets)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApplicationPolicy' with the minimum fields required to make a request.+newApplicationPolicy ::+ ApplicationPolicy+newApplicationPolicy =+ ApplicationPolicy+ { accessibleTrackIds = Core.Nothing,+ alwaysOnVpnLockdownExemption = Core.Nothing,+ autoUpdateMode = Core.Nothing,+ connectedWorkAndPersonalApp = Core.Nothing,+ credentialProviderPolicy = Core.Nothing,+ defaultPermissionPolicy = Core.Nothing,+ delegatedScopes = Core.Nothing,+ disabled = Core.Nothing,+ extensionConfig = Core.Nothing,+ installConstraint = Core.Nothing,+ installPriority = Core.Nothing,+ installType = Core.Nothing,+ lockTaskAllowed = Core.Nothing,+ managedConfiguration = Core.Nothing,+ managedConfigurationTemplate = Core.Nothing,+ minimumVersionCode = Core.Nothing,+ packageName = Core.Nothing,+ permissionGrants = Core.Nothing,+ userControlSettings = Core.Nothing,+ workProfileWidgets = Core.Nothing+ }++instance Core.FromJSON ApplicationPolicy where+ parseJSON =+ Core.withObject+ "ApplicationPolicy"+ ( \o ->+ ApplicationPolicy+ Core.<$> (o Core..:? "accessibleTrackIds")+ Core.<*> (o Core..:? "alwaysOnVpnLockdownExemption")+ Core.<*> (o Core..:? "autoUpdateMode")+ Core.<*> (o Core..:? "connectedWorkAndPersonalApp")+ Core.<*> (o Core..:? "credentialProviderPolicy")+ Core.<*> (o Core..:? "defaultPermissionPolicy")+ Core.<*> (o Core..:? "delegatedScopes")+ Core.<*> (o Core..:? "disabled")+ Core.<*> (o Core..:? "extensionConfig")+ Core.<*> (o Core..:? "installConstraint")+ Core.<*> (o Core..:? "installPriority")+ Core.<*> (o Core..:? "installType")+ Core.<*> (o Core..:? "lockTaskAllowed")+ Core.<*> (o Core..:? "managedConfiguration")+ Core.<*> (o Core..:? "managedConfigurationTemplate")+ Core.<*> (o Core..:? "minimumVersionCode")+ Core.<*> (o Core..:? "packageName")+ Core.<*> (o Core..:? "permissionGrants")+ Core.<*> (o Core..:? "userControlSettings")+ Core.<*> (o Core..:? "workProfileWidgets")+ )++instance Core.ToJSON ApplicationPolicy where+ toJSON ApplicationPolicy {..} =+ Core.object+ ( Core.catMaybes+ [ ("accessibleTrackIds" Core..=) Core.<$> accessibleTrackIds,+ ("alwaysOnVpnLockdownExemption" Core..=)+ Core.<$> alwaysOnVpnLockdownExemption,+ ("autoUpdateMode" Core..=) Core.<$> autoUpdateMode,+ ("connectedWorkAndPersonalApp" Core..=)+ Core.<$> connectedWorkAndPersonalApp,+ ("credentialProviderPolicy" Core..=)+ Core.<$> credentialProviderPolicy,+ ("defaultPermissionPolicy" Core..=)+ Core.<$> defaultPermissionPolicy,+ ("delegatedScopes" Core..=) Core.<$> delegatedScopes,+ ("disabled" Core..=) Core.<$> disabled,+ ("extensionConfig" Core..=) Core.<$> extensionConfig,+ ("installConstraint" Core..=) Core.<$> installConstraint,+ ("installPriority" Core..=) Core.<$> installPriority,+ ("installType" Core..=) Core.<$> installType,+ ("lockTaskAllowed" Core..=) Core.<$> lockTaskAllowed,+ ("managedConfiguration" Core..=) Core.<$> managedConfiguration,+ ("managedConfigurationTemplate" Core..=)+ Core.<$> managedConfigurationTemplate,+ ("minimumVersionCode" Core..=) Core.<$> minimumVersionCode,+ ("packageName" Core..=) Core.<$> packageName,+ ("permissionGrants" Core..=) Core.<$> permissionGrants,+ ("userControlSettings" Core..=) Core.<$> userControlSettings,+ ("workProfileWidgets" Core..=) Core.<$> workProfileWidgets+ ]+ )++-- | Managed configuration applied to the app. The format for the configuration is dictated by the ManagedProperty values supported by the app. Each field name in the managed configuration must match the key field of the ManagedProperty. The field value must be compatible with the type of the ManagedProperty: /type/ /JSON value/ BOOL true or false STRING string INTEGER number CHOICE string MULTISELECT array of strings HIDDEN string BUNDLE_ARRAY array of objects+--+-- /See:/ 'newApplicationPolicy_ManagedConfiguration' smart constructor.+newtype ApplicationPolicy_ManagedConfiguration = ApplicationPolicy_ManagedConfiguration+ { -- | Properties of the object.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApplicationPolicy_ManagedConfiguration' with the minimum fields required to make a request.+newApplicationPolicy_ManagedConfiguration ::+ -- | Properties of the object. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ ApplicationPolicy_ManagedConfiguration+newApplicationPolicy_ManagedConfiguration additional =+ ApplicationPolicy_ManagedConfiguration {additional = additional}++instance Core.FromJSON ApplicationPolicy_ManagedConfiguration where+ parseJSON =+ Core.withObject+ "ApplicationPolicy_ManagedConfiguration"+ ( \o ->+ ApplicationPolicy_ManagedConfiguration+ Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON ApplicationPolicy_ManagedConfiguration where+ toJSON ApplicationPolicy_ManagedConfiguration {..} =+ Core.toJSON additional++-- | Information reported about an installed app.+--+-- /See:/ 'newApplicationReport' smart constructor.+data ApplicationReport = ApplicationReport+ { -- | The source of the package.+ applicationSource :: (Core.Maybe ApplicationReport_ApplicationSource),+ -- | The display name of the app.+ displayName :: (Core.Maybe Core.Text),+ -- | The list of app events which have occurred in the last 30 hours.+ events :: (Core.Maybe [ApplicationEvent]),+ -- | The package name of the app that installed this app.+ installerPackageName :: (Core.Maybe Core.Text),+ -- | List of keyed app states reported by the app.+ keyedAppStates :: (Core.Maybe [KeyedAppState]),+ -- | Package name of the app.+ packageName :: (Core.Maybe Core.Text),+ -- | The SHA-256 hash of the app\'s APK file, which can be used to verify the app hasn\'t been modified. Each byte of the hash value is represented as a two-digit hexadecimal number.+ packageSha256Hash :: (Core.Maybe Core.Text),+ -- | The SHA-1 hash of each android.content.pm.Signature (https:\/\/developer.android.com\/reference\/android\/content\/pm\/Signature.html) associated with the app package. Each byte of each hash value is represented as a two-digit hexadecimal number.+ signingKeyCertFingerprints :: (Core.Maybe [Core.Text]),+ -- | Application state.+ state :: (Core.Maybe ApplicationReport_State),+ -- | Whether the app is user facing.+ userFacingType :: (Core.Maybe ApplicationReport_UserFacingType),+ -- | The app version code, which can be used to determine whether one version is more recent than another.+ versionCode :: (Core.Maybe Core.Int32),+ -- | The app version as displayed to the user.+ versionName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApplicationReport' with the minimum fields required to make a request.+newApplicationReport ::+ ApplicationReport+newApplicationReport =+ ApplicationReport+ { applicationSource = Core.Nothing,+ displayName = Core.Nothing,+ events = Core.Nothing,+ installerPackageName = Core.Nothing,+ keyedAppStates = Core.Nothing,+ packageName = Core.Nothing,+ packageSha256Hash = Core.Nothing,+ signingKeyCertFingerprints = Core.Nothing,+ state = Core.Nothing,+ userFacingType = Core.Nothing,+ versionCode = Core.Nothing,+ versionName = Core.Nothing+ }++instance Core.FromJSON ApplicationReport where+ parseJSON =+ Core.withObject+ "ApplicationReport"+ ( \o ->+ ApplicationReport+ Core.<$> (o Core..:? "applicationSource")+ Core.<*> (o Core..:? "displayName")+ Core.<*> (o Core..:? "events")+ Core.<*> (o Core..:? "installerPackageName")+ Core.<*> (o Core..:? "keyedAppStates")+ Core.<*> (o Core..:? "packageName")+ Core.<*> (o Core..:? "packageSha256Hash")+ Core.<*> (o Core..:? "signingKeyCertFingerprints")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "userFacingType")+ Core.<*> (o Core..:? "versionCode")+ Core.<*> (o Core..:? "versionName")+ )++instance Core.ToJSON ApplicationReport where+ toJSON ApplicationReport {..} =+ Core.object+ ( Core.catMaybes+ [ ("applicationSource" Core..=) Core.<$> applicationSource,+ ("displayName" Core..=) Core.<$> displayName,+ ("events" Core..=) Core.<$> events,+ ("installerPackageName" Core..=) Core.<$> installerPackageName,+ ("keyedAppStates" Core..=) Core.<$> keyedAppStates,+ ("packageName" Core..=) Core.<$> packageName,+ ("packageSha256Hash" Core..=) Core.<$> packageSha256Hash,+ ("signingKeyCertFingerprints" Core..=)+ Core.<$> signingKeyCertFingerprints,+ ("state" Core..=) Core.<$> state,+ ("userFacingType" Core..=) Core.<$> userFacingType,+ ("versionCode" Core..=) Core.<$> versionCode,+ ("versionName" Core..=) Core.<$> versionName+ ]+ )++-- | Settings controlling the behavior of application reports.+--+-- /See:/ 'newApplicationReportingSettings' smart constructor.+newtype ApplicationReportingSettings = ApplicationReportingSettings+ { -- | Whether removed apps are included in application reports.+ includeRemovedApps :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ApplicationReportingSettings' with the minimum fields required to make a request.+newApplicationReportingSettings ::+ ApplicationReportingSettings+newApplicationReportingSettings =+ ApplicationReportingSettings {includeRemovedApps = Core.Nothing}++instance Core.FromJSON ApplicationReportingSettings where+ parseJSON =+ Core.withObject+ "ApplicationReportingSettings"+ ( \o ->+ ApplicationReportingSettings+ Core.<$> (o Core..:? "includeRemovedApps")+ )++instance Core.ToJSON ApplicationReportingSettings where+ toJSON ApplicationReportingSettings {..} =+ Core.object+ ( Core.catMaybes+ [("includeRemovedApps" Core..=) Core.<$> includeRemovedApps]+ )++-- | Batched event logs of events from the device.+--+-- /See:/ 'newBatchUsageLogEvents' smart constructor.+data BatchUsageLogEvents = BatchUsageLogEvents+ { -- | If present, the name of the device in the form ‘enterprises\/{enterpriseId}\/devices\/{deviceId}’+ device :: (Core.Maybe Core.Text),+ -- | The device timestamp when the batch of events were collected from the device.+ retrievalTime :: (Core.Maybe Core.DateTime),+ -- | The list of UsageLogEvent that were reported by the device, sorted chronologically by the event time.+ usageLogEvents :: (Core.Maybe [UsageLogEvent]),+ -- | If present, the resource name of the user that owns this device in the form ‘enterprises\/{enterpriseId}\/users\/{userId}’.+ user :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BatchUsageLogEvents' with the minimum fields required to make a request.+newBatchUsageLogEvents ::+ BatchUsageLogEvents+newBatchUsageLogEvents =+ BatchUsageLogEvents+ { device = Core.Nothing,+ retrievalTime = Core.Nothing,+ usageLogEvents = Core.Nothing,+ user = Core.Nothing+ }++instance Core.FromJSON BatchUsageLogEvents where+ parseJSON =+ Core.withObject+ "BatchUsageLogEvents"+ ( \o ->+ BatchUsageLogEvents+ Core.<$> (o Core..:? "device")+ Core.<*> (o Core..:? "retrievalTime")+ Core.<*> (o Core..:? "usageLogEvents")+ Core.<*> (o Core..:? "user")+ )++instance Core.ToJSON BatchUsageLogEvents where+ toJSON BatchUsageLogEvents {..} =+ Core.object+ ( Core.catMaybes+ [ ("device" Core..=) Core.<$> device,+ ("retrievalTime" Core..=) Core.<$> retrievalTime,+ ("usageLogEvents" Core..=) Core.<$> usageLogEvents,+ ("user" Core..=) Core.<$> user+ ]+ )++-- | An action to block access to apps and data on a fully managed device or in a work profile. This action also triggers a device or work profile to displays a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified.+--+-- /See:/ 'newBlockAction' smart constructor.+data BlockAction = BlockAction+ { -- | Number of days the policy is non-compliant before the device or work profile is blocked. To block access immediately, set to 0. blockAfterDays must be less than wipeAfterDays.+ blockAfterDays :: (Core.Maybe Core.Int32),+ -- | Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.+ blockScope :: (Core.Maybe BlockAction_BlockScope)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'BlockAction' with the minimum fields required to make a request.+newBlockAction ::+ BlockAction+newBlockAction =+ BlockAction+ { blockAfterDays = Core.Nothing,+ blockScope = Core.Nothing+ }++instance Core.FromJSON BlockAction where+ parseJSON =+ Core.withObject+ "BlockAction"+ ( \o ->+ BlockAction+ Core.<$> (o Core..:? "blockAfterDays")+ Core.<*> (o Core..:? "blockScope")+ )++instance Core.ToJSON BlockAction where+ toJSON BlockAction {..} =+ Core.object+ ( Core.catMaybes+ [ ("blockAfterDays" Core..=) Core.<$> blockAfterDays,+ ("blockScope" Core..=) Core.<$> blockScope+ ]+ )++-- | A new root certificate was installed into the system\'s trusted credential storage. This is available device-wide on fully managed devices and within the work profile on organization-owned devices with a work profile.+--+-- /See:/ 'newCertAuthorityInstalledEvent' smart constructor.+data CertAuthorityInstalledEvent = CertAuthorityInstalledEvent+ { -- | Subject of the certificate.+ certificate :: (Core.Maybe Core.Text),+ -- | Whether the installation event succeeded.+ success :: (Core.Maybe Core.Bool),+ -- | The user in which the certificate install event happened. Only available for devices running Android 11 and above.+ userId :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CertAuthorityInstalledEvent' with the minimum fields required to make a request.+newCertAuthorityInstalledEvent ::+ CertAuthorityInstalledEvent+newCertAuthorityInstalledEvent =+ CertAuthorityInstalledEvent+ { certificate = Core.Nothing,+ success = Core.Nothing,+ userId = Core.Nothing+ }++instance Core.FromJSON CertAuthorityInstalledEvent where+ parseJSON =+ Core.withObject+ "CertAuthorityInstalledEvent"+ ( \o ->+ CertAuthorityInstalledEvent+ Core.<$> (o Core..:? "certificate")+ Core.<*> (o Core..:? "success")+ Core.<*> (o Core..:? "userId")+ )++instance Core.ToJSON CertAuthorityInstalledEvent where+ toJSON CertAuthorityInstalledEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("certificate" Core..=) Core.<$> certificate,+ ("success" Core..=) Core.<$> success,+ ("userId" Core..=) Core.<$> userId+ ]+ )++-- | A root certificate was removed from the system\'s trusted credential storage. This is available device-wide on fully managed devices and within the work profile on organization-owned devices with a work profile.+--+-- /See:/ 'newCertAuthorityRemovedEvent' smart constructor.+data CertAuthorityRemovedEvent = CertAuthorityRemovedEvent+ { -- | Subject of the certificate.+ certificate :: (Core.Maybe Core.Text),+ -- | Whether the removal succeeded.+ success :: (Core.Maybe Core.Bool),+ -- | The user in which the certificate removal event occurred. Only available for devices running Android 11 and above.+ userId :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CertAuthorityRemovedEvent' with the minimum fields required to make a request.+newCertAuthorityRemovedEvent ::+ CertAuthorityRemovedEvent+newCertAuthorityRemovedEvent =+ CertAuthorityRemovedEvent+ { certificate = Core.Nothing,+ success = Core.Nothing,+ userId = Core.Nothing+ }++instance Core.FromJSON CertAuthorityRemovedEvent where+ parseJSON =+ Core.withObject+ "CertAuthorityRemovedEvent"+ ( \o ->+ CertAuthorityRemovedEvent+ Core.<$> (o Core..:? "certificate")+ Core.<*> (o Core..:? "success")+ Core.<*> (o Core..:? "userId")+ )++instance Core.ToJSON CertAuthorityRemovedEvent where+ toJSON CertAuthorityRemovedEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("certificate" Core..=) Core.<$> certificate,+ ("success" Core..=) Core.<$> success,+ ("userId" Core..=) Core.<$> userId+ ]+ )++-- | An X.509v3 certificate failed to validate, currently this validation is performed on the Wi-FI access point and failure may be due to a mismatch upon server certificate validation. However it may in the future include other validation events of an X.509v3 certificate.+--+-- /See:/ 'newCertValidationFailureEvent' smart constructor.+newtype CertValidationFailureEvent = CertValidationFailureEvent+ { -- | The reason why certification validation failed.+ failureReason :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CertValidationFailureEvent' with the minimum fields required to make a request.+newCertValidationFailureEvent ::+ CertValidationFailureEvent+newCertValidationFailureEvent =+ CertValidationFailureEvent {failureReason = Core.Nothing}++instance Core.FromJSON CertValidationFailureEvent where+ parseJSON =+ Core.withObject+ "CertValidationFailureEvent"+ ( \o ->+ CertValidationFailureEvent Core.<$> (o Core..:? "failureReason")+ )++instance Core.ToJSON CertValidationFailureEvent where+ toJSON CertValidationFailureEvent {..} =+ Core.object+ (Core.catMaybes [("failureReason" Core..=) Core.<$> failureReason])++-- | Controls apps\' access to private keys. The rule determines which private key, if any, Android Device Policy grants to the specified app. Access is granted either when the app calls KeyChain.choosePrivateKeyAlias (https:\/\/developer.android.com\/reference\/android\/security\/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) (or any overloads) to request a private key alias for a given URL, or for rules that are not URL-specific (that is, if urlPattern is not set, or set to the empty string or .*) on Android 11 and above, directly so that the app can call KeyChain.getPrivateKey (https:\/\/developer.android.com\/reference\/android\/security\/KeyChain#getPrivateKey%28android.content.Context,%20java.lang.String%29), without first having to call KeyChain.choosePrivateKeyAlias.When an app calls KeyChain.choosePrivateKeyAlias if more than one choosePrivateKeyRules+-- matches, the last matching rule defines which key alias to return.+--+-- /See:/ 'newChoosePrivateKeyRule' smart constructor.+data ChoosePrivateKeyRule = ChoosePrivateKeyRule+ { -- | The package names to which this rule applies. The hash of the signing certificate for each app is verified against the hash provided by Play. If no package names are specified, then the alias is provided to all apps that call KeyChain.choosePrivateKeyAlias (https:\/\/developer.android.com\/reference\/android\/security\/KeyChain#choosePrivateKeyAlias%28android.app.Activity,%20android.security.KeyChainAliasCallback,%20java.lang.String[],%20java.security.Principal[],%20java.lang.String,%20int,%20java.lang.String%29) or any overloads (but not without calling KeyChain.choosePrivateKeyAlias, even on Android 11 and above). Any app with the same Android UID as a package specified here will have access when they call KeyChain.choosePrivateKeyAlias.+ packageNames :: (Core.Maybe [Core.Text]),+ -- | The alias of the private key to be used.+ privateKeyAlias :: (Core.Maybe Core.Text),+ -- | The URL pattern to match against the URL of the request. If not set or empty, it matches all URLs. This uses the regular expression syntax of java.util.regex.Pattern.+ urlPattern :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ChoosePrivateKeyRule' with the minimum fields required to make a request.+newChoosePrivateKeyRule ::+ ChoosePrivateKeyRule+newChoosePrivateKeyRule =+ ChoosePrivateKeyRule+ { packageNames = Core.Nothing,+ privateKeyAlias = Core.Nothing,+ urlPattern = Core.Nothing+ }++instance Core.FromJSON ChoosePrivateKeyRule where+ parseJSON =+ Core.withObject+ "ChoosePrivateKeyRule"+ ( \o ->+ ChoosePrivateKeyRule+ Core.<$> (o Core..:? "packageNames")+ Core.<*> (o Core..:? "privateKeyAlias")+ Core.<*> (o Core..:? "urlPattern")+ )++instance Core.ToJSON ChoosePrivateKeyRule where+ toJSON ChoosePrivateKeyRule {..} =+ Core.object+ ( Core.catMaybes+ [ ("packageNames" Core..=) Core.<$> packageNames,+ ("privateKeyAlias" Core..=) Core.<$> privateKeyAlias,+ ("urlPattern" Core..=) Core.<$> urlPattern+ ]+ )++-- | Parameters associated with the CLEAR/APP/DATA command to clear the data of specified apps from the device.+--+-- /See:/ 'newClearAppsDataParams' smart constructor.+newtype ClearAppsDataParams = ClearAppsDataParams+ { -- | The package names of the apps whose data will be cleared when the command is executed.+ packageNames :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ClearAppsDataParams' with the minimum fields required to make a request.+newClearAppsDataParams ::+ ClearAppsDataParams+newClearAppsDataParams =+ ClearAppsDataParams {packageNames = Core.Nothing}++instance Core.FromJSON ClearAppsDataParams where+ parseJSON =+ Core.withObject+ "ClearAppsDataParams"+ (\o -> ClearAppsDataParams Core.<$> (o Core..:? "packageNames"))++instance Core.ToJSON ClearAppsDataParams where+ toJSON ClearAppsDataParams {..} =+ Core.object+ (Core.catMaybes [("packageNames" Core..=) Core.<$> packageNames])++-- | Status of the CLEAR/APP/DATA command to clear the data of specified apps from the device.+--+-- /See:/ 'newClearAppsDataStatus' smart constructor.+newtype ClearAppsDataStatus = ClearAppsDataStatus+ { -- | The per-app results, a mapping from package names to the respective clearing result.+ results :: (Core.Maybe ClearAppsDataStatus_Results)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ClearAppsDataStatus' with the minimum fields required to make a request.+newClearAppsDataStatus ::+ ClearAppsDataStatus+newClearAppsDataStatus =+ ClearAppsDataStatus {results = Core.Nothing}++instance Core.FromJSON ClearAppsDataStatus where+ parseJSON =+ Core.withObject+ "ClearAppsDataStatus"+ (\o -> ClearAppsDataStatus Core.<$> (o Core..:? "results"))++instance Core.ToJSON ClearAppsDataStatus where+ toJSON ClearAppsDataStatus {..} =+ Core.object+ (Core.catMaybes [("results" Core..=) Core.<$> results])++-- | The per-app results, a mapping from package names to the respective clearing result.+--+-- /See:/ 'newClearAppsDataStatus_Results' smart constructor.+newtype ClearAppsDataStatus_Results = ClearAppsDataStatus_Results+ { additional :: (Core.HashMap Core.Text PerAppResult)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ClearAppsDataStatus_Results' with the minimum fields required to make a request.+newClearAppsDataStatus_Results ::+ -- | See 'additional'.+ Core.HashMap Core.Text PerAppResult ->+ ClearAppsDataStatus_Results+newClearAppsDataStatus_Results additional =+ ClearAppsDataStatus_Results {additional = additional}++instance Core.FromJSON ClearAppsDataStatus_Results where+ parseJSON =+ Core.withObject+ "ClearAppsDataStatus_Results"+ ( \o ->+ ClearAppsDataStatus_Results Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON ClearAppsDataStatus_Results where+ toJSON ClearAppsDataStatus_Results {..} = Core.toJSON additional++-- | A command.+--+-- /See:/ 'newCommand' smart constructor.+data Command = Command+ { -- | Parameters for the CLEAR/APP/DATA command to clear the data of specified apps from the device. See ClearAppsDataParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to CLEAR/APP/DATA. It is also acceptable to explicitly set type to CLEAR/APP/DATA.+ clearAppsDataParams :: (Core.Maybe ClearAppsDataParams),+ -- | Output only. Status of the CLEAR/APP/DATA command to clear the data of specified apps from the device. See ClearAppsDataStatus.+ clearAppsDataStatus :: (Core.Maybe ClearAppsDataStatus),+ -- | The timestamp at which the command was created. The timestamp is automatically generated by the server.+ createTime :: (Core.Maybe Core.DateTime),+ -- | The duration for which the command is valid. The command will expire if not executed by the device during this time. The default duration if unspecified is ten minutes. There is no maximum duration.+ duration :: (Core.Maybe Core.Duration),+ -- | If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.+ errorCode :: (Core.Maybe Command_ErrorCode),+ -- | For commands of type RESET/PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command will fail with INVALID/VALUE.+ newPassword' :: (Core.Maybe Core.Text),+ -- | For commands of type RESET_PASSWORD, optionally specifies flags.+ resetPasswordFlags :: (Core.Maybe [Command_ResetPasswordFlagsItem]),+ -- | Parameters for the START/LOST/MODE command to put the device into lost mode. See StartLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to START/LOST/MODE. It is also acceptable to explicitly set type to START/LOST/MODE.+ startLostModeParams :: (Core.Maybe StartLostModeParams),+ -- | Output only. Status of the START/LOST/MODE command to put the device into lost mode. See StartLostModeStatus.+ startLostModeStatus :: (Core.Maybe StartLostModeStatus),+ -- | Parameters for the STOP/LOST/MODE command to take the device out of lost mode. See StopLostModeParams. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to STOP/LOST/MODE. It is also acceptable to explicitly set type to STOP/LOST/MODE.+ stopLostModeParams :: (Core.Maybe StopLostModeParams),+ -- | Output only. Status of the STOP/LOST/MODE command to take the device out of lost mode. See StopLostModeStatus.+ stopLostModeStatus :: (Core.Maybe StopLostModeStatus),+ -- | The type of the command.+ type' :: (Core.Maybe Command_Type),+ -- | The resource name of the user that owns the device in the form enterprises\/{enterpriseId}\/users\/{userId}. This is automatically generated by the server based on the device the command is sent to.+ userName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Command' with the minimum fields required to make a request.+newCommand ::+ Command+newCommand =+ Command+ { clearAppsDataParams = Core.Nothing,+ clearAppsDataStatus = Core.Nothing,+ createTime = Core.Nothing,+ duration = Core.Nothing,+ errorCode = Core.Nothing,+ newPassword' = Core.Nothing,+ resetPasswordFlags = Core.Nothing,+ startLostModeParams = Core.Nothing,+ startLostModeStatus = Core.Nothing,+ stopLostModeParams = Core.Nothing,+ stopLostModeStatus = Core.Nothing,+ type' = Core.Nothing,+ userName = Core.Nothing+ }++instance Core.FromJSON Command where+ parseJSON =+ Core.withObject+ "Command"+ ( \o ->+ Command+ Core.<$> (o Core..:? "clearAppsDataParams")+ Core.<*> (o Core..:? "clearAppsDataStatus")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "duration")+ Core.<*> (o Core..:? "errorCode")+ Core.<*> (o Core..:? "newPassword")+ Core.<*> (o Core..:? "resetPasswordFlags")+ Core.<*> (o Core..:? "startLostModeParams")+ Core.<*> (o Core..:? "startLostModeStatus")+ Core.<*> (o Core..:? "stopLostModeParams")+ Core.<*> (o Core..:? "stopLostModeStatus")+ Core.<*> (o Core..:? "type")+ Core.<*> (o Core..:? "userName")+ )++instance Core.ToJSON Command where+ toJSON Command {..} =+ Core.object+ ( Core.catMaybes+ [ ("clearAppsDataParams" Core..=) Core.<$> clearAppsDataParams,+ ("clearAppsDataStatus" Core..=) Core.<$> clearAppsDataStatus,+ ("createTime" Core..=) Core.<$> createTime,+ ("duration" Core..=) Core.<$> duration,+ ("errorCode" Core..=) Core.<$> errorCode,+ ("newPassword" Core..=) Core.<$> newPassword',+ ("resetPasswordFlags" Core..=) Core.<$> resetPasswordFlags,+ ("startLostModeParams" Core..=) Core.<$> startLostModeParams,+ ("startLostModeStatus" Core..=) Core.<$> startLostModeStatus,+ ("stopLostModeParams" Core..=) Core.<$> stopLostModeParams,+ ("stopLostModeStatus" Core..=) Core.<$> stopLostModeStatus,+ ("type" Core..=) Core.<$> type',+ ("userName" Core..=) Core.<$> userName+ ]+ )++-- | Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https:\/\/www.commoncriteriaportal.org\/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device\'s policy.+--+-- /See:/ 'newCommonCriteriaModeInfo' smart constructor.+data CommonCriteriaModeInfo = CommonCriteriaModeInfo+ { -- | Whether Common Criteria Mode is enabled.+ commonCriteriaModeStatus :: (Core.Maybe CommonCriteriaModeInfo_CommonCriteriaModeStatus),+ -- | Output only. The status of policy signature verification.+ policySignatureVerificationStatus ::+ ( Core.Maybe+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus+ )+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CommonCriteriaModeInfo' with the minimum fields required to make a request.+newCommonCriteriaModeInfo ::+ CommonCriteriaModeInfo+newCommonCriteriaModeInfo =+ CommonCriteriaModeInfo+ { commonCriteriaModeStatus = Core.Nothing,+ policySignatureVerificationStatus = Core.Nothing+ }++instance Core.FromJSON CommonCriteriaModeInfo where+ parseJSON =+ Core.withObject+ "CommonCriteriaModeInfo"+ ( \o ->+ CommonCriteriaModeInfo+ Core.<$> (o Core..:? "commonCriteriaModeStatus")+ Core.<*> (o Core..:? "policySignatureVerificationStatus")+ )++instance Core.ToJSON CommonCriteriaModeInfo where+ toJSON CommonCriteriaModeInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("commonCriteriaModeStatus" Core..=)+ Core.<$> commonCriteriaModeStatus,+ ("policySignatureVerificationStatus" Core..=)+ Core.<$> policySignatureVerificationStatus+ ]+ )++-- | A rule declaring which mitigating actions to take when a device is not compliant with its policy. For every rule, there is always an implicit mitigating action to set policy_compliant to false for the Device resource, and display a message on the device indicating that the device is not compliant with its policy. Other mitigating actions may optionally be taken as well, depending on the field values in the rule.+--+-- /See:/ 'newComplianceRule' smart constructor.+data ComplianceRule = ComplianceRule+ { -- | A condition which is satisfied if the Android Framework API level on the device doesn\'t meet a minimum requirement.+ apiLevelCondition :: (Core.Maybe ApiLevelCondition),+ -- | If set to true, the rule includes a mitigating action to disable apps so that the device is effectively disabled, but app data is preserved. If the device is running an app in locked task mode, the app will be closed and a UI showing the reason for non-compliance will be displayed.+ disableApps :: (Core.Maybe Core.Bool),+ -- | A condition which is satisfied if there exists any matching NonComplianceDetail for the device.+ nonComplianceDetailCondition :: (Core.Maybe NonComplianceDetailCondition),+ -- | If set, the rule includes a mitigating action to disable apps specified in the list, but app data is preserved.+ packageNamesToDisable :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ComplianceRule' with the minimum fields required to make a request.+newComplianceRule ::+ ComplianceRule+newComplianceRule =+ ComplianceRule+ { apiLevelCondition = Core.Nothing,+ disableApps = Core.Nothing,+ nonComplianceDetailCondition = Core.Nothing,+ packageNamesToDisable = Core.Nothing+ }++instance Core.FromJSON ComplianceRule where+ parseJSON =+ Core.withObject+ "ComplianceRule"+ ( \o ->+ ComplianceRule+ Core.<$> (o Core..:? "apiLevelCondition")+ Core.<*> (o Core..:? "disableApps")+ Core.<*> (o Core..:? "nonComplianceDetailCondition")+ Core.<*> (o Core..:? "packageNamesToDisable")+ )++instance Core.ToJSON ComplianceRule where+ toJSON ComplianceRule {..} =+ Core.object+ ( Core.catMaybes+ [ ("apiLevelCondition" Core..=) Core.<$> apiLevelCondition,+ ("disableApps" Core..=) Core.<$> disableApps,+ ("nonComplianceDetailCondition" Core..=)+ Core.<$> nonComplianceDetailCondition,+ ("packageNamesToDisable" Core..=) Core.<$> packageNamesToDisable+ ]+ )++-- | A TCP connect event was initiated through the standard network stack.+--+-- /See:/ 'newConnectEvent' smart constructor.+data ConnectEvent = ConnectEvent+ { -- | The destination IP address of the connect call.+ destinationIpAddress :: (Core.Maybe Core.Text),+ -- | The destination port of the connect call.+ destinationPort :: (Core.Maybe Core.Int32),+ -- | The package name of the UID that performed the connect call.+ packageName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ConnectEvent' with the minimum fields required to make a request.+newConnectEvent ::+ ConnectEvent+newConnectEvent =+ ConnectEvent+ { destinationIpAddress = Core.Nothing,+ destinationPort = Core.Nothing,+ packageName = Core.Nothing+ }++instance Core.FromJSON ConnectEvent where+ parseJSON =+ Core.withObject+ "ConnectEvent"+ ( \o ->+ ConnectEvent+ Core.<$> (o Core..:? "destinationIpAddress")+ Core.<*> (o Core..:? "destinationPort")+ Core.<*> (o Core..:? "packageName")+ )++instance Core.ToJSON ConnectEvent where+ toJSON ConnectEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("destinationIpAddress" Core..=) Core.<$> destinationIpAddress,+ ("destinationPort" Core..=) Core.<$> destinationPort,+ ("packageName" Core..=) Core.<$> packageName+ ]+ )++-- | Contact details for managed Google Play enterprises.+--+-- /See:/ 'newContactInfo' smart constructor.+data ContactInfo = ContactInfo+ { -- | Email address for a point of contact, which will be used to send important announcements related to managed Google Play.+ contactEmail :: (Core.Maybe Core.Text),+ -- | The email of the data protection officer. The email is validated but not verified.+ dataProtectionOfficerEmail :: (Core.Maybe Core.Text),+ -- | The name of the data protection officer.+ dataProtectionOfficerName :: (Core.Maybe Core.Text),+ -- | The phone number of the data protection officer The phone number is validated but not verified.+ dataProtectionOfficerPhone :: (Core.Maybe Core.Text),+ -- | The email of the EU representative. The email is validated but not verified.+ euRepresentativeEmail :: (Core.Maybe Core.Text),+ -- | The name of the EU representative.+ euRepresentativeName :: (Core.Maybe Core.Text),+ -- | The phone number of the EU representative. The phone number is validated but not verified.+ euRepresentativePhone :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ContactInfo' with the minimum fields required to make a request.+newContactInfo ::+ ContactInfo+newContactInfo =+ ContactInfo+ { contactEmail = Core.Nothing,+ dataProtectionOfficerEmail = Core.Nothing,+ dataProtectionOfficerName = Core.Nothing,+ dataProtectionOfficerPhone = Core.Nothing,+ euRepresentativeEmail = Core.Nothing,+ euRepresentativeName = Core.Nothing,+ euRepresentativePhone = Core.Nothing+ }++instance Core.FromJSON ContactInfo where+ parseJSON =+ Core.withObject+ "ContactInfo"+ ( \o ->+ ContactInfo+ Core.<$> (o Core..:? "contactEmail")+ Core.<*> (o Core..:? "dataProtectionOfficerEmail")+ Core.<*> (o Core..:? "dataProtectionOfficerName")+ Core.<*> (o Core..:? "dataProtectionOfficerPhone")+ Core.<*> (o Core..:? "euRepresentativeEmail")+ Core.<*> (o Core..:? "euRepresentativeName")+ Core.<*> (o Core..:? "euRepresentativePhone")+ )++instance Core.ToJSON ContactInfo where+ toJSON ContactInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("contactEmail" Core..=) Core.<$> contactEmail,+ ("dataProtectionOfficerEmail" Core..=)+ Core.<$> dataProtectionOfficerEmail,+ ("dataProtectionOfficerName" Core..=)+ Core.<$> dataProtectionOfficerName,+ ("dataProtectionOfficerPhone" Core..=)+ Core.<$> dataProtectionOfficerPhone,+ ("euRepresentativeEmail" Core..=) Core.<$> euRepresentativeEmail,+ ("euRepresentativeName" Core..=) Core.<$> euRepresentativeName,+ ("euRepresentativePhone" Core..=) Core.<$> euRepresentativePhone+ ]+ )++-- | This feature is not generally available.+--+-- /See:/ 'newContentProviderEndpoint' smart constructor.+data ContentProviderEndpoint = ContentProviderEndpoint+ { -- | This feature is not generally available.+ packageName :: (Core.Maybe Core.Text),+ -- | Required. This feature is not generally available.+ signingCertsSha256 :: (Core.Maybe [Core.Text]),+ -- | This feature is not generally available.+ uri :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ContentProviderEndpoint' with the minimum fields required to make a request.+newContentProviderEndpoint ::+ ContentProviderEndpoint+newContentProviderEndpoint =+ ContentProviderEndpoint+ { packageName = Core.Nothing,+ signingCertsSha256 = Core.Nothing,+ uri = Core.Nothing+ }++instance Core.FromJSON ContentProviderEndpoint where+ parseJSON =+ Core.withObject+ "ContentProviderEndpoint"+ ( \o ->+ ContentProviderEndpoint+ Core.<$> (o Core..:? "packageName")+ Core.<*> (o Core..:? "signingCertsSha256")+ Core.<*> (o Core..:? "uri")+ )++instance Core.ToJSON ContentProviderEndpoint where+ toJSON ContentProviderEndpoint {..} =+ Core.object+ ( Core.catMaybes+ [ ("packageName" Core..=) Core.<$> packageName,+ ("signingCertsSha256" Core..=) Core.<$> signingCertsSha256,+ ("uri" Core..=) Core.<$> uri+ ]+ )++-- | Controls the data from the work profile that can be accessed from the personal profile and vice versa. A nonComplianceDetail with MANAGEMENT_MODE is reported if the device does not have a work profile.+--+-- /See:/ 'newCrossProfilePolicies' smart constructor.+data CrossProfilePolicies = CrossProfilePolicies+ { -- | Whether text copied from one profile (personal or work) can be pasted in the other profile.+ crossProfileCopyPaste :: (Core.Maybe CrossProfilePolicies_CrossProfileCopyPaste),+ -- | Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other cross-profile communication channels, such as contact search, copy\/paste, or connected work & personal apps, are configured separately.+ crossProfileDataSharing :: (Core.Maybe CrossProfilePolicies_CrossProfileDataSharing),+ -- | List of apps which are excluded from the ShowWorkContactsInPersonalProfile setting. For this to be set, ShowWorkContactsInPersonalProfile must be set to one of the following values: SHOW/WORK/CONTACTS/IN/PERSONAL/PROFILE/ALLOWED. In this case, these exemptions act as a blocklist. SHOW/WORK/CONTACTS/IN/PERSONAL/PROFILE/DISALLOWED. In this case, these exemptions act as an allowlist. SHOW/WORK/CONTACTS/IN/PERSONAL/PROFILE/DISALLOWED/EXCEPT/SYSTEM. In this case, these exemptions act as an allowlist, in addition to the already allowlisted system apps.Supported on Android 14 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.+ exemptionsToShowWorkContactsInPersonalProfile :: (Core.Maybe PackageNameList),+ -- | Whether personal apps can access contacts stored in the work profile.See also exemptions/to/show/work/contacts/in/personal_profile.+ showWorkContactsInPersonalProfile :: (Core.Maybe CrossProfilePolicies_ShowWorkContactsInPersonalProfile),+ -- | Specifies the default behaviour for work profile widgets. If the policy does not specify work/profile/widgets for a specific application, it will behave according to the value specified here.+ workProfileWidgetsDefault :: (Core.Maybe CrossProfilePolicies_WorkProfileWidgetsDefault)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CrossProfilePolicies' with the minimum fields required to make a request.+newCrossProfilePolicies ::+ CrossProfilePolicies+newCrossProfilePolicies =+ CrossProfilePolicies+ { crossProfileCopyPaste = Core.Nothing,+ crossProfileDataSharing = Core.Nothing,+ exemptionsToShowWorkContactsInPersonalProfile = Core.Nothing,+ showWorkContactsInPersonalProfile = Core.Nothing,+ workProfileWidgetsDefault = Core.Nothing+ }++instance Core.FromJSON CrossProfilePolicies where+ parseJSON =+ Core.withObject+ "CrossProfilePolicies"+ ( \o ->+ CrossProfilePolicies+ Core.<$> (o Core..:? "crossProfileCopyPaste")+ Core.<*> (o Core..:? "crossProfileDataSharing")+ Core.<*> (o Core..:? "exemptionsToShowWorkContactsInPersonalProfile")+ Core.<*> (o Core..:? "showWorkContactsInPersonalProfile")+ Core.<*> (o Core..:? "workProfileWidgetsDefault")+ )++instance Core.ToJSON CrossProfilePolicies where+ toJSON CrossProfilePolicies {..} =+ Core.object+ ( Core.catMaybes+ [ ("crossProfileCopyPaste" Core..=) Core.<$> crossProfileCopyPaste,+ ("crossProfileDataSharing" Core..=)+ Core.<$> crossProfileDataSharing,+ ("exemptionsToShowWorkContactsInPersonalProfile" Core..=)+ Core.<$> exemptionsToShowWorkContactsInPersonalProfile,+ ("showWorkContactsInPersonalProfile" Core..=)+ Core.<$> showWorkContactsInPersonalProfile,+ ("workProfileWidgetsDefault" Core..=)+ Core.<$> workProfileWidgetsDefault+ ]+ )++-- | Validates whether Android’s built-in cryptographic library (BoringSSL) is valid. Should always succeed on device boot, if it fails, the device should be considered untrusted.+--+-- /See:/ 'newCryptoSelfTestCompletedEvent' smart constructor.+newtype CryptoSelfTestCompletedEvent = CryptoSelfTestCompletedEvent+ { -- | Whether the test succeeded.+ success :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'CryptoSelfTestCompletedEvent' with the minimum fields required to make a request.+newCryptoSelfTestCompletedEvent ::+ CryptoSelfTestCompletedEvent+newCryptoSelfTestCompletedEvent =+ CryptoSelfTestCompletedEvent {success = Core.Nothing}++instance Core.FromJSON CryptoSelfTestCompletedEvent where+ parseJSON =+ Core.withObject+ "CryptoSelfTestCompletedEvent"+ ( \o ->+ CryptoSelfTestCompletedEvent Core.<$> (o Core..:? "success")+ )++instance Core.ToJSON CryptoSelfTestCompletedEvent where+ toJSON CryptoSelfTestCompletedEvent {..} =+ Core.object+ (Core.catMaybes [("success" Core..=) Core.<$> success])++-- | Represents a whole or partial calendar date, such as a birthday. The time of day and time zone are either specified elsewhere or are insignificant. The date is relative to the Gregorian Calendar. This can represent one of the following: A full date, with non-zero year, month, and day values. A month and day, with a zero year (for example, an anniversary). A year on its own, with a zero month and a zero day. A year and month, with a zero day (for example, a credit card expiration date).Related types: google.type.TimeOfDay google.type.DateTime google.protobuf.Timestamp+--+-- /See:/ 'newDate' smart constructor.+data Date = Date+ { -- | Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn\'t significant.+ day :: (Core.Maybe Core.Int32),+ -- | Month of a year. Must be from 1 to 12, or 0 to specify a year without a month and day.+ month :: (Core.Maybe Core.Int32),+ -- | Year of the date. Must be from 1 to 9999, or 0 to specify a date without a year.+ year :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Date' with the minimum fields required to make a request.+newDate ::+ Date+newDate =+ Date+ { day = Core.Nothing,+ month = Core.Nothing,+ year = Core.Nothing+ }++instance Core.FromJSON Date where+ parseJSON =+ Core.withObject+ "Date"+ ( \o ->+ Date+ Core.<$> (o Core..:? "day")+ Core.<*> (o Core..:? "month")+ Core.<*> (o Core..:? "year")+ )++instance Core.ToJSON Date where+ toJSON Date {..} =+ Core.object+ ( Core.catMaybes+ [ ("day" Core..=) Core.<$> day,+ ("month" Core..=) Core.<$> month,+ ("year" Core..=) Core.<$> year+ ]+ )++-- | A device owned by an enterprise. Unless otherwise noted, all fields are read-only and can\'t be modified by enterprises.devices.patch.+--+-- /See:/ 'newDevice' smart constructor.+data Device = Device+ { -- | The API level of the Android platform version running on the device.+ apiLevel :: (Core.Maybe Core.Int32),+ -- | Reports for apps installed on the device. This information is only available when application/reports/enabled is true in the device\'s policy.+ applicationReports :: (Core.Maybe [ApplicationReport]),+ -- | The password requirements currently applied to the device. The applied requirements may be slightly different from those specified in passwordPolicies in some cases. fieldPath is set based on passwordPolicies.+ appliedPasswordPolicies :: (Core.Maybe [PasswordRequirements]),+ -- | The name of the policy currently applied to the device.+ appliedPolicyName :: (Core.Maybe Core.Text),+ -- | The version of the policy currently applied to the device.+ appliedPolicyVersion :: (Core.Maybe Core.Int64),+ -- | The state currently applied to the device.+ appliedState :: (Core.Maybe Device_AppliedState),+ -- | Information about Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https:\/\/www.commoncriteriaportal.org\/) (CC).This information is only available if statusReportingSettings.commonCriteriaModeEnabled is true in the device\'s policy the device is company-owned.+ commonCriteriaModeInfo :: (Core.Maybe CommonCriteriaModeInfo),+ -- | Device settings information. This information is only available if deviceSettingsEnabled is true in the device\'s policy.+ deviceSettings :: (Core.Maybe DeviceSettings),+ -- | If the device state is DISABLED, an optional message that is displayed on the device indicating the reason the device is disabled. This field can be modified by a patch request.+ disabledReason :: (Core.Maybe UserFacingMessage),+ -- | Detailed information about displays on the device. This information is only available if displayInfoEnabled is true in the device\'s policy.+ displays :: (Core.Maybe [Display]),+ -- | Output only. Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC).+ dpcMigrationInfo :: (Core.Maybe DpcMigrationInfo),+ -- | The time of device enrollment.+ enrollmentTime :: (Core.Maybe Core.DateTime),+ -- | If the device was enrolled with an enrollment token with additional data provided, this field contains that data.+ enrollmentTokenData :: (Core.Maybe Core.Text),+ -- | If the device was enrolled with an enrollment token, this field contains the name of the token.+ enrollmentTokenName :: (Core.Maybe Core.Text),+ -- | Detailed information about the device hardware.+ hardwareInfo :: (Core.Maybe HardwareInfo),+ -- | Hardware status samples in chronological order. This information is only available if hardwareStatusEnabled is true in the device\'s policy.+ hardwareStatusSamples :: (Core.Maybe [HardwareStatus]),+ -- | Deprecated.+ lastPolicyComplianceReportTime :: (Core.Maybe Core.DateTime),+ -- | The last time the device fetched its policy.+ lastPolicySyncTime :: (Core.Maybe Core.DateTime),+ -- | The last time the device sent a status report.+ lastStatusReportTime :: (Core.Maybe Core.DateTime),+ -- | The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.+ managementMode :: (Core.Maybe Device_ManagementMode),+ -- | Events related to memory and storage measurements in chronological order. This information is only available if memoryInfoEnabled is true in the device\'s policy.Events are retained for a certain period of time and old events are deleted.+ memoryEvents :: (Core.Maybe [MemoryEvent]),+ -- | Memory information: contains information about device memory and storage.+ memoryInfo :: (Core.Maybe MemoryInfo),+ -- | The name of the device in the form enterprises\/{enterpriseId}\/devices\/{deviceId}.+ name :: (Core.Maybe Core.Text),+ -- | Device network information. This information is only available if networkInfoEnabled is true in the device\'s policy.+ networkInfo :: (Core.Maybe NetworkInfo),+ -- | Details about policy settings that the device is not compliant with.+ nonComplianceDetails :: (Core.Maybe [NonComplianceDetail]),+ -- | Ownership of the managed device.+ ownership :: (Core.Maybe Device_Ownership),+ -- | Whether the device is compliant with its policy.+ policyCompliant :: (Core.Maybe Core.Bool),+ -- | The name of the policy applied to the device, in the form enterprises\/{enterpriseId}\/policies\/{policyId}. If not specified, the policy_name for the device\'s user is applied. This field can be modified by a patch request. You can specify only the policyId when calling enterprises.devices.patch, as long as the policyId doesn’t contain any slashes. The rest of the policy name is inferred.+ policyName :: (Core.Maybe Core.Text),+ -- | Power management events on the device in chronological order. This information is only available if powerManagementEventsEnabled is true in the device\'s policy.+ powerManagementEvents :: (Core.Maybe [PowerManagementEvent]),+ -- | If the same physical device has been enrolled multiple times, this field contains its previous device names. The serial number is used as the unique identifier to determine if the same physical device has enrolled previously. The names are in chronological order.+ previousDeviceNames :: (Core.Maybe [Core.Text]),+ -- | Device\'s security posture value that reflects how secure the device is.+ securityPosture :: (Core.Maybe SecurityPosture),+ -- | Detailed information about the device software. This information is only available if softwareInfoEnabled is true in the device\'s policy.+ softwareInfo :: (Core.Maybe SoftwareInfo),+ -- | The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete.+ state :: (Core.Maybe Device_State),+ -- | Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device\'s policy.+ systemProperties :: (Core.Maybe Device_SystemProperties),+ -- | The user who owns the device.+ user :: (Core.Maybe User),+ -- | The resource name of the user that owns this device in the form enterprises\/{enterpriseId}\/users\/{userId}.+ userName :: (Core.Maybe Core.Text)+ }+ 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+ { apiLevel = Core.Nothing,+ applicationReports = Core.Nothing,+ appliedPasswordPolicies = Core.Nothing,+ appliedPolicyName = Core.Nothing,+ appliedPolicyVersion = Core.Nothing,+ appliedState = Core.Nothing,+ commonCriteriaModeInfo = Core.Nothing,+ deviceSettings = Core.Nothing,+ disabledReason = Core.Nothing,+ displays = Core.Nothing,+ dpcMigrationInfo = Core.Nothing,+ enrollmentTime = Core.Nothing,+ enrollmentTokenData = Core.Nothing,+ enrollmentTokenName = Core.Nothing,+ hardwareInfo = Core.Nothing,+ hardwareStatusSamples = Core.Nothing,+ lastPolicyComplianceReportTime = Core.Nothing,+ lastPolicySyncTime = Core.Nothing,+ lastStatusReportTime = Core.Nothing,+ managementMode = Core.Nothing,+ memoryEvents = Core.Nothing,+ memoryInfo = Core.Nothing,+ name = Core.Nothing,+ networkInfo = Core.Nothing,+ nonComplianceDetails = Core.Nothing,+ ownership = Core.Nothing,+ policyCompliant = Core.Nothing,+ policyName = Core.Nothing,+ powerManagementEvents = Core.Nothing,+ previousDeviceNames = Core.Nothing,+ securityPosture = Core.Nothing,+ softwareInfo = Core.Nothing,+ state = Core.Nothing,+ systemProperties = Core.Nothing,+ user = Core.Nothing,+ userName = Core.Nothing+ }++instance Core.FromJSON Device where+ parseJSON =+ Core.withObject+ "Device"+ ( \o ->+ Device+ Core.<$> (o Core..:? "apiLevel")+ Core.<*> (o Core..:? "applicationReports")+ Core.<*> (o Core..:? "appliedPasswordPolicies")+ Core.<*> (o Core..:? "appliedPolicyName")+ Core.<*> ( o+ Core..:? "appliedPolicyVersion"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "appliedState")+ Core.<*> (o Core..:? "commonCriteriaModeInfo")+ Core.<*> (o Core..:? "deviceSettings")+ Core.<*> (o Core..:? "disabledReason")+ Core.<*> (o Core..:? "displays")+ Core.<*> (o Core..:? "dpcMigrationInfo")+ Core.<*> (o Core..:? "enrollmentTime")+ Core.<*> (o Core..:? "enrollmentTokenData")+ Core.<*> (o Core..:? "enrollmentTokenName")+ Core.<*> (o Core..:? "hardwareInfo")+ Core.<*> (o Core..:? "hardwareStatusSamples")+ Core.<*> (o Core..:? "lastPolicyComplianceReportTime")+ Core.<*> (o Core..:? "lastPolicySyncTime")+ Core.<*> (o Core..:? "lastStatusReportTime")+ Core.<*> (o Core..:? "managementMode")+ Core.<*> (o Core..:? "memoryEvents")+ Core.<*> (o Core..:? "memoryInfo")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "networkInfo")+ Core.<*> (o Core..:? "nonComplianceDetails")+ Core.<*> (o Core..:? "ownership")+ Core.<*> (o Core..:? "policyCompliant")+ Core.<*> (o Core..:? "policyName")+ Core.<*> (o Core..:? "powerManagementEvents")+ Core.<*> (o Core..:? "previousDeviceNames")+ Core.<*> (o Core..:? "securityPosture")+ Core.<*> (o Core..:? "softwareInfo")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "systemProperties")+ Core.<*> (o Core..:? "user")+ Core.<*> (o Core..:? "userName")+ )++instance Core.ToJSON Device where+ toJSON Device {..} =+ Core.object+ ( Core.catMaybes+ [ ("apiLevel" Core..=) Core.<$> apiLevel,+ ("applicationReports" Core..=) Core.<$> applicationReports,+ ("appliedPasswordPolicies" Core..=)+ Core.<$> appliedPasswordPolicies,+ ("appliedPolicyName" Core..=) Core.<$> appliedPolicyName,+ ("appliedPolicyVersion" Core..=)+ Core.. Core.AsText+ Core.<$> appliedPolicyVersion,+ ("appliedState" Core..=) Core.<$> appliedState,+ ("commonCriteriaModeInfo" Core..=) Core.<$> commonCriteriaModeInfo,+ ("deviceSettings" Core..=) Core.<$> deviceSettings,+ ("disabledReason" Core..=) Core.<$> disabledReason,+ ("displays" Core..=) Core.<$> displays,+ ("dpcMigrationInfo" Core..=) Core.<$> dpcMigrationInfo,+ ("enrollmentTime" Core..=) Core.<$> enrollmentTime,+ ("enrollmentTokenData" Core..=) Core.<$> enrollmentTokenData,+ ("enrollmentTokenName" Core..=) Core.<$> enrollmentTokenName,+ ("hardwareInfo" Core..=) Core.<$> hardwareInfo,+ ("hardwareStatusSamples" Core..=) Core.<$> hardwareStatusSamples,+ ("lastPolicyComplianceReportTime" Core..=)+ Core.<$> lastPolicyComplianceReportTime,+ ("lastPolicySyncTime" Core..=) Core.<$> lastPolicySyncTime,+ ("lastStatusReportTime" Core..=) Core.<$> lastStatusReportTime,+ ("managementMode" Core..=) Core.<$> managementMode,+ ("memoryEvents" Core..=) Core.<$> memoryEvents,+ ("memoryInfo" Core..=) Core.<$> memoryInfo,+ ("name" Core..=) Core.<$> name,+ ("networkInfo" Core..=) Core.<$> networkInfo,+ ("nonComplianceDetails" Core..=) Core.<$> nonComplianceDetails,+ ("ownership" Core..=) Core.<$> ownership,+ ("policyCompliant" Core..=) Core.<$> policyCompliant,+ ("policyName" Core..=) Core.<$> policyName,+ ("powerManagementEvents" Core..=) Core.<$> powerManagementEvents,+ ("previousDeviceNames" Core..=) Core.<$> previousDeviceNames,+ ("securityPosture" Core..=) Core.<$> securityPosture,+ ("softwareInfo" Core..=) Core.<$> softwareInfo,+ ("state" Core..=) Core.<$> state,+ ("systemProperties" Core..=) Core.<$> systemProperties,+ ("user" Core..=) Core.<$> user,+ ("userName" Core..=) Core.<$> userName+ ]+ )++-- | Map of selected system properties name and value related to the device. This information is only available if systemPropertiesEnabled is true in the device\'s policy.+--+-- /See:/ 'newDevice_SystemProperties' smart constructor.+newtype Device_SystemProperties = Device_SystemProperties+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Device_SystemProperties' with the minimum fields required to make a request.+newDevice_SystemProperties ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ Device_SystemProperties+newDevice_SystemProperties additional =+ Device_SystemProperties {additional = additional}++instance Core.FromJSON Device_SystemProperties where+ parseJSON =+ Core.withObject+ "Device_SystemProperties"+ (\o -> Device_SystemProperties Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Device_SystemProperties where+ toJSON Device_SystemProperties {..} = Core.toJSON additional++-- | Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard\/mouse connections, and more.+--+-- /See:/ 'newDeviceConnectivityManagement' smart constructor.+data DeviceConnectivityManagement = DeviceConnectivityManagement+ { -- | Controls Wi-Fi configuring privileges. Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks.+ configureWifi :: (Core.Maybe DeviceConnectivityManagement_ConfigureWifi),+ -- | Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering.+ tetheringSettings :: (Core.Maybe DeviceConnectivityManagement_TetheringSettings),+ -- | Controls what files and\/or data can be transferred via USB. Supported only on company-owned devices.+ usbDataAccess :: (Core.Maybe DeviceConnectivityManagement_UsbDataAccess),+ -- | Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above.+ wifiDirectSettings :: (Core.Maybe DeviceConnectivityManagement_WifiDirectSettings),+ -- | Optional. Wi-Fi roaming policy.+ wifiRoamingPolicy :: (Core.Maybe WifiRoamingPolicy),+ -- | Restrictions on which Wi-Fi SSIDs the device can connect to. Note that this does not affect which networks can be configured on the device. Supported on company-owned devices running Android 13 and above.+ wifiSsidPolicy :: (Core.Maybe WifiSsidPolicy)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DeviceConnectivityManagement' with the minimum fields required to make a request.+newDeviceConnectivityManagement ::+ DeviceConnectivityManagement+newDeviceConnectivityManagement =+ DeviceConnectivityManagement+ { configureWifi = Core.Nothing,+ tetheringSettings = Core.Nothing,+ usbDataAccess = Core.Nothing,+ wifiDirectSettings = Core.Nothing,+ wifiRoamingPolicy = Core.Nothing,+ wifiSsidPolicy = Core.Nothing+ }++instance Core.FromJSON DeviceConnectivityManagement where+ parseJSON =+ Core.withObject+ "DeviceConnectivityManagement"+ ( \o ->+ DeviceConnectivityManagement+ Core.<$> (o Core..:? "configureWifi")+ Core.<*> (o Core..:? "tetheringSettings")+ Core.<*> (o Core..:? "usbDataAccess")+ Core.<*> (o Core..:? "wifiDirectSettings")+ Core.<*> (o Core..:? "wifiRoamingPolicy")+ Core.<*> (o Core..:? "wifiSsidPolicy")+ )++instance Core.ToJSON DeviceConnectivityManagement where+ toJSON DeviceConnectivityManagement {..} =+ Core.object+ ( Core.catMaybes+ [ ("configureWifi" Core..=) Core.<$> configureWifi,+ ("tetheringSettings" Core..=) Core.<$> tetheringSettings,+ ("usbDataAccess" Core..=) Core.<$> usbDataAccess,+ ("wifiDirectSettings" Core..=) Core.<$> wifiDirectSettings,+ ("wifiRoamingPolicy" Core..=) Core.<$> wifiRoamingPolicy,+ ("wifiSsidPolicy" Core..=) Core.<$> wifiSsidPolicy+ ]+ )++-- | Controls for device radio settings.+--+-- /See:/ 'newDeviceRadioState' smart constructor.+data DeviceRadioState = DeviceRadioState+ { -- | Controls whether airplane mode can be toggled by the user or not.+ airplaneModeState :: (Core.Maybe DeviceRadioState_AirplaneModeState),+ -- | Controls whether cellular 2G setting can be toggled by the user or not.+ cellularTwoGState :: (Core.Maybe DeviceRadioState_CellularTwoGState),+ -- | The minimum required security level of Wi-Fi networks that the device can connect to.+ minimumWifiSecurityLevel :: (Core.Maybe DeviceRadioState_MinimumWifiSecurityLevel),+ -- | Controls the state of the ultra wideband setting and whether the user can toggle it on or off.+ ultraWidebandState :: (Core.Maybe DeviceRadioState_UltraWidebandState),+ -- | Controls current state of Wi-Fi and if user can change its state.+ wifiState :: (Core.Maybe DeviceRadioState_WifiState)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DeviceRadioState' with the minimum fields required to make a request.+newDeviceRadioState ::+ DeviceRadioState+newDeviceRadioState =+ DeviceRadioState+ { airplaneModeState = Core.Nothing,+ cellularTwoGState = Core.Nothing,+ minimumWifiSecurityLevel = Core.Nothing,+ ultraWidebandState = Core.Nothing,+ wifiState = Core.Nothing+ }++instance Core.FromJSON DeviceRadioState where+ parseJSON =+ Core.withObject+ "DeviceRadioState"+ ( \o ->+ DeviceRadioState+ Core.<$> (o Core..:? "airplaneModeState")+ Core.<*> (o Core..:? "cellularTwoGState")+ Core.<*> (o Core..:? "minimumWifiSecurityLevel")+ Core.<*> (o Core..:? "ultraWidebandState")+ Core.<*> (o Core..:? "wifiState")+ )++instance Core.ToJSON DeviceRadioState where+ toJSON DeviceRadioState {..} =+ Core.object+ ( Core.catMaybes+ [ ("airplaneModeState" Core..=) Core.<$> airplaneModeState,+ ("cellularTwoGState" Core..=) Core.<$> cellularTwoGState,+ ("minimumWifiSecurityLevel" Core..=)+ Core.<$> minimumWifiSecurityLevel,+ ("ultraWidebandState" Core..=) Core.<$> ultraWidebandState,+ ("wifiState" Core..=) Core.<$> wifiState+ ]+ )++-- | Information about security related device settings on device.+--+-- /See:/ 'newDeviceSettings' smart constructor.+data DeviceSettings = DeviceSettings+ { -- | Whether ADB (https:\/\/developer.android.com\/studio\/command-line\/adb.html) is enabled on the device.+ adbEnabled :: (Core.Maybe Core.Bool),+ -- | Whether developer mode is enabled on the device.+ developmentSettingsEnabled :: (Core.Maybe Core.Bool),+ -- | Encryption status from DevicePolicyManager.+ encryptionStatus :: (Core.Maybe DeviceSettings_EncryptionStatus),+ -- | Whether the device is secured with PIN\/password.+ isDeviceSecure :: (Core.Maybe Core.Bool),+ -- | Whether the storage encryption is enabled.+ isEncrypted :: (Core.Maybe Core.Bool),+ -- | Whether installing apps from unknown sources is enabled.+ unknownSourcesEnabled :: (Core.Maybe Core.Bool),+ -- | Whether Google Play Protect verification (https:\/\/support.google.com\/accounts\/answer\/2812853) is enforced on the device.+ verifyAppsEnabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DeviceSettings' with the minimum fields required to make a request.+newDeviceSettings ::+ DeviceSettings+newDeviceSettings =+ DeviceSettings+ { adbEnabled = Core.Nothing,+ developmentSettingsEnabled = Core.Nothing,+ encryptionStatus = Core.Nothing,+ isDeviceSecure = Core.Nothing,+ isEncrypted = Core.Nothing,+ unknownSourcesEnabled = Core.Nothing,+ verifyAppsEnabled = Core.Nothing+ }++instance Core.FromJSON DeviceSettings where+ parseJSON =+ Core.withObject+ "DeviceSettings"+ ( \o ->+ DeviceSettings+ Core.<$> (o Core..:? "adbEnabled")+ Core.<*> (o Core..:? "developmentSettingsEnabled")+ Core.<*> (o Core..:? "encryptionStatus")+ Core.<*> (o Core..:? "isDeviceSecure")+ Core.<*> (o Core..:? "isEncrypted")+ Core.<*> (o Core..:? "unknownSourcesEnabled")+ Core.<*> (o Core..:? "verifyAppsEnabled")+ )++instance Core.ToJSON DeviceSettings where+ toJSON DeviceSettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("adbEnabled" Core..=) Core.<$> adbEnabled,+ ("developmentSettingsEnabled" Core..=)+ Core.<$> developmentSettingsEnabled,+ ("encryptionStatus" Core..=) Core.<$> encryptionStatus,+ ("isDeviceSecure" Core..=) Core.<$> isDeviceSecure,+ ("isEncrypted" Core..=) Core.<$> isEncrypted,+ ("unknownSourcesEnabled" Core..=) Core.<$> unknownSourcesEnabled,+ ("verifyAppsEnabled" Core..=) Core.<$> verifyAppsEnabled+ ]+ )++-- | Device display information.+--+-- /See:/ 'newDisplay' smart constructor.+data Display = Display+ { -- | Display density expressed as dots-per-inch.+ density :: (Core.Maybe Core.Int32),+ -- | Unique display id.+ displayId :: (Core.Maybe Core.Int32),+ -- | Display height in pixels.+ height :: (Core.Maybe Core.Int32),+ -- | Name of the display.+ name :: (Core.Maybe Core.Text),+ -- | Refresh rate of the display in frames per second.+ refreshRate :: (Core.Maybe Core.Int32),+ -- | State of the display.+ state :: (Core.Maybe Display_State),+ -- | Display width in pixels.+ width :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Display' with the minimum fields required to make a request.+newDisplay ::+ Display+newDisplay =+ Display+ { density = Core.Nothing,+ displayId = Core.Nothing,+ height = Core.Nothing,+ name = Core.Nothing,+ refreshRate = Core.Nothing,+ state = Core.Nothing,+ width = Core.Nothing+ }++instance Core.FromJSON Display where+ parseJSON =+ Core.withObject+ "Display"+ ( \o ->+ Display+ Core.<$> (o Core..:? "density")+ Core.<*> (o Core..:? "displayId")+ Core.<*> (o Core..:? "height")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "refreshRate")+ Core.<*> (o Core..:? "state")+ Core.<*> (o Core..:? "width")+ )++instance Core.ToJSON Display where+ toJSON Display {..} =+ Core.object+ ( Core.catMaybes+ [ ("density" Core..=) Core.<$> density,+ ("displayId" Core..=) Core.<$> displayId,+ ("height" Core..=) Core.<$> height,+ ("name" Core..=) Core.<$> name,+ ("refreshRate" Core..=) Core.<$> refreshRate,+ ("state" Core..=) Core.<$> state,+ ("width" Core..=) Core.<$> width+ ]+ )++-- | Controls for the display settings.+--+-- /See:/ 'newDisplaySettings' smart constructor.+data DisplaySettings = DisplaySettings+ { -- | Optional. Controls the screen brightness settings.+ screenBrightnessSettings :: (Core.Maybe ScreenBrightnessSettings),+ -- | Optional. Controls the screen timeout settings.+ screenTimeoutSettings :: (Core.Maybe ScreenTimeoutSettings)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DisplaySettings' with the minimum fields required to make a request.+newDisplaySettings ::+ DisplaySettings+newDisplaySettings =+ DisplaySettings+ { screenBrightnessSettings = Core.Nothing,+ screenTimeoutSettings = Core.Nothing+ }++instance Core.FromJSON DisplaySettings where+ parseJSON =+ Core.withObject+ "DisplaySettings"+ ( \o ->+ DisplaySettings+ Core.<$> (o Core..:? "screenBrightnessSettings")+ Core.<*> (o Core..:? "screenTimeoutSettings")+ )++instance Core.ToJSON DisplaySettings where+ toJSON DisplaySettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("screenBrightnessSettings" Core..=)+ Core.<$> screenBrightnessSettings,+ ("screenTimeoutSettings" Core..=) Core.<$> screenTimeoutSettings+ ]+ )++-- | A DNS lookup event was initiated through the standard network stack.+--+-- /See:/ 'newDnsEvent' smart constructor.+data DnsEvent = DnsEvent+ { -- | The hostname that was looked up.+ hostname :: (Core.Maybe Core.Text),+ -- | The (possibly truncated) list of the IP addresses returned for DNS lookup (max 10 IPv4 or IPv6 addresses).+ ipAddresses :: (Core.Maybe [Core.Text]),+ -- | The package name of the UID that performed the DNS lookup.+ packageName :: (Core.Maybe Core.Text),+ -- | The number of IP addresses returned from the DNS lookup event. May be higher than the amount of ip_addresses if there were too many addresses to log.+ totalIpAddressesReturned :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DnsEvent' with the minimum fields required to make a request.+newDnsEvent ::+ DnsEvent+newDnsEvent =+ DnsEvent+ { hostname = Core.Nothing,+ ipAddresses = Core.Nothing,+ packageName = Core.Nothing,+ totalIpAddressesReturned = Core.Nothing+ }++instance Core.FromJSON DnsEvent where+ parseJSON =+ Core.withObject+ "DnsEvent"+ ( \o ->+ DnsEvent+ Core.<$> (o Core..:? "hostname")+ Core.<*> (o Core..:? "ipAddresses")+ Core.<*> (o Core..:? "packageName")+ Core.<*> ( o+ Core..:? "totalIpAddressesReturned"+ Core.<&> Core.fmap Core.fromAsText+ )+ )++instance Core.ToJSON DnsEvent where+ toJSON DnsEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("hostname" Core..=) Core.<$> hostname,+ ("ipAddresses" Core..=) Core.<$> ipAddresses,+ ("packageName" Core..=) Core.<$> packageName,+ ("totalIpAddressesReturned" Core..=)+ Core.. Core.AsText+ Core.<$> totalIpAddressesReturned+ ]+ )++-- | Information related to whether this device was migrated from being managed by another Device Policy Controller (DPC).+--+-- /See:/ 'newDpcMigrationInfo' smart constructor.+data DpcMigrationInfo = DpcMigrationInfo+ { -- | Output only. If this device was migrated from another DPC, the additionalData field of the migration token is populated here.+ additionalData :: (Core.Maybe Core.Text),+ -- | Output only. If this device was migrated from another DPC, this is its package name. Not populated otherwise.+ previousDpc :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'DpcMigrationInfo' with the minimum fields required to make a request.+newDpcMigrationInfo ::+ DpcMigrationInfo+newDpcMigrationInfo =+ DpcMigrationInfo+ { additionalData = Core.Nothing,+ previousDpc = Core.Nothing+ }++instance Core.FromJSON DpcMigrationInfo where+ parseJSON =+ Core.withObject+ "DpcMigrationInfo"+ ( \o ->+ DpcMigrationInfo+ Core.<$> (o Core..:? "additionalData")+ Core.<*> (o Core..:? "previousDpc")+ )++instance Core.ToJSON DpcMigrationInfo where+ toJSON DpcMigrationInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("additionalData" Core..=) Core.<$> additionalData,+ ("previousDpc" Core..=) Core.<$> previousDpc+ ]+ )++-- | A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }+--+-- /See:/ 'newEmpty' smart constructor.+data Empty = Empty+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Empty' with the minimum fields required to make a request.+newEmpty ::+ Empty+newEmpty = Empty++instance Core.FromJSON Empty where+ parseJSON = Core.withObject "Empty" (\o -> Core.pure Empty)++instance Core.ToJSON Empty where+ toJSON = Core.const Core.emptyObject++-- | Represents that the device has completed enrollment. User should be in the launcher at this point, device at this point will be compliant and all setup steps have been completed. Intentionally empty.+--+-- /See:/ 'newEnrollmentCompleteEvent' smart constructor.+data EnrollmentCompleteEvent = EnrollmentCompleteEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'EnrollmentCompleteEvent' with the minimum fields required to make a request.+newEnrollmentCompleteEvent ::+ EnrollmentCompleteEvent+newEnrollmentCompleteEvent = EnrollmentCompleteEvent++instance Core.FromJSON EnrollmentCompleteEvent where+ parseJSON =+ Core.withObject+ "EnrollmentCompleteEvent"+ (\o -> Core.pure EnrollmentCompleteEvent)++instance Core.ToJSON EnrollmentCompleteEvent where+ toJSON = Core.const Core.emptyObject++-- | An enrollment token.+--+-- /See:/ 'newEnrollmentToken' smart constructor.+data EnrollmentToken = EnrollmentToken+ { -- | Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment/token/data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail.+ additionalData :: (Core.Maybe Core.Text),+ -- | Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.+ allowPersonalUsage :: (Core.Maybe EnrollmentToken_AllowPersonalUsage),+ -- | The length of time the enrollment token is valid, ranging from 1 minute to Durations.MAX/VALUE (https:\/\/developers.google.com\/protocol-buffers\/docs\/reference\/java\/com\/google\/protobuf\/util\/Durations.html#MAX/VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour. Please note that if requested duration causes the resulting expiration/timestamp to exceed Timestamps.MAX/VALUE (https:\/\/developers.google.com\/protocol-buffers\/docs\/reference\/java\/com\/google\/protobuf\/util\/Timestamps.html#MAX/VALUE), then expiration/timestamp is coerced to Timestamps.MAX_VALUE.+ duration :: (Core.Maybe Core.Duration),+ -- | The expiration time of the token. This is a read-only field generated by the server.+ expirationTimestamp :: (Core.Maybe Core.DateTime),+ -- | The name of the enrollment token, which is generated by the server during creation, in the form enterprises\/{enterpriseId}\/enrollmentTokens\/{enrollmentTokenId}.+ name :: (Core.Maybe Core.Text),+ -- | Whether the enrollment token is for one time use only. If the flag is set to true, only one device can use it for registration.+ oneTimeOnly :: (Core.Maybe Core.Bool),+ -- | The name of the policy initially applied to the enrolled device, in the form enterprises\/{enterpriseId}\/policies\/{policyId}. If not specified, the policy/name for the device’s user is applied. If user/name is also not specified, enterprises\/{enterpriseId}\/policies\/default is applied by default. When updating this field, you can specify only the policyId as long as the policyId doesn’t contain any slashes. The rest of the policy name will be inferred.+ policyName :: (Core.Maybe Core.Text),+ -- | A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON.+ qrCode :: (Core.Maybe Core.Text),+ -- | This field is deprecated and the value is ignored.+ user :: (Core.Maybe User),+ -- | 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.+ value :: (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+ { additionalData = Core.Nothing,+ allowPersonalUsage = Core.Nothing,+ duration = Core.Nothing,+ expirationTimestamp = Core.Nothing,+ name = Core.Nothing,+ oneTimeOnly = Core.Nothing,+ policyName = Core.Nothing,+ qrCode = Core.Nothing,+ user = Core.Nothing,+ value = Core.Nothing+ }++instance Core.FromJSON EnrollmentToken where+ parseJSON =+ Core.withObject+ "EnrollmentToken"+ ( \o ->+ EnrollmentToken+ Core.<$> (o Core..:? "additionalData")+ Core.<*> (o Core..:? "allowPersonalUsage")+ Core.<*> (o Core..:? "duration")+ Core.<*> (o Core..:? "expirationTimestamp")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "oneTimeOnly")+ Core.<*> (o Core..:? "policyName")+ Core.<*> (o Core..:? "qrCode")+ Core.<*> (o Core..:? "user")+ Core.<*> (o Core..:? "value")+ )++instance Core.ToJSON EnrollmentToken where+ toJSON EnrollmentToken {..} =+ Core.object+ ( Core.catMaybes+ [ ("additionalData" Core..=) Core.<$> additionalData,+ ("allowPersonalUsage" Core..=) Core.<$> allowPersonalUsage,+ ("duration" Core..=) Core.<$> duration,+ ("expirationTimestamp" Core..=) Core.<$> expirationTimestamp,+ ("name" Core..=) Core.<$> name,+ ("oneTimeOnly" Core..=) Core.<$> oneTimeOnly,+ ("policyName" Core..=) Core.<$> policyName,+ ("qrCode" Core..=) Core.<$> qrCode,+ ("user" Core..=) Core.<$> user,+ ("value" Core..=) Core.<$> value+ ]+ )++-- | The configuration applied to an enterprise.+--+-- /See:/ 'newEnterprise' smart constructor.+data Enterprise = Enterprise+ { -- | Deprecated and unused.+ appAutoApprovalEnabled :: (Core.Maybe Core.Bool),+ -- | The enterprise contact info of an EMM-managed enterprise.+ contactInfo :: (Core.Maybe ContactInfo),+ -- | The types of Google Pub\/Sub notifications enabled for the enterprise.+ enabledNotificationTypes :: (Core.Maybe [Enterprise_EnabledNotificationTypesItem]),+ -- | The name of the enterprise displayed to users. This field has a maximum length of 100 characters.+ enterpriseDisplayName :: (Core.Maybe Core.Text),+ -- | Output only. The type of the enterprise.+ enterpriseType :: (Core.Maybe Enterprise_EnterpriseType),+ -- | Settings for Google-provided user authentication.+ googleAuthenticationSettings :: (Core.Maybe GoogleAuthenticationSettings),+ -- | An image displayed as a logo during device provisioning. Supported types are: image\/bmp, image\/gif, image\/x-ico, image\/jpeg, image\/png, image\/webp, image\/vnd.wap.wbmp, image\/x-adobe-dng.+ logo :: (Core.Maybe ExternalData),+ -- | Output only. The type of managed Google domain.+ managedGoogleDomainType :: (Core.Maybe Enterprise_ManagedGoogleDomainType),+ -- | Output only. The type of a managed Google Play Accounts enterprise.+ managedGooglePlayAccountsEnterpriseType :: (Core.Maybe Enterprise_ManagedGooglePlayAccountsEnterpriseType),+ -- | The name of the enterprise which is generated by the server during creation, in the form enterprises\/{enterpriseId}.+ name :: (Core.Maybe Core.Text),+ -- | A color in RGB format that indicates the predominant color to display in the device management app UI. The color components are stored as follows: (red \<\< 16) | (green \<\< 8) | blue, where the value of each component is between 0 and 255, inclusive.+ primaryColor :: (Core.Maybe Core.Int32),+ -- | The topic which Pub\/Sub notifications are published to, in the form projects\/{project}\/topics\/{topic}. This field is only required if Pub\/Sub notifications are enabled.+ pubsubTopic :: (Core.Maybe Core.Text),+ -- | Sign-in details of the enterprise.+ signinDetails :: (Core.Maybe [SigninDetail]),+ -- | Terms and conditions that must be accepted when provisioning a device for this enterprise. A page of terms is generated for each value in this list.+ termsAndConditions :: (Core.Maybe [TermsAndConditions])+ }+ 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+ { appAutoApprovalEnabled = Core.Nothing,+ contactInfo = Core.Nothing,+ enabledNotificationTypes = Core.Nothing,+ enterpriseDisplayName = Core.Nothing,+ enterpriseType = Core.Nothing,+ googleAuthenticationSettings = Core.Nothing,+ logo = Core.Nothing,+ managedGoogleDomainType = Core.Nothing,+ managedGooglePlayAccountsEnterpriseType = Core.Nothing,+ name = Core.Nothing,+ primaryColor = Core.Nothing,+ pubsubTopic = Core.Nothing,+ signinDetails = Core.Nothing,+ termsAndConditions = Core.Nothing+ }++instance Core.FromJSON Enterprise where+ parseJSON =+ Core.withObject+ "Enterprise"+ ( \o ->+ Enterprise+ Core.<$> (o Core..:? "appAutoApprovalEnabled")+ Core.<*> (o Core..:? "contactInfo")+ Core.<*> (o Core..:? "enabledNotificationTypes")+ Core.<*> (o Core..:? "enterpriseDisplayName")+ Core.<*> (o Core..:? "enterpriseType")+ Core.<*> (o Core..:? "googleAuthenticationSettings")+ Core.<*> (o Core..:? "logo")+ Core.<*> (o Core..:? "managedGoogleDomainType")+ Core.<*> (o Core..:? "managedGooglePlayAccountsEnterpriseType")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "primaryColor")+ Core.<*> (o Core..:? "pubsubTopic")+ Core.<*> (o Core..:? "signinDetails")+ Core.<*> (o Core..:? "termsAndConditions")+ )++instance Core.ToJSON Enterprise where+ toJSON Enterprise {..} =+ Core.object+ ( Core.catMaybes+ [ ("appAutoApprovalEnabled" Core..=)+ Core.<$> appAutoApprovalEnabled,+ ("contactInfo" Core..=) Core.<$> contactInfo,+ ("enabledNotificationTypes" Core..=)+ Core.<$> enabledNotificationTypes,+ ("enterpriseDisplayName" Core..=) Core.<$> enterpriseDisplayName,+ ("enterpriseType" Core..=) Core.<$> enterpriseType,+ ("googleAuthenticationSettings" Core..=)+ Core.<$> googleAuthenticationSettings,+ ("logo" Core..=) Core.<$> logo,+ ("managedGoogleDomainType" Core..=)+ Core.<$> managedGoogleDomainType,+ ("managedGooglePlayAccountsEnterpriseType" Core..=)+ Core.<$> managedGooglePlayAccountsEnterpriseType,+ ("name" Core..=) Core.<$> name,+ ("primaryColor" Core..=) Core.<$> primaryColor,+ ("pubsubTopic" Core..=) Core.<$> pubsubTopic,+ ("signinDetails" Core..=) Core.<$> signinDetails,+ ("termsAndConditions" Core..=) Core.<$> termsAndConditions+ ]+ )++-- | Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 11 and above, extension apps are exempt from battery restrictions so will not be placed into the restricted App Standby Bucket (https:\/\/developer.android.com\/topic\/performance\/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the clear app data command on extension apps if needed for Android 11 and above.+--+-- /See:/ 'newExtensionConfig' smart constructor.+data ExtensionConfig = ExtensionConfig+ { -- | Fully qualified class name of the receiver service class for Android Device Policy to notify the extension app of any local command status updates.+ notificationReceiver :: (Core.Maybe Core.Text),+ -- | Hex-encoded SHA-256 hash of the signing certificate of the extension app. Only hexadecimal string representations of 64 characters are valid.If not specified, the signature for the corresponding package name is obtained from the Play Store instead.If this list is empty, the signature of the extension app on the device must match the signature obtained from the Play Store for the app to be able to communicate with Android Device Policy.If this list is not empty, the signature of the extension app on the device must match one of the entries in this list for the app to be able to communicate with Android Device Policy.In production use cases, it is recommended to leave this empty.+ signingKeyFingerprintsSha256 :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExtensionConfig' with the minimum fields required to make a request.+newExtensionConfig ::+ ExtensionConfig+newExtensionConfig =+ ExtensionConfig+ { notificationReceiver = Core.Nothing,+ signingKeyFingerprintsSha256 = Core.Nothing+ }++instance Core.FromJSON ExtensionConfig where+ parseJSON =+ Core.withObject+ "ExtensionConfig"+ ( \o ->+ ExtensionConfig+ Core.<$> (o Core..:? "notificationReceiver")+ Core.<*> (o Core..:? "signingKeyFingerprintsSha256")+ )++instance Core.ToJSON ExtensionConfig where+ toJSON ExtensionConfig {..} =+ Core.object+ ( Core.catMaybes+ [ ("notificationReceiver" Core..=) Core.<$> notificationReceiver,+ ("signingKeyFingerprintsSha256" Core..=)+ Core.<$> signingKeyFingerprintsSha256+ ]+ )++-- | Data hosted at an external location. The data is to be downloaded by Android Device Policy and verified against the hash.+--+-- /See:/ 'newExternalData' smart constructor.+data ExternalData = ExternalData+ { -- | The base-64 encoded SHA-256 hash of the content hosted at url. If the content doesn\'t match this hash, Android Device Policy won\'t use the data.+ sha256Hash :: (Core.Maybe Core.Text),+ -- | The absolute URL to the data, which must use either the http or https scheme. Android Device Policy doesn\'t provide any credentials in the GET request, so the URL must be publicly accessible. Including a long, random component in the URL may be used to prevent attackers from discovering the URL.+ url :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ExternalData' with the minimum fields required to make a request.+newExternalData ::+ ExternalData+newExternalData =+ ExternalData {sha256Hash = Core.Nothing, url = Core.Nothing}++instance Core.FromJSON ExternalData where+ parseJSON =+ Core.withObject+ "ExternalData"+ ( \o ->+ ExternalData+ Core.<$> (o Core..:? "sha256Hash")+ Core.<*> (o Core..:? "url")+ )++instance Core.ToJSON ExternalData where+ toJSON ExternalData {..} =+ Core.object+ ( Core.catMaybes+ [ ("sha256Hash" Core..=) Core.<$> sha256Hash,+ ("url" Core..=) Core.<$> url+ ]+ )++-- | A file was downloaded from the device.+--+-- /See:/ 'newFilePulledEvent' smart constructor.+newtype FilePulledEvent = FilePulledEvent+ { -- | The path of the file being pulled.+ filePath :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FilePulledEvent' with the minimum fields required to make a request.+newFilePulledEvent ::+ FilePulledEvent+newFilePulledEvent = FilePulledEvent {filePath = Core.Nothing}++instance Core.FromJSON FilePulledEvent where+ parseJSON =+ Core.withObject+ "FilePulledEvent"+ (\o -> FilePulledEvent Core.<$> (o Core..:? "filePath"))++instance Core.ToJSON FilePulledEvent where+ toJSON FilePulledEvent {..} =+ Core.object+ (Core.catMaybes [("filePath" Core..=) Core.<$> filePath])++-- | A file was uploaded onto the device.+--+-- /See:/ 'newFilePushedEvent' smart constructor.+newtype FilePushedEvent = FilePushedEvent+ { -- | The path of the file being pushed.+ filePath :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FilePushedEvent' with the minimum fields required to make a request.+newFilePushedEvent ::+ FilePushedEvent+newFilePushedEvent = FilePushedEvent {filePath = Core.Nothing}++instance Core.FromJSON FilePushedEvent where+ parseJSON =+ Core.withObject+ "FilePushedEvent"+ (\o -> FilePushedEvent Core.<$> (o Core..:? "filePath"))++instance Core.ToJSON FilePushedEvent where+ toJSON FilePushedEvent {..} =+ Core.object+ (Core.catMaybes [("filePath" Core..=) Core.<$> filePath])++-- | A system freeze period. When a device’s clock is within the freeze period, all incoming system updates (including security patches) are blocked and won’t be installed.When the device is outside any set freeze periods, the normal policy behavior (automatic, windowed, or postponed) applies.Leap years are ignored in freeze period calculations, in particular: If Feb. 29th is set as the start or end date of a freeze period, the freeze period will start or end on Feb. 28th instead. When a device’s system clock reads Feb. 29th, it’s treated as Feb. 28th. When calculating the number of days in a freeze period or the time between two freeze periods, Feb. 29th is ignored and not counted as a day.Note: For Freeze Periods to take effect, SystemUpdateType cannot be specified as SYSTEM/UPDATE/TYPE_UNSPECIFIED, because freeze periods require a defined policy to be specified.+--+-- /See:/ 'newFreezePeriod' smart constructor.+data FreezePeriod = FreezePeriod+ { -- | The end date (inclusive) of the freeze period. Must be no later than 90 days from the start date. If the end date is earlier than the start date, the freeze period is considered wrapping year-end. Note: day and month must be set. year should not be set as it is not used. For example, {\"month\": 1,\"date\": 30}.+ endDate :: (Core.Maybe Date),+ -- | The start date (inclusive) of the freeze period. Note: day and month must be set. year should not be set as it is not used. For example, {\"month\": 1,\"date\": 30}.+ startDate :: (Core.Maybe Date)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'FreezePeriod' with the minimum fields required to make a request.+newFreezePeriod ::+ FreezePeriod+newFreezePeriod =+ FreezePeriod {endDate = Core.Nothing, startDate = Core.Nothing}++instance Core.FromJSON FreezePeriod where+ parseJSON =+ Core.withObject+ "FreezePeriod"+ ( \o ->+ FreezePeriod+ Core.<$> (o Core..:? "endDate")+ Core.<*> (o Core..:? "startDate")+ )++instance Core.ToJSON FreezePeriod where+ toJSON FreezePeriod {..} =+ Core.object+ ( Core.catMaybes+ [ ("endDate" Core..=) Core.<$> endDate,+ ("startDate" Core..=) Core.<$> startDate+ ]+ )++-- | Request 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:/ 'newGenerateEnterpriseUpgradeUrlRequest' smart constructor.+data GenerateEnterpriseUpgradeUrlRequest = GenerateEnterpriseUpgradeUrlRequest+ { -- | 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])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'GenerateEnterpriseUpgradeUrlRequest' with the minimum fields required to make a request.+newGenerateEnterpriseUpgradeUrlRequest ::+ GenerateEnterpriseUpgradeUrlRequest+newGenerateEnterpriseUpgradeUrlRequest =+ GenerateEnterpriseUpgradeUrlRequest+ { adminEmail = Core.Nothing,+ allowedDomains = Core.Nothing+ }++instance Core.FromJSON GenerateEnterpriseUpgradeUrlRequest where+ parseJSON =+ Core.withObject+ "GenerateEnterpriseUpgradeUrlRequest"+ ( \o ->+ GenerateEnterpriseUpgradeUrlRequest+ Core.<$> (o Core..:? "adminEmail")+ Core.<*> (o Core..:? "allowedDomains")+ )++instance Core.ToJSON GenerateEnterpriseUpgradeUrlRequest where+ toJSON GenerateEnterpriseUpgradeUrlRequest {..} =+ Core.object+ ( Core.catMaybes+ [ ("adminEmail" Core..=) Core.<$> adminEmail,+ ("allowedDomains" Core..=) Core.<$> allowedDomains+ ]+ )++-- | 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.+newtype GoogleAuthenticationSettings = GoogleAuthenticationSettings+ { -- | Output only. Whether users need to be authenticated by Google during the enrollment process. IT admin can specify if Google authentication is enabled for the enterprise for knowledge worker devices. This value can be set only via the Google Admin Console. Google authentication can be used with signin/url In the case where Google authentication is required and a signin/url is specified, Google authentication will be launched before signin_url.+ 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+ { googleAuthenticationRequired =+ Core.Nothing+ }++instance Core.FromJSON GoogleAuthenticationSettings where+ parseJSON =+ Core.withObject+ "GoogleAuthenticationSettings"+ ( \o ->+ GoogleAuthenticationSettings+ Core.<$> (o Core..:? "googleAuthenticationRequired")+ )++instance Core.ToJSON GoogleAuthenticationSettings where+ toJSON GoogleAuthenticationSettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("googleAuthenticationRequired" Core..=)+ Core.<$> googleAuthenticationRequired+ ]+ )++-- | Information about device hardware. The fields related to temperature thresholds are only available if hardwareStatusEnabled is true in the device\'s policy.+--+-- /See:/ 'newHardwareInfo' smart constructor.+data HardwareInfo = HardwareInfo+ { -- | Battery shutdown temperature thresholds in Celsius for each battery on the device.+ batteryShutdownTemperatures :: (Core.Maybe [Core.Double]),+ -- | Battery throttling temperature thresholds in Celsius for each battery on the device.+ batteryThrottlingTemperatures :: (Core.Maybe [Core.Double]),+ -- | Brand of the device. For example, Google.+ brand :: (Core.Maybe Core.Text),+ -- | CPU shutdown temperature thresholds in Celsius for each CPU on the device.+ cpuShutdownTemperatures :: (Core.Maybe [Core.Double]),+ -- | CPU throttling temperature thresholds in Celsius for each CPU on the device.+ cpuThrottlingTemperatures :: (Core.Maybe [Core.Double]),+ -- | Baseband version. For example, MDM9625_104662.22.05.34p.+ deviceBasebandVersion :: (Core.Maybe Core.Text),+ -- | Output only. ID that uniquely identifies a personally-owned device in a particular organization. On the same physical device when enrolled with the same organization, this ID persists across setups and even factory resets. This ID is available on personally-owned devices with a work profile on devices running Android 12 and above.+ enterpriseSpecificId :: (Core.Maybe Core.Text),+ -- | GPU shutdown temperature thresholds in Celsius for each GPU on the device.+ gpuShutdownTemperatures :: (Core.Maybe [Core.Double]),+ -- | GPU throttling temperature thresholds in Celsius for each GPU on the device.+ gpuThrottlingTemperatures :: (Core.Maybe [Core.Double]),+ -- | Name of the hardware. For example, Angler.+ hardware :: (Core.Maybe Core.Text),+ -- | Manufacturer. For example, Motorola.+ manufacturer :: (Core.Maybe Core.Text),+ -- | The model of the device. For example, Asus Nexus 7.+ model :: (Core.Maybe Core.Text),+ -- | The device serial number.+ serialNumber :: (Core.Maybe Core.Text),+ -- | Device skin shutdown temperature thresholds in Celsius.+ skinShutdownTemperatures :: (Core.Maybe [Core.Double]),+ -- | Device skin throttling temperature thresholds in Celsius.+ skinThrottlingTemperatures :: (Core.Maybe [Core.Double])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'HardwareInfo' with the minimum fields required to make a request.+newHardwareInfo ::+ HardwareInfo+newHardwareInfo =+ HardwareInfo+ { batteryShutdownTemperatures = Core.Nothing,+ batteryThrottlingTemperatures = Core.Nothing,+ brand = Core.Nothing,+ cpuShutdownTemperatures = Core.Nothing,+ cpuThrottlingTemperatures = Core.Nothing,+ deviceBasebandVersion = Core.Nothing,+ enterpriseSpecificId = Core.Nothing,+ gpuShutdownTemperatures = Core.Nothing,+ gpuThrottlingTemperatures = Core.Nothing,+ hardware = Core.Nothing,+ manufacturer = Core.Nothing,+ model = Core.Nothing,+ serialNumber = Core.Nothing,+ skinShutdownTemperatures = Core.Nothing,+ skinThrottlingTemperatures = Core.Nothing+ }++instance Core.FromJSON HardwareInfo where+ parseJSON =+ Core.withObject+ "HardwareInfo"+ ( \o ->+ HardwareInfo+ Core.<$> (o Core..:? "batteryShutdownTemperatures")+ Core.<*> (o Core..:? "batteryThrottlingTemperatures")+ Core.<*> (o Core..:? "brand")+ Core.<*> (o Core..:? "cpuShutdownTemperatures")+ Core.<*> (o Core..:? "cpuThrottlingTemperatures")+ Core.<*> (o Core..:? "deviceBasebandVersion")+ Core.<*> (o Core..:? "enterpriseSpecificId")+ Core.<*> (o Core..:? "gpuShutdownTemperatures")+ Core.<*> (o Core..:? "gpuThrottlingTemperatures")+ Core.<*> (o Core..:? "hardware")+ Core.<*> (o Core..:? "manufacturer")+ Core.<*> (o Core..:? "model")+ Core.<*> (o Core..:? "serialNumber")+ Core.<*> (o Core..:? "skinShutdownTemperatures")+ Core.<*> (o Core..:? "skinThrottlingTemperatures")+ )++instance Core.ToJSON HardwareInfo where+ toJSON HardwareInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("batteryShutdownTemperatures" Core..=)+ Core.<$> batteryShutdownTemperatures,+ ("batteryThrottlingTemperatures" Core..=)+ Core.<$> batteryThrottlingTemperatures,+ ("brand" Core..=) Core.<$> brand,+ ("cpuShutdownTemperatures" Core..=)+ Core.<$> cpuShutdownTemperatures,+ ("cpuThrottlingTemperatures" Core..=)+ Core.<$> cpuThrottlingTemperatures,+ ("deviceBasebandVersion" Core..=) Core.<$> deviceBasebandVersion,+ ("enterpriseSpecificId" Core..=) Core.<$> enterpriseSpecificId,+ ("gpuShutdownTemperatures" Core..=)+ Core.<$> gpuShutdownTemperatures,+ ("gpuThrottlingTemperatures" Core..=)+ Core.<$> gpuThrottlingTemperatures,+ ("hardware" Core..=) Core.<$> hardware,+ ("manufacturer" Core..=) Core.<$> manufacturer,+ ("model" Core..=) Core.<$> model,+ ("serialNumber" Core..=) Core.<$> serialNumber,+ ("skinShutdownTemperatures" Core..=)+ Core.<$> skinShutdownTemperatures,+ ("skinThrottlingTemperatures" Core..=)+ Core.<$> skinThrottlingTemperatures+ ]+ )++-- | Hardware status. Temperatures may be compared to the temperature thresholds available in hardwareInfo to determine hardware health.+--+-- /See:/ 'newHardwareStatus' smart constructor.+data HardwareStatus = HardwareStatus+ { -- | Current battery temperatures in Celsius for each battery on the device.+ batteryTemperatures :: (Core.Maybe [Core.Double]),+ -- | Current CPU temperatures in Celsius for each CPU on the device.+ cpuTemperatures :: (Core.Maybe [Core.Double]),+ -- | CPU usages in percentage for each core available on the device. Usage is 0 for each unplugged core. Empty array implies that CPU usage is not supported in the system.+ cpuUsages :: (Core.Maybe [Core.Double]),+ -- | The time the measurements were taken.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Fan speeds in RPM for each fan on the device. Empty array means that there are no fans or fan speed is not supported on the system.+ fanSpeeds :: (Core.Maybe [Core.Double]),+ -- | Current GPU temperatures in Celsius for each GPU on the device.+ gpuTemperatures :: (Core.Maybe [Core.Double]),+ -- | Current device skin temperatures in Celsius.+ skinTemperatures :: (Core.Maybe [Core.Double])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'HardwareStatus' with the minimum fields required to make a request.+newHardwareStatus ::+ HardwareStatus+newHardwareStatus =+ HardwareStatus+ { batteryTemperatures = Core.Nothing,+ cpuTemperatures = Core.Nothing,+ cpuUsages = Core.Nothing,+ createTime = Core.Nothing,+ fanSpeeds = Core.Nothing,+ gpuTemperatures = Core.Nothing,+ skinTemperatures = Core.Nothing+ }++instance Core.FromJSON HardwareStatus where+ parseJSON =+ Core.withObject+ "HardwareStatus"+ ( \o ->+ HardwareStatus+ Core.<$> (o Core..:? "batteryTemperatures")+ Core.<*> (o Core..:? "cpuTemperatures")+ Core.<*> (o Core..:? "cpuUsages")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "fanSpeeds")+ Core.<*> (o Core..:? "gpuTemperatures")+ Core.<*> (o Core..:? "skinTemperatures")+ )++instance Core.ToJSON HardwareStatus where+ toJSON HardwareStatus {..} =+ Core.object+ ( Core.catMaybes+ [ ("batteryTemperatures" Core..=) Core.<$> batteryTemperatures,+ ("cpuTemperatures" Core..=) Core.<$> cpuTemperatures,+ ("cpuUsages" Core..=) Core.<$> cpuUsages,+ ("createTime" Core..=) Core.<$> createTime,+ ("fanSpeeds" Core..=) Core.<$> fanSpeeds,+ ("gpuTemperatures" Core..=) Core.<$> gpuTemperatures,+ ("skinTemperatures" Core..=) Core.<$> skinTemperatures+ ]+ )++-- | Amongst apps with InstallType set to: FORCE_INSTALLED PREINSTALLEDthis defines a set of restrictions for the app installation. At least one of the fields must be set. When multiple fields are set, then all the constraints need to be satisfied for the app to be installed.+--+-- /See:/ 'newInstallConstraint' smart constructor.+data InstallConstraint = InstallConstraint+ { -- | Optional. Charging constraint.+ chargingConstraint :: (Core.Maybe InstallConstraint_ChargingConstraint),+ -- | Optional. Device idle constraint.+ deviceIdleConstraint :: (Core.Maybe InstallConstraint_DeviceIdleConstraint),+ -- | Optional. Network type constraint.+ networkTypeConstraint :: (Core.Maybe InstallConstraint_NetworkTypeConstraint)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'InstallConstraint' with the minimum fields required to make a request.+newInstallConstraint ::+ InstallConstraint+newInstallConstraint =+ InstallConstraint+ { chargingConstraint = Core.Nothing,+ deviceIdleConstraint = Core.Nothing,+ networkTypeConstraint = Core.Nothing+ }++instance Core.FromJSON InstallConstraint where+ parseJSON =+ Core.withObject+ "InstallConstraint"+ ( \o ->+ InstallConstraint+ Core.<$> (o Core..:? "chargingConstraint")+ Core.<*> (o Core..:? "deviceIdleConstraint")+ Core.<*> (o Core..:? "networkTypeConstraint")+ )++instance Core.ToJSON InstallConstraint where+ toJSON InstallConstraint {..} =+ Core.object+ ( Core.catMaybes+ [ ("chargingConstraint" Core..=) Core.<$> chargingConstraint,+ ("deviceIdleConstraint" Core..=) Core.<$> deviceIdleConstraint,+ ("networkTypeConstraint" Core..=) Core.<$> networkTypeConstraint+ ]+ )++-- | Response on issuing a command. This is currently empty as a placeholder.+--+-- /See:/ 'newIssueCommandResponse' smart constructor.+data IssueCommandResponse = IssueCommandResponse+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'IssueCommandResponse' with the minimum fields required to make a request.+newIssueCommandResponse ::+ IssueCommandResponse+newIssueCommandResponse = IssueCommandResponse++instance Core.FromJSON IssueCommandResponse where+ parseJSON =+ Core.withObject+ "IssueCommandResponse"+ (\o -> Core.pure IssueCommandResponse)++instance Core.ToJSON IssueCommandResponse where+ toJSON = Core.const Core.emptyObject++-- | A cryptographic key including user installed, admin installed and system maintained private key is removed from the device either by the user or management. This is available device-wide on fully managed devices and within the work profile on organization-owned devices with a work profile.+--+-- /See:/ 'newKeyDestructionEvent' smart constructor.+data KeyDestructionEvent = KeyDestructionEvent+ { -- | UID of the application which owns the key.+ applicationUid :: (Core.Maybe Core.Int32),+ -- | Alias of the key.+ keyAlias :: (Core.Maybe Core.Text),+ -- | Whether the operation was successful.+ success :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyDestructionEvent' with the minimum fields required to make a request.+newKeyDestructionEvent ::+ KeyDestructionEvent+newKeyDestructionEvent =+ KeyDestructionEvent+ { applicationUid = Core.Nothing,+ keyAlias = Core.Nothing,+ success = Core.Nothing+ }++instance Core.FromJSON KeyDestructionEvent where+ parseJSON =+ Core.withObject+ "KeyDestructionEvent"+ ( \o ->+ KeyDestructionEvent+ Core.<$> (o Core..:? "applicationUid")+ Core.<*> (o Core..:? "keyAlias")+ Core.<*> (o Core..:? "success")+ )++instance Core.ToJSON KeyDestructionEvent where+ toJSON KeyDestructionEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("applicationUid" Core..=) Core.<$> applicationUid,+ ("keyAlias" Core..=) Core.<$> keyAlias,+ ("success" Core..=) Core.<$> success+ ]+ )++-- | A cryptographic key including user installed, admin installed and system maintained private key is installed on the device either by the user or management.This is available device-wide on fully managed devices and within the work profile on organization-owned devices with a work profile.+--+-- /See:/ 'newKeyGeneratedEvent' smart constructor.+data KeyGeneratedEvent = KeyGeneratedEvent+ { -- | UID of the application which generated the key.+ applicationUid :: (Core.Maybe Core.Int32),+ -- | Alias of the key.+ keyAlias :: (Core.Maybe Core.Text),+ -- | Whether the operation was successful.+ success :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyGeneratedEvent' with the minimum fields required to make a request.+newKeyGeneratedEvent ::+ KeyGeneratedEvent+newKeyGeneratedEvent =+ KeyGeneratedEvent+ { applicationUid = Core.Nothing,+ keyAlias = Core.Nothing,+ success = Core.Nothing+ }++instance Core.FromJSON KeyGeneratedEvent where+ parseJSON =+ Core.withObject+ "KeyGeneratedEvent"+ ( \o ->+ KeyGeneratedEvent+ Core.<$> (o Core..:? "applicationUid")+ Core.<*> (o Core..:? "keyAlias")+ Core.<*> (o Core..:? "success")+ )++instance Core.ToJSON KeyGeneratedEvent where+ toJSON KeyGeneratedEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("applicationUid" Core..=) Core.<$> applicationUid,+ ("keyAlias" Core..=) Core.<$> keyAlias,+ ("success" Core..=) Core.<$> success+ ]+ )++-- | A cryptographic key including user installed, admin installed and system maintained private key is imported on the device either by the user or management. This is available device-wide on fully managed devices and within the work profile on organization-owned devices with a work profile.+--+-- /See:/ 'newKeyImportEvent' smart constructor.+data KeyImportEvent = KeyImportEvent+ { -- | UID of the application which imported the key+ applicationUid :: (Core.Maybe Core.Int32),+ -- | Alias of the key.+ keyAlias :: (Core.Maybe Core.Text),+ -- | Whether the operation was successful.+ success :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyImportEvent' with the minimum fields required to make a request.+newKeyImportEvent ::+ KeyImportEvent+newKeyImportEvent =+ KeyImportEvent+ { applicationUid = Core.Nothing,+ keyAlias = Core.Nothing,+ success = Core.Nothing+ }++instance Core.FromJSON KeyImportEvent where+ parseJSON =+ Core.withObject+ "KeyImportEvent"+ ( \o ->+ KeyImportEvent+ Core.<$> (o Core..:? "applicationUid")+ Core.<*> (o Core..:? "keyAlias")+ Core.<*> (o Core..:? "success")+ )++instance Core.ToJSON KeyImportEvent where+ toJSON KeyImportEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("applicationUid" Core..=) Core.<$> applicationUid,+ ("keyAlias" Core..=) Core.<$> keyAlias,+ ("success" Core..=) Core.<$> success+ ]+ )++-- | A cryptographic key including user installed, admin installed and system maintained private key is determined to be corrupted due to storage corruption, hardware failure or some OS issue. This is available device-wide on fully managed devices and within the work profile on organization-owned devices with a work profile.+--+-- /See:/ 'newKeyIntegrityViolationEvent' smart constructor.+data KeyIntegrityViolationEvent = KeyIntegrityViolationEvent+ { -- | UID of the application which owns the key+ applicationUid :: (Core.Maybe Core.Int32),+ -- | Alias of the key.+ keyAlias :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyIntegrityViolationEvent' with the minimum fields required to make a request.+newKeyIntegrityViolationEvent ::+ KeyIntegrityViolationEvent+newKeyIntegrityViolationEvent =+ KeyIntegrityViolationEvent+ { applicationUid = Core.Nothing,+ keyAlias = Core.Nothing+ }++instance Core.FromJSON KeyIntegrityViolationEvent where+ parseJSON =+ Core.withObject+ "KeyIntegrityViolationEvent"+ ( \o ->+ KeyIntegrityViolationEvent+ Core.<$> (o Core..:? "applicationUid")+ Core.<*> (o Core..:? "keyAlias")+ )++instance Core.ToJSON KeyIntegrityViolationEvent where+ toJSON KeyIntegrityViolationEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("applicationUid" Core..=) Core.<$> applicationUid,+ ("keyAlias" Core..=) Core.<$> keyAlias+ ]+ )++-- | Keyed app state reported by the app.+--+-- /See:/ 'newKeyedAppState' smart constructor.+data KeyedAppState = KeyedAppState+ { -- | The creation time of the app state on the device.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console (e.g. “notify me if the battery_warning data \< 10”).+ data' :: (Core.Maybe Core.Text),+ -- | The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the managed configuration key.+ key :: (Core.Maybe Core.Text),+ -- | The time the app state was most recently updated.+ lastUpdateTime :: (Core.Maybe Core.DateTime),+ -- | Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message.+ message :: (Core.Maybe Core.Text),+ -- | The severity of the app state.+ severity :: (Core.Maybe KeyedAppState_Severity)+ }+ 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+ { createTime = Core.Nothing,+ data' = Core.Nothing,+ key = Core.Nothing,+ lastUpdateTime = Core.Nothing,+ message = Core.Nothing,+ severity = Core.Nothing+ }++instance Core.FromJSON KeyedAppState where+ parseJSON =+ Core.withObject+ "KeyedAppState"+ ( \o ->+ KeyedAppState+ Core.<$> (o Core..:? "createTime")+ Core.<*> (o Core..:? "data")+ Core.<*> (o Core..:? "key")+ Core.<*> (o Core..:? "lastUpdateTime")+ Core.<*> (o Core..:? "message")+ Core.<*> (o Core..:? "severity")+ )++instance Core.ToJSON KeyedAppState where+ toJSON KeyedAppState {..} =+ Core.object+ ( Core.catMaybes+ [ ("createTime" Core..=) Core.<$> createTime,+ ("data" Core..=) Core.<$> data',+ ("key" Core..=) Core.<$> key,+ ("lastUpdateTime" Core..=) Core.<$> lastUpdateTime,+ ("message" Core..=) Core.<$> message,+ ("severity" Core..=) Core.<$> severity+ ]+ )++-- | An attempt was made to unlock the device.+--+-- /See:/ 'newKeyguardDismissAuthAttemptEvent' smart constructor.+data KeyguardDismissAuthAttemptEvent = KeyguardDismissAuthAttemptEvent+ { -- | Whether a strong form of authentication (password, PIN, or pattern) was used to unlock device.+ strongAuthMethodUsed :: (Core.Maybe Core.Bool),+ -- | Whether the unlock attempt was successful.+ success :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyguardDismissAuthAttemptEvent' with the minimum fields required to make a request.+newKeyguardDismissAuthAttemptEvent ::+ KeyguardDismissAuthAttemptEvent+newKeyguardDismissAuthAttemptEvent =+ KeyguardDismissAuthAttemptEvent+ { strongAuthMethodUsed =+ Core.Nothing,+ success = Core.Nothing+ }++instance Core.FromJSON KeyguardDismissAuthAttemptEvent where+ parseJSON =+ Core.withObject+ "KeyguardDismissAuthAttemptEvent"+ ( \o ->+ KeyguardDismissAuthAttemptEvent+ Core.<$> (o Core..:? "strongAuthMethodUsed")+ Core.<*> (o Core..:? "success")+ )++instance Core.ToJSON KeyguardDismissAuthAttemptEvent where+ toJSON KeyguardDismissAuthAttemptEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("strongAuthMethodUsed" Core..=) Core.<$> strongAuthMethodUsed,+ ("success" Core..=) Core.<$> success+ ]+ )++-- | The keyguard was dismissed. Intentionally empty.+--+-- /See:/ 'newKeyguardDismissedEvent' smart constructor.+data KeyguardDismissedEvent = KeyguardDismissedEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyguardDismissedEvent' with the minimum fields required to make a request.+newKeyguardDismissedEvent ::+ KeyguardDismissedEvent+newKeyguardDismissedEvent = KeyguardDismissedEvent++instance Core.FromJSON KeyguardDismissedEvent where+ parseJSON =+ Core.withObject+ "KeyguardDismissedEvent"+ (\o -> Core.pure KeyguardDismissedEvent)++instance Core.ToJSON KeyguardDismissedEvent where+ toJSON = Core.const Core.emptyObject++-- | The device was locked either by user or timeout. Intentionally empty.+--+-- /See:/ 'newKeyguardSecuredEvent' smart constructor.+data KeyguardSecuredEvent = KeyguardSecuredEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KeyguardSecuredEvent' with the minimum fields required to make a request.+newKeyguardSecuredEvent ::+ KeyguardSecuredEvent+newKeyguardSecuredEvent = KeyguardSecuredEvent++instance Core.FromJSON KeyguardSecuredEvent where+ parseJSON =+ Core.withObject+ "KeyguardSecuredEvent"+ (\o -> Core.pure KeyguardSecuredEvent)++instance Core.ToJSON KeyguardSecuredEvent where+ toJSON = Core.const Core.emptyObject++-- | Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set kioskCustomLauncherEnabled to true or specify an app in the policy with installType KIOSK.+--+-- /See:/ 'newKioskCustomization' smart constructor.+data KioskCustomization = KioskCustomization+ { -- | Specifies whether the Settings app is allowed in kiosk mode.+ deviceSettings :: (Core.Maybe KioskCustomization_DeviceSettings),+ -- | Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button.+ powerButtonActions :: (Core.Maybe KioskCustomization_PowerButtonActions),+ -- | Specifies whether system info and notifications are disabled in kiosk mode.+ statusBar :: (Core.Maybe KioskCustomization_StatusBar),+ -- | Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the \"close app\" option on the UI.+ systemErrorWarnings :: (Core.Maybe KioskCustomization_SystemErrorWarnings),+ -- | Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode.+ systemNavigation :: (Core.Maybe KioskCustomization_SystemNavigation)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'KioskCustomization' with the minimum fields required to make a request.+newKioskCustomization ::+ KioskCustomization+newKioskCustomization =+ KioskCustomization+ { deviceSettings = Core.Nothing,+ powerButtonActions = Core.Nothing,+ statusBar = Core.Nothing,+ systemErrorWarnings = Core.Nothing,+ systemNavigation = Core.Nothing+ }++instance Core.FromJSON KioskCustomization where+ parseJSON =+ Core.withObject+ "KioskCustomization"+ ( \o ->+ KioskCustomization+ Core.<$> (o Core..:? "deviceSettings")+ Core.<*> (o Core..:? "powerButtonActions")+ Core.<*> (o Core..:? "statusBar")+ Core.<*> (o Core..:? "systemErrorWarnings")+ Core.<*> (o Core..:? "systemNavigation")+ )++instance Core.ToJSON KioskCustomization where+ toJSON KioskCustomization {..} =+ Core.object+ ( Core.catMaybes+ [ ("deviceSettings" Core..=) Core.<$> deviceSettings,+ ("powerButtonActions" Core..=) Core.<$> powerButtonActions,+ ("statusBar" Core..=) Core.<$> statusBar,+ ("systemErrorWarnings" Core..=) Core.<$> systemErrorWarnings,+ ("systemNavigation" Core..=) Core.<$> systemNavigation+ ]+ )++-- | An action to launch an app.+--+-- /See:/ 'newLaunchAppAction' smart constructor.+newtype LaunchAppAction = LaunchAppAction+ { -- | Package name of app to be launched+ packageName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LaunchAppAction' with the minimum fields required to make a request.+newLaunchAppAction ::+ LaunchAppAction+newLaunchAppAction = LaunchAppAction {packageName = Core.Nothing}++instance Core.FromJSON LaunchAppAction where+ parseJSON =+ Core.withObject+ "LaunchAppAction"+ (\o -> LaunchAppAction Core.<$> (o Core..:? "packageName"))++instance Core.ToJSON LaunchAppAction where+ toJSON LaunchAppAction {..} =+ Core.object+ (Core.catMaybes [("packageName" Core..=) Core.<$> packageName])++-- | Response to a request to list devices for a given enterprise.+--+-- /See:/ 'newListDevicesResponse' smart constructor.+data ListDevicesResponse = ListDevicesResponse+ { -- | The list of devices.+ devices :: (Core.Maybe [Device]),+ -- | If there are more results, a token to retrieve next page of results.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListDevicesResponse' with the minimum fields required to make a request.+newListDevicesResponse ::+ ListDevicesResponse+newListDevicesResponse =+ ListDevicesResponse+ { devices = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListDevicesResponse where+ parseJSON =+ Core.withObject+ "ListDevicesResponse"+ ( \o ->+ ListDevicesResponse+ Core.<$> (o Core..:? "devices")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListDevicesResponse where+ toJSON ListDevicesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("devices" Core..=) Core.<$> devices,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | Response to a request to list enrollment tokens for a given enterprise.+--+-- /See:/ 'newListEnrollmentTokensResponse' smart constructor.+data ListEnrollmentTokensResponse = ListEnrollmentTokensResponse+ { -- | The list of enrollment tokens.+ enrollmentTokens :: (Core.Maybe [EnrollmentToken]),+ -- | If there are more results, a token to retrieve next page of results.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListEnrollmentTokensResponse' with the minimum fields required to make a request.+newListEnrollmentTokensResponse ::+ ListEnrollmentTokensResponse+newListEnrollmentTokensResponse =+ ListEnrollmentTokensResponse+ { enrollmentTokens = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListEnrollmentTokensResponse where+ parseJSON =+ Core.withObject+ "ListEnrollmentTokensResponse"+ ( \o ->+ ListEnrollmentTokensResponse+ Core.<$> (o Core..:? "enrollmentTokens")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListEnrollmentTokensResponse where+ toJSON ListEnrollmentTokensResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("enrollmentTokens" Core..=) Core.<$> enrollmentTokens,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | Response to a request to list enterprises.+--+-- /See:/ 'newListEnterprisesResponse' smart constructor.+data ListEnterprisesResponse = ListEnterprisesResponse+ { -- | The list of enterprises.+ enterprises :: (Core.Maybe [Enterprise]),+ -- | If there are more results, a token to retrieve next page of results.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListEnterprisesResponse' with the minimum fields required to make a request.+newListEnterprisesResponse ::+ ListEnterprisesResponse+newListEnterprisesResponse =+ ListEnterprisesResponse+ { enterprises = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListEnterprisesResponse where+ parseJSON =+ Core.withObject+ "ListEnterprisesResponse"+ ( \o ->+ ListEnterprisesResponse+ Core.<$> (o Core..:? "enterprises")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListEnterprisesResponse where+ toJSON ListEnterprisesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("enterprises" Core..=) Core.<$> enterprises,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | Response to a request to list migration tokens for a given enterprise.+--+-- /See:/ 'newListMigrationTokensResponse' smart constructor.+data ListMigrationTokensResponse = ListMigrationTokensResponse+ { -- | The migration tokens from the specified enterprise.+ migrationTokens :: (Core.Maybe [MigrationToken]),+ -- | A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.+ nextPageToken :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListMigrationTokensResponse' with the minimum fields required to make a request.+newListMigrationTokensResponse ::+ ListMigrationTokensResponse+newListMigrationTokensResponse =+ ListMigrationTokensResponse+ { migrationTokens = Core.Nothing,+ nextPageToken = Core.Nothing+ }++instance Core.FromJSON ListMigrationTokensResponse where+ parseJSON =+ Core.withObject+ "ListMigrationTokensResponse"+ ( \o ->+ ListMigrationTokensResponse+ Core.<$> (o Core..:? "migrationTokens")+ Core.<*> (o Core..:? "nextPageToken")+ )++instance Core.ToJSON ListMigrationTokensResponse where+ toJSON ListMigrationTokensResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("migrationTokens" Core..=) Core.<$> migrationTokens,+ ("nextPageToken" Core..=) Core.<$> nextPageToken+ ]+ )++-- | The response message for Operations.ListOperations.+--+-- /See:/ 'newListOperationsResponse' smart constructor.+data ListOperationsResponse = ListOperationsResponse+ { -- | The standard List next-page token.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | A list of operations that matches the specified filter in the request.+ operations :: (Core.Maybe [Operation])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListOperationsResponse' with the minimum fields required to make a request.+newListOperationsResponse ::+ ListOperationsResponse+newListOperationsResponse =+ ListOperationsResponse+ { nextPageToken = Core.Nothing,+ operations = Core.Nothing+ }++instance Core.FromJSON ListOperationsResponse where+ parseJSON =+ Core.withObject+ "ListOperationsResponse"+ ( \o ->+ ListOperationsResponse+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "operations")+ )++instance Core.ToJSON ListOperationsResponse where+ toJSON ListOperationsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("operations" Core..=) Core.<$> operations+ ]+ )++-- | Response to a request to list policies for a given enterprise.+--+-- /See:/ 'newListPoliciesResponse' smart constructor.+data ListPoliciesResponse = ListPoliciesResponse+ { -- | If there are more results, a token to retrieve next page of results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | The list of policies.+ policies :: (Core.Maybe [Policy])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListPoliciesResponse' with the minimum fields required to make a request.+newListPoliciesResponse ::+ ListPoliciesResponse+newListPoliciesResponse =+ ListPoliciesResponse+ { nextPageToken = Core.Nothing,+ policies = Core.Nothing+ }++instance Core.FromJSON ListPoliciesResponse where+ parseJSON =+ Core.withObject+ "ListPoliciesResponse"+ ( \o ->+ ListPoliciesResponse+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "policies")+ )++instance Core.ToJSON ListPoliciesResponse where+ toJSON ListPoliciesResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("policies" Core..=) Core.<$> policies+ ]+ )++-- | Response to a request to list web apps for a given enterprise.+--+-- /See:/ 'newListWebAppsResponse' smart constructor.+data ListWebAppsResponse = ListWebAppsResponse+ { -- | If there are more results, a token to retrieve next page of results.+ nextPageToken :: (Core.Maybe Core.Text),+ -- | The list of web apps.+ webApps :: (Core.Maybe [WebApp])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ListWebAppsResponse' with the minimum fields required to make a request.+newListWebAppsResponse ::+ ListWebAppsResponse+newListWebAppsResponse =+ ListWebAppsResponse+ { nextPageToken = Core.Nothing,+ webApps = Core.Nothing+ }++instance Core.FromJSON ListWebAppsResponse where+ parseJSON =+ Core.withObject+ "ListWebAppsResponse"+ ( \o ->+ ListWebAppsResponse+ Core.<$> (o Core..:? "nextPageToken")+ Core.<*> (o Core..:? "webApps")+ )++instance Core.ToJSON ListWebAppsResponse where+ toJSON ListWebAppsResponse {..} =+ Core.object+ ( Core.catMaybes+ [ ("nextPageToken" Core..=) Core.<$> nextPageToken,+ ("webApps" Core..=) Core.<$> webApps+ ]+ )++-- | The device location containing the latitude and longitude.+--+-- /See:/ 'newLocation' smart constructor.+data Location = Location+ { -- | The latitude position of the location+ latitude :: (Core.Maybe Core.Double),+ -- | The longitude position of the location+ longitude :: (Core.Maybe Core.Double)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Location' with the minimum fields required to make a request.+newLocation ::+ Location+newLocation =+ Location {latitude = Core.Nothing, longitude = Core.Nothing}++instance Core.FromJSON Location where+ parseJSON =+ Core.withObject+ "Location"+ ( \o ->+ Location+ Core.<$> (o Core..:? "latitude")+ Core.<*> (o Core..:? "longitude")+ )++instance Core.ToJSON Location where+ toJSON Location {..} =+ Core.object+ ( Core.catMaybes+ [ ("latitude" Core..=) Core.<$> latitude,+ ("longitude" Core..=) Core.<$> longitude+ ]+ )++-- | The usageLog buffer on the device has reached 90% of its capacity, therefore older events may be dropped. Intentionally empty.+--+-- /See:/ 'newLogBufferSizeCriticalEvent' smart constructor.+data LogBufferSizeCriticalEvent = LogBufferSizeCriticalEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LogBufferSizeCriticalEvent' with the minimum fields required to make a request.+newLogBufferSizeCriticalEvent ::+ LogBufferSizeCriticalEvent+newLogBufferSizeCriticalEvent = LogBufferSizeCriticalEvent++instance Core.FromJSON LogBufferSizeCriticalEvent where+ parseJSON =+ Core.withObject+ "LogBufferSizeCriticalEvent"+ (\o -> Core.pure LogBufferSizeCriticalEvent)++instance Core.ToJSON LogBufferSizeCriticalEvent where+ toJSON = Core.const Core.emptyObject++-- | usageLog policy has been enabled. Intentionally empty.+--+-- /See:/ 'newLoggingStartedEvent' smart constructor.+data LoggingStartedEvent = LoggingStartedEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LoggingStartedEvent' with the minimum fields required to make a request.+newLoggingStartedEvent ::+ LoggingStartedEvent+newLoggingStartedEvent = LoggingStartedEvent++instance Core.FromJSON LoggingStartedEvent where+ parseJSON =+ Core.withObject+ "LoggingStartedEvent"+ (\o -> Core.pure LoggingStartedEvent)++instance Core.ToJSON LoggingStartedEvent where+ toJSON = Core.const Core.emptyObject++-- | usageLog policy has been disabled. Intentionally empty.+--+-- /See:/ 'newLoggingStoppedEvent' smart constructor.+data LoggingStoppedEvent = LoggingStoppedEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LoggingStoppedEvent' with the minimum fields required to make a request.+newLoggingStoppedEvent ::+ LoggingStoppedEvent+newLoggingStoppedEvent = LoggingStoppedEvent++instance Core.FromJSON LoggingStoppedEvent where+ parseJSON =+ Core.withObject+ "LoggingStoppedEvent"+ (\o -> Core.pure LoggingStoppedEvent)++instance Core.ToJSON LoggingStoppedEvent where+ toJSON = Core.const Core.emptyObject++-- | A lost mode event containing the device location and battery level as a percentage.+--+-- /See:/ 'newLostModeLocationEvent' smart constructor.+data LostModeLocationEvent = LostModeLocationEvent+ { -- | The battery level as a number between 0 and 100 inclusive+ batteryLevel :: (Core.Maybe Core.Int32),+ -- | The device location+ location :: (Core.Maybe Location)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LostModeLocationEvent' with the minimum fields required to make a request.+newLostModeLocationEvent ::+ LostModeLocationEvent+newLostModeLocationEvent =+ LostModeLocationEvent+ { batteryLevel = Core.Nothing,+ location = Core.Nothing+ }++instance Core.FromJSON LostModeLocationEvent where+ parseJSON =+ Core.withObject+ "LostModeLocationEvent"+ ( \o ->+ LostModeLocationEvent+ Core.<$> (o Core..:? "batteryLevel")+ Core.<*> (o Core..:? "location")+ )++instance Core.ToJSON LostModeLocationEvent where+ toJSON LostModeLocationEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("batteryLevel" Core..=) Core.<$> batteryLevel,+ ("location" Core..=) Core.<$> location+ ]+ )++-- | An event indicating an outgoing phone call has been made when a device is in lost mode. Intentionally empty.+--+-- /See:/ 'newLostModeOutgoingPhoneCallEvent' smart constructor.+data LostModeOutgoingPhoneCallEvent = LostModeOutgoingPhoneCallEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'LostModeOutgoingPhoneCallEvent' with the minimum fields required to make a request.+newLostModeOutgoingPhoneCallEvent ::+ LostModeOutgoingPhoneCallEvent+newLostModeOutgoingPhoneCallEvent = LostModeOutgoingPhoneCallEvent++instance Core.FromJSON LostModeOutgoingPhoneCallEvent where+ parseJSON =+ Core.withObject+ "LostModeOutgoingPhoneCallEvent"+ (\o -> Core.pure LostModeOutgoingPhoneCallEvent)++instance Core.ToJSON LostModeOutgoingPhoneCallEvent where+ toJSON = Core.const Core.emptyObject++-- | The managed configurations template for the app, saved from the managed configurations iframe.+--+-- /See:/ 'newManagedConfigurationTemplate' smart constructor.+data ManagedConfigurationTemplate = ManagedConfigurationTemplate+ { -- | Optional, a map containing configuration variables defined for the configuration.+ configurationVariables :: (Core.Maybe ManagedConfigurationTemplate_ConfigurationVariables),+ -- | The ID of the managed configurations template.+ templateId :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedConfigurationTemplate' with the minimum fields required to make a request.+newManagedConfigurationTemplate ::+ ManagedConfigurationTemplate+newManagedConfigurationTemplate =+ ManagedConfigurationTemplate+ { configurationVariables =+ Core.Nothing,+ templateId = Core.Nothing+ }++instance Core.FromJSON ManagedConfigurationTemplate where+ parseJSON =+ Core.withObject+ "ManagedConfigurationTemplate"+ ( \o ->+ ManagedConfigurationTemplate+ Core.<$> (o Core..:? "configurationVariables")+ Core.<*> (o Core..:? "templateId")+ )++instance Core.ToJSON ManagedConfigurationTemplate where+ toJSON ManagedConfigurationTemplate {..} =+ Core.object+ ( Core.catMaybes+ [ ("configurationVariables" Core..=)+ Core.<$> configurationVariables,+ ("templateId" Core..=) Core.<$> templateId+ ]+ )++-- | Optional, a map containing configuration variables defined for the configuration.+--+-- /See:/ 'newManagedConfigurationTemplate_ConfigurationVariables' smart constructor.+newtype ManagedConfigurationTemplate_ConfigurationVariables = ManagedConfigurationTemplate_ConfigurationVariables+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedConfigurationTemplate_ConfigurationVariables' with the minimum fields required to make a request.+newManagedConfigurationTemplate_ConfigurationVariables ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ ManagedConfigurationTemplate_ConfigurationVariables+newManagedConfigurationTemplate_ConfigurationVariables additional =+ ManagedConfigurationTemplate_ConfigurationVariables+ { additional =+ additional+ }++instance+ Core.FromJSON+ ManagedConfigurationTemplate_ConfigurationVariables+ where+ parseJSON =+ Core.withObject+ "ManagedConfigurationTemplate_ConfigurationVariables"+ ( \o ->+ ManagedConfigurationTemplate_ConfigurationVariables+ Core.<$> (Core.parseJSONObject o)+ )++instance+ Core.ToJSON+ ManagedConfigurationTemplate_ConfigurationVariables+ where+ toJSON ManagedConfigurationTemplate_ConfigurationVariables {..} =+ Core.toJSON additional++-- | Managed property.+--+-- /See:/ 'newManagedProperty' smart constructor.+data ManagedProperty = ManagedProperty+ { -- | The default value of the property. BUNDLE_ARRAY properties don\'t have a default value.+ defaultValue :: (Core.Maybe Core.Value),+ -- | A longer description of the property, providing more detail of what it affects. Localized.+ description :: (Core.Maybe Core.Text),+ -- | For CHOICE or MULTISELECT properties, the list of possible entries.+ entries :: (Core.Maybe [ManagedPropertyEntry]),+ -- | The unique key that the app uses to identify the property, e.g. \"com.google.android.gm.fieldname\".+ key :: (Core.Maybe Core.Text),+ -- | For BUNDLE/ARRAY properties, the list of nested properties. A BUNDLE/ARRAY property is at most two levels deep.+ nestedProperties :: (Core.Maybe [ManagedProperty]),+ -- | The name of the property. Localized.+ title :: (Core.Maybe Core.Text),+ -- | The type of the property.+ type' :: (Core.Maybe ManagedProperty_Type)+ }+ 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+ { defaultValue = Core.Nothing,+ description = Core.Nothing,+ entries = Core.Nothing,+ key = Core.Nothing,+ nestedProperties = Core.Nothing,+ title = Core.Nothing,+ type' = Core.Nothing+ }++instance Core.FromJSON ManagedProperty where+ parseJSON =+ Core.withObject+ "ManagedProperty"+ ( \o ->+ ManagedProperty+ Core.<$> (o Core..:? "defaultValue")+ Core.<*> (o Core..:? "description")+ Core.<*> (o Core..:? "entries")+ Core.<*> (o Core..:? "key")+ Core.<*> (o Core..:? "nestedProperties")+ Core.<*> (o Core..:? "title")+ Core.<*> (o Core..:? "type")+ )++instance Core.ToJSON ManagedProperty where+ toJSON ManagedProperty {..} =+ Core.object+ ( Core.catMaybes+ [ ("defaultValue" Core..=) Core.<$> defaultValue,+ ("description" Core..=) Core.<$> description,+ ("entries" Core..=) Core.<$> entries,+ ("key" Core..=) Core.<$> key,+ ("nestedProperties" Core..=) Core.<$> nestedProperties,+ ("title" Core..=) Core.<$> title,+ ("type" Core..=) Core.<$> type'+ ]+ )++-- | An entry of a managed property.+--+-- /See:/ 'newManagedPropertyEntry' smart constructor.+data ManagedPropertyEntry = ManagedPropertyEntry+ { -- | The human-readable name of the value. Localized.+ name :: (Core.Maybe Core.Text),+ -- | The machine-readable value of the entry, which should be used in the configuration. Not localized.+ value :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ManagedPropertyEntry' with the minimum fields required to make a request.+newManagedPropertyEntry ::+ ManagedPropertyEntry+newManagedPropertyEntry =+ ManagedPropertyEntry {name = Core.Nothing, value = Core.Nothing}++instance Core.FromJSON ManagedPropertyEntry where+ parseJSON =+ Core.withObject+ "ManagedPropertyEntry"+ ( \o ->+ ManagedPropertyEntry+ Core.<$> (o Core..:? "name")+ Core.<*> (o Core..:? "value")+ )++instance Core.ToJSON ManagedPropertyEntry where+ toJSON ManagedPropertyEntry {..} =+ Core.object+ ( Core.catMaybes+ [("name" Core..=) Core.<$> name, ("value" Core..=) Core.<$> value]+ )++-- | Removable media was mounted.+--+-- /See:/ 'newMediaMountEvent' smart constructor.+data MediaMountEvent = MediaMountEvent+ { -- | Mount point.+ mountPoint :: (Core.Maybe Core.Text),+ -- | Volume label. Redacted to empty string on organization-owned managed profile devices.+ volumeLabel :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MediaMountEvent' with the minimum fields required to make a request.+newMediaMountEvent ::+ MediaMountEvent+newMediaMountEvent =+ MediaMountEvent+ { mountPoint = Core.Nothing,+ volumeLabel = Core.Nothing+ }++instance Core.FromJSON MediaMountEvent where+ parseJSON =+ Core.withObject+ "MediaMountEvent"+ ( \o ->+ MediaMountEvent+ Core.<$> (o Core..:? "mountPoint")+ Core.<*> (o Core..:? "volumeLabel")+ )++instance Core.ToJSON MediaMountEvent where+ toJSON MediaMountEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("mountPoint" Core..=) Core.<$> mountPoint,+ ("volumeLabel" Core..=) Core.<$> volumeLabel+ ]+ )++-- | Removable media was unmounted.+--+-- /See:/ 'newMediaUnmountEvent' smart constructor.+data MediaUnmountEvent = MediaUnmountEvent+ { -- | Mount point.+ mountPoint :: (Core.Maybe Core.Text),+ -- | Volume label. Redacted to empty string on organization-owned managed profile devices.+ volumeLabel :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MediaUnmountEvent' with the minimum fields required to make a request.+newMediaUnmountEvent ::+ MediaUnmountEvent+newMediaUnmountEvent =+ MediaUnmountEvent+ { mountPoint = Core.Nothing,+ volumeLabel = Core.Nothing+ }++instance Core.FromJSON MediaUnmountEvent where+ parseJSON =+ Core.withObject+ "MediaUnmountEvent"+ ( \o ->+ MediaUnmountEvent+ Core.<$> (o Core..:? "mountPoint")+ Core.<*> (o Core..:? "volumeLabel")+ )++instance Core.ToJSON MediaUnmountEvent where+ toJSON MediaUnmountEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("mountPoint" Core..=) Core.<$> mountPoint,+ ("volumeLabel" Core..=) Core.<$> volumeLabel+ ]+ )++-- | An event related to memory and storage measurements.To distinguish between new and old events, we recommend using the createTime field.+--+-- /See:/ 'newMemoryEvent' smart constructor.+data MemoryEvent = MemoryEvent+ { -- | The number of free bytes in the medium, or for EXTERNAL/STORAGE/DETECTED, the total capacity in bytes of the storage medium.+ byteCount :: (Core.Maybe Core.Int64),+ -- | The creation time of the event.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Event type.+ eventType :: (Core.Maybe MemoryEvent_EventType)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MemoryEvent' with the minimum fields required to make a request.+newMemoryEvent ::+ MemoryEvent+newMemoryEvent =+ MemoryEvent+ { byteCount = Core.Nothing,+ createTime = Core.Nothing,+ eventType = Core.Nothing+ }++instance Core.FromJSON MemoryEvent where+ parseJSON =+ Core.withObject+ "MemoryEvent"+ ( \o ->+ MemoryEvent+ Core.<$> (o Core..:? "byteCount" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "eventType")+ )++instance Core.ToJSON MemoryEvent where+ toJSON MemoryEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("byteCount" Core..=) Core.. Core.AsText Core.<$> byteCount,+ ("createTime" Core..=) Core.<$> createTime,+ ("eventType" Core..=) Core.<$> eventType+ ]+ )++-- | Information about device memory and storage.+--+-- /See:/ 'newMemoryInfo' smart constructor.+data MemoryInfo = MemoryInfo+ { -- | Total internal storage on device in bytes.+ totalInternalStorage :: (Core.Maybe Core.Int64),+ -- | Total RAM on device in bytes.+ totalRam :: (Core.Maybe Core.Int64)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MemoryInfo' with the minimum fields required to make a request.+newMemoryInfo ::+ MemoryInfo+newMemoryInfo =+ MemoryInfo+ { totalInternalStorage = Core.Nothing,+ totalRam = Core.Nothing+ }++instance Core.FromJSON MemoryInfo where+ parseJSON =+ Core.withObject+ "MemoryInfo"+ ( \o ->+ MemoryInfo+ Core.<$> ( o+ Core..:? "totalInternalStorage"+ Core.<&> Core.fmap Core.fromAsText+ )+ Core.<*> (o Core..:? "totalRam" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON MemoryInfo where+ toJSON MemoryInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("totalInternalStorage" Core..=)+ Core.. Core.AsText+ Core.<$> totalInternalStorage,+ ("totalRam" Core..=) Core.. Core.AsText Core.<$> totalRam+ ]+ )++-- | A token to initiate the migration of a device from being managed by a third-party DPC to being managed by Android Management API. A migration token is valid only for a single device. See the guide (https:\/\/developers.google.com\/android\/management\/dpc-migration) for more details.+--+-- /See:/ 'newMigrationToken' smart constructor.+data MigrationToken = MigrationToken+ { -- | Immutable. Optional EMM-specified additional data. Once the device is migrated this will be populated in the migrationAdditionalData field of the Device resource. This must be at most 1024 characters.+ additionalData :: (Core.Maybe Core.Text),+ -- | Output only. Time when this migration token was created.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Output only. Once this migration token is used to migrate a device, the name of the resulting Device resource will be populated here, in the form enterprises\/{enterprise}\/devices\/{device}.+ device :: (Core.Maybe Core.Text),+ -- | Required. Immutable. The id of the device, as in the Play EMM API. This corresponds to the deviceId parameter in Play EMM API\'s Devices.get (https:\/\/developers.google.com\/android\/work\/play\/emm-api\/v1\/devices\/get#parameters) call.+ deviceId :: (Core.Maybe Core.Text),+ -- | Immutable. The time when this migration token expires. This can be at most seven days from the time of creation. The migration token is deleted seven days after it expires.+ expireTime :: (Core.Maybe Core.DateTime),+ -- | Required. Immutable. The management mode of the device or profile being migrated.+ managementMode :: (Core.Maybe MigrationToken_ManagementMode),+ -- | Output only. The name of the migration token, which is generated by the server during creation, in the form enterprises\/{enterprise}\/migrationTokens\/{migration_token}.+ name :: (Core.Maybe Core.Text),+ -- | Required. Immutable. The name of the policy initially applied to the enrolled device, in the form enterprises\/{enterprise}\/policies\/{policy}.+ policy :: (Core.Maybe Core.Text),+ -- | Input only. The time that this migration token is valid for. This is input-only, and for returning a migration token the server will populate the expireTime field. This can be at most seven days. The default is seven days.+ ttl :: (Core.Maybe Core.Duration),+ -- | Required. Immutable. The user id of the Managed Google Play account on the device, as in the Play EMM API. This corresponds to the userId parameter in Play EMM API\'s Devices.get (https:\/\/developers.google.com\/android\/work\/play\/emm-api\/v1\/devices\/get#parameters) call.+ userId :: (Core.Maybe Core.Text),+ -- | Output only. The value of the migration token.+ value :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'MigrationToken' with the minimum fields required to make a request.+newMigrationToken ::+ MigrationToken+newMigrationToken =+ MigrationToken+ { additionalData = Core.Nothing,+ createTime = Core.Nothing,+ device = Core.Nothing,+ deviceId = Core.Nothing,+ expireTime = Core.Nothing,+ managementMode = Core.Nothing,+ name = Core.Nothing,+ policy = Core.Nothing,+ ttl = Core.Nothing,+ userId = Core.Nothing,+ value = Core.Nothing+ }++instance Core.FromJSON MigrationToken where+ parseJSON =+ Core.withObject+ "MigrationToken"+ ( \o ->+ MigrationToken+ Core.<$> (o Core..:? "additionalData")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "device")+ Core.<*> (o Core..:? "deviceId")+ Core.<*> (o Core..:? "expireTime")+ Core.<*> (o Core..:? "managementMode")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "policy")+ Core.<*> (o Core..:? "ttl")+ Core.<*> (o Core..:? "userId")+ Core.<*> (o Core..:? "value")+ )++instance Core.ToJSON MigrationToken where+ toJSON MigrationToken {..} =+ Core.object+ ( Core.catMaybes+ [ ("additionalData" Core..=) Core.<$> additionalData,+ ("createTime" Core..=) Core.<$> createTime,+ ("device" Core..=) Core.<$> device,+ ("deviceId" Core..=) Core.<$> deviceId,+ ("expireTime" Core..=) Core.<$> expireTime,+ ("managementMode" Core..=) Core.<$> managementMode,+ ("name" Core..=) Core.<$> name,+ ("policy" Core..=) Core.<$> policy,+ ("ttl" Core..=) Core.<$> ttl,+ ("userId" Core..=) Core.<$> userId,+ ("value" Core..=) Core.<$> value+ ]+ )++-- | Device network info.+--+-- /See:/ 'newNetworkInfo' smart constructor.+data NetworkInfo = NetworkInfo+ { -- | IMEI number of the GSM device. For example, A1000031212.+ imei :: (Core.Maybe Core.Text),+ -- | MEID number of the CDMA device. For example, A00000292788E1.+ meid :: (Core.Maybe Core.Text),+ -- | Alphabetic name of current registered operator. For example, Vodafone.+ networkOperatorName :: (Core.Maybe Core.Text),+ -- | Provides telephony information associated with each SIM card on the device. Only supported on fully managed devices starting from Android API level 23.+ telephonyInfos :: (Core.Maybe [TelephonyInfo]),+ -- | Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.+ wifiMacAddress :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'NetworkInfo' with the minimum fields required to make a request.+newNetworkInfo ::+ NetworkInfo+newNetworkInfo =+ NetworkInfo+ { imei = Core.Nothing,+ meid = Core.Nothing,+ networkOperatorName = Core.Nothing,+ telephonyInfos = Core.Nothing,+ wifiMacAddress = Core.Nothing+ }++instance Core.FromJSON NetworkInfo where+ parseJSON =+ Core.withObject+ "NetworkInfo"+ ( \o ->+ NetworkInfo+ Core.<$> (o Core..:? "imei")+ Core.<*> (o Core..:? "meid")+ Core.<*> (o Core..:? "networkOperatorName")+ Core.<*> (o Core..:? "telephonyInfos")+ Core.<*> (o Core..:? "wifiMacAddress")+ )++instance Core.ToJSON NetworkInfo where+ toJSON NetworkInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("imei" Core..=) Core.<$> imei,+ ("meid" Core..=) Core.<$> meid,+ ("networkOperatorName" Core..=) Core.<$> networkOperatorName,+ ("telephonyInfos" Core..=) Core.<$> telephonyInfos,+ ("wifiMacAddress" Core..=) Core.<$> wifiMacAddress+ ]+ )++-- | Provides detail about non-compliance with a policy setting.+--+-- /See:/ 'newNonComplianceDetail' smart constructor.+data NonComplianceDetail = NonComplianceDetail+ { -- | If the policy setting could not be applied, the current value of the setting on the device.+ currentValue :: (Core.Maybe Core.Value),+ -- | For settings with nested fields, if a particular nested field is out of compliance, this specifies the full path to the offending field. The path is formatted in the same way the policy JSON field would be referenced in JavaScript, that is: 1) For object-typed fields, the field name is followed by a dot then by a subfield name. 2) For array-typed fields, the field name is followed by the array index enclosed in brackets. For example, to indicate a problem with the url field in the externalData field in the 3rd application, the path would be applications[2].externalData.url+ fieldPath :: (Core.Maybe Core.Text),+ -- | If package/name is set and the non-compliance reason is APP/NOT/INSTALLED or APP/NOT_UPDATED, the detailed reason the app can\'t be installed or updated.+ installationFailureReason :: (Core.Maybe NonComplianceDetail_InstallationFailureReason),+ -- | The reason the device is not in compliance with the setting.+ nonComplianceReason :: (Core.Maybe NonComplianceDetail_NonComplianceReason),+ -- | The package name indicating which app is out of compliance, if applicable.+ packageName :: (Core.Maybe Core.Text),+ -- | The name of the policy setting. This is the JSON field name of a top-level Policy field.+ settingName :: (Core.Maybe Core.Text),+ -- | Additional context for specific/non/compliance_reason.+ specificNonComplianceContext :: (Core.Maybe SpecificNonComplianceContext),+ -- | The policy-specific reason the device is not in compliance with the setting.+ specificNonComplianceReason :: (Core.Maybe NonComplianceDetail_SpecificNonComplianceReason)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'NonComplianceDetail' with the minimum fields required to make a request.+newNonComplianceDetail ::+ NonComplianceDetail+newNonComplianceDetail =+ NonComplianceDetail+ { currentValue = Core.Nothing,+ fieldPath = Core.Nothing,+ installationFailureReason = Core.Nothing,+ nonComplianceReason = Core.Nothing,+ packageName = Core.Nothing,+ settingName = Core.Nothing,+ specificNonComplianceContext = Core.Nothing,+ specificNonComplianceReason = Core.Nothing+ }++instance Core.FromJSON NonComplianceDetail where+ parseJSON =+ Core.withObject+ "NonComplianceDetail"+ ( \o ->+ NonComplianceDetail+ Core.<$> (o Core..:? "currentValue")+ Core.<*> (o Core..:? "fieldPath")+ Core.<*> (o Core..:? "installationFailureReason")+ Core.<*> (o Core..:? "nonComplianceReason")+ Core.<*> (o Core..:? "packageName")+ Core.<*> (o Core..:? "settingName")+ Core.<*> (o Core..:? "specificNonComplianceContext")+ Core.<*> (o Core..:? "specificNonComplianceReason")+ )++instance Core.ToJSON NonComplianceDetail where+ toJSON NonComplianceDetail {..} =+ Core.object+ ( Core.catMaybes+ [ ("currentValue" Core..=) Core.<$> currentValue,+ ("fieldPath" Core..=) Core.<$> fieldPath,+ ("installationFailureReason" Core..=)+ Core.<$> installationFailureReason,+ ("nonComplianceReason" Core..=) Core.<$> nonComplianceReason,+ ("packageName" Core..=) Core.<$> packageName,+ ("settingName" Core..=) Core.<$> settingName,+ ("specificNonComplianceContext" Core..=)+ Core.<$> specificNonComplianceContext,+ ("specificNonComplianceReason" Core..=)+ Core.<$> specificNonComplianceReason+ ]+ )++-- | A compliance rule condition which is satisfied if there exists any matching NonComplianceDetail for the device. A NonComplianceDetail matches a NonComplianceDetailCondition if all the fields which are set within the NonComplianceDetailCondition match the corresponding NonComplianceDetail fields.+--+-- /See:/ 'newNonComplianceDetailCondition' smart constructor.+data NonComplianceDetailCondition = NonComplianceDetailCondition+ { -- | The reason the device is not in compliance with the setting. If not set, then this condition matches any reason.+ nonComplianceReason :: (Core.Maybe NonComplianceDetailCondition_NonComplianceReason),+ -- | The package name of the app that\'s out of compliance. If not set, then this condition matches any package name.+ packageName :: (Core.Maybe Core.Text),+ -- | The name of the policy setting. This is the JSON field name of a top-level Policy field. If not set, then this condition matches any setting name.+ settingName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'NonComplianceDetailCondition' with the minimum fields required to make a request.+newNonComplianceDetailCondition ::+ NonComplianceDetailCondition+newNonComplianceDetailCondition =+ NonComplianceDetailCondition+ { nonComplianceReason = Core.Nothing,+ packageName = Core.Nothing,+ settingName = Core.Nothing+ }++instance Core.FromJSON NonComplianceDetailCondition where+ parseJSON =+ Core.withObject+ "NonComplianceDetailCondition"+ ( \o ->+ NonComplianceDetailCondition+ Core.<$> (o Core..:? "nonComplianceReason")+ Core.<*> (o Core..:? "packageName")+ Core.<*> (o Core..:? "settingName")+ )++instance Core.ToJSON NonComplianceDetailCondition where+ toJSON NonComplianceDetailCondition {..} =+ Core.object+ ( Core.catMaybes+ [ ("nonComplianceReason" Core..=) Core.<$> nonComplianceReason,+ ("packageName" Core..=) Core.<$> packageName,+ ("settingName" Core..=) Core.<$> settingName+ ]+ )++-- | This feature is not generally available.+--+-- /See:/ 'newOncCertificateProvider' smart constructor.+data OncCertificateProvider = OncCertificateProvider+ { -- | This feature is not generally available.+ certificateReferences :: (Core.Maybe [Core.Text]),+ -- | This feature is not generally available.+ contentProviderEndpoint :: (Core.Maybe ContentProviderEndpoint)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OncCertificateProvider' with the minimum fields required to make a request.+newOncCertificateProvider ::+ OncCertificateProvider+newOncCertificateProvider =+ OncCertificateProvider+ { certificateReferences = Core.Nothing,+ contentProviderEndpoint = Core.Nothing+ }++instance Core.FromJSON OncCertificateProvider where+ parseJSON =+ Core.withObject+ "OncCertificateProvider"+ ( \o ->+ OncCertificateProvider+ Core.<$> (o Core..:? "certificateReferences")+ Core.<*> (o Core..:? "contentProviderEndpoint")+ )++instance Core.ToJSON OncCertificateProvider where+ toJSON OncCertificateProvider {..} =+ Core.object+ ( Core.catMaybes+ [ ("certificateReferences" Core..=) Core.<$> certificateReferences,+ ("contentProviderEndpoint" Core..=)+ Core.<$> contentProviderEndpoint+ ]+ )++-- | Additional context for non-compliance related to Wi-Fi configuration.+--+-- /See:/ 'newOncWifiContext' smart constructor.+newtype OncWifiContext = OncWifiContext+ { -- | The GUID of non-compliant Wi-Fi configuration.+ wifiGuid :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OncWifiContext' with the minimum fields required to make a request.+newOncWifiContext ::+ OncWifiContext+newOncWifiContext = OncWifiContext {wifiGuid = Core.Nothing}++instance Core.FromJSON OncWifiContext where+ parseJSON =+ Core.withObject+ "OncWifiContext"+ (\o -> OncWifiContext Core.<$> (o Core..:? "wifiGuid"))++instance Core.ToJSON OncWifiContext where+ toJSON OncWifiContext {..} =+ Core.object+ (Core.catMaybes [("wifiGuid" Core..=) Core.<$> wifiGuid])++-- | This resource represents a long-running operation that is the result of a network API call.+--+-- /See:/ 'newOperation' smart constructor.+data Operation = Operation+ { -- | If the value is false, it means the operation is still in progress. If true, the operation is completed, and either error or response is available.+ done :: (Core.Maybe Core.Bool),+ -- | The error result of the operation in case of failure or cancellation.+ error :: (Core.Maybe Status),+ -- | Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.+ metadata :: (Core.Maybe Operation_Metadata),+ -- | The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the name should be a resource name ending with operations\/{unique_id}.+ name :: (Core.Maybe Core.Text),+ -- | The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get\/Create\/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.+ response :: (Core.Maybe Operation_Response)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Operation' with the minimum fields required to make a request.+newOperation ::+ Operation+newOperation =+ Operation+ { done = Core.Nothing,+ error = Core.Nothing,+ metadata = Core.Nothing,+ name = Core.Nothing,+ response = Core.Nothing+ }++instance Core.FromJSON Operation where+ parseJSON =+ Core.withObject+ "Operation"+ ( \o ->+ Operation+ Core.<$> (o Core..:? "done")+ Core.<*> (o Core..:? "error")+ Core.<*> (o Core..:? "metadata")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "response")+ )++instance Core.ToJSON Operation where+ toJSON Operation {..} =+ Core.object+ ( Core.catMaybes+ [ ("done" Core..=) Core.<$> done,+ ("error" Core..=) Core.<$> error,+ ("metadata" Core..=) Core.<$> metadata,+ ("name" Core..=) Core.<$> name,+ ("response" Core..=) Core.<$> response+ ]+ )++-- | Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.+--+-- /See:/ 'newOperation_Metadata' smart constructor.+newtype Operation_Metadata = Operation_Metadata+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Operation_Metadata' with the minimum fields required to make a request.+newOperation_Metadata ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Operation_Metadata+newOperation_Metadata additional =+ Operation_Metadata {additional = additional}++instance Core.FromJSON Operation_Metadata where+ parseJSON =+ Core.withObject+ "Operation_Metadata"+ (\o -> Operation_Metadata Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Operation_Metadata where+ toJSON Operation_Metadata {..} = Core.toJSON additional++-- | The normal, successful response of the operation. If the original method returns no data on success, such as Delete, the response is google.protobuf.Empty. If the original method is standard Get\/Create\/Update, the response should be the resource. For other methods, the response should have the type XxxResponse, where Xxx is the original method name. For example, if the original method name is TakeSnapshot(), the inferred response type is TakeSnapshotResponse.+--+-- /See:/ 'newOperation_Response' smart constructor.+newtype Operation_Response = Operation_Response+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Operation_Response' with the minimum fields required to make a request.+newOperation_Response ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Operation_Response+newOperation_Response additional =+ Operation_Response {additional = additional}++instance Core.FromJSON Operation_Response where+ parseJSON =+ Core.withObject+ "Operation_Response"+ (\o -> Operation_Response Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Operation_Response where+ toJSON Operation_Response {..} = Core.toJSON additional++-- | Device was shutdown. Intentionally empty.+--+-- /See:/ 'newOsShutdownEvent' smart constructor.+data OsShutdownEvent = OsShutdownEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OsShutdownEvent' with the minimum fields required to make a request.+newOsShutdownEvent ::+ OsShutdownEvent+newOsShutdownEvent = OsShutdownEvent++instance Core.FromJSON OsShutdownEvent where+ parseJSON =+ Core.withObject+ "OsShutdownEvent"+ (\o -> Core.pure OsShutdownEvent)++instance Core.ToJSON OsShutdownEvent where+ toJSON = Core.const Core.emptyObject++-- | Device was started.+--+-- /See:/ 'newOsStartupEvent' smart constructor.+data OsStartupEvent = OsStartupEvent+ { -- | Verified Boot state.+ verifiedBootState :: (Core.Maybe OsStartupEvent_VerifiedBootState),+ -- | dm-verity mode.+ verityMode :: (Core.Maybe OsStartupEvent_VerityMode)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'OsStartupEvent' with the minimum fields required to make a request.+newOsStartupEvent ::+ OsStartupEvent+newOsStartupEvent =+ OsStartupEvent+ { verifiedBootState = Core.Nothing,+ verityMode = Core.Nothing+ }++instance Core.FromJSON OsStartupEvent where+ parseJSON =+ Core.withObject+ "OsStartupEvent"+ ( \o ->+ OsStartupEvent+ Core.<$> (o Core..:? "verifiedBootState")+ Core.<*> (o Core..:? "verityMode")+ )++instance Core.ToJSON OsStartupEvent where+ toJSON OsStartupEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("verifiedBootState" Core..=) Core.<$> verifiedBootState,+ ("verityMode" Core..=) Core.<$> verityMode+ ]+ )++-- | A list of package names.+--+-- /See:/ 'newPackageNameList' smart constructor.+newtype PackageNameList = PackageNameList+ { -- | A list of package names.+ packageNames :: (Core.Maybe [Core.Text])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PackageNameList' with the minimum fields required to make a request.+newPackageNameList ::+ PackageNameList+newPackageNameList = PackageNameList {packageNames = Core.Nothing}++instance Core.FromJSON PackageNameList where+ parseJSON =+ Core.withObject+ "PackageNameList"+ (\o -> PackageNameList Core.<$> (o Core..:? "packageNames"))++instance Core.ToJSON PackageNameList where+ toJSON PackageNameList {..} =+ Core.object+ (Core.catMaybes [("packageNames" Core..=) Core.<$> packageNames])++-- | Additional context for non-compliance related to password policies.+--+-- /See:/ 'newPasswordPoliciesContext' smart constructor.+newtype PasswordPoliciesContext = PasswordPoliciesContext+ { -- | The scope of non-compliant password.+ passwordPolicyScope :: (Core.Maybe PasswordPoliciesContext_PasswordPolicyScope)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PasswordPoliciesContext' with the minimum fields required to make a request.+newPasswordPoliciesContext ::+ PasswordPoliciesContext+newPasswordPoliciesContext =+ PasswordPoliciesContext {passwordPolicyScope = Core.Nothing}++instance Core.FromJSON PasswordPoliciesContext where+ parseJSON =+ Core.withObject+ "PasswordPoliciesContext"+ ( \o ->+ PasswordPoliciesContext+ Core.<$> (o Core..:? "passwordPolicyScope")+ )++instance Core.ToJSON PasswordPoliciesContext where+ toJSON PasswordPoliciesContext {..} =+ Core.object+ ( Core.catMaybes+ [("passwordPolicyScope" Core..=) Core.<$> passwordPolicyScope]+ )++-- | Requirements for the password used to unlock a device.+--+-- /See:/ 'newPasswordRequirements' smart constructor.+data PasswordRequirements = PasswordRequirements+ { -- | Number of incorrect device-unlock passwords that can be entered before a device is wiped. A value of 0 means there is no restriction.+ maximumFailedPasswordsForWipe :: (Core.Maybe Core.Int32),+ -- | Password expiration timeout.+ passwordExpirationTimeout :: (Core.Maybe Core.Duration),+ -- | The length of the password history. After setting this field, the user won\'t be able to enter a new password that is the same as any password in the history. A value of 0 means there is no restriction.+ passwordHistoryLength :: (Core.Maybe Core.Int32),+ -- | The minimum allowed password length. A value of 0 means there is no restriction. Only enforced when password/quality is NUMERIC, NUMERIC/COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX.+ passwordMinimumLength :: (Core.Maybe Core.Int32),+ -- | Minimum number of letters required in the password. Only enforced when password_quality is COMPLEX.+ passwordMinimumLetters :: (Core.Maybe Core.Int32),+ -- | Minimum number of lower case letters required in the password. Only enforced when password_quality is COMPLEX.+ passwordMinimumLowerCase :: (Core.Maybe Core.Int32),+ -- | Minimum number of non-letter characters (numerical digits or symbols) required in the password. Only enforced when password_quality is COMPLEX.+ passwordMinimumNonLetter :: (Core.Maybe Core.Int32),+ -- | Minimum number of numerical digits required in the password. Only enforced when password_quality is COMPLEX.+ passwordMinimumNumeric :: (Core.Maybe Core.Int32),+ -- | Minimum number of symbols required in the password. Only enforced when password_quality is COMPLEX.+ passwordMinimumSymbols :: (Core.Maybe Core.Int32),+ -- | Minimum number of upper case letters required in the password. Only enforced when password_quality is COMPLEX.+ passwordMinimumUpperCase :: (Core.Maybe Core.Int32),+ -- | The required password quality.+ passwordQuality :: (Core.Maybe PasswordRequirements_PasswordQuality),+ -- | The scope that the password requirement applies to.+ passwordScope :: (Core.Maybe PasswordRequirements_PasswordScope),+ -- | The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile.+ requirePasswordUnlock :: (Core.Maybe PasswordRequirements_RequirePasswordUnlock),+ -- | Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This can be set only if password/scope is set to SCOPE/PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE/SEPARATE/WORK/LOCK, a NonComplianceDetail is reported with nonComplianceReason set to USER/ACTION.+ unifiedLockSettings :: (Core.Maybe PasswordRequirements_UnifiedLockSettings)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PasswordRequirements' with the minimum fields required to make a request.+newPasswordRequirements ::+ PasswordRequirements+newPasswordRequirements =+ PasswordRequirements+ { maximumFailedPasswordsForWipe =+ Core.Nothing,+ passwordExpirationTimeout = Core.Nothing,+ passwordHistoryLength = Core.Nothing,+ passwordMinimumLength = Core.Nothing,+ passwordMinimumLetters = Core.Nothing,+ passwordMinimumLowerCase = Core.Nothing,+ passwordMinimumNonLetter = Core.Nothing,+ passwordMinimumNumeric = Core.Nothing,+ passwordMinimumSymbols = Core.Nothing,+ passwordMinimumUpperCase = Core.Nothing,+ passwordQuality = Core.Nothing,+ passwordScope = Core.Nothing,+ requirePasswordUnlock = Core.Nothing,+ unifiedLockSettings = Core.Nothing+ }++instance Core.FromJSON PasswordRequirements where+ parseJSON =+ Core.withObject+ "PasswordRequirements"+ ( \o ->+ PasswordRequirements+ Core.<$> (o Core..:? "maximumFailedPasswordsForWipe")+ Core.<*> (o Core..:? "passwordExpirationTimeout")+ Core.<*> (o Core..:? "passwordHistoryLength")+ Core.<*> (o Core..:? "passwordMinimumLength")+ Core.<*> (o Core..:? "passwordMinimumLetters")+ Core.<*> (o Core..:? "passwordMinimumLowerCase")+ Core.<*> (o Core..:? "passwordMinimumNonLetter")+ Core.<*> (o Core..:? "passwordMinimumNumeric")+ Core.<*> (o Core..:? "passwordMinimumSymbols")+ Core.<*> (o Core..:? "passwordMinimumUpperCase")+ Core.<*> (o Core..:? "passwordQuality")+ Core.<*> (o Core..:? "passwordScope")+ Core.<*> (o Core..:? "requirePasswordUnlock")+ Core.<*> (o Core..:? "unifiedLockSettings")+ )++instance Core.ToJSON PasswordRequirements where+ toJSON PasswordRequirements {..} =+ Core.object+ ( Core.catMaybes+ [ ("maximumFailedPasswordsForWipe" Core..=)+ Core.<$> maximumFailedPasswordsForWipe,+ ("passwordExpirationTimeout" Core..=)+ Core.<$> passwordExpirationTimeout,+ ("passwordHistoryLength" Core..=) Core.<$> passwordHistoryLength,+ ("passwordMinimumLength" Core..=) Core.<$> passwordMinimumLength,+ ("passwordMinimumLetters" Core..=) Core.<$> passwordMinimumLetters,+ ("passwordMinimumLowerCase" Core..=)+ Core.<$> passwordMinimumLowerCase,+ ("passwordMinimumNonLetter" Core..=)+ Core.<$> passwordMinimumNonLetter,+ ("passwordMinimumNumeric" Core..=) Core.<$> passwordMinimumNumeric,+ ("passwordMinimumSymbols" Core..=) Core.<$> passwordMinimumSymbols,+ ("passwordMinimumUpperCase" Core..=)+ Core.<$> passwordMinimumUpperCase,+ ("passwordQuality" Core..=) Core.<$> passwordQuality,+ ("passwordScope" Core..=) Core.<$> passwordScope,+ ("requirePasswordUnlock" Core..=) Core.<$> requirePasswordUnlock,+ ("unifiedLockSettings" Core..=) Core.<$> unifiedLockSettings+ ]+ )++-- | The result of an attempt to clear the data of a single app.+--+-- /See:/ 'newPerAppResult' smart constructor.+newtype PerAppResult = PerAppResult+ { -- | The result of an attempt to clear the data of a single app.+ clearingResult :: (Core.Maybe PerAppResult_ClearingResult)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PerAppResult' with the minimum fields required to make a request.+newPerAppResult ::+ PerAppResult+newPerAppResult = PerAppResult {clearingResult = Core.Nothing}++instance Core.FromJSON PerAppResult where+ parseJSON =+ Core.withObject+ "PerAppResult"+ (\o -> PerAppResult Core.<$> (o Core..:? "clearingResult"))++instance Core.ToJSON PerAppResult where+ toJSON PerAppResult {..} =+ Core.object+ ( Core.catMaybes+ [("clearingResult" Core..=) Core.<$> clearingResult]+ )++-- | Configuration for an Android permission and its grant state.+--+-- /See:/ 'newPermissionGrant' smart constructor.+data PermissionGrant = PermissionGrant+ { -- | The Android permission or group, e.g. android.permission.READ/CALENDAR or android.permission/group.CALENDAR.+ permission :: (Core.Maybe Core.Text),+ -- | The policy for granting the permission.+ policy :: (Core.Maybe PermissionGrant_Policy)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PermissionGrant' with the minimum fields required to make a request.+newPermissionGrant ::+ PermissionGrant+newPermissionGrant =+ PermissionGrant {permission = Core.Nothing, policy = Core.Nothing}++instance Core.FromJSON PermissionGrant where+ parseJSON =+ Core.withObject+ "PermissionGrant"+ ( \o ->+ PermissionGrant+ Core.<$> (o Core..:? "permission")+ Core.<*> (o Core..:? "policy")+ )++instance Core.ToJSON PermissionGrant where+ toJSON PermissionGrant {..} =+ Core.object+ ( Core.catMaybes+ [ ("permission" Core..=) Core.<$> permission,+ ("policy" Core..=) Core.<$> policy+ ]+ )++-- | A default activity for handling intents that match a particular intent filter. Note: To set up a kiosk, use InstallType to KIOSK rather than use persistent preferred activities.+--+-- /See:/ 'newPersistentPreferredActivity' smart constructor.+data PersistentPreferredActivity = PersistentPreferredActivity+ { -- | The intent actions to match in the filter. If any actions are included in the filter, then an intent\'s action must be one of those values for it to match. If no actions are included, the intent action is ignored.+ actions :: (Core.Maybe [Core.Text]),+ -- | The intent categories to match in the filter. An intent includes the categories that it requires, all of which must be included in the filter in order to match. In other words, adding a category to the filter has no impact on matching unless that category is specified in the intent.+ categories :: (Core.Maybe [Core.Text]),+ -- | The activity that should be the default intent handler. This should be an Android component name, e.g. com.android.enterprise.app\/.MainActivity. Alternatively, the value may be the package name of an app, which causes Android Device Policy to choose an appropriate activity from the app to handle the intent.+ receiverActivity :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PersistentPreferredActivity' with the minimum fields required to make a request.+newPersistentPreferredActivity ::+ PersistentPreferredActivity+newPersistentPreferredActivity =+ PersistentPreferredActivity+ { actions = Core.Nothing,+ categories = Core.Nothing,+ receiverActivity = Core.Nothing+ }++instance Core.FromJSON PersistentPreferredActivity where+ parseJSON =+ Core.withObject+ "PersistentPreferredActivity"+ ( \o ->+ PersistentPreferredActivity+ Core.<$> (o Core..:? "actions")+ Core.<*> (o Core..:? "categories")+ Core.<*> (o Core..:? "receiverActivity")+ )++instance Core.ToJSON PersistentPreferredActivity where+ toJSON PersistentPreferredActivity {..} =+ Core.object+ ( Core.catMaybes+ [ ("actions" Core..=) Core.<$> actions,+ ("categories" Core..=) Core.<$> categories,+ ("receiverActivity" Core..=) Core.<$> receiverActivity+ ]+ )++-- | Policies for apps in the personal profile of a company-owned device with a work profile.+--+-- /See:/ 'newPersonalApplicationPolicy' smart constructor.+data PersonalApplicationPolicy = PersonalApplicationPolicy+ { -- | The type of installation to perform.+ installType :: (Core.Maybe PersonalApplicationPolicy_InstallType),+ -- | The package name of the application.+ packageName :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PersonalApplicationPolicy' with the minimum fields required to make a request.+newPersonalApplicationPolicy ::+ PersonalApplicationPolicy+newPersonalApplicationPolicy =+ PersonalApplicationPolicy+ { installType = Core.Nothing,+ packageName = Core.Nothing+ }++instance Core.FromJSON PersonalApplicationPolicy where+ parseJSON =+ Core.withObject+ "PersonalApplicationPolicy"+ ( \o ->+ PersonalApplicationPolicy+ Core.<$> (o Core..:? "installType")+ Core.<*> (o Core..:? "packageName")+ )++instance Core.ToJSON PersonalApplicationPolicy where+ toJSON PersonalApplicationPolicy {..} =+ Core.object+ ( Core.catMaybes+ [ ("installType" Core..=) Core.<$> installType,+ ("packageName" Core..=) Core.<$> packageName+ ]+ )++-- | Policies controlling personal usage on a company-owned device with a work profile.+--+-- /See:/ 'newPersonalUsagePolicies' smart constructor.+data PersonalUsagePolicies = PersonalUsagePolicies+ { -- | Account types that can\'t be managed by the user.+ accountTypesWithManagementDisabled :: (Core.Maybe [Core.Text]),+ -- | If true, the camera is disabled on the personal profile.+ cameraDisabled :: (Core.Maybe Core.Bool),+ -- | Controls how long the work profile can stay off. The minimum duration must be at least 3 days. Other details are as follows: - If the duration is set to 0, the feature is turned off. - If the duration is set to a value smaller than the minimum duration, the feature returns an error. /Note:/ If you want to avoid personal profiles being suspended during long periods of off-time, you can temporarily set a large value for this parameter.+ maxDaysWithWorkOff :: (Core.Maybe Core.Int32),+ -- | Policy applied to applications in the personal profile.+ personalApplications :: (Core.Maybe [PersonalApplicationPolicy]),+ -- | Used together with personalApplications to control how apps in the personal profile are allowed or blocked.+ personalPlayStoreMode :: (Core.Maybe PersonalUsagePolicies_PersonalPlayStoreMode),+ -- | Optional. Controls whether a private space is allowed on the device.+ privateSpacePolicy :: (Core.Maybe PersonalUsagePolicies_PrivateSpacePolicy),+ -- | If true, screen capture is disabled for all users.+ screenCaptureDisabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PersonalUsagePolicies' with the minimum fields required to make a request.+newPersonalUsagePolicies ::+ PersonalUsagePolicies+newPersonalUsagePolicies =+ PersonalUsagePolicies+ { accountTypesWithManagementDisabled =+ Core.Nothing,+ cameraDisabled = Core.Nothing,+ maxDaysWithWorkOff = Core.Nothing,+ personalApplications = Core.Nothing,+ personalPlayStoreMode = Core.Nothing,+ privateSpacePolicy = Core.Nothing,+ screenCaptureDisabled = Core.Nothing+ }++instance Core.FromJSON PersonalUsagePolicies where+ parseJSON =+ Core.withObject+ "PersonalUsagePolicies"+ ( \o ->+ PersonalUsagePolicies+ Core.<$> (o Core..:? "accountTypesWithManagementDisabled")+ Core.<*> (o Core..:? "cameraDisabled")+ Core.<*> (o Core..:? "maxDaysWithWorkOff")+ Core.<*> (o Core..:? "personalApplications")+ Core.<*> (o Core..:? "personalPlayStoreMode")+ Core.<*> (o Core..:? "privateSpacePolicy")+ Core.<*> (o Core..:? "screenCaptureDisabled")+ )++instance Core.ToJSON PersonalUsagePolicies where+ toJSON PersonalUsagePolicies {..} =+ Core.object+ ( Core.catMaybes+ [ ("accountTypesWithManagementDisabled" Core..=)+ Core.<$> accountTypesWithManagementDisabled,+ ("cameraDisabled" Core..=) Core.<$> cameraDisabled,+ ("maxDaysWithWorkOff" Core..=) Core.<$> maxDaysWithWorkOff,+ ("personalApplications" Core..=) Core.<$> personalApplications,+ ("personalPlayStoreMode" Core..=) Core.<$> personalPlayStoreMode,+ ("privateSpacePolicy" Core..=) Core.<$> privateSpacePolicy,+ ("screenCaptureDisabled" Core..=) Core.<$> screenCaptureDisabled+ ]+ )++-- | A policy resource represents a group of settings that govern the behavior of a managed device and the apps installed on it.+--+-- /See:/ 'newPolicy' smart constructor.+data Policy = Policy+ { -- | Account types that can\'t be managed by the user.+ accountTypesWithManagementDisabled :: (Core.Maybe [Core.Text]),+ -- | Whether adding new users and profiles is disabled. For devices where managementMode is DEVICE_OWNER this field is ignored and the user is never allowed to add or remove users.+ addUserDisabled :: (Core.Maybe Core.Bool),+ -- | Whether adjusting the master volume is disabled. Also mutes the device. The setting has effect only on fully managed devices.+ adjustVolumeDisabled :: (Core.Maybe Core.Bool),+ -- | Advanced security settings. In most cases, setting these is not needed.+ advancedSecurityOverrides :: (Core.Maybe AdvancedSecurityOverrides),+ -- | Configuration for an always-on VPN connection. Use with vpn/config/disabled to prevent modification of this setting.+ alwaysOnVpnPackage :: (Core.Maybe AlwaysOnVpnPackage),+ -- | This setting is not supported. Any value is ignored.+ androidDevicePolicyTracks :: (Core.Maybe [Policy_AndroidDevicePolicyTracksItem]),+ -- | 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, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied.+ appAutoUpdatePolicy :: (Core.Maybe Policy_AppAutoUpdatePolicy),+ -- | Policy applied to apps. This can have at most 3,000 elements.+ applications :: (Core.Maybe [ApplicationPolicy]),+ -- | Optional. Controls whether AssistContent (https:\/\/developer.android.com\/reference\/android\/app\/assist\/AssistContent) is allowed to be sent to a privileged app such as an assistant app. AssistContent includes screenshots and information about an app, such as package name. This is supported on Android 15 and above.+ assistContentPolicy :: (Core.Maybe Policy_AssistContentPolicy),+ -- | Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored.+ autoDateAndTimeZone :: (Core.Maybe Policy_AutoDateAndTimeZone),+ -- | Whether auto time is required, which prevents the user from manually setting the date and time. If autoDateAndTimeZone is set, this field is ignored.+ autoTimeRequired :: (Core.Maybe Core.Bool),+ -- | Whether applications other than the ones configured in applications are blocked from being installed. When set, applications that were installed under a previous policy but no longer appear in the policy are automatically uninstalled.+ blockApplicationsEnabled :: (Core.Maybe Core.Bool),+ -- | Whether configuring bluetooth is disabled.+ bluetoothConfigDisabled :: (Core.Maybe Core.Bool),+ -- | Whether bluetooth contact sharing is disabled.+ bluetoothContactSharingDisabled :: (Core.Maybe Core.Bool),+ -- | Whether bluetooth is disabled. Prefer this setting over bluetooth/config/disabled because bluetooth/config/disabled can be bypassed by the user.+ bluetoothDisabled :: (Core.Maybe Core.Bool),+ -- | Controls the use of the camera and whether the user has access to the camera access toggle.+ cameraAccess :: (Core.Maybe Policy_CameraAccess),+ -- | If camera/access is set to any value other than CAMERA/ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether cameras are disabled: If true, all cameras are disabled, otherwise they are available. For fully managed devices this field applies for all apps on the device. For work profiles, this field applies only to apps in the work profile, and the camera access of apps outside the work profile is unaffected.+ cameraDisabled :: (Core.Maybe Core.Bool),+ -- | Whether configuring cell broadcast is disabled.+ cellBroadcastsConfigDisabled :: (Core.Maybe Core.Bool),+ -- | Rules for determining apps\' access to private keys. See ChoosePrivateKeyRule for details. This must be empty if any application has CERT_SELECTION delegation scope.+ choosePrivateKeyRules :: (Core.Maybe [ChoosePrivateKeyRule]),+ -- | Rules declaring which mitigating actions to take when a device is not compliant with its policy. When the conditions for multiple rules are satisfied, all of the mitigating actions for the rules are taken. There is a maximum limit of 100 rules. Use policy enforcement rules instead.+ complianceRules :: (Core.Maybe [ComplianceRule]),+ -- | Whether creating windows besides app windows is disabled.+ createWindowsDisabled :: (Core.Maybe Core.Bool),+ -- | Controls which apps are allowed to act as credential providers on Android 14 and above. These apps store credentials, see this (https:\/\/developer.android.com\/training\/sign-in\/passkeys) and this (https:\/\/developer.android.com\/reference\/androidx\/credentials\/CredentialManager) for details. See also credentialProviderPolicy.+ credentialProviderPolicyDefault :: (Core.Maybe Policy_CredentialProviderPolicyDefault),+ -- | Whether configuring user credentials is disabled.+ credentialsConfigDisabled :: (Core.Maybe Core.Bool),+ -- | Cross-profile policies applied on the device.+ crossProfilePolicies :: (Core.Maybe CrossProfilePolicies),+ -- | Whether roaming data services are disabled.+ dataRoamingDisabled :: (Core.Maybe Core.Bool),+ -- | Whether the user is allowed to enable debugging features.+ debuggingFeaturesAllowed :: (Core.Maybe Core.Bool),+ -- | The default permission policy for runtime permission requests.+ defaultPermissionPolicy :: (Core.Maybe Policy_DefaultPermissionPolicy),+ -- | Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard\/mouse connections, and more.+ deviceConnectivityManagement :: (Core.Maybe DeviceConnectivityManagement),+ -- | The device owner information to be shown on the lock screen.+ deviceOwnerLockScreenInfo :: (Core.Maybe UserFacingMessage),+ -- | Covers controls for radio state such as Wi-Fi, bluetooth, and more.+ deviceRadioState :: (Core.Maybe DeviceRadioState),+ -- | Optional. Controls for the display settings.+ displaySettings :: (Core.Maybe DisplaySettings),+ -- | Whether encryption is enabled+ encryptionPolicy :: (Core.Maybe Policy_EncryptionPolicy),+ -- | Whether app verification is force-enabled.+ ensureVerifyAppsEnabled :: (Core.Maybe Core.Bool),+ -- | Whether factory resetting from settings is disabled.+ factoryResetDisabled :: (Core.Maybe Core.Bool),+ -- | Email addresses of device administrators for factory reset protection. When the device is factory reset, it will require one of these admins to log in with the Google account email and password to unlock the device. If no admins are specified, the device won\'t provide factory reset protection.+ frpAdminEmails :: (Core.Maybe [Core.Text]),+ -- | Whether the user is allowed to have fun. Controls whether the Easter egg game in Settings is disabled.+ funDisabled :: (Core.Maybe Core.Bool),+ -- | Whether user installation of apps is disabled.+ installAppsDisabled :: (Core.Maybe Core.Bool),+ -- | This field has no effect.+ installUnknownSourcesAllowed :: (Core.Maybe Core.Bool),+ -- | If true, this disables the Lock Screen (https:\/\/source.android.com\/docs\/core\/display\/multi_display\/lock-screen) for primary and\/or secondary displays. This policy is supported only in dedicated device management mode.+ keyguardDisabled :: (Core.Maybe Core.Bool),+ -- | Disabled keyguard customizations, such as widgets.+ keyguardDisabledFeatures :: (Core.Maybe [Policy_KeyguardDisabledFeaturesItem]),+ -- | Whether the kiosk custom launcher is enabled. This replaces the home screen with a launcher that locks down the device to the apps installed via the applications setting. Apps appear on a single page in alphabetical order. Use kioskCustomization to further configure the kiosk device behavior.+ kioskCustomLauncherEnabled :: (Core.Maybe Core.Bool),+ -- | Settings controlling the behavior of a device in kiosk mode. To enable kiosk mode, set kioskCustomLauncherEnabled to true or specify an app in the policy with installType KIOSK.+ kioskCustomization :: (Core.Maybe KioskCustomization),+ -- | The degree of location detection enabled.+ locationMode :: (Core.Maybe Policy_LocationMode),+ -- | A message displayed to the user in the device administators settings screen.+ longSupportMessage :: (Core.Maybe UserFacingMessage),+ -- | Maximum time in milliseconds for user activity until the device locks. A value of 0 means there is no restriction.+ maximumTimeToLock :: (Core.Maybe Core.Int64),+ -- | Controls the use of the microphone and whether the user has access to the microphone access toggle. This applies only on fully managed devices.+ microphoneAccess :: (Core.Maybe Policy_MicrophoneAccess),+ -- | The minimum allowed Android API level.+ minimumApiLevel :: (Core.Maybe Core.Int32),+ -- | Whether configuring mobile networks is disabled.+ mobileNetworksConfigDisabled :: (Core.Maybe Core.Bool),+ -- | Whether adding or removing accounts is disabled.+ modifyAccountsDisabled :: (Core.Maybe Core.Bool),+ -- | Whether the user mounting physical external media is disabled.+ mountPhysicalMediaDisabled :: (Core.Maybe Core.Bool),+ -- | The name of the policy in the form enterprises\/{enterpriseId}\/policies\/{policyId}.+ name :: (Core.Maybe Core.Text),+ -- | Whether the network escape hatch is enabled. If a network connection can\'t be made at boot time, the escape hatch prompts the user to temporarily connect to a network in order to refresh the device policy. After applying policy, the temporary network will be forgotten and the device will continue booting. This prevents being unable to connect to a network if there is no suitable network in the last policy and the device boots into an app in lock task mode, or the user is otherwise unable to reach device settings.Note: Setting wifiConfigDisabled to true will override this setting under specific circumstances. Please see wifiConfigDisabled for further details. Setting configureWifi to DISALLOW/CONFIGURING/WIFI will override this setting under specific circumstances. Please see DISALLOW/CONFIGURING/WIFI for further details.+ networkEscapeHatchEnabled :: (Core.Maybe Core.Bool),+ -- | Whether resetting network settings is disabled.+ networkResetDisabled :: (Core.Maybe Core.Bool),+ -- | This feature is not generally available.+ oncCertificateProviders :: (Core.Maybe [OncCertificateProvider]),+ -- | Network configuration for the device. See configure networks for more information.+ openNetworkConfiguration :: (Core.Maybe Policy_OpenNetworkConfiguration),+ -- | Whether using NFC to beam data from apps is disabled.+ outgoingBeamDisabled :: (Core.Maybe Core.Bool),+ -- | Whether outgoing calls are disabled.+ outgoingCallsDisabled :: (Core.Maybe Core.Bool),+ -- | Password requirement policies. Different policies can be set for work profile or fully managed devices by setting the password_scope field in the policy.+ passwordPolicies :: (Core.Maybe [PasswordRequirements]),+ -- | Password requirements. The field password/requirements.require/password/unlock must not be set. DEPRECATED - Use passwordPolicies.Note:Complexity-based values of PasswordQuality, that is, COMPLEXITY/LOW, COMPLEXITY/MEDIUM, and COMPLEXITY/HIGH, cannot be used here. unified/lock/settings cannot be used here.+ passwordRequirements :: (Core.Maybe PasswordRequirements),+ -- | Explicit permission or group grants or denials for all apps. These values override the default/permission/policy.+ permissionGrants :: (Core.Maybe [PermissionGrant]),+ -- | Specifies permitted accessibility services. If the field is not set, any accessibility service can be used. If the field is set, only the accessibility services in this list and the system\'s built-in accessibility service can be used. In particular, if the field is set to empty, only the system\'s built-in accessibility servicess can be used. This can be set on fully managed devices and on work profiles. When applied to a work profile, this affects both the personal profile and the work profile.+ permittedAccessibilityServices :: (Core.Maybe PackageNameList),+ -- | If present, only the input methods provided by packages in this list are permitted. If this field is present, but the list is empty, then only system input methods are permitted.+ permittedInputMethods :: (Core.Maybe PackageNameList),+ -- | Default intent handler activities.+ persistentPreferredActivities :: (Core.Maybe [PersistentPreferredActivity]),+ -- | Policies managing personal usage on a company-owned device.+ personalUsagePolicies :: (Core.Maybe PersonalUsagePolicies),+ -- | This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy.+ playStoreMode :: (Core.Maybe Policy_PlayStoreMode),+ -- | Rules that define the behavior when a particular policy can not be applied on device+ policyEnforcementRules :: (Core.Maybe [PolicyEnforcementRule]),+ -- | Controls whether preferential network service is enabled on the work profile. For example, an organization may have an agreement with a carrier that all of the work data from its employees\' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks. This has no effect on fully managed devices.+ preferentialNetworkService :: (Core.Maybe Policy_PreferentialNetworkService),+ -- | Optional. Controls whether printing is allowed. This is supported on devices running Android 9 and above. .+ printingPolicy :: (Core.Maybe Policy_PrintingPolicy),+ -- | Allows showing UI on a device for a user to choose a private key alias if there are no matching rules in ChoosePrivateKeyRules. For devices below Android P, setting this may leave enterprise keys vulnerable. This value will have no effect if any application has CERT_SELECTION delegation scope.+ privateKeySelectionEnabled :: (Core.Maybe Core.Bool),+ -- | The network-independent global HTTP proxy. Typically proxies should be configured per-network in open/network/configuration. However for unusual configurations like general internal filtering a global HTTP proxy may be useful. If the proxy is not accessible, network access may break. The global proxy is only a recommendation and some apps may ignore it.+ recommendedGlobalProxy :: (Core.Maybe ProxyInfo),+ -- | Whether removing other users is disabled.+ removeUserDisabled :: (Core.Maybe Core.Bool),+ -- | Whether rebooting the device into safe boot is disabled.+ safeBootDisabled :: (Core.Maybe Core.Bool),+ -- | Whether screen capture is disabled.+ screenCaptureDisabled :: (Core.Maybe Core.Bool),+ -- | Whether changing the user icon is disabled. The setting has effect only on fully managed devices.+ setUserIconDisabled :: (Core.Maybe Core.Bool),+ -- | Whether changing the wallpaper is disabled.+ setWallpaperDisabled :: (Core.Maybe Core.Bool),+ -- | Action to take during the setup process. At most one action may be specified.+ setupActions :: (Core.Maybe [SetupAction]),+ -- | Whether location sharing is disabled. share/location/disabled is supported for both fully managed devices and personally owned work profiles.+ shareLocationDisabled :: (Core.Maybe Core.Bool),+ -- | A message displayed to the user in the settings screen wherever functionality has been disabled by the admin. If the message is longer than 200 characters it may be truncated.+ shortSupportMessage :: (Core.Maybe UserFacingMessage),+ -- | Flag to skip hints on the first use. Enterprise admin can enable the system recommendation for apps to skip their user tutorial and other introductory hints on first start-up.+ skipFirstUseHintsEnabled :: (Core.Maybe Core.Bool),+ -- | Whether sending and receiving SMS messages is disabled.+ smsDisabled :: (Core.Maybe Core.Bool),+ -- | Whether the status bar is disabled. This disables notifications, quick settings, and other screen overlays that allow escape from full-screen mode. DEPRECATED. To disable the status bar on a kiosk device, use InstallType KIOSK or kioskCustomLauncherEnabled.+ statusBarDisabled :: (Core.Maybe Core.Bool),+ -- | Status reporting settings+ statusReportingSettings :: (Core.Maybe StatusReportingSettings),+ -- | The battery plugged in modes for which the device stays on. When using this setting, it is recommended to clear maximum/time/to_lock so that the device doesn\'t lock itself while it stays on.+ stayOnPluggedModes :: (Core.Maybe [Policy_StayOnPluggedModesItem]),+ -- | The system update policy, which controls how OS updates are applied. If the update type is WINDOWED, the update window will automatically apply to Play app updates as well.Note: Google Play system updates (https:\/\/source.android.com\/docs\/core\/ota\/modular-system) (also called Mainline updates) are automatically downloaded and require a device reboot to be installed. Refer to the mainline section in Manage system updates (https:\/\/developer.android.com\/work\/dpc\/system-updates#mainline) for further details.+ systemUpdate :: (Core.Maybe SystemUpdate),+ -- | Whether configuring tethering and portable hotspots is disabled. If tetheringSettings is set to anything other than TETHERING/SETTINGS/UNSPECIFIED, this setting is ignored.+ tetheringConfigDisabled :: (Core.Maybe Core.Bool),+ -- | Whether user uninstallation of applications is disabled. This prevents apps from being uninstalled, even those removed using applications+ uninstallAppsDisabled :: (Core.Maybe Core.Bool),+ -- | If microphone/access is set to any value other than MICROPHONE/ACCESS_UNSPECIFIED, this has no effect. Otherwise this field controls whether microphones are disabled: If true, all microphones are disabled, otherwise they are available. This is available only on fully managed devices.+ unmuteMicrophoneDisabled :: (Core.Maybe Core.Bool),+ -- | Configuration of device activity logging.+ usageLog :: (Core.Maybe UsageLog),+ -- | Whether transferring files over USB is disabled. This is supported only on company-owned devices.+ usbFileTransferDisabled :: (Core.Maybe Core.Bool),+ -- | Whether USB storage is enabled. Deprecated.+ usbMassStorageEnabled :: (Core.Maybe Core.Bool),+ -- | The version of the policy. This is a read-only field. The version is incremented each time the policy is updated.+ version :: (Core.Maybe Core.Int64),+ -- | Whether configuring VPN is disabled.+ vpnConfigDisabled :: (Core.Maybe Core.Bool),+ -- | Whether configuring Wi-Fi networks is disabled. Supported on fully managed devices and work profiles on company-owned devices. For fully managed devices, setting this to true removes all configured networks and retains only the networks configured using openNetworkConfiguration. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. If configureWifi is set to anything other than CONFIGURE/WIFI/UNSPECIFIED, this setting is ignored. Note: If a network connection can\'t be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled).+ wifiConfigDisabled :: (Core.Maybe Core.Bool),+ -- | This is deprecated.+ wifiConfigsLockdownEnabled :: (Core.Maybe Core.Bool)+ }+ 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+ { accountTypesWithManagementDisabled = Core.Nothing,+ addUserDisabled = Core.Nothing,+ adjustVolumeDisabled = Core.Nothing,+ advancedSecurityOverrides = Core.Nothing,+ alwaysOnVpnPackage = Core.Nothing,+ androidDevicePolicyTracks = Core.Nothing,+ appAutoUpdatePolicy = Core.Nothing,+ applications = Core.Nothing,+ assistContentPolicy = Core.Nothing,+ autoDateAndTimeZone = Core.Nothing,+ autoTimeRequired = Core.Nothing,+ blockApplicationsEnabled = Core.Nothing,+ bluetoothConfigDisabled = Core.Nothing,+ bluetoothContactSharingDisabled = Core.Nothing,+ bluetoothDisabled = Core.Nothing,+ cameraAccess = Core.Nothing,+ cameraDisabled = Core.Nothing,+ cellBroadcastsConfigDisabled = Core.Nothing,+ choosePrivateKeyRules = Core.Nothing,+ complianceRules = Core.Nothing,+ createWindowsDisabled = Core.Nothing,+ credentialProviderPolicyDefault = Core.Nothing,+ credentialsConfigDisabled = Core.Nothing,+ crossProfilePolicies = Core.Nothing,+ dataRoamingDisabled = Core.Nothing,+ debuggingFeaturesAllowed = Core.Nothing,+ defaultPermissionPolicy = Core.Nothing,+ deviceConnectivityManagement = Core.Nothing,+ deviceOwnerLockScreenInfo = Core.Nothing,+ deviceRadioState = Core.Nothing,+ displaySettings = Core.Nothing,+ encryptionPolicy = Core.Nothing,+ ensureVerifyAppsEnabled = Core.Nothing,+ factoryResetDisabled = Core.Nothing,+ frpAdminEmails = Core.Nothing,+ funDisabled = Core.Nothing,+ installAppsDisabled = Core.Nothing,+ installUnknownSourcesAllowed = Core.Nothing,+ keyguardDisabled = Core.Nothing,+ keyguardDisabledFeatures = Core.Nothing,+ kioskCustomLauncherEnabled = Core.Nothing,+ kioskCustomization = Core.Nothing,+ locationMode = Core.Nothing,+ longSupportMessage = Core.Nothing,+ maximumTimeToLock = Core.Nothing,+ microphoneAccess = Core.Nothing,+ minimumApiLevel = Core.Nothing,+ mobileNetworksConfigDisabled = Core.Nothing,+ modifyAccountsDisabled = Core.Nothing,+ mountPhysicalMediaDisabled = Core.Nothing,+ name = Core.Nothing,+ networkEscapeHatchEnabled = Core.Nothing,+ networkResetDisabled = Core.Nothing,+ oncCertificateProviders = Core.Nothing,+ openNetworkConfiguration = Core.Nothing,+ outgoingBeamDisabled = Core.Nothing,+ outgoingCallsDisabled = Core.Nothing,+ passwordPolicies = Core.Nothing,+ passwordRequirements = Core.Nothing,+ permissionGrants = Core.Nothing,+ permittedAccessibilityServices = Core.Nothing,+ permittedInputMethods = Core.Nothing,+ persistentPreferredActivities = Core.Nothing,+ personalUsagePolicies = Core.Nothing,+ playStoreMode = Core.Nothing,+ policyEnforcementRules = Core.Nothing,+ preferentialNetworkService = Core.Nothing,+ printingPolicy = Core.Nothing,+ privateKeySelectionEnabled = Core.Nothing,+ recommendedGlobalProxy = Core.Nothing,+ removeUserDisabled = Core.Nothing,+ safeBootDisabled = Core.Nothing,+ screenCaptureDisabled = Core.Nothing,+ setUserIconDisabled = Core.Nothing,+ setWallpaperDisabled = Core.Nothing,+ setupActions = Core.Nothing,+ shareLocationDisabled = Core.Nothing,+ shortSupportMessage = Core.Nothing,+ skipFirstUseHintsEnabled = Core.Nothing,+ smsDisabled = Core.Nothing,+ statusBarDisabled = Core.Nothing,+ statusReportingSettings = Core.Nothing,+ stayOnPluggedModes = Core.Nothing,+ systemUpdate = Core.Nothing,+ tetheringConfigDisabled = Core.Nothing,+ uninstallAppsDisabled = Core.Nothing,+ unmuteMicrophoneDisabled = Core.Nothing,+ usageLog = Core.Nothing,+ usbFileTransferDisabled = Core.Nothing,+ usbMassStorageEnabled = Core.Nothing,+ version = Core.Nothing,+ vpnConfigDisabled = Core.Nothing,+ wifiConfigDisabled = Core.Nothing,+ wifiConfigsLockdownEnabled = Core.Nothing+ }++instance Core.FromJSON Policy where+ parseJSON =+ Core.withObject+ "Policy"+ ( \o ->+ Policy+ Core.<$> (o Core..:? "accountTypesWithManagementDisabled")+ Core.<*> (o Core..:? "addUserDisabled")+ Core.<*> (o Core..:? "adjustVolumeDisabled")+ Core.<*> (o Core..:? "advancedSecurityOverrides")+ Core.<*> (o Core..:? "alwaysOnVpnPackage")+ Core.<*> (o Core..:? "androidDevicePolicyTracks")+ Core.<*> (o Core..:? "appAutoUpdatePolicy")+ Core.<*> (o Core..:? "applications")+ Core.<*> (o Core..:? "assistContentPolicy")+ Core.<*> (o Core..:? "autoDateAndTimeZone")+ Core.<*> (o Core..:? "autoTimeRequired")+ Core.<*> (o Core..:? "blockApplicationsEnabled")+ Core.<*> (o Core..:? "bluetoothConfigDisabled")+ Core.<*> (o Core..:? "bluetoothContactSharingDisabled")+ Core.<*> (o Core..:? "bluetoothDisabled")+ Core.<*> (o Core..:? "cameraAccess")+ Core.<*> (o Core..:? "cameraDisabled")+ Core.<*> (o Core..:? "cellBroadcastsConfigDisabled")+ Core.<*> (o Core..:? "choosePrivateKeyRules")+ Core.<*> (o Core..:? "complianceRules")+ Core.<*> (o Core..:? "createWindowsDisabled")+ Core.<*> (o Core..:? "credentialProviderPolicyDefault")+ Core.<*> (o Core..:? "credentialsConfigDisabled")+ Core.<*> (o Core..:? "crossProfilePolicies")+ Core.<*> (o Core..:? "dataRoamingDisabled")+ Core.<*> (o Core..:? "debuggingFeaturesAllowed")+ Core.<*> (o Core..:? "defaultPermissionPolicy")+ Core.<*> (o Core..:? "deviceConnectivityManagement")+ Core.<*> (o Core..:? "deviceOwnerLockScreenInfo")+ Core.<*> (o Core..:? "deviceRadioState")+ Core.<*> (o Core..:? "displaySettings")+ Core.<*> (o Core..:? "encryptionPolicy")+ Core.<*> (o Core..:? "ensureVerifyAppsEnabled")+ Core.<*> (o Core..:? "factoryResetDisabled")+ Core.<*> (o Core..:? "frpAdminEmails")+ Core.<*> (o Core..:? "funDisabled")+ Core.<*> (o Core..:? "installAppsDisabled")+ Core.<*> (o Core..:? "installUnknownSourcesAllowed")+ Core.<*> (o Core..:? "keyguardDisabled")+ Core.<*> (o Core..:? "keyguardDisabledFeatures")+ Core.<*> (o Core..:? "kioskCustomLauncherEnabled")+ Core.<*> (o Core..:? "kioskCustomization")+ Core.<*> (o Core..:? "locationMode")+ Core.<*> (o Core..:? "longSupportMessage")+ Core.<*> (o Core..:? "maximumTimeToLock" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "microphoneAccess")+ Core.<*> (o Core..:? "minimumApiLevel")+ Core.<*> (o Core..:? "mobileNetworksConfigDisabled")+ Core.<*> (o Core..:? "modifyAccountsDisabled")+ Core.<*> (o Core..:? "mountPhysicalMediaDisabled")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "networkEscapeHatchEnabled")+ Core.<*> (o Core..:? "networkResetDisabled")+ Core.<*> (o Core..:? "oncCertificateProviders")+ Core.<*> (o Core..:? "openNetworkConfiguration")+ Core.<*> (o Core..:? "outgoingBeamDisabled")+ Core.<*> (o Core..:? "outgoingCallsDisabled")+ Core.<*> (o Core..:? "passwordPolicies")+ Core.<*> (o Core..:? "passwordRequirements")+ Core.<*> (o Core..:? "permissionGrants")+ Core.<*> (o Core..:? "permittedAccessibilityServices")+ Core.<*> (o Core..:? "permittedInputMethods")+ Core.<*> (o Core..:? "persistentPreferredActivities")+ Core.<*> (o Core..:? "personalUsagePolicies")+ Core.<*> (o Core..:? "playStoreMode")+ Core.<*> (o Core..:? "policyEnforcementRules")+ Core.<*> (o Core..:? "preferentialNetworkService")+ Core.<*> (o Core..:? "printingPolicy")+ Core.<*> (o Core..:? "privateKeySelectionEnabled")+ Core.<*> (o Core..:? "recommendedGlobalProxy")+ Core.<*> (o Core..:? "removeUserDisabled")+ Core.<*> (o Core..:? "safeBootDisabled")+ Core.<*> (o Core..:? "screenCaptureDisabled")+ Core.<*> (o Core..:? "setUserIconDisabled")+ Core.<*> (o Core..:? "setWallpaperDisabled")+ Core.<*> (o Core..:? "setupActions")+ Core.<*> (o Core..:? "shareLocationDisabled")+ Core.<*> (o Core..:? "shortSupportMessage")+ Core.<*> (o Core..:? "skipFirstUseHintsEnabled")+ Core.<*> (o Core..:? "smsDisabled")+ Core.<*> (o Core..:? "statusBarDisabled")+ Core.<*> (o Core..:? "statusReportingSettings")+ Core.<*> (o Core..:? "stayOnPluggedModes")+ Core.<*> (o Core..:? "systemUpdate")+ Core.<*> (o Core..:? "tetheringConfigDisabled")+ Core.<*> (o Core..:? "uninstallAppsDisabled")+ Core.<*> (o Core..:? "unmuteMicrophoneDisabled")+ Core.<*> (o Core..:? "usageLog")+ Core.<*> (o Core..:? "usbFileTransferDisabled")+ Core.<*> (o Core..:? "usbMassStorageEnabled")+ Core.<*> (o Core..:? "version" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "vpnConfigDisabled")+ Core.<*> (o Core..:? "wifiConfigDisabled")+ Core.<*> (o Core..:? "wifiConfigsLockdownEnabled")+ )++instance Core.ToJSON Policy where+ toJSON Policy {..} =+ Core.object+ ( Core.catMaybes+ [ ("accountTypesWithManagementDisabled" Core..=)+ Core.<$> accountTypesWithManagementDisabled,+ ("addUserDisabled" Core..=) Core.<$> addUserDisabled,+ ("adjustVolumeDisabled" Core..=) Core.<$> adjustVolumeDisabled,+ ("advancedSecurityOverrides" Core..=)+ Core.<$> advancedSecurityOverrides,+ ("alwaysOnVpnPackage" Core..=) Core.<$> alwaysOnVpnPackage,+ ("androidDevicePolicyTracks" Core..=)+ Core.<$> androidDevicePolicyTracks,+ ("appAutoUpdatePolicy" Core..=) Core.<$> appAutoUpdatePolicy,+ ("applications" Core..=) Core.<$> applications,+ ("assistContentPolicy" Core..=) Core.<$> assistContentPolicy,+ ("autoDateAndTimeZone" Core..=) Core.<$> autoDateAndTimeZone,+ ("autoTimeRequired" Core..=) Core.<$> autoTimeRequired,+ ("blockApplicationsEnabled" Core..=)+ Core.<$> blockApplicationsEnabled,+ ("bluetoothConfigDisabled" Core..=)+ Core.<$> bluetoothConfigDisabled,+ ("bluetoothContactSharingDisabled" Core..=)+ Core.<$> bluetoothContactSharingDisabled,+ ("bluetoothDisabled" Core..=) Core.<$> bluetoothDisabled,+ ("cameraAccess" Core..=) Core.<$> cameraAccess,+ ("cameraDisabled" Core..=) Core.<$> cameraDisabled,+ ("cellBroadcastsConfigDisabled" Core..=)+ Core.<$> cellBroadcastsConfigDisabled,+ ("choosePrivateKeyRules" Core..=) Core.<$> choosePrivateKeyRules,+ ("complianceRules" Core..=) Core.<$> complianceRules,+ ("createWindowsDisabled" Core..=) Core.<$> createWindowsDisabled,+ ("credentialProviderPolicyDefault" Core..=)+ Core.<$> credentialProviderPolicyDefault,+ ("credentialsConfigDisabled" Core..=)+ Core.<$> credentialsConfigDisabled,+ ("crossProfilePolicies" Core..=) Core.<$> crossProfilePolicies,+ ("dataRoamingDisabled" Core..=) Core.<$> dataRoamingDisabled,+ ("debuggingFeaturesAllowed" Core..=)+ Core.<$> debuggingFeaturesAllowed,+ ("defaultPermissionPolicy" Core..=)+ Core.<$> defaultPermissionPolicy,+ ("deviceConnectivityManagement" Core..=)+ Core.<$> deviceConnectivityManagement,+ ("deviceOwnerLockScreenInfo" Core..=)+ Core.<$> deviceOwnerLockScreenInfo,+ ("deviceRadioState" Core..=) Core.<$> deviceRadioState,+ ("displaySettings" Core..=) Core.<$> displaySettings,+ ("encryptionPolicy" Core..=) Core.<$> encryptionPolicy,+ ("ensureVerifyAppsEnabled" Core..=)+ Core.<$> ensureVerifyAppsEnabled,+ ("factoryResetDisabled" Core..=) Core.<$> factoryResetDisabled,+ ("frpAdminEmails" Core..=) Core.<$> frpAdminEmails,+ ("funDisabled" Core..=) Core.<$> funDisabled,+ ("installAppsDisabled" Core..=) Core.<$> installAppsDisabled,+ ("installUnknownSourcesAllowed" Core..=)+ Core.<$> installUnknownSourcesAllowed,+ ("keyguardDisabled" Core..=) Core.<$> keyguardDisabled,+ ("keyguardDisabledFeatures" Core..=)+ Core.<$> keyguardDisabledFeatures,+ ("kioskCustomLauncherEnabled" Core..=)+ Core.<$> kioskCustomLauncherEnabled,+ ("kioskCustomization" Core..=) Core.<$> kioskCustomization,+ ("locationMode" Core..=) Core.<$> locationMode,+ ("longSupportMessage" Core..=) Core.<$> longSupportMessage,+ ("maximumTimeToLock" Core..=)+ Core.. Core.AsText+ Core.<$> maximumTimeToLock,+ ("microphoneAccess" Core..=) Core.<$> microphoneAccess,+ ("minimumApiLevel" Core..=) Core.<$> minimumApiLevel,+ ("mobileNetworksConfigDisabled" Core..=)+ Core.<$> mobileNetworksConfigDisabled,+ ("modifyAccountsDisabled" Core..=) Core.<$> modifyAccountsDisabled,+ ("mountPhysicalMediaDisabled" Core..=)+ Core.<$> mountPhysicalMediaDisabled,+ ("name" Core..=) Core.<$> name,+ ("networkEscapeHatchEnabled" Core..=)+ Core.<$> networkEscapeHatchEnabled,+ ("networkResetDisabled" Core..=) Core.<$> networkResetDisabled,+ ("oncCertificateProviders" Core..=)+ Core.<$> oncCertificateProviders,+ ("openNetworkConfiguration" Core..=)+ Core.<$> openNetworkConfiguration,+ ("outgoingBeamDisabled" Core..=) Core.<$> outgoingBeamDisabled,+ ("outgoingCallsDisabled" Core..=) Core.<$> outgoingCallsDisabled,+ ("passwordPolicies" Core..=) Core.<$> passwordPolicies,+ ("passwordRequirements" Core..=) Core.<$> passwordRequirements,+ ("permissionGrants" Core..=) Core.<$> permissionGrants,+ ("permittedAccessibilityServices" Core..=)+ Core.<$> permittedAccessibilityServices,+ ("permittedInputMethods" Core..=) Core.<$> permittedInputMethods,+ ("persistentPreferredActivities" Core..=)+ Core.<$> persistentPreferredActivities,+ ("personalUsagePolicies" Core..=) Core.<$> personalUsagePolicies,+ ("playStoreMode" Core..=) Core.<$> playStoreMode,+ ("policyEnforcementRules" Core..=) Core.<$> policyEnforcementRules,+ ("preferentialNetworkService" Core..=)+ Core.<$> preferentialNetworkService,+ ("printingPolicy" Core..=) Core.<$> printingPolicy,+ ("privateKeySelectionEnabled" Core..=)+ Core.<$> privateKeySelectionEnabled,+ ("recommendedGlobalProxy" Core..=) Core.<$> recommendedGlobalProxy,+ ("removeUserDisabled" Core..=) Core.<$> removeUserDisabled,+ ("safeBootDisabled" Core..=) Core.<$> safeBootDisabled,+ ("screenCaptureDisabled" Core..=) Core.<$> screenCaptureDisabled,+ ("setUserIconDisabled" Core..=) Core.<$> setUserIconDisabled,+ ("setWallpaperDisabled" Core..=) Core.<$> setWallpaperDisabled,+ ("setupActions" Core..=) Core.<$> setupActions,+ ("shareLocationDisabled" Core..=) Core.<$> shareLocationDisabled,+ ("shortSupportMessage" Core..=) Core.<$> shortSupportMessage,+ ("skipFirstUseHintsEnabled" Core..=)+ Core.<$> skipFirstUseHintsEnabled,+ ("smsDisabled" Core..=) Core.<$> smsDisabled,+ ("statusBarDisabled" Core..=) Core.<$> statusBarDisabled,+ ("statusReportingSettings" Core..=)+ Core.<$> statusReportingSettings,+ ("stayOnPluggedModes" Core..=) Core.<$> stayOnPluggedModes,+ ("systemUpdate" Core..=) Core.<$> systemUpdate,+ ("tetheringConfigDisabled" Core..=)+ Core.<$> tetheringConfigDisabled,+ ("uninstallAppsDisabled" Core..=) Core.<$> uninstallAppsDisabled,+ ("unmuteMicrophoneDisabled" Core..=)+ Core.<$> unmuteMicrophoneDisabled,+ ("usageLog" Core..=) Core.<$> usageLog,+ ("usbFileTransferDisabled" Core..=)+ Core.<$> usbFileTransferDisabled,+ ("usbMassStorageEnabled" Core..=) Core.<$> usbMassStorageEnabled,+ ("version" Core..=) Core.. Core.AsText Core.<$> version,+ ("vpnConfigDisabled" Core..=) Core.<$> vpnConfigDisabled,+ ("wifiConfigDisabled" Core..=) Core.<$> wifiConfigDisabled,+ ("wifiConfigsLockdownEnabled" Core..=)+ Core.<$> wifiConfigsLockdownEnabled+ ]+ )++-- | Network configuration for the device. See configure networks for more information.+--+-- /See:/ 'newPolicy_OpenNetworkConfiguration' smart constructor.+newtype Policy_OpenNetworkConfiguration = Policy_OpenNetworkConfiguration+ { -- | Properties of the object.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Policy_OpenNetworkConfiguration' with the minimum fields required to make a request.+newPolicy_OpenNetworkConfiguration ::+ -- | Properties of the object. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Policy_OpenNetworkConfiguration+newPolicy_OpenNetworkConfiguration additional =+ Policy_OpenNetworkConfiguration {additional = additional}++instance Core.FromJSON Policy_OpenNetworkConfiguration where+ parseJSON =+ Core.withObject+ "Policy_OpenNetworkConfiguration"+ ( \o ->+ Policy_OpenNetworkConfiguration Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON Policy_OpenNetworkConfiguration where+ toJSON Policy_OpenNetworkConfiguration {..} = Core.toJSON additional++-- | A rule that defines the actions to take if a device or work profile is not compliant with the policy specified in settingName. In the case of multiple matching or multiple triggered enforcement rules, a merge will occur with the most severe action being taken. However, all triggered rules are still kept track of: this includes initial trigger time and all associated non-compliance details. In the situation where the most severe enforcement rule is satisfied, the next most appropriate action is applied.+--+-- /See:/ 'newPolicyEnforcementRule' smart constructor.+data PolicyEnforcementRule = PolicyEnforcementRule+ { -- | An action to block access to apps and data on a company owned device or in a work profile. This action also triggers a user-facing notification with information (where possible) on how to correct the compliance issue. Note: wipeAction must also be specified.+ blockAction :: (Core.Maybe BlockAction),+ -- | The top-level policy to enforce. For example, applications or passwordPolicies.+ settingName :: (Core.Maybe Core.Text),+ -- | An action to reset a company owned device or delete a work profile. Note: blockAction must also be specified.+ wipeAction :: (Core.Maybe WipeAction)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PolicyEnforcementRule' with the minimum fields required to make a request.+newPolicyEnforcementRule ::+ PolicyEnforcementRule+newPolicyEnforcementRule =+ PolicyEnforcementRule+ { blockAction = Core.Nothing,+ settingName = Core.Nothing,+ wipeAction = Core.Nothing+ }++instance Core.FromJSON PolicyEnforcementRule where+ parseJSON =+ Core.withObject+ "PolicyEnforcementRule"+ ( \o ->+ PolicyEnforcementRule+ Core.<$> (o Core..:? "blockAction")+ Core.<*> (o Core..:? "settingName")+ Core.<*> (o Core..:? "wipeAction")+ )++instance Core.ToJSON PolicyEnforcementRule where+ toJSON PolicyEnforcementRule {..} =+ Core.object+ ( Core.catMaybes+ [ ("blockAction" Core..=) Core.<$> blockAction,+ ("settingName" Core..=) Core.<$> settingName,+ ("wipeAction" Core..=) Core.<$> wipeAction+ ]+ )++-- | Additional details regarding the security posture of the device.+--+-- /See:/ 'newPostureDetail' smart constructor.+data PostureDetail = PostureDetail+ { -- | Corresponding admin-facing advice to mitigate this security risk and improve the security posture of the device.+ advice :: (Core.Maybe [UserFacingMessage]),+ -- | A specific security risk that negatively affects the security posture of the device.+ securityRisk :: (Core.Maybe PostureDetail_SecurityRisk)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PostureDetail' with the minimum fields required to make a request.+newPostureDetail ::+ PostureDetail+newPostureDetail =+ PostureDetail {advice = Core.Nothing, securityRisk = Core.Nothing}++instance Core.FromJSON PostureDetail where+ parseJSON =+ Core.withObject+ "PostureDetail"+ ( \o ->+ PostureDetail+ Core.<$> (o Core..:? "advice")+ Core.<*> (o Core..:? "securityRisk")+ )++instance Core.ToJSON PostureDetail where+ toJSON PostureDetail {..} =+ Core.object+ ( Core.catMaybes+ [ ("advice" Core..=) Core.<$> advice,+ ("securityRisk" Core..=) Core.<$> securityRisk+ ]+ )++-- | A power management event.+--+-- /See:/ 'newPowerManagementEvent' smart constructor.+data PowerManagementEvent = PowerManagementEvent+ { -- | For BATTERY/LEVEL/COLLECTED events, the battery level as a percentage.+ batteryLevel :: (Core.Maybe Core.Double),+ -- | The creation time of the event.+ createTime :: (Core.Maybe Core.DateTime),+ -- | Event type.+ eventType :: (Core.Maybe PowerManagementEvent_EventType)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'PowerManagementEvent' with the minimum fields required to make a request.+newPowerManagementEvent ::+ PowerManagementEvent+newPowerManagementEvent =+ PowerManagementEvent+ { batteryLevel = Core.Nothing,+ createTime = Core.Nothing,+ eventType = Core.Nothing+ }++instance Core.FromJSON PowerManagementEvent where+ parseJSON =+ Core.withObject+ "PowerManagementEvent"+ ( \o ->+ PowerManagementEvent+ Core.<$> (o Core..:? "batteryLevel")+ Core.<*> (o Core..:? "createTime")+ Core.<*> (o Core..:? "eventType")+ )++instance Core.ToJSON PowerManagementEvent where+ toJSON PowerManagementEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("batteryLevel" Core..=) Core.<$> batteryLevel,+ ("createTime" Core..=) Core.<$> createTime,+ ("eventType" Core..=) Core.<$> eventType+ ]+ )++-- | Information about a device that is available during setup.+--+-- /See:/ 'newProvisioningInfo' smart constructor.+data ProvisioningInfo = ProvisioningInfo+ { -- | The API level of the Android platform version running on the device.+ apiLevel :: (Core.Maybe Core.Int32),+ -- | The email address of the authenticated user (only present for Google Account provisioning method).+ authenticatedUserEmail :: (Core.Maybe Core.Text),+ -- | The brand of the device. For example, Google.+ brand :: (Core.Maybe Core.Text),+ -- | The name of the enterprise in the form enterprises\/{enterprise}.+ enterprise :: (Core.Maybe Core.Text),+ -- | For corporate-owned devices, IMEI number of the GSM device. For example, A1000031212.+ imei :: (Core.Maybe Core.Text),+ -- | The management mode of the device or profile.+ managementMode :: (Core.Maybe ProvisioningInfo_ManagementMode),+ -- | For corporate-owned devices, MEID number of the CDMA device. For example, A00000292788E1.+ meid :: (Core.Maybe Core.Text),+ -- | The model of the device. For example, Asus Nexus 7.+ model :: (Core.Maybe Core.Text),+ -- | The name of this resource in the form provisioningInfo\/{provisioning_info}.+ name :: (Core.Maybe Core.Text),+ -- | Ownership of the managed device.+ ownership :: (Core.Maybe ProvisioningInfo_Ownership),+ -- | For corporate-owned devices, The device serial number.+ serialNumber :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProvisioningInfo' with the minimum fields required to make a request.+newProvisioningInfo ::+ ProvisioningInfo+newProvisioningInfo =+ ProvisioningInfo+ { apiLevel = Core.Nothing,+ authenticatedUserEmail = Core.Nothing,+ brand = Core.Nothing,+ enterprise = Core.Nothing,+ imei = Core.Nothing,+ managementMode = Core.Nothing,+ meid = Core.Nothing,+ model = Core.Nothing,+ name = Core.Nothing,+ ownership = Core.Nothing,+ serialNumber = Core.Nothing+ }++instance Core.FromJSON ProvisioningInfo where+ parseJSON =+ Core.withObject+ "ProvisioningInfo"+ ( \o ->+ ProvisioningInfo+ Core.<$> (o Core..:? "apiLevel")+ Core.<*> (o Core..:? "authenticatedUserEmail")+ Core.<*> (o Core..:? "brand")+ Core.<*> (o Core..:? "enterprise")+ Core.<*> (o Core..:? "imei")+ Core.<*> (o Core..:? "managementMode")+ Core.<*> (o Core..:? "meid")+ Core.<*> (o Core..:? "model")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "ownership")+ Core.<*> (o Core..:? "serialNumber")+ )++instance Core.ToJSON ProvisioningInfo where+ toJSON ProvisioningInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("apiLevel" Core..=) Core.<$> apiLevel,+ ("authenticatedUserEmail" Core..=) Core.<$> authenticatedUserEmail,+ ("brand" Core..=) Core.<$> brand,+ ("enterprise" Core..=) Core.<$> enterprise,+ ("imei" Core..=) Core.<$> imei,+ ("managementMode" Core..=) Core.<$> managementMode,+ ("meid" Core..=) Core.<$> meid,+ ("model" Core..=) Core.<$> model,+ ("name" Core..=) Core.<$> name,+ ("ownership" Core..=) Core.<$> ownership,+ ("serialNumber" Core..=) Core.<$> serialNumber+ ]+ )++-- | Configuration info for an HTTP proxy. For a direct proxy, set the host, port, and excluded/hosts fields. For a PAC script proxy, set the pac/uri field.+--+-- /See:/ 'newProxyInfo' smart constructor.+data ProxyInfo = ProxyInfo+ { -- | For a direct proxy, the hosts for which the proxy is bypassed. The host names may contain wildcards such as *.example.com.+ excludedHosts :: (Core.Maybe [Core.Text]),+ -- | The host of the direct proxy.+ host :: (Core.Maybe Core.Text),+ -- | The URI of the PAC script used to configure the proxy.+ pacUri :: (Core.Maybe Core.Text),+ -- | The port of the direct proxy.+ port :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ProxyInfo' with the minimum fields required to make a request.+newProxyInfo ::+ ProxyInfo+newProxyInfo =+ ProxyInfo+ { excludedHosts = Core.Nothing,+ host = Core.Nothing,+ pacUri = Core.Nothing,+ port = Core.Nothing+ }++instance Core.FromJSON ProxyInfo where+ parseJSON =+ Core.withObject+ "ProxyInfo"+ ( \o ->+ ProxyInfo+ Core.<$> (o Core..:? "excludedHosts")+ Core.<*> (o Core..:? "host")+ Core.<*> (o Core..:? "pacUri")+ Core.<*> (o Core..:? "port")+ )++instance Core.ToJSON ProxyInfo where+ toJSON ProxyInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("excludedHosts" Core..=) Core.<$> excludedHosts,+ ("host" Core..=) Core.<$> host,+ ("pacUri" Core..=) Core.<$> pacUri,+ ("port" Core..=) Core.<$> port+ ]+ )++-- | The device or profile has been remotely locked via the LOCK command.+--+-- /See:/ 'newRemoteLockEvent' smart constructor.+data RemoteLockEvent = RemoteLockEvent+ { -- | Package name of the admin app requesting the change.+ adminPackageName :: (Core.Maybe Core.Text),+ -- | User ID of the admin app from the which the change was requested.+ adminUserId :: (Core.Maybe Core.Int32),+ -- | User ID in which the change was requested in.+ targetUserId :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'RemoteLockEvent' with the minimum fields required to make a request.+newRemoteLockEvent ::+ RemoteLockEvent+newRemoteLockEvent =+ RemoteLockEvent+ { adminPackageName = Core.Nothing,+ adminUserId = Core.Nothing,+ targetUserId = Core.Nothing+ }++instance Core.FromJSON RemoteLockEvent where+ parseJSON =+ Core.withObject+ "RemoteLockEvent"+ ( \o ->+ RemoteLockEvent+ Core.<$> (o Core..:? "adminPackageName")+ Core.<*> (o Core..:? "adminUserId")+ Core.<*> (o Core..:? "targetUserId")+ )++instance Core.ToJSON RemoteLockEvent where+ toJSON RemoteLockEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("adminPackageName" Core..=) Core.<$> adminPackageName,+ ("adminUserId" Core..=) Core.<$> adminUserId,+ ("targetUserId" Core..=) Core.<$> targetUserId+ ]+ )++-- | Controls for the screen brightness settings.+--+-- /See:/ 'newScreenBrightnessSettings' smart constructor.+data ScreenBrightnessSettings = ScreenBrightnessSettings+ { -- | Optional. The screen brightness between 1 and 255 where 1 is the lowest and 255 is the highest brightness. A value of 0 (default) means no screen brightness set. Any other value is rejected. screenBrightnessMode must be either BRIGHTNESS/AUTOMATIC or BRIGHTNESS/FIXED to set this. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.+ screenBrightness :: (Core.Maybe Core.Int32),+ -- | Optional. Controls the screen brightness mode.+ screenBrightnessMode :: (Core.Maybe ScreenBrightnessSettings_ScreenBrightnessMode)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ScreenBrightnessSettings' with the minimum fields required to make a request.+newScreenBrightnessSettings ::+ ScreenBrightnessSettings+newScreenBrightnessSettings =+ ScreenBrightnessSettings+ { screenBrightness = Core.Nothing,+ screenBrightnessMode = Core.Nothing+ }++instance Core.FromJSON ScreenBrightnessSettings where+ parseJSON =+ Core.withObject+ "ScreenBrightnessSettings"+ ( \o ->+ ScreenBrightnessSettings+ Core.<$> (o Core..:? "screenBrightness")+ Core.<*> (o Core..:? "screenBrightnessMode")+ )++instance Core.ToJSON ScreenBrightnessSettings where+ toJSON ScreenBrightnessSettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("screenBrightness" Core..=) Core.<$> screenBrightness,+ ("screenBrightnessMode" Core..=) Core.<$> screenBrightnessMode+ ]+ )++-- | Controls the screen timeout settings.+--+-- /See:/ 'newScreenTimeoutSettings' smart constructor.+data ScreenTimeoutSettings = ScreenTimeoutSettings+ { -- | Optional. Controls the screen timeout duration. The screen timeout duration must be greater than 0, otherwise it is rejected. Additionally, it should not be greater than maximumTimeToLock, otherwise the screen timeout is set to maximumTimeToLock and a NonComplianceDetail with INVALID/VALUE reason and SCREEN/TIMEOUT/GREATER/THAN/MAXIMUM/TIME/TO/LOCK specific reason is reported. If the screen timeout is less than a certain lower bound, it is set to the lower bound. The lower bound may vary across devices. If this is set, screenTimeoutMode must be SCREEN/TIMEOUT/ENFORCED. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.+ screenTimeout :: (Core.Maybe Core.Duration),+ -- | Optional. Controls whether the user is allowed to configure the screen timeout.+ screenTimeoutMode :: (Core.Maybe ScreenTimeoutSettings_ScreenTimeoutMode)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'ScreenTimeoutSettings' with the minimum fields required to make a request.+newScreenTimeoutSettings ::+ ScreenTimeoutSettings+newScreenTimeoutSettings =+ ScreenTimeoutSettings+ { screenTimeout = Core.Nothing,+ screenTimeoutMode = Core.Nothing+ }++instance Core.FromJSON ScreenTimeoutSettings where+ parseJSON =+ Core.withObject+ "ScreenTimeoutSettings"+ ( \o ->+ ScreenTimeoutSettings+ Core.<$> (o Core..:? "screenTimeout")+ Core.<*> (o Core..:? "screenTimeoutMode")+ )++instance Core.ToJSON ScreenTimeoutSettings where+ toJSON ScreenTimeoutSettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("screenTimeout" Core..=) Core.<$> screenTimeout,+ ("screenTimeoutMode" Core..=) Core.<$> screenTimeoutMode+ ]+ )++-- | The security posture of the device, as determined by the current device state and the policies applied.+--+-- /See:/ 'newSecurityPosture' smart constructor.+data SecurityPosture = SecurityPosture+ { -- | Device\'s security posture value.+ devicePosture :: (Core.Maybe SecurityPosture_DevicePosture),+ -- | Additional details regarding the security posture of the device.+ postureDetails :: (Core.Maybe [PostureDetail])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SecurityPosture' with the minimum fields required to make a request.+newSecurityPosture ::+ SecurityPosture+newSecurityPosture =+ SecurityPosture+ { devicePosture = Core.Nothing,+ postureDetails = Core.Nothing+ }++instance Core.FromJSON SecurityPosture where+ parseJSON =+ Core.withObject+ "SecurityPosture"+ ( \o ->+ SecurityPosture+ Core.<$> (o Core..:? "devicePosture")+ Core.<*> (o Core..:? "postureDetails")+ )++instance Core.ToJSON SecurityPosture where+ toJSON SecurityPosture {..} =+ Core.object+ ( Core.catMaybes+ [ ("devicePosture" Core..=) Core.<$> devicePosture,+ ("postureDetails" Core..=) Core.<$> postureDetails+ ]+ )++-- | An action executed during setup.+--+-- /See:/ 'newSetupAction' smart constructor.+data SetupAction = SetupAction+ { -- | Description of this action.+ description :: (Core.Maybe UserFacingMessage),+ -- | An action to launch an app. The app will be launched with an intent containing an extra with key com.google.android.apps.work.clouddpc.EXTRA/LAUNCHED/AS/SETUP/ACTION set to the boolean value true to indicate that this is a setup action flow. If SetupAction references an app, the corresponding installType in the application policy must be set as REQUIRED/FOR/SETUP or said setup will fail.+ launchApp :: (Core.Maybe LaunchAppAction),+ -- | Title of this action.+ title :: (Core.Maybe UserFacingMessage)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SetupAction' with the minimum fields required to make a request.+newSetupAction ::+ SetupAction+newSetupAction =+ SetupAction+ { description = Core.Nothing,+ launchApp = Core.Nothing,+ title = Core.Nothing+ }++instance Core.FromJSON SetupAction where+ parseJSON =+ Core.withObject+ "SetupAction"+ ( \o ->+ SetupAction+ Core.<$> (o Core..:? "description")+ Core.<*> (o Core..:? "launchApp")+ Core.<*> (o Core..:? "title")+ )++instance Core.ToJSON SetupAction where+ toJSON SetupAction {..} =+ Core.object+ ( Core.catMaybes+ [ ("description" Core..=) Core.<$> description,+ ("launchApp" Core..=) Core.<$> launchApp,+ ("title" Core..=) Core.<$> title+ ]+ )++-- | A resource containing sign in details for an enterprise. Use enterprises to manage SigninDetails for a given enterprise.For an enterprise, we can have any number of SigninDetails that is uniquely identified by combination of the following three fields (signin/url, allow/personal/usage, token/tag). One cannot create two SigninDetails with the same (signin/url, allow/personal/usage, token/tag). (token/tag is an optional field).Patch: The operation updates the current list of SigninDetails with the new list of SigninDetails. If the stored SigninDetail configuration is passed, it returns the same signin/enrollment/token and qr/code. If we pass multiple identical SigninDetail configurations that are not stored, it will store the first one amongst those SigninDetail configurations. if the configuration already exists we cannot request it more than once in a particular patch API call, otherwise it will give a duplicate key error and the whole operation will fail. If we remove certain SigninDetail configuration from+-- the request then it will get removed from the storage. We can then request another signin/enrollment/token and qr_code for the same SigninDetail configuration.+--+-- /See:/ 'newSigninDetail' smart constructor.+data SigninDetail = SigninDetail+ { -- | Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.+ allowPersonalUsage :: (Core.Maybe SigninDetail_AllowPersonalUsage),+ -- | Optional. Whether the sign-in URL should be used by default for the enterprise. The SigninDetail with defaultStatus set to SIGNIN/DETAIL/IS/DEFAULT is used for Google account enrollment method. Only one of an enterprise\'s signinDetails can have defaultStatus set to SIGNIN/DETAIL/IS/DEFAULT. If an Enterprise has at least one signinDetails and none of them have defaultStatus set to SIGNIN/DETAIL/IS/DEFAULT then the first one from the list is selected and has set defaultStatus to SIGNIN/DETAIL/IS/DEFAULT. If no signinDetails specified for the Enterprise then the Google Account device enrollment will fail.+ defaultStatus :: (Core.Maybe SigninDetail_DefaultStatus),+ -- | A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON. This is a read-only field generated by the server.+ qrCode :: (Core.Maybe Core.Text),+ -- | An enterprise wide enrollment token used to trigger custom sign-in flow. This is a read-only field generated by the server.+ signinEnrollmentToken :: (Core.Maybe Core.Text),+ -- | Sign-in URL for authentication when device is provisioned with a sign-in enrollment token. The sign-in endpoint should finish authentication flow with a URL in the form of https:\/\/enterprise.google.com\/android\/enroll?et= for a successful login, or https:\/\/enterprise.google.com\/android\/enroll\/invalid for a failed login.+ signinUrl :: (Core.Maybe Core.Text),+ -- | An EMM-specified metadata to distinguish between instances of SigninDetail.+ tokenTag :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SigninDetail' with the minimum fields required to make a request.+newSigninDetail ::+ SigninDetail+newSigninDetail =+ SigninDetail+ { allowPersonalUsage = Core.Nothing,+ defaultStatus = Core.Nothing,+ qrCode = Core.Nothing,+ signinEnrollmentToken = Core.Nothing,+ signinUrl = Core.Nothing,+ tokenTag = Core.Nothing+ }++instance Core.FromJSON SigninDetail where+ parseJSON =+ Core.withObject+ "SigninDetail"+ ( \o ->+ SigninDetail+ Core.<$> (o Core..:? "allowPersonalUsage")+ Core.<*> (o Core..:? "defaultStatus")+ Core.<*> (o Core..:? "qrCode")+ Core.<*> (o Core..:? "signinEnrollmentToken")+ Core.<*> (o Core..:? "signinUrl")+ Core.<*> (o Core..:? "tokenTag")+ )++instance Core.ToJSON SigninDetail where+ toJSON SigninDetail {..} =+ Core.object+ ( Core.catMaybes+ [ ("allowPersonalUsage" Core..=) Core.<$> allowPersonalUsage,+ ("defaultStatus" Core..=) Core.<$> defaultStatus,+ ("qrCode" Core..=) Core.<$> qrCode,+ ("signinEnrollmentToken" Core..=) Core.<$> signinEnrollmentToken,+ ("signinUrl" Core..=) Core.<$> signinUrl,+ ("tokenTag" Core..=) Core.<$> tokenTag+ ]+ )++-- | An enterprise signup URL.+--+-- /See:/ 'newSignupUrl' smart constructor.+data SignupUrl = SignupUrl+ { -- | The name of the resource. Use this value in the signupUrl field when calling enterprises.create to complete the enterprise signup flow.+ name :: (Core.Maybe Core.Text),+ -- | A URL where an enterprise admin can register 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 'SignupUrl' with the minimum fields required to make a request.+newSignupUrl ::+ SignupUrl+newSignupUrl = SignupUrl {name = Core.Nothing, url = Core.Nothing}++instance Core.FromJSON SignupUrl where+ parseJSON =+ Core.withObject+ "SignupUrl"+ ( \o ->+ SignupUrl Core.<$> (o Core..:? "name") Core.<*> (o Core..:? "url")+ )++instance Core.ToJSON SignupUrl where+ toJSON SignupUrl {..} =+ Core.object+ ( Core.catMaybes+ [("name" Core..=) Core.<$> name, ("url" Core..=) Core.<$> url]+ )++-- | Information about device software.+--+-- /See:/ 'newSoftwareInfo' smart constructor.+data SoftwareInfo = SoftwareInfo+ { -- | Android build ID string meant for displaying to the user. For example, shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.+ androidBuildNumber :: (Core.Maybe Core.Text),+ -- | Build time.+ androidBuildTime :: (Core.Maybe Core.DateTime),+ -- | The Android Device Policy app version code.+ androidDevicePolicyVersionCode :: (Core.Maybe Core.Int32),+ -- | The Android Device Policy app version as displayed to the user.+ androidDevicePolicyVersionName :: (Core.Maybe Core.Text),+ -- | The user-visible Android version string. For example, 6.0.1.+ androidVersion :: (Core.Maybe Core.Text),+ -- | The system bootloader version number, e.g. 0.6.7.+ bootloaderVersion :: (Core.Maybe Core.Text),+ -- | SHA-256 hash of android.content.pm.Signature (https:\/\/developer.android.com\/reference\/android\/content\/pm\/Signature.html) associated with the system package, which can be used to verify that the system build hasn\'t been modified.+ deviceBuildSignature :: (Core.Maybe Core.Text),+ -- | Kernel version, for example, 2.6.32.9-g103d848.+ deviceKernelVersion :: (Core.Maybe Core.Text),+ -- | An IETF BCP 47 language code for the primary locale on the device.+ primaryLanguageCode :: (Core.Maybe Core.Text),+ -- | Security patch level, e.g. 2016-05-01.+ securityPatchLevel :: (Core.Maybe Core.Text),+ -- | Information about a potential pending system update.+ systemUpdateInfo :: (Core.Maybe SystemUpdateInfo)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SoftwareInfo' with the minimum fields required to make a request.+newSoftwareInfo ::+ SoftwareInfo+newSoftwareInfo =+ SoftwareInfo+ { androidBuildNumber = Core.Nothing,+ androidBuildTime = Core.Nothing,+ androidDevicePolicyVersionCode = Core.Nothing,+ androidDevicePolicyVersionName = Core.Nothing,+ androidVersion = Core.Nothing,+ bootloaderVersion = Core.Nothing,+ deviceBuildSignature = Core.Nothing,+ deviceKernelVersion = Core.Nothing,+ primaryLanguageCode = Core.Nothing,+ securityPatchLevel = Core.Nothing,+ systemUpdateInfo = Core.Nothing+ }++instance Core.FromJSON SoftwareInfo where+ parseJSON =+ Core.withObject+ "SoftwareInfo"+ ( \o ->+ SoftwareInfo+ Core.<$> (o Core..:? "androidBuildNumber")+ Core.<*> (o Core..:? "androidBuildTime")+ Core.<*> (o Core..:? "androidDevicePolicyVersionCode")+ Core.<*> (o Core..:? "androidDevicePolicyVersionName")+ Core.<*> (o Core..:? "androidVersion")+ Core.<*> (o Core..:? "bootloaderVersion")+ Core.<*> (o Core..:? "deviceBuildSignature")+ Core.<*> (o Core..:? "deviceKernelVersion")+ Core.<*> (o Core..:? "primaryLanguageCode")+ Core.<*> (o Core..:? "securityPatchLevel")+ Core.<*> (o Core..:? "systemUpdateInfo")+ )++instance Core.ToJSON SoftwareInfo where+ toJSON SoftwareInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("androidBuildNumber" Core..=) Core.<$> androidBuildNumber,+ ("androidBuildTime" Core..=) Core.<$> androidBuildTime,+ ("androidDevicePolicyVersionCode" Core..=)+ Core.<$> androidDevicePolicyVersionCode,+ ("androidDevicePolicyVersionName" Core..=)+ Core.<$> androidDevicePolicyVersionName,+ ("androidVersion" Core..=) Core.<$> androidVersion,+ ("bootloaderVersion" Core..=) Core.<$> bootloaderVersion,+ ("deviceBuildSignature" Core..=) Core.<$> deviceBuildSignature,+ ("deviceKernelVersion" Core..=) Core.<$> deviceKernelVersion,+ ("primaryLanguageCode" Core..=) Core.<$> primaryLanguageCode,+ ("securityPatchLevel" Core..=) Core.<$> securityPatchLevel,+ ("systemUpdateInfo" Core..=) Core.<$> systemUpdateInfo+ ]+ )++-- | Additional context for SpecificNonComplianceReason.+--+-- /See:/ 'newSpecificNonComplianceContext' smart constructor.+data SpecificNonComplianceContext = SpecificNonComplianceContext+ { -- | Additional context for non-compliance related to Wi-Fi configuration. See ONC/WIFI/INVALID/VALUE and ONC/WIFI/API/LEVEL+ oncWifiContext :: (Core.Maybe OncWifiContext),+ -- | Additional context for non-compliance related to password policies. See PASSWORD/POLICIES/PASSWORD/EXPIRED and PASSWORD/POLICIES/PASSWORD/NOT_SUFFICIENT.+ passwordPoliciesContext :: (Core.Maybe PasswordPoliciesContext)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SpecificNonComplianceContext' with the minimum fields required to make a request.+newSpecificNonComplianceContext ::+ SpecificNonComplianceContext+newSpecificNonComplianceContext =+ SpecificNonComplianceContext+ { oncWifiContext = Core.Nothing,+ passwordPoliciesContext = Core.Nothing+ }++instance Core.FromJSON SpecificNonComplianceContext where+ parseJSON =+ Core.withObject+ "SpecificNonComplianceContext"+ ( \o ->+ SpecificNonComplianceContext+ Core.<$> (o Core..:? "oncWifiContext")+ Core.<*> (o Core..:? "passwordPoliciesContext")+ )++instance Core.ToJSON SpecificNonComplianceContext where+ toJSON SpecificNonComplianceContext {..} =+ Core.object+ ( Core.catMaybes+ [ ("oncWifiContext" Core..=) Core.<$> oncWifiContext,+ ("passwordPoliciesContext" Core..=)+ Core.<$> passwordPoliciesContext+ ]+ )++-- | Parameters associated with the START/LOST/MODE command to put the device into lost mode. At least one of the parameters, not including the organization name, must be provided in order for the device to be put into lost mode.+--+-- /See:/ 'newStartLostModeParams' smart constructor.+data StartLostModeParams = StartLostModeParams+ { -- | The email address displayed to the user when the device is in lost mode.+ lostEmailAddress :: (Core.Maybe Core.Text),+ -- | The message displayed to the user when the device is in lost mode.+ lostMessage :: (Core.Maybe UserFacingMessage),+ -- | The organization name displayed to the user when the device is in lost mode.+ lostOrganization :: (Core.Maybe UserFacingMessage),+ -- | The phone number that will be called when the device is in lost mode and the call owner button is tapped.+ lostPhoneNumber :: (Core.Maybe UserFacingMessage),+ -- | The street address displayed to the user when the device is in lost mode.+ lostStreetAddress :: (Core.Maybe UserFacingMessage)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StartLostModeParams' with the minimum fields required to make a request.+newStartLostModeParams ::+ StartLostModeParams+newStartLostModeParams =+ StartLostModeParams+ { lostEmailAddress = Core.Nothing,+ lostMessage = Core.Nothing,+ lostOrganization = Core.Nothing,+ lostPhoneNumber = Core.Nothing,+ lostStreetAddress = Core.Nothing+ }++instance Core.FromJSON StartLostModeParams where+ parseJSON =+ Core.withObject+ "StartLostModeParams"+ ( \o ->+ StartLostModeParams+ Core.<$> (o Core..:? "lostEmailAddress")+ Core.<*> (o Core..:? "lostMessage")+ Core.<*> (o Core..:? "lostOrganization")+ Core.<*> (o Core..:? "lostPhoneNumber")+ Core.<*> (o Core..:? "lostStreetAddress")+ )++instance Core.ToJSON StartLostModeParams where+ toJSON StartLostModeParams {..} =+ Core.object+ ( Core.catMaybes+ [ ("lostEmailAddress" Core..=) Core.<$> lostEmailAddress,+ ("lostMessage" Core..=) Core.<$> lostMessage,+ ("lostOrganization" Core..=) Core.<$> lostOrganization,+ ("lostPhoneNumber" Core..=) Core.<$> lostPhoneNumber,+ ("lostStreetAddress" Core..=) Core.<$> lostStreetAddress+ ]+ )++-- | Status of the START/LOST/MODE command to put the device into lost mode.+--+-- /See:/ 'newStartLostModeStatus' smart constructor.+newtype StartLostModeStatus = StartLostModeStatus+ { -- | The status. See StartLostModeStatus.+ status :: (Core.Maybe StartLostModeStatus_Status)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StartLostModeStatus' with the minimum fields required to make a request.+newStartLostModeStatus ::+ StartLostModeStatus+newStartLostModeStatus = StartLostModeStatus {status = Core.Nothing}++instance Core.FromJSON StartLostModeStatus where+ parseJSON =+ Core.withObject+ "StartLostModeStatus"+ (\o -> StartLostModeStatus Core.<$> (o Core..:? "status"))++instance Core.ToJSON StartLostModeStatus where+ toJSON StartLostModeStatus {..} =+ Core.object (Core.catMaybes [("status" Core..=) Core.<$> status])++-- | The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC (https:\/\/github.com\/grpc). Each Status message contains three pieces of data: error code, error message, and error details.You can find out more about this error model and how to work with it in the API Design Guide (https:\/\/cloud.google.com\/apis\/design\/errors).+--+-- /See:/ 'newStatus' smart constructor.+data Status = Status+ { -- | The status code, which should be an enum value of google.rpc.Code.+ code :: (Core.Maybe Core.Int32),+ -- | A list of messages that carry the error details. There is a common set of message types for APIs to use.+ details :: (Core.Maybe [Status_DetailsItem]),+ -- | A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.+ message :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Status' with the minimum fields required to make a request.+newStatus ::+ Status+newStatus =+ Status+ { code = Core.Nothing,+ details = Core.Nothing,+ message = Core.Nothing+ }++instance Core.FromJSON Status where+ parseJSON =+ Core.withObject+ "Status"+ ( \o ->+ Status+ Core.<$> (o Core..:? "code")+ Core.<*> (o Core..:? "details")+ Core.<*> (o Core..:? "message")+ )++instance Core.ToJSON Status where+ toJSON Status {..} =+ Core.object+ ( Core.catMaybes+ [ ("code" Core..=) Core.<$> code,+ ("details" Core..=) Core.<$> details,+ ("message" Core..=) Core.<$> message+ ]+ )++--+-- /See:/ 'newStatus_DetailsItem' smart constructor.+newtype Status_DetailsItem = Status_DetailsItem+ { -- | Properties of the object. Contains field \@type with type URL.+ additional :: (Core.HashMap Core.Text Core.Value)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'Status_DetailsItem' with the minimum fields required to make a request.+newStatus_DetailsItem ::+ -- | Properties of the object. Contains field \@type with type URL. See 'additional'.+ Core.HashMap Core.Text Core.Value ->+ Status_DetailsItem+newStatus_DetailsItem additional =+ Status_DetailsItem {additional = additional}++instance Core.FromJSON Status_DetailsItem where+ parseJSON =+ Core.withObject+ "Status_DetailsItem"+ (\o -> Status_DetailsItem Core.<$> (Core.parseJSONObject o))++instance Core.ToJSON Status_DetailsItem where+ toJSON Status_DetailsItem {..} = Core.toJSON additional++-- | Settings controlling the behavior of status reports.+--+-- /See:/ 'newStatusReportingSettings' smart constructor.+data StatusReportingSettings = StatusReportingSettings+ { -- | Application reporting settings. Only applicable if application/reports/enabled is true.+ applicationReportingSettings :: (Core.Maybe ApplicationReportingSettings),+ -- | Whether app reports are enabled.+ applicationReportsEnabled :: (Core.Maybe Core.Bool),+ -- | Whether Common Criteria Mode reporting is enabled. This is supported only on company-owned devices.+ commonCriteriaModeEnabled :: (Core.Maybe Core.Bool),+ -- | Whether device settings reporting is enabled.+ deviceSettingsEnabled :: (Core.Maybe Core.Bool),+ -- | Whether displays reporting is enabled. Report data is not available for personally owned devices with work profiles.+ displayInfoEnabled :: (Core.Maybe Core.Bool),+ -- | Whether hardware status reporting is enabled. Report data is not available for personally owned devices with work profiles.+ hardwareStatusEnabled :: (Core.Maybe Core.Bool),+ -- | Whether memory event reporting is enabled.+ memoryInfoEnabled :: (Core.Maybe Core.Bool),+ -- | Whether network info reporting is enabled.+ networkInfoEnabled :: (Core.Maybe Core.Bool),+ -- | Whether power management event reporting is enabled. Report data is not available for personally owned devices with work profiles.+ powerManagementEventsEnabled :: (Core.Maybe Core.Bool),+ -- | Whether software info reporting is enabled.+ softwareInfoEnabled :: (Core.Maybe Core.Bool),+ -- | Whether system properties reporting is enabled.+ systemPropertiesEnabled :: (Core.Maybe Core.Bool)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StatusReportingSettings' with the minimum fields required to make a request.+newStatusReportingSettings ::+ StatusReportingSettings+newStatusReportingSettings =+ StatusReportingSettings+ { applicationReportingSettings =+ Core.Nothing,+ applicationReportsEnabled = Core.Nothing,+ commonCriteriaModeEnabled = Core.Nothing,+ deviceSettingsEnabled = Core.Nothing,+ displayInfoEnabled = Core.Nothing,+ hardwareStatusEnabled = Core.Nothing,+ memoryInfoEnabled = Core.Nothing,+ networkInfoEnabled = Core.Nothing,+ powerManagementEventsEnabled = Core.Nothing,+ softwareInfoEnabled = Core.Nothing,+ systemPropertiesEnabled = Core.Nothing+ }++instance Core.FromJSON StatusReportingSettings where+ parseJSON =+ Core.withObject+ "StatusReportingSettings"+ ( \o ->+ StatusReportingSettings+ Core.<$> (o Core..:? "applicationReportingSettings")+ Core.<*> (o Core..:? "applicationReportsEnabled")+ Core.<*> (o Core..:? "commonCriteriaModeEnabled")+ Core.<*> (o Core..:? "deviceSettingsEnabled")+ Core.<*> (o Core..:? "displayInfoEnabled")+ Core.<*> (o Core..:? "hardwareStatusEnabled")+ Core.<*> (o Core..:? "memoryInfoEnabled")+ Core.<*> (o Core..:? "networkInfoEnabled")+ Core.<*> (o Core..:? "powerManagementEventsEnabled")+ Core.<*> (o Core..:? "softwareInfoEnabled")+ Core.<*> (o Core..:? "systemPropertiesEnabled")+ )++instance Core.ToJSON StatusReportingSettings where+ toJSON StatusReportingSettings {..} =+ Core.object+ ( Core.catMaybes+ [ ("applicationReportingSettings" Core..=)+ Core.<$> applicationReportingSettings,+ ("applicationReportsEnabled" Core..=)+ Core.<$> applicationReportsEnabled,+ ("commonCriteriaModeEnabled" Core..=)+ Core.<$> commonCriteriaModeEnabled,+ ("deviceSettingsEnabled" Core..=) Core.<$> deviceSettingsEnabled,+ ("displayInfoEnabled" Core..=) Core.<$> displayInfoEnabled,+ ("hardwareStatusEnabled" Core..=) Core.<$> hardwareStatusEnabled,+ ("memoryInfoEnabled" Core..=) Core.<$> memoryInfoEnabled,+ ("networkInfoEnabled" Core..=) Core.<$> networkInfoEnabled,+ ("powerManagementEventsEnabled" Core..=)+ Core.<$> powerManagementEventsEnabled,+ ("softwareInfoEnabled" Core..=) Core.<$> softwareInfoEnabled,+ ("systemPropertiesEnabled" Core..=)+ Core.<$> systemPropertiesEnabled+ ]+ )++-- | Parameters associated with the STOP/LOST/MODE command to take the device out of lost mode.+--+-- /See:/ 'newStopLostModeParams' smart constructor.+data StopLostModeParams = StopLostModeParams+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StopLostModeParams' with the minimum fields required to make a request.+newStopLostModeParams ::+ StopLostModeParams+newStopLostModeParams = StopLostModeParams++instance Core.FromJSON StopLostModeParams where+ parseJSON =+ Core.withObject+ "StopLostModeParams"+ (\o -> Core.pure StopLostModeParams)++instance Core.ToJSON StopLostModeParams where+ toJSON = Core.const Core.emptyObject++-- | Status of the STOP/LOST/MODE command to take the device out of lost mode.+--+-- /See:/ 'newStopLostModeStatus' smart constructor.+newtype StopLostModeStatus = StopLostModeStatus+ { -- | The status. See StopLostModeStatus.+ status :: (Core.Maybe StopLostModeStatus_Status)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StopLostModeStatus' with the minimum fields required to make a request.+newStopLostModeStatus ::+ StopLostModeStatus+newStopLostModeStatus = StopLostModeStatus {status = Core.Nothing}++instance Core.FromJSON StopLostModeStatus where+ parseJSON =+ Core.withObject+ "StopLostModeStatus"+ (\o -> StopLostModeStatus Core.<$> (o Core..:? "status"))++instance Core.ToJSON StopLostModeStatus where+ toJSON StopLostModeStatus {..} =+ Core.object (Core.catMaybes [("status" Core..=) Core.<$> status])++-- | A lost mode event indicating the user has attempted to stop lost mode.+--+-- /See:/ 'newStopLostModeUserAttemptEvent' smart constructor.+newtype StopLostModeUserAttemptEvent = StopLostModeUserAttemptEvent+ { -- | The status of the attempt to stop lost mode.+ status :: (Core.Maybe StopLostModeUserAttemptEvent_Status)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'StopLostModeUserAttemptEvent' with the minimum fields required to make a request.+newStopLostModeUserAttemptEvent ::+ StopLostModeUserAttemptEvent+newStopLostModeUserAttemptEvent =+ StopLostModeUserAttemptEvent {status = Core.Nothing}++instance Core.FromJSON StopLostModeUserAttemptEvent where+ parseJSON =+ Core.withObject+ "StopLostModeUserAttemptEvent"+ ( \o ->+ StopLostModeUserAttemptEvent Core.<$> (o Core..:? "status")+ )++instance Core.ToJSON StopLostModeUserAttemptEvent where+ toJSON StopLostModeUserAttemptEvent {..} =+ Core.object (Core.catMaybes [("status" Core..=) Core.<$> status])++-- | Configuration for managing system updatesNote: Google Play system updates (https:\/\/source.android.com\/docs\/core\/ota\/modular-system) (also called Mainline updates) are automatically downloaded but require a device reboot to be installed. Refer to the mainline section in Manage system updates (https:\/\/developer.android.com\/work\/dpc\/system-updates#mainline) for further details.+--+-- /See:/ 'newSystemUpdate' smart constructor.+data SystemUpdate = SystemUpdate+ { -- | If the type is WINDOWED, the end of the maintenance window, measured as the number of minutes after midnight in device\'s local time. This value must be between 0 and 1439, inclusive. If this value is less than start_minutes, then the maintenance window spans midnight. If the maintenance window specified is smaller than 30 minutes, the actual window is extended to 30 minutes beyond the start time.+ endMinutes :: (Core.Maybe Core.Int32),+ -- | An annually repeating time period in which over-the-air (OTA) system updates are postponed to freeze the OS version running on a device. To prevent freezing the device indefinitely, each freeze period must be separated by at least 60 days.+ freezePeriods :: (Core.Maybe [FreezePeriod]),+ -- | If the type is WINDOWED, the start of the maintenance window, measured as the number of minutes after midnight in the device\'s local time. This value must be between 0 and 1439, inclusive.+ startMinutes :: (Core.Maybe Core.Int32),+ -- | The type of system update to configure.+ type' :: (Core.Maybe SystemUpdate_Type)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SystemUpdate' with the minimum fields required to make a request.+newSystemUpdate ::+ SystemUpdate+newSystemUpdate =+ SystemUpdate+ { endMinutes = Core.Nothing,+ freezePeriods = Core.Nothing,+ startMinutes = Core.Nothing,+ type' = Core.Nothing+ }++instance Core.FromJSON SystemUpdate where+ parseJSON =+ Core.withObject+ "SystemUpdate"+ ( \o ->+ SystemUpdate+ Core.<$> (o Core..:? "endMinutes")+ Core.<*> (o Core..:? "freezePeriods")+ Core.<*> (o Core..:? "startMinutes")+ Core.<*> (o Core..:? "type")+ )++instance Core.ToJSON SystemUpdate where+ toJSON SystemUpdate {..} =+ Core.object+ ( Core.catMaybes+ [ ("endMinutes" Core..=) Core.<$> endMinutes,+ ("freezePeriods" Core..=) Core.<$> freezePeriods,+ ("startMinutes" Core..=) Core.<$> startMinutes,+ ("type" Core..=) Core.<$> type'+ ]+ )++-- | Information about a potential pending system update.+--+-- /See:/ 'newSystemUpdateInfo' smart constructor.+data SystemUpdateInfo = SystemUpdateInfo+ { -- | The time when the update was first available. A zero value indicates that this field is not set. This field is set only if an update is available (that is, updateStatus is neither UPDATE/STATUS/UNKNOWN nor UP/TO/DATE).+ updateReceivedTime :: (Core.Maybe Core.DateTime),+ -- | The status of an update: whether an update exists and what type it is.+ updateStatus :: (Core.Maybe SystemUpdateInfo_UpdateStatus)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'SystemUpdateInfo' with the minimum fields required to make a request.+newSystemUpdateInfo ::+ SystemUpdateInfo+newSystemUpdateInfo =+ SystemUpdateInfo+ { updateReceivedTime = Core.Nothing,+ updateStatus = Core.Nothing+ }++instance Core.FromJSON SystemUpdateInfo where+ parseJSON =+ Core.withObject+ "SystemUpdateInfo"+ ( \o ->+ SystemUpdateInfo+ Core.<$> (o Core..:? "updateReceivedTime")+ Core.<*> (o Core..:? "updateStatus")+ )++instance Core.ToJSON SystemUpdateInfo where+ toJSON SystemUpdateInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("updateReceivedTime" Core..=) Core.<$> updateReceivedTime,+ ("updateStatus" Core..=) Core.<$> updateStatus+ ]+ )++-- | Telephony information associated with a given SIM card on the device. Only supported on fully managed devices starting from Android API level 23.+--+-- /See:/ 'newTelephonyInfo' smart constructor.+data TelephonyInfo = TelephonyInfo+ { -- | The carrier name associated with this SIM card.+ carrierName :: (Core.Maybe Core.Text),+ -- | Output only. The ICCID associated with this SIM card.+ iccId :: (Core.Maybe Core.Text),+ -- | The phone number associated with this SIM card.+ phoneNumber :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TelephonyInfo' with the minimum fields required to make a request.+newTelephonyInfo ::+ TelephonyInfo+newTelephonyInfo =+ TelephonyInfo+ { carrierName = Core.Nothing,+ iccId = Core.Nothing,+ phoneNumber = Core.Nothing+ }++instance Core.FromJSON TelephonyInfo where+ parseJSON =+ Core.withObject+ "TelephonyInfo"+ ( \o ->+ TelephonyInfo+ Core.<$> (o Core..:? "carrierName")+ Core.<*> (o Core..:? "iccId")+ Core.<*> (o Core..:? "phoneNumber")+ )++instance Core.ToJSON TelephonyInfo where+ toJSON TelephonyInfo {..} =+ Core.object+ ( Core.catMaybes+ [ ("carrierName" Core..=) Core.<$> carrierName,+ ("iccId" Core..=) Core.<$> iccId,+ ("phoneNumber" Core..=) Core.<$> phoneNumber+ ]+ )++-- | A terms and conditions page to be accepted during provisioning.+--+-- /See:/ 'newTermsAndConditions' smart constructor.+data TermsAndConditions = TermsAndConditions+ { -- | A well-formatted HTML string. It will be parsed on the client with android.text.Html#fromHtml.+ content :: (Core.Maybe UserFacingMessage),+ -- | A short header which appears above the HTML content.+ header :: (Core.Maybe UserFacingMessage)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'TermsAndConditions' with the minimum fields required to make a request.+newTermsAndConditions ::+ TermsAndConditions+newTermsAndConditions =+ TermsAndConditions {content = Core.Nothing, header = Core.Nothing}++instance Core.FromJSON TermsAndConditions where+ parseJSON =+ Core.withObject+ "TermsAndConditions"+ ( \o ->+ TermsAndConditions+ Core.<$> (o Core..:? "content")+ Core.<*> (o Core..:? "header")+ )++instance Core.ToJSON TermsAndConditions where+ toJSON TermsAndConditions {..} =+ Core.object+ ( Core.catMaybes+ [ ("content" Core..=) Core.<$> content,+ ("header" Core..=) Core.<$> header+ ]+ )++-- | Controls types of device activity logs collected from the device and reported via Pub\/Sub notification (https:\/\/developers.google.com\/android\/management\/notifications).+--+-- /See:/ 'newUsageLog' smart constructor.+data UsageLog = UsageLog+ { -- | Specifies which log types are enabled. Note that users will receive on-device messaging when usage logging is enabled.+ enabledLogTypes :: (Core.Maybe [UsageLog_EnabledLogTypesItem]),+ -- | Specifies which of the enabled log types can be uploaded over mobile data. By default logs are queued for upload when the device connects to WiFi.+ uploadOnCellularAllowed :: (Core.Maybe [UsageLog_UploadOnCellularAllowedItem])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UsageLog' with the minimum fields required to make a request.+newUsageLog ::+ UsageLog+newUsageLog =+ UsageLog+ { enabledLogTypes = Core.Nothing,+ uploadOnCellularAllowed = Core.Nothing+ }++instance Core.FromJSON UsageLog where+ parseJSON =+ Core.withObject+ "UsageLog"+ ( \o ->+ UsageLog+ Core.<$> (o Core..:? "enabledLogTypes")+ Core.<*> (o Core..:? "uploadOnCellularAllowed")+ )++instance Core.ToJSON UsageLog where+ toJSON UsageLog {..} =+ Core.object+ ( Core.catMaybes+ [ ("enabledLogTypes" Core..=) Core.<$> enabledLogTypes,+ ("uploadOnCellularAllowed" Core..=)+ Core.<$> uploadOnCellularAllowed+ ]+ )++-- | An event logged on the device.+--+-- /See:/ 'newUsageLogEvent' smart constructor.+data UsageLogEvent = UsageLogEvent+ { -- | A shell command was issued over ADB via “adb shell command”. Part of SECURITY_LOGS.+ adbShellCommandEvent :: (Core.Maybe AdbShellCommandEvent),+ -- | An ADB interactive shell was opened via “adb shell”. Part of SECURITY_LOGS.+ adbShellInteractiveEvent :: (Core.Maybe AdbShellInteractiveEvent),+ -- | An app process was started. Part of SECURITY_LOGS.+ appProcessStartEvent :: (Core.Maybe AppProcessStartEvent),+ -- | A new root certificate was installed into the system\'s trusted credential storage. Part of SECURITY_LOGS.+ certAuthorityInstalledEvent :: (Core.Maybe CertAuthorityInstalledEvent),+ -- | A root certificate was removed from the system\'s trusted credential storage. Part of SECURITY_LOGS.+ certAuthorityRemovedEvent :: (Core.Maybe CertAuthorityRemovedEvent),+ -- | An X.509v3 certificate failed to validate, currently this validation is performed on the Wi-FI access point and failure may be due to a mismatch upon server certificate validation. However it may in the future include other validation events of an X.509v3 certificate. Part of SECURITY_LOGS.+ certValidationFailureEvent :: (Core.Maybe CertValidationFailureEvent),+ -- | A TCP connect event was initiated through the standard network stack. Part of NETWORK/ACTIVITY/LOGS.+ connectEvent :: (Core.Maybe ConnectEvent),+ -- | Validates whether Android’s built-in cryptographic library (BoringSSL) is valid. Should always succeed on device boot, if it fails, the device should be considered untrusted. Part of SECURITY_LOGS.+ cryptoSelfTestCompletedEvent :: (Core.Maybe CryptoSelfTestCompletedEvent),+ -- | A DNS lookup event was initiated through the standard network stack. Part of NETWORK/ACTIVITY/LOGS.+ dnsEvent :: (Core.Maybe DnsEvent),+ -- | Device has completed enrollment. Part of AMAPI_LOGS.+ enrollmentCompleteEvent :: (Core.Maybe EnrollmentCompleteEvent),+ -- | Unique id of the event.+ eventId :: (Core.Maybe Core.Int64),+ -- | Device timestamp when the event was logged.+ eventTime :: (Core.Maybe Core.DateTime),+ -- | The particular usage log event type that was reported on the device. Use this to determine which event field to access.+ eventType :: (Core.Maybe UsageLogEvent_EventType),+ -- | A file was downloaded from the device. Part of SECURITY_LOGS.+ filePulledEvent :: (Core.Maybe FilePulledEvent),+ -- | A file was uploaded onto the device. Part of SECURITY_LOGS.+ filePushedEvent :: (Core.Maybe FilePushedEvent),+ -- | A cryptographic key including user installed, admin installed and system maintained private key is removed from the device either by the user or management. Part of SECURITY_LOGS.+ keyDestructionEvent :: (Core.Maybe KeyDestructionEvent),+ -- | A cryptographic key including user installed, admin installed and system maintained private key is installed on the device either by the user or management. Part of SECURITY_LOGS.+ keyGeneratedEvent :: (Core.Maybe KeyGeneratedEvent),+ -- | A cryptographic key including user installed, admin installed and system maintained private key is imported on the device either by the user or management. Part of SECURITY_LOGS.+ keyImportEvent :: (Core.Maybe KeyImportEvent),+ -- | A cryptographic key including user installed, admin installed and system maintained private key is determined to be corrupted due to storage corruption, hardware failure or some OS issue. Part of SECURITY_LOGS.+ keyIntegrityViolationEvent :: (Core.Maybe KeyIntegrityViolationEvent),+ -- | An attempt was made to unlock the device. Part of SECURITY_LOGS.+ keyguardDismissAuthAttemptEvent :: (Core.Maybe KeyguardDismissAuthAttemptEvent),+ -- | The keyguard was dismissed. Part of SECURITY_LOGS.+ keyguardDismissedEvent :: (Core.Maybe KeyguardDismissedEvent),+ -- | The device was locked either by user or timeout. Part of SECURITY_LOGS.+ keyguardSecuredEvent :: (Core.Maybe KeyguardSecuredEvent),+ -- | The audit log buffer has reached 90% of its capacity, therefore older events may be dropped. Part of SECURITY_LOGS.+ logBufferSizeCriticalEvent :: (Core.Maybe LogBufferSizeCriticalEvent),+ -- | usageLog policy has been enabled. Part of SECURITY_LOGS.+ loggingStartedEvent :: (Core.Maybe LoggingStartedEvent),+ -- | usageLog policy has been disabled. Part of SECURITY_LOGS.+ loggingStoppedEvent :: (Core.Maybe LoggingStoppedEvent),+ -- | A lost mode location update when a device in lost mode.+ lostModeLocationEvent :: (Core.Maybe LostModeLocationEvent),+ -- | An outgoing phone call has been made when a device in lost mode.+ lostModeOutgoingPhoneCallEvent :: (Core.Maybe LostModeOutgoingPhoneCallEvent),+ -- | Removable media was mounted. Part of SECURITY_LOGS.+ mediaMountEvent :: (Core.Maybe MediaMountEvent),+ -- | Removable media was unmounted. Part of SECURITY_LOGS.+ mediaUnmountEvent :: (Core.Maybe MediaUnmountEvent),+ -- | Device was shutdown. Part of SECURITY_LOGS.+ osShutdownEvent :: (Core.Maybe OsShutdownEvent),+ -- | Device was started. Part of SECURITY_LOGS.+ osStartupEvent :: (Core.Maybe OsStartupEvent),+ -- | The device or profile has been remotely locked via the LOCK command. Part of SECURITY_LOGS.+ remoteLockEvent :: (Core.Maybe RemoteLockEvent),+ -- | An attempt to take a device out of lost mode.+ stopLostModeUserAttemptEvent :: (Core.Maybe StopLostModeUserAttemptEvent),+ -- | The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Part of SECURITY_LOGS.+ wipeFailureEvent :: (Core.Maybe WipeFailureEvent)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UsageLogEvent' with the minimum fields required to make a request.+newUsageLogEvent ::+ UsageLogEvent+newUsageLogEvent =+ UsageLogEvent+ { adbShellCommandEvent = Core.Nothing,+ adbShellInteractiveEvent = Core.Nothing,+ appProcessStartEvent = Core.Nothing,+ certAuthorityInstalledEvent = Core.Nothing,+ certAuthorityRemovedEvent = Core.Nothing,+ certValidationFailureEvent = Core.Nothing,+ connectEvent = Core.Nothing,+ cryptoSelfTestCompletedEvent = Core.Nothing,+ dnsEvent = Core.Nothing,+ enrollmentCompleteEvent = Core.Nothing,+ eventId = Core.Nothing,+ eventTime = Core.Nothing,+ eventType = Core.Nothing,+ filePulledEvent = Core.Nothing,+ filePushedEvent = Core.Nothing,+ keyDestructionEvent = Core.Nothing,+ keyGeneratedEvent = Core.Nothing,+ keyImportEvent = Core.Nothing,+ keyIntegrityViolationEvent = Core.Nothing,+ keyguardDismissAuthAttemptEvent = Core.Nothing,+ keyguardDismissedEvent = Core.Nothing,+ keyguardSecuredEvent = Core.Nothing,+ logBufferSizeCriticalEvent = Core.Nothing,+ loggingStartedEvent = Core.Nothing,+ loggingStoppedEvent = Core.Nothing,+ lostModeLocationEvent = Core.Nothing,+ lostModeOutgoingPhoneCallEvent = Core.Nothing,+ mediaMountEvent = Core.Nothing,+ mediaUnmountEvent = Core.Nothing,+ osShutdownEvent = Core.Nothing,+ osStartupEvent = Core.Nothing,+ remoteLockEvent = Core.Nothing,+ stopLostModeUserAttemptEvent = Core.Nothing,+ wipeFailureEvent = Core.Nothing+ }++instance Core.FromJSON UsageLogEvent where+ parseJSON =+ Core.withObject+ "UsageLogEvent"+ ( \o ->+ UsageLogEvent+ Core.<$> (o Core..:? "adbShellCommandEvent")+ Core.<*> (o Core..:? "adbShellInteractiveEvent")+ Core.<*> (o Core..:? "appProcessStartEvent")+ Core.<*> (o Core..:? "certAuthorityInstalledEvent")+ Core.<*> (o Core..:? "certAuthorityRemovedEvent")+ Core.<*> (o Core..:? "certValidationFailureEvent")+ Core.<*> (o Core..:? "connectEvent")+ Core.<*> (o Core..:? "cryptoSelfTestCompletedEvent")+ Core.<*> (o Core..:? "dnsEvent")+ Core.<*> (o Core..:? "enrollmentCompleteEvent")+ Core.<*> (o Core..:? "eventId" Core.<&> Core.fmap Core.fromAsText)+ Core.<*> (o Core..:? "eventTime")+ Core.<*> (o Core..:? "eventType")+ Core.<*> (o Core..:? "filePulledEvent")+ Core.<*> (o Core..:? "filePushedEvent")+ Core.<*> (o Core..:? "keyDestructionEvent")+ Core.<*> (o Core..:? "keyGeneratedEvent")+ Core.<*> (o Core..:? "keyImportEvent")+ Core.<*> (o Core..:? "keyIntegrityViolationEvent")+ Core.<*> (o Core..:? "keyguardDismissAuthAttemptEvent")+ Core.<*> (o Core..:? "keyguardDismissedEvent")+ Core.<*> (o Core..:? "keyguardSecuredEvent")+ Core.<*> (o Core..:? "logBufferSizeCriticalEvent")+ Core.<*> (o Core..:? "loggingStartedEvent")+ Core.<*> (o Core..:? "loggingStoppedEvent")+ Core.<*> (o Core..:? "lostModeLocationEvent")+ Core.<*> (o Core..:? "lostModeOutgoingPhoneCallEvent")+ Core.<*> (o Core..:? "mediaMountEvent")+ Core.<*> (o Core..:? "mediaUnmountEvent")+ Core.<*> (o Core..:? "osShutdownEvent")+ Core.<*> (o Core..:? "osStartupEvent")+ Core.<*> (o Core..:? "remoteLockEvent")+ Core.<*> (o Core..:? "stopLostModeUserAttemptEvent")+ Core.<*> (o Core..:? "wipeFailureEvent")+ )++instance Core.ToJSON UsageLogEvent where+ toJSON UsageLogEvent {..} =+ Core.object+ ( Core.catMaybes+ [ ("adbShellCommandEvent" Core..=) Core.<$> adbShellCommandEvent,+ ("adbShellInteractiveEvent" Core..=)+ Core.<$> adbShellInteractiveEvent,+ ("appProcessStartEvent" Core..=) Core.<$> appProcessStartEvent,+ ("certAuthorityInstalledEvent" Core..=)+ Core.<$> certAuthorityInstalledEvent,+ ("certAuthorityRemovedEvent" Core..=)+ Core.<$> certAuthorityRemovedEvent,+ ("certValidationFailureEvent" Core..=)+ Core.<$> certValidationFailureEvent,+ ("connectEvent" Core..=) Core.<$> connectEvent,+ ("cryptoSelfTestCompletedEvent" Core..=)+ Core.<$> cryptoSelfTestCompletedEvent,+ ("dnsEvent" Core..=) Core.<$> dnsEvent,+ ("enrollmentCompleteEvent" Core..=)+ Core.<$> enrollmentCompleteEvent,+ ("eventId" Core..=) Core.. Core.AsText Core.<$> eventId,+ ("eventTime" Core..=) Core.<$> eventTime,+ ("eventType" Core..=) Core.<$> eventType,+ ("filePulledEvent" Core..=) Core.<$> filePulledEvent,+ ("filePushedEvent" Core..=) Core.<$> filePushedEvent,+ ("keyDestructionEvent" Core..=) Core.<$> keyDestructionEvent,+ ("keyGeneratedEvent" Core..=) Core.<$> keyGeneratedEvent,+ ("keyImportEvent" Core..=) Core.<$> keyImportEvent,+ ("keyIntegrityViolationEvent" Core..=)+ Core.<$> keyIntegrityViolationEvent,+ ("keyguardDismissAuthAttemptEvent" Core..=)+ Core.<$> keyguardDismissAuthAttemptEvent,+ ("keyguardDismissedEvent" Core..=) Core.<$> keyguardDismissedEvent,+ ("keyguardSecuredEvent" Core..=) Core.<$> keyguardSecuredEvent,+ ("logBufferSizeCriticalEvent" Core..=)+ Core.<$> logBufferSizeCriticalEvent,+ ("loggingStartedEvent" Core..=) Core.<$> loggingStartedEvent,+ ("loggingStoppedEvent" Core..=) Core.<$> loggingStoppedEvent,+ ("lostModeLocationEvent" Core..=) Core.<$> lostModeLocationEvent,+ ("lostModeOutgoingPhoneCallEvent" Core..=)+ Core.<$> lostModeOutgoingPhoneCallEvent,+ ("mediaMountEvent" Core..=) Core.<$> mediaMountEvent,+ ("mediaUnmountEvent" Core..=) Core.<$> mediaUnmountEvent,+ ("osShutdownEvent" Core..=) Core.<$> osShutdownEvent,+ ("osStartupEvent" Core..=) Core.<$> osStartupEvent,+ ("remoteLockEvent" Core..=) Core.<$> remoteLockEvent,+ ("stopLostModeUserAttemptEvent" Core..=)+ Core.<$> stopLostModeUserAttemptEvent,+ ("wipeFailureEvent" Core..=) Core.<$> wipeFailureEvent+ ]+ )++-- | A user belonging to an enterprise.+--+-- /See:/ 'newUser' smart constructor.+newtype User = User+ { -- | A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can\'t be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail.+ accountIdentifier :: (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}++instance Core.FromJSON User where+ parseJSON =+ Core.withObject+ "User"+ (\o -> User Core.<$> (o Core..:? "accountIdentifier"))++instance Core.ToJSON User where+ toJSON User {..} =+ Core.object+ ( Core.catMaybes+ [("accountIdentifier" Core..=) Core.<$> accountIdentifier]+ )++-- | Provides a user-facing message with locale info. The maximum message length is 4096 characters.+--+-- /See:/ 'newUserFacingMessage' smart constructor.+data UserFacingMessage = UserFacingMessage+ { -- | The default message displayed if no localized message is specified or the user\'s locale doesn\'t match with any of the localized messages. A default message must be provided if any localized messages are provided.+ defaultMessage :: (Core.Maybe Core.Text),+ -- | A map containing pairs, where locale is a well-formed BCP 47 language (https:\/\/www.w3.org\/International\/articles\/language-tags\/) code, such as en-US, es-ES, or fr.+ localizedMessages :: (Core.Maybe UserFacingMessage_LocalizedMessages)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UserFacingMessage' with the minimum fields required to make a request.+newUserFacingMessage ::+ UserFacingMessage+newUserFacingMessage =+ UserFacingMessage+ { defaultMessage = Core.Nothing,+ localizedMessages = Core.Nothing+ }++instance Core.FromJSON UserFacingMessage where+ parseJSON =+ Core.withObject+ "UserFacingMessage"+ ( \o ->+ UserFacingMessage+ Core.<$> (o Core..:? "defaultMessage")+ Core.<*> (o Core..:? "localizedMessages")+ )++instance Core.ToJSON UserFacingMessage where+ toJSON UserFacingMessage {..} =+ Core.object+ ( Core.catMaybes+ [ ("defaultMessage" Core..=) Core.<$> defaultMessage,+ ("localizedMessages" Core..=) Core.<$> localizedMessages+ ]+ )++-- | A map containing pairs, where locale is a well-formed BCP 47 language (https:\/\/www.w3.org\/International\/articles\/language-tags\/) code, such as en-US, es-ES, or fr.+--+-- /See:/ 'newUserFacingMessage_LocalizedMessages' smart constructor.+newtype UserFacingMessage_LocalizedMessages = UserFacingMessage_LocalizedMessages+ { additional :: (Core.HashMap Core.Text Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'UserFacingMessage_LocalizedMessages' with the minimum fields required to make a request.+newUserFacingMessage_LocalizedMessages ::+ -- | See 'additional'.+ Core.HashMap Core.Text Core.Text ->+ UserFacingMessage_LocalizedMessages+newUserFacingMessage_LocalizedMessages additional =+ UserFacingMessage_LocalizedMessages {additional = additional}++instance Core.FromJSON UserFacingMessage_LocalizedMessages where+ parseJSON =+ Core.withObject+ "UserFacingMessage_LocalizedMessages"+ ( \o ->+ UserFacingMessage_LocalizedMessages+ Core.<$> (Core.parseJSONObject o)+ )++instance Core.ToJSON UserFacingMessage_LocalizedMessages where+ toJSON UserFacingMessage_LocalizedMessages {..} =+ Core.toJSON additional++-- | A web app.+--+-- /See:/ 'newWebApp' smart constructor.+data WebApp = WebApp+ { -- | The display mode of the web app.+ displayMode :: (Core.Maybe WebApp_DisplayMode),+ -- | A list of icons for the web app. Must have at least one element.+ icons :: (Core.Maybe [WebAppIcon]),+ -- | The name of the web app, which is generated by the server during creation in the form enterprises\/{enterpriseId}\/webApps\/{packageName}.+ name :: (Core.Maybe Core.Text),+ -- | 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)+ }+ 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,+ name = Core.Nothing,+ startUrl = Core.Nothing,+ title = Core.Nothing,+ versionCode = Core.Nothing+ }++instance Core.FromJSON WebApp where+ parseJSON =+ Core.withObject+ "WebApp"+ ( \o ->+ WebApp+ Core.<$> (o Core..:? "displayMode")+ Core.<*> (o Core..:? "icons")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "startUrl")+ Core.<*> (o Core..:? "title")+ Core.<*> (o Core..:? "versionCode" Core.<&> Core.fmap Core.fromAsText)+ )++instance Core.ToJSON WebApp where+ toJSON WebApp {..} =+ Core.object+ ( Core.catMaybes+ [ ("displayMode" Core..=) Core.<$> displayMode,+ ("icons" Core..=) Core.<$> icons,+ ("name" Core..=) Core.<$> name,+ ("startUrl" Core..=) Core.<$> startUrl,+ ("title" Core..=) Core.<$> title,+ ("versionCode" Core..=) Core.. Core.AsText Core.<$> versionCode+ ]+ )++-- | An icon for a web app. Supported formats are: png, jpg and webp.+--+-- /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])++-- | A web token used to access the managed Google Play iframe.+--+-- /See:/ 'newWebToken' smart constructor.+data WebToken = WebToken+ { -- | The features to enable. Use this if you want to control exactly which feature(s) will be activated; leave empty to allow all features.Restrictions \/ things to note: - If no features are listed here, all features are enabled — this is the default behavior where you give access to all features to your admins. - This must not contain any FEATURE_UNSPECIFIED values. - Repeated values are ignored+ enabledFeatures :: (Core.Maybe [WebToken_EnabledFeaturesItem]),+ -- | The name of the web token, which is generated by the server during creation in the form enterprises\/{enterpriseId}\/webTokens\/{webTokenId}.+ name :: (Core.Maybe Core.Text),+ -- | The URL of the parent frame hosting the iframe with the embedded UI. To prevent XSS, the iframe may not be hosted at other URLs. The URL must use the https scheme.+ parentFrameUrl :: (Core.Maybe Core.Text),+ -- | Permissions available to an admin in the embedded UI. An admin must have all of these permissions in order to view the UI. This field is deprecated.+ permissions :: (Core.Maybe [WebToken_PermissionsItem]),+ -- | The token value which is used in the hosting page to generate the iframe with the embedded UI. This is a read-only field generated by the server.+ value :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WebToken' with the minimum fields required to make a request.+newWebToken ::+ WebToken+newWebToken =+ WebToken+ { enabledFeatures = Core.Nothing,+ name = Core.Nothing,+ parentFrameUrl = Core.Nothing,+ permissions = Core.Nothing,+ value = Core.Nothing+ }++instance Core.FromJSON WebToken where+ parseJSON =+ Core.withObject+ "WebToken"+ ( \o ->+ WebToken+ Core.<$> (o Core..:? "enabledFeatures")+ Core.<*> (o Core..:? "name")+ Core.<*> (o Core..:? "parentFrameUrl")+ Core.<*> (o Core..:? "permissions")+ Core.<*> (o Core..:? "value")+ )++instance Core.ToJSON WebToken where+ toJSON WebToken {..} =+ Core.object+ ( Core.catMaybes+ [ ("enabledFeatures" Core..=) Core.<$> enabledFeatures,+ ("name" Core..=) Core.<$> name,+ ("parentFrameUrl" Core..=) Core.<$> parentFrameUrl,+ ("permissions" Core..=) Core.<$> permissions,+ ("value" Core..=) Core.<$> value+ ]+ )++-- | Wi-Fi roaming policy.+--+-- /See:/ 'newWifiRoamingPolicy' smart constructor.+newtype WifiRoamingPolicy = WifiRoamingPolicy+ { -- | Optional. Wi-Fi roaming settings. SSIDs provided in this list must be unique, the policy will be rejected otherwise.+ wifiRoamingSettings :: (Core.Maybe [WifiRoamingSetting])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WifiRoamingPolicy' with the minimum fields required to make a request.+newWifiRoamingPolicy ::+ WifiRoamingPolicy+newWifiRoamingPolicy =+ WifiRoamingPolicy {wifiRoamingSettings = Core.Nothing}++instance Core.FromJSON WifiRoamingPolicy where+ parseJSON =+ Core.withObject+ "WifiRoamingPolicy"+ ( \o ->+ WifiRoamingPolicy Core.<$> (o Core..:? "wifiRoamingSettings")+ )++instance Core.ToJSON WifiRoamingPolicy where+ toJSON WifiRoamingPolicy {..} =+ Core.object+ ( Core.catMaybes+ [("wifiRoamingSettings" Core..=) Core.<$> wifiRoamingSettings]+ )++-- | Wi-Fi roaming setting.+--+-- /See:/ 'newWifiRoamingSetting' smart constructor.+data WifiRoamingSetting = WifiRoamingSetting+ { -- | Required. Wi-Fi roaming mode for the specified SSID.+ wifiRoamingMode :: (Core.Maybe WifiRoamingSetting_WifiRoamingMode),+ -- | Required. SSID of the Wi-Fi network.+ wifiSsid :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WifiRoamingSetting' with the minimum fields required to make a request.+newWifiRoamingSetting ::+ WifiRoamingSetting+newWifiRoamingSetting =+ WifiRoamingSetting+ { wifiRoamingMode = Core.Nothing,+ wifiSsid = Core.Nothing+ }++instance Core.FromJSON WifiRoamingSetting where+ parseJSON =+ Core.withObject+ "WifiRoamingSetting"+ ( \o ->+ WifiRoamingSetting+ Core.<$> (o Core..:? "wifiRoamingMode")+ Core.<*> (o Core..:? "wifiSsid")+ )++instance Core.ToJSON WifiRoamingSetting where+ toJSON WifiRoamingSetting {..} =+ Core.object+ ( Core.catMaybes+ [ ("wifiRoamingMode" Core..=) Core.<$> wifiRoamingMode,+ ("wifiSsid" Core..=) Core.<$> wifiSsid+ ]+ )++-- | Represents a Wi-Fi SSID.+--+-- /See:/ 'newWifiSsid' smart constructor.+newtype WifiSsid = WifiSsid+ { -- | Required. Wi-Fi SSID represented as a string.+ wifiSsid :: (Core.Maybe Core.Text)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WifiSsid' with the minimum fields required to make a request.+newWifiSsid ::+ WifiSsid+newWifiSsid = WifiSsid {wifiSsid = Core.Nothing}++instance Core.FromJSON WifiSsid where+ parseJSON =+ Core.withObject+ "WifiSsid"+ (\o -> WifiSsid Core.<$> (o Core..:? "wifiSsid"))++instance Core.ToJSON WifiSsid where+ toJSON WifiSsid {..} =+ Core.object+ (Core.catMaybes [("wifiSsid" Core..=) Core.<$> wifiSsid])++-- | Restrictions on which Wi-Fi SSIDs the device can connect to. Note that this does not affect which networks can be configured on the device. Supported on company-owned devices running Android 13 and above.+--+-- /See:/ 'newWifiSsidPolicy' smart constructor.+data WifiSsidPolicy = WifiSsidPolicy+ { -- | Type of the Wi-Fi SSID policy to be applied.+ wifiSsidPolicyType :: (Core.Maybe WifiSsidPolicy_WifiSsidPolicyType),+ -- | Optional. List of Wi-Fi SSIDs that should be applied in the policy. This field must be non-empty when WifiSsidPolicyType is set to WIFI/SSID/ALLOWLIST. If this is set to a non-empty list, then a nonComplianceDetail detail with API/LEVEL is reported if the Android version is less than 13 and a nonComplianceDetail with MANAGEMENT/MODE is reported for non-company-owned devices.+ wifiSsids :: (Core.Maybe [WifiSsid])+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WifiSsidPolicy' with the minimum fields required to make a request.+newWifiSsidPolicy ::+ WifiSsidPolicy+newWifiSsidPolicy =+ WifiSsidPolicy+ { wifiSsidPolicyType = Core.Nothing,+ wifiSsids = Core.Nothing+ }++instance Core.FromJSON WifiSsidPolicy where+ parseJSON =+ Core.withObject+ "WifiSsidPolicy"+ ( \o ->+ WifiSsidPolicy+ Core.<$> (o Core..:? "wifiSsidPolicyType")+ Core.<*> (o Core..:? "wifiSsids")+ )++instance Core.ToJSON WifiSsidPolicy where+ toJSON WifiSsidPolicy {..} =+ Core.object+ ( Core.catMaybes+ [ ("wifiSsidPolicyType" Core..=) Core.<$> wifiSsidPolicyType,+ ("wifiSsids" Core..=) Core.<$> wifiSsids+ ]+ )++-- | An action to reset a company owned device or delete a work profile. Note: blockAction must also be specified.+--+-- /See:/ 'newWipeAction' smart constructor.+data WipeAction = WipeAction+ { -- | Whether the factory-reset protection data is preserved on the device. This setting doesn’t apply to work profiles.+ preserveFrp :: (Core.Maybe Core.Bool),+ -- | Number of days the policy is non-compliant before the device or work profile is wiped. wipeAfterDays must be greater than blockAfterDays.+ wipeAfterDays :: (Core.Maybe Core.Int32)+ }+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WipeAction' with the minimum fields required to make a request.+newWipeAction ::+ WipeAction+newWipeAction =+ WipeAction+ { preserveFrp = Core.Nothing,+ wipeAfterDays = Core.Nothing+ }++instance Core.FromJSON WipeAction where+ parseJSON =+ Core.withObject+ "WipeAction"+ ( \o ->+ WipeAction+ Core.<$> (o Core..:? "preserveFrp")+ Core.<*> (o Core..:? "wipeAfterDays")+ )++instance Core.ToJSON WipeAction where+ toJSON WipeAction {..} =+ Core.object+ ( Core.catMaybes+ [ ("preserveFrp" Core..=) Core.<$> preserveFrp,+ ("wipeAfterDays" Core..=) Core.<$> wipeAfterDays+ ]+ )++-- | The work profile or company-owned device failed to wipe when requested. This could be user initiated or admin initiated e.g. delete was received. Intentionally empty.+--+-- /See:/ 'newWipeFailureEvent' smart constructor.+data WipeFailureEvent = WipeFailureEvent+ deriving (Core.Eq, Core.Show, Core.Generic)++-- | Creates a value of 'WipeFailureEvent' with the minimum fields required to make a request.+newWipeFailureEvent ::+ WipeFailureEvent+newWipeFailureEvent = WipeFailureEvent++instance Core.FromJSON WipeFailureEvent where+ parseJSON =+ Core.withObject+ "WipeFailureEvent"+ (\o -> Core.pure WipeFailureEvent)++instance Core.ToJSON WipeFailureEvent where+ toJSON = Core.const Core.emptyObject
+ gen/Gogol/AndroidManagement/Internal/Sum.hs view
@@ -0,0 +1,6051 @@+{-# 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.AndroidManagement.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.AndroidManagement.Internal.Sum+ ( -- * Xgafv+ Xgafv+ ( Xgafv_1,+ Xgafv_2,+ ..+ ),++ -- * AdvancedSecurityOverrides_CommonCriteriaMode+ AdvancedSecurityOverrides_CommonCriteriaMode+ ( AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEUNSPECIFIED,+ AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEDISABLED,+ AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEENABLED,+ ..+ ),++ -- * AdvancedSecurityOverrides_ContentProtectionPolicy+ AdvancedSecurityOverrides_ContentProtectionPolicy+ ( AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONPOLICYUNSPECIFIED,+ AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONDISABLED,+ AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONENFORCED,+ AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONUSERCHOICE,+ ..+ ),++ -- * AdvancedSecurityOverrides_DeveloperSettings+ AdvancedSecurityOverrides_DeveloperSettings+ ( AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSUNSPECIFIED,+ AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSDISABLED,+ AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSALLOWED,+ ..+ ),++ -- * AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+ ( AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_GOOGLEPLAYPROTECTVERIFYAPPSUNSPECIFIED,+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSENFORCED,+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSUSERCHOICE,+ ..+ ),++ -- * AdvancedSecurityOverrides_MtePolicy+ AdvancedSecurityOverrides_MtePolicy+ ( AdvancedSecurityOverrides_MtePolicy_MTEPOLICYUNSPECIFIED,+ AdvancedSecurityOverrides_MtePolicy_MTEUSERCHOICE,+ AdvancedSecurityOverrides_MtePolicy_MTEENFORCED,+ AdvancedSecurityOverrides_MtePolicy_MTEDISABLED,+ ..+ ),++ -- * AdvancedSecurityOverrides_UntrustedAppsPolicy+ AdvancedSecurityOverrides_UntrustedAppsPolicy+ ( AdvancedSecurityOverrides_UntrustedAppsPolicy_UNTRUSTEDAPPSPOLICYUNSPECIFIED,+ AdvancedSecurityOverrides_UntrustedAppsPolicy_DISALLOWINSTALL,+ AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLINPERSONALPROFILEONLY,+ AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLDEVICEWIDE,+ ..+ ),++ -- * Application_AppPricing+ Application_AppPricing+ ( Application_AppPricing_APPPRICINGUNSPECIFIED,+ Application_AppPricing_Free,+ Application_AppPricing_FREEWITHINAPPPURCHASE,+ Application_AppPricing_Paid,+ ..+ ),++ -- * Application_ContentRating+ Application_ContentRating+ ( Application_ContentRating_CONTENTRATINGUNSPECIFIED,+ Application_ContentRating_THREEYEARS,+ Application_ContentRating_SEVENYEARS,+ Application_ContentRating_TWELVEYEARS,+ Application_ContentRating_SIXTEENYEARS,+ Application_ContentRating_EIGHTEENYEARS,+ ..+ ),++ -- * Application_DistributionChannel+ Application_DistributionChannel+ ( Application_DistributionChannel_DISTRIBUTIONCHANNELUNSPECIFIED,+ Application_DistributionChannel_PUBLICGOOGLEHOSTED,+ Application_DistributionChannel_PRIVATEGOOGLEHOSTED,+ Application_DistributionChannel_PRIVATESELFHOSTED,+ ..+ ),++ -- * Application_FeaturesItem+ Application_FeaturesItem+ ( Application_FeaturesItem_APPFEATUREUNSPECIFIED,+ Application_FeaturesItem_VPNAPP,+ ..+ ),++ -- * ApplicationEvent_EventType+ ApplicationEvent_EventType+ ( ApplicationEvent_EventType_APPLICATIONEVENTTYPEUNSPECIFIED,+ ApplicationEvent_EventType_Installed,+ ApplicationEvent_EventType_Changed,+ ApplicationEvent_EventType_DATACLEARED,+ ApplicationEvent_EventType_Removed,+ ApplicationEvent_EventType_Replaced,+ ApplicationEvent_EventType_Restarted,+ ApplicationEvent_EventType_Pinned,+ ApplicationEvent_EventType_Unpinned,+ ..+ ),++ -- * ApplicationPolicy_AlwaysOnVpnLockdownExemption+ ApplicationPolicy_AlwaysOnVpnLockdownExemption+ ( ApplicationPolicy_AlwaysOnVpnLockdownExemption_ALWAYSONVPNLOCKDOWNEXEMPTIONUNSPECIFIED,+ ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNENFORCED,+ ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNEXEMPTION,+ ..+ ),++ -- * ApplicationPolicy_AutoUpdateMode+ ApplicationPolicy_AutoUpdateMode+ ( ApplicationPolicy_AutoUpdateMode_AUTOUPDATEMODEUNSPECIFIED,+ ApplicationPolicy_AutoUpdateMode_AUTOUPDATEDEFAULT,+ ApplicationPolicy_AutoUpdateMode_AUTOUPDATEPOSTPONED,+ ApplicationPolicy_AutoUpdateMode_AUTOUPDATEHIGHPRIORITY,+ ..+ ),++ -- * ApplicationPolicy_ConnectedWorkAndPersonalApp+ ApplicationPolicy_ConnectedWorkAndPersonalApp+ ( ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPUNSPECIFIED,+ ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPDISALLOWED,+ ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPALLOWED,+ ..+ ),++ -- * ApplicationPolicy_CredentialProviderPolicy+ ApplicationPolicy_CredentialProviderPolicy+ ( ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERPOLICYUNSPECIFIED,+ ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERALLOWED,+ ..+ ),++ -- * ApplicationPolicy_DefaultPermissionPolicy+ ApplicationPolicy_DefaultPermissionPolicy+ ( ApplicationPolicy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED,+ ApplicationPolicy_DefaultPermissionPolicy_Prompt,+ ApplicationPolicy_DefaultPermissionPolicy_Grant,+ ApplicationPolicy_DefaultPermissionPolicy_Deny,+ ..+ ),++ -- * ApplicationPolicy_DelegatedScopesItem+ ApplicationPolicy_DelegatedScopesItem+ ( ApplicationPolicy_DelegatedScopesItem_DELEGATEDSCOPEUNSPECIFIED,+ ApplicationPolicy_DelegatedScopesItem_CERTINSTALL,+ ApplicationPolicy_DelegatedScopesItem_MANAGEDCONFIGURATIONS,+ ApplicationPolicy_DelegatedScopesItem_BLOCKUNINSTALL,+ ApplicationPolicy_DelegatedScopesItem_PERMISSIONGRANT,+ ApplicationPolicy_DelegatedScopesItem_PACKAGEACCESS,+ ApplicationPolicy_DelegatedScopesItem_ENABLESYSTEMAPP,+ ApplicationPolicy_DelegatedScopesItem_NETWORKACTIVITYLOGS,+ ApplicationPolicy_DelegatedScopesItem_SECURITYLOGS,+ ApplicationPolicy_DelegatedScopesItem_CERTSELECTION,+ ..+ ),++ -- * ApplicationPolicy_InstallType+ ApplicationPolicy_InstallType+ ( ApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED,+ ApplicationPolicy_InstallType_Preinstalled,+ ApplicationPolicy_InstallType_FORCEINSTALLED,+ ApplicationPolicy_InstallType_Blocked,+ ApplicationPolicy_InstallType_Available,+ ApplicationPolicy_InstallType_REQUIREDFORSETUP,+ ApplicationPolicy_InstallType_Kiosk,+ ..+ ),++ -- * ApplicationPolicy_UserControlSettings+ ApplicationPolicy_UserControlSettings+ ( ApplicationPolicy_UserControlSettings_USERCONTROLSETTINGSUNSPECIFIED,+ ApplicationPolicy_UserControlSettings_USERCONTROLALLOWED,+ ApplicationPolicy_UserControlSettings_USERCONTROLDISALLOWED,+ ..+ ),++ -- * ApplicationPolicy_WorkProfileWidgets+ ApplicationPolicy_WorkProfileWidgets+ ( ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSUNSPECIFIED,+ ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSALLOWED,+ ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSDISALLOWED,+ ..+ ),++ -- * ApplicationReport_ApplicationSource+ ApplicationReport_ApplicationSource+ ( ApplicationReport_ApplicationSource_APPLICATIONSOURCEUNSPECIFIED,+ ApplicationReport_ApplicationSource_SYSTEMAPPFACTORYVERSION,+ ApplicationReport_ApplicationSource_SYSTEMAPPUPDATEDVERSION,+ ApplicationReport_ApplicationSource_INSTALLEDFROMPLAYSTORE,+ ..+ ),++ -- * ApplicationReport_State+ ApplicationReport_State+ ( ApplicationReport_State_APPLICATIONSTATEUNSPECIFIED,+ ApplicationReport_State_Removed,+ ApplicationReport_State_Installed,+ ..+ ),++ -- * ApplicationReport_UserFacingType+ ApplicationReport_UserFacingType+ ( ApplicationReport_UserFacingType_USERFACINGTYPEUNSPECIFIED,+ ApplicationReport_UserFacingType_NOTUSERFACING,+ ApplicationReport_UserFacingType_USERFACING,+ ..+ ),++ -- * BlockAction_BlockScope+ BlockAction_BlockScope+ ( BlockAction_BlockScope_BLOCKSCOPEUNSPECIFIED,+ BlockAction_BlockScope_BLOCKSCOPEWORKPROFILE,+ BlockAction_BlockScope_BLOCKSCOPEDEVICE,+ ..+ ),++ -- * Command_ErrorCode+ Command_ErrorCode+ ( Command_ErrorCode_COMMANDERRORCODEUNSPECIFIED,+ Command_ErrorCode_Unknown,+ Command_ErrorCode_APILEVEL,+ Command_ErrorCode_MANAGEMENTMODE,+ Command_ErrorCode_INVALIDVALUE,+ Command_ErrorCode_Unsupported,+ ..+ ),++ -- * Command_ResetPasswordFlagsItem+ Command_ResetPasswordFlagsItem+ ( Command_ResetPasswordFlagsItem_RESETPASSWORDFLAGUNSPECIFIED,+ Command_ResetPasswordFlagsItem_REQUIREENTRY,+ Command_ResetPasswordFlagsItem_DONOTASKCREDENTIALSONBOOT,+ Command_ResetPasswordFlagsItem_LOCKNOW,+ ..+ ),++ -- * Command_Type+ Command_Type+ ( Command_Type_COMMANDTYPEUNSPECIFIED,+ Command_Type_Lock,+ Command_Type_RESETPASSWORD,+ Command_Type_Reboot,+ Command_Type_RELINQUISHOWNERSHIP,+ Command_Type_CLEARAPPDATA,+ Command_Type_STARTLOSTMODE,+ Command_Type_STOPLOSTMODE,+ ..+ ),++ -- * CommonCriteriaModeInfo_CommonCriteriaModeStatus+ CommonCriteriaModeInfo_CommonCriteriaModeStatus+ ( CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODESTATUSUNKNOWN,+ CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEDISABLED,+ CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEENABLED,+ ..+ ),++ -- * CommonCriteriaModeInfo_PolicySignatureVerificationStatus+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus+ ( CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSTATUSUNSPECIFIED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONDISABLED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSUCCEEDED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONNOTSUPPORTED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONFAILED,+ ..+ ),++ -- * CrossProfilePolicies_CrossProfileCopyPaste+ CrossProfilePolicies_CrossProfileCopyPaste+ ( CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEUNSPECIFIED,+ CrossProfilePolicies_CrossProfileCopyPaste_COPYFROMWORKTOPERSONALDISALLOWED,+ CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEALLOWED,+ ..+ ),++ -- * CrossProfilePolicies_CrossProfileDataSharing+ CrossProfilePolicies_CrossProfileDataSharing+ ( CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGUNSPECIFIED,+ CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGDISALLOWED,+ CrossProfilePolicies_CrossProfileDataSharing_DATASHARINGFROMWORKTOPERSONALDISALLOWED,+ CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGALLOWED,+ ..+ ),++ -- * CrossProfilePolicies_ShowWorkContactsInPersonalProfile+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile+ ( CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEUNSPECIFIED,+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWED,+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEALLOWED,+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWEDEXCEPTSYSTEM,+ ..+ ),++ -- * CrossProfilePolicies_WorkProfileWidgetsDefault+ CrossProfilePolicies_WorkProfileWidgetsDefault+ ( CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTUNSPECIFIED,+ CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTALLOWED,+ CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTDISALLOWED,+ ..+ ),++ -- * Device_AppliedState+ Device_AppliedState+ ( Device_AppliedState_DEVICESTATEUNSPECIFIED,+ Device_AppliedState_Active,+ Device_AppliedState_Disabled,+ Device_AppliedState_Deleted,+ Device_AppliedState_Provisioning,+ Device_AppliedState_Lost,+ Device_AppliedState_PREPARINGFORMIGRATION,+ Device_AppliedState_DEACTIVATEDBYDEVICEFINANCE,+ ..+ ),++ -- * Device_ManagementMode+ Device_ManagementMode+ ( Device_ManagementMode_MANAGEMENTMODEUNSPECIFIED,+ Device_ManagementMode_DEVICEOWNER,+ Device_ManagementMode_PROFILEOWNER,+ ..+ ),++ -- * Device_Ownership+ Device_Ownership+ ( Device_Ownership_OWNERSHIPUNSPECIFIED,+ Device_Ownership_COMPANYOWNED,+ Device_Ownership_PERSONALLYOWNED,+ ..+ ),++ -- * Device_State+ Device_State+ ( Device_State_DEVICESTATEUNSPECIFIED,+ Device_State_Active,+ Device_State_Disabled,+ Device_State_Deleted,+ Device_State_Provisioning,+ Device_State_Lost,+ Device_State_PREPARINGFORMIGRATION,+ Device_State_DEACTIVATEDBYDEVICEFINANCE,+ ..+ ),++ -- * DeviceConnectivityManagement_ConfigureWifi+ DeviceConnectivityManagement_ConfigureWifi+ ( DeviceConnectivityManagement_ConfigureWifi_CONFIGUREWIFIUNSPECIFIED,+ DeviceConnectivityManagement_ConfigureWifi_ALLOWCONFIGURINGWIFI,+ DeviceConnectivityManagement_ConfigureWifi_DISALLOWADDWIFICONFIG,+ DeviceConnectivityManagement_ConfigureWifi_DISALLOWCONFIGURINGWIFI,+ ..+ ),++ -- * DeviceConnectivityManagement_TetheringSettings+ DeviceConnectivityManagement_TetheringSettings+ ( DeviceConnectivityManagement_TetheringSettings_TETHERINGSETTINGSUNSPECIFIED,+ DeviceConnectivityManagement_TetheringSettings_ALLOWALLTETHERING,+ DeviceConnectivityManagement_TetheringSettings_DISALLOWWIFITETHERING,+ DeviceConnectivityManagement_TetheringSettings_DISALLOWALLTETHERING,+ ..+ ),++ -- * DeviceConnectivityManagement_UsbDataAccess+ DeviceConnectivityManagement_UsbDataAccess+ ( DeviceConnectivityManagement_UsbDataAccess_USBDATAACCESSUNSPECIFIED,+ DeviceConnectivityManagement_UsbDataAccess_ALLOWUSBDATATRANSFER,+ DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBFILETRANSFER,+ DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBDATATRANSFER,+ ..+ ),++ -- * DeviceConnectivityManagement_WifiDirectSettings+ DeviceConnectivityManagement_WifiDirectSettings+ ( DeviceConnectivityManagement_WifiDirectSettings_WIFIDIRECTSETTINGSUNSPECIFIED,+ DeviceConnectivityManagement_WifiDirectSettings_ALLOWWIFIDIRECT,+ DeviceConnectivityManagement_WifiDirectSettings_DISALLOWWIFIDIRECT,+ ..+ ),++ -- * DeviceRadioState_AirplaneModeState+ DeviceRadioState_AirplaneModeState+ ( DeviceRadioState_AirplaneModeState_AIRPLANEMODESTATEUNSPECIFIED,+ DeviceRadioState_AirplaneModeState_AIRPLANEMODEUSERCHOICE,+ DeviceRadioState_AirplaneModeState_AIRPLANEMODEDISABLED,+ ..+ ),++ -- * DeviceRadioState_CellularTwoGState+ DeviceRadioState_CellularTwoGState+ ( DeviceRadioState_CellularTwoGState_CELLULARTWOGSTATEUNSPECIFIED,+ DeviceRadioState_CellularTwoGState_CELLULARTWOGUSERCHOICE,+ DeviceRadioState_CellularTwoGState_CELLULARTWOGDISABLED,+ ..+ ),++ -- * DeviceRadioState_MinimumWifiSecurityLevel+ DeviceRadioState_MinimumWifiSecurityLevel+ ( DeviceRadioState_MinimumWifiSecurityLevel_MINIMUMWIFISECURITYLEVELUNSPECIFIED,+ DeviceRadioState_MinimumWifiSecurityLevel_OPENNETWORKSECURITY,+ DeviceRadioState_MinimumWifiSecurityLevel_PERSONALNETWORKSECURITY,+ DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISENETWORKSECURITY,+ DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISEBIT192NETWORKSECURITY,+ ..+ ),++ -- * DeviceRadioState_UltraWidebandState+ DeviceRadioState_UltraWidebandState+ ( DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDSTATEUNSPECIFIED,+ DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDUSERCHOICE,+ DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDDISABLED,+ ..+ ),++ -- * DeviceRadioState_WifiState+ DeviceRadioState_WifiState+ ( DeviceRadioState_WifiState_WIFISTATEUNSPECIFIED,+ DeviceRadioState_WifiState_WIFISTATEUSERCHOICE,+ DeviceRadioState_WifiState_WIFIENABLED,+ DeviceRadioState_WifiState_WIFIDISABLED,+ ..+ ),++ -- * DeviceSettings_EncryptionStatus+ DeviceSettings_EncryptionStatus+ ( DeviceSettings_EncryptionStatus_ENCRYPTIONSTATUSUNSPECIFIED,+ DeviceSettings_EncryptionStatus_Unsupported,+ DeviceSettings_EncryptionStatus_Inactive,+ DeviceSettings_EncryptionStatus_Activating,+ DeviceSettings_EncryptionStatus_Active,+ DeviceSettings_EncryptionStatus_ACTIVEDEFAULTKEY,+ DeviceSettings_EncryptionStatus_ACTIVEPERUSER,+ ..+ ),++ -- * Display_State+ Display_State+ ( Display_State_DISPLAYSTATEUNSPECIFIED,+ Display_State_Off,+ Display_State_ON,+ Display_State_Doze,+ Display_State_Suspended,+ ..+ ),++ -- * EnrollmentToken_AllowPersonalUsage+ EnrollmentToken_AllowPersonalUsage+ ( EnrollmentToken_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED,+ EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEALLOWED,+ EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWED,+ EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS,+ ..+ ),++ -- * Enterprise_EnabledNotificationTypesItem+ Enterprise_EnabledNotificationTypesItem+ ( Enterprise_EnabledNotificationTypesItem_NOTIFICATIONTYPEUNSPECIFIED,+ Enterprise_EnabledNotificationTypesItem_Enrollment,+ Enterprise_EnabledNotificationTypesItem_COMPLIANCEREPORT,+ Enterprise_EnabledNotificationTypesItem_STATUSREPORT,+ Enterprise_EnabledNotificationTypesItem_Command,+ Enterprise_EnabledNotificationTypesItem_USAGELOGS,+ Enterprise_EnabledNotificationTypesItem_ENTERPRISEUPGRADE,+ ..+ ),++ -- * 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,+ ..+ ),++ -- * Enterprise_ManagedGooglePlayAccountsEnterpriseType+ Enterprise_ManagedGooglePlayAccountsEnterpriseType+ ( Enterprise_ManagedGooglePlayAccountsEnterpriseType_MANAGEDGOOGLEPLAYACCOUNTSENTERPRISETYPEUNSPECIFIED,+ Enterprise_ManagedGooglePlayAccountsEnterpriseType_CUSTOMERMANAGED,+ Enterprise_ManagedGooglePlayAccountsEnterpriseType_EMMMANAGED,+ ..+ ),++ -- * GoogleAuthenticationSettings_GoogleAuthenticationRequired+ GoogleAuthenticationSettings_GoogleAuthenticationRequired+ ( GoogleAuthenticationSettings_GoogleAuthenticationRequired_GOOGLEAUTHENTICATIONREQUIREDUNSPECIFIED,+ GoogleAuthenticationSettings_GoogleAuthenticationRequired_NOTREQUIRED,+ GoogleAuthenticationSettings_GoogleAuthenticationRequired_Required,+ ..+ ),++ -- * InstallConstraint_ChargingConstraint+ InstallConstraint_ChargingConstraint+ ( InstallConstraint_ChargingConstraint_CHARGINGCONSTRAINTUNSPECIFIED,+ InstallConstraint_ChargingConstraint_CHARGINGNOTREQUIRED,+ InstallConstraint_ChargingConstraint_INSTALLONLYWHENCHARGING,+ ..+ ),++ -- * InstallConstraint_DeviceIdleConstraint+ InstallConstraint_DeviceIdleConstraint+ ( InstallConstraint_DeviceIdleConstraint_DEVICEIDLECONSTRAINTUNSPECIFIED,+ InstallConstraint_DeviceIdleConstraint_DEVICEIDLENOTREQUIRED,+ InstallConstraint_DeviceIdleConstraint_INSTALLONLYWHENDEVICEIDLE,+ ..+ ),++ -- * InstallConstraint_NetworkTypeConstraint+ InstallConstraint_NetworkTypeConstraint+ ( InstallConstraint_NetworkTypeConstraint_NETWORKTYPECONSTRAINTUNSPECIFIED,+ InstallConstraint_NetworkTypeConstraint_INSTALLONANYNETWORK,+ InstallConstraint_NetworkTypeConstraint_INSTALLONLYONUNMETEREDNETWORK,+ ..+ ),++ -- * KeyedAppState_Severity+ KeyedAppState_Severity+ ( KeyedAppState_Severity_SEVERITYUNSPECIFIED,+ KeyedAppState_Severity_Info,+ KeyedAppState_Severity_Error',+ ..+ ),++ -- * KioskCustomization_DeviceSettings+ KioskCustomization_DeviceSettings+ ( KioskCustomization_DeviceSettings_DEVICESETTINGSUNSPECIFIED,+ KioskCustomization_DeviceSettings_SETTINGSACCESSALLOWED,+ KioskCustomization_DeviceSettings_SETTINGSACCESSBLOCKED,+ ..+ ),++ -- * KioskCustomization_PowerButtonActions+ KioskCustomization_PowerButtonActions+ ( KioskCustomization_PowerButtonActions_POWERBUTTONACTIONSUNSPECIFIED,+ KioskCustomization_PowerButtonActions_POWERBUTTONAVAILABLE,+ KioskCustomization_PowerButtonActions_POWERBUTTONBLOCKED,+ ..+ ),++ -- * KioskCustomization_StatusBar+ KioskCustomization_StatusBar+ ( KioskCustomization_StatusBar_STATUSBARUNSPECIFIED,+ KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFOENABLED,+ KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFODISABLED,+ KioskCustomization_StatusBar_SYSTEMINFOONLY,+ ..+ ),++ -- * KioskCustomization_SystemErrorWarnings+ KioskCustomization_SystemErrorWarnings+ ( KioskCustomization_SystemErrorWarnings_SYSTEMERRORWARNINGSUNSPECIFIED,+ KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSENABLED,+ KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSMUTED,+ ..+ ),++ -- * KioskCustomization_SystemNavigation+ KioskCustomization_SystemNavigation+ ( KioskCustomization_SystemNavigation_SYSTEMNAVIGATIONUNSPECIFIED,+ KioskCustomization_SystemNavigation_NAVIGATIONENABLED,+ KioskCustomization_SystemNavigation_NAVIGATIONDISABLED,+ KioskCustomization_SystemNavigation_HOMEBUTTONONLY,+ ..+ ),++ -- * ManagedProperty_Type+ ManagedProperty_Type+ ( ManagedProperty_Type_MANAGEDPROPERTYTYPEUNSPECIFIED,+ ManagedProperty_Type_Bool,+ ManagedProperty_Type_String,+ ManagedProperty_Type_Integer,+ ManagedProperty_Type_Choice,+ ManagedProperty_Type_Multiselect,+ ManagedProperty_Type_Hidden,+ ManagedProperty_Type_Bundle,+ ManagedProperty_Type_BUNDLEARRAY,+ ..+ ),++ -- * MemoryEvent_EventType+ MemoryEvent_EventType+ ( MemoryEvent_EventType_MEMORYEVENTTYPEUNSPECIFIED,+ MemoryEvent_EventType_RAMMEASURED,+ MemoryEvent_EventType_INTERNALSTORAGEMEASURED,+ MemoryEvent_EventType_EXTERNALSTORAGEDETECTED,+ MemoryEvent_EventType_EXTERNALSTORAGEREMOVED,+ MemoryEvent_EventType_EXTERNALSTORAGEMEASURED,+ ..+ ),++ -- * MigrationToken_ManagementMode+ MigrationToken_ManagementMode+ ( MigrationToken_ManagementMode_MANAGEMENTMODEUNSPECIFIED,+ MigrationToken_ManagementMode_WORKPROFILEPERSONALLYOWNED,+ MigrationToken_ManagementMode_WORKPROFILECOMPANYOWNED,+ MigrationToken_ManagementMode_FULLYMANAGED,+ ..+ ),++ -- * NonComplianceDetail_InstallationFailureReason+ NonComplianceDetail_InstallationFailureReason+ ( NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNSPECIFIED,+ NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNKNOWN,+ NonComplianceDetail_InstallationFailureReason_INPROGRESS,+ NonComplianceDetail_InstallationFailureReason_NOTFOUND,+ NonComplianceDetail_InstallationFailureReason_NOTCOMPATIBLEWITHDEVICE,+ NonComplianceDetail_InstallationFailureReason_NOTAPPROVED,+ NonComplianceDetail_InstallationFailureReason_PERMISSIONSNOTACCEPTED,+ NonComplianceDetail_InstallationFailureReason_NOTAVAILABLEINCOUNTRY,+ NonComplianceDetail_InstallationFailureReason_NOLICENSESREMAINING,+ NonComplianceDetail_InstallationFailureReason_NOTENROLLED,+ NonComplianceDetail_InstallationFailureReason_USERINVALID,+ NonComplianceDetail_InstallationFailureReason_NETWORKERRORUNRELIABLECONNECTION,+ NonComplianceDetail_InstallationFailureReason_INSUFFICIENTSTORAGE,+ ..+ ),++ -- * NonComplianceDetail_NonComplianceReason+ NonComplianceDetail_NonComplianceReason+ ( NonComplianceDetail_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED,+ NonComplianceDetail_NonComplianceReason_APILEVEL,+ NonComplianceDetail_NonComplianceReason_MANAGEMENTMODE,+ NonComplianceDetail_NonComplianceReason_USERACTION,+ NonComplianceDetail_NonComplianceReason_INVALIDVALUE,+ NonComplianceDetail_NonComplianceReason_APPNOTINSTALLED,+ NonComplianceDetail_NonComplianceReason_Unsupported,+ NonComplianceDetail_NonComplianceReason_APPINSTALLED,+ NonComplianceDetail_NonComplianceReason_Pending,+ NonComplianceDetail_NonComplianceReason_APPINCOMPATIBLE,+ NonComplianceDetail_NonComplianceReason_APPNOTUPDATED,+ NonComplianceDetail_NonComplianceReason_DEVICEINCOMPATIBLE,+ ..+ ),++ -- * NonComplianceDetail_SpecificNonComplianceReason+ NonComplianceDetail_SpecificNonComplianceReason+ ( NonComplianceDetail_SpecificNonComplianceReason_SPECIFICNONCOMPLIANCEREASONUNSPECIFIED,+ NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESUSERCREDENTIALSCONFIRMATIONREQUIRED,+ NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDEXPIRED,+ NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDNOTSUFFICIENT,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDVALUE,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIAPILEVEL,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDENTERPRISECONFIG,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIUSERSHOULDREMOVENETWORK,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIKEYPAIRALIASNOTCORRESPONDINGTOEXISTINGKEY,+ ..+ ),++ -- * NonComplianceDetailCondition_NonComplianceReason+ NonComplianceDetailCondition_NonComplianceReason+ ( NonComplianceDetailCondition_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED,+ NonComplianceDetailCondition_NonComplianceReason_APILEVEL,+ NonComplianceDetailCondition_NonComplianceReason_MANAGEMENTMODE,+ NonComplianceDetailCondition_NonComplianceReason_USERACTION,+ NonComplianceDetailCondition_NonComplianceReason_INVALIDVALUE,+ NonComplianceDetailCondition_NonComplianceReason_APPNOTINSTALLED,+ NonComplianceDetailCondition_NonComplianceReason_Unsupported,+ NonComplianceDetailCondition_NonComplianceReason_APPINSTALLED,+ NonComplianceDetailCondition_NonComplianceReason_Pending,+ NonComplianceDetailCondition_NonComplianceReason_APPINCOMPATIBLE,+ NonComplianceDetailCondition_NonComplianceReason_APPNOTUPDATED,+ NonComplianceDetailCondition_NonComplianceReason_DEVICEINCOMPATIBLE,+ ..+ ),++ -- * OsStartupEvent_VerifiedBootState+ OsStartupEvent_VerifiedBootState+ ( OsStartupEvent_VerifiedBootState_VERIFIEDBOOTSTATEUNSPECIFIED,+ OsStartupEvent_VerifiedBootState_Green,+ OsStartupEvent_VerifiedBootState_Yellow,+ OsStartupEvent_VerifiedBootState_Orange,+ ..+ ),++ -- * OsStartupEvent_VerityMode+ OsStartupEvent_VerityMode+ ( OsStartupEvent_VerityMode_DMVERITYMODEUNSPECIFIED,+ OsStartupEvent_VerityMode_Enforcing,+ OsStartupEvent_VerityMode_IOERROR,+ OsStartupEvent_VerityMode_Disabled,+ ..+ ),++ -- * PasswordPoliciesContext_PasswordPolicyScope+ PasswordPoliciesContext_PasswordPolicyScope+ ( PasswordPoliciesContext_PasswordPolicyScope_SCOPEUNSPECIFIED,+ PasswordPoliciesContext_PasswordPolicyScope_SCOPEDEVICE,+ PasswordPoliciesContext_PasswordPolicyScope_SCOPEPROFILE,+ ..+ ),++ -- * PasswordRequirements_PasswordQuality+ PasswordRequirements_PasswordQuality+ ( PasswordRequirements_PasswordQuality_PASSWORDQUALITYUNSPECIFIED,+ PasswordRequirements_PasswordQuality_BIOMETRICWEAK,+ PasswordRequirements_PasswordQuality_Something,+ PasswordRequirements_PasswordQuality_Numeric,+ PasswordRequirements_PasswordQuality_NUMERICCOMPLEX,+ PasswordRequirements_PasswordQuality_Alphabetic,+ PasswordRequirements_PasswordQuality_Alphanumeric,+ PasswordRequirements_PasswordQuality_Complex,+ PasswordRequirements_PasswordQuality_COMPLEXITYLOW,+ PasswordRequirements_PasswordQuality_COMPLEXITYMEDIUM,+ PasswordRequirements_PasswordQuality_COMPLEXITYHIGH,+ ..+ ),++ -- * PasswordRequirements_PasswordScope+ PasswordRequirements_PasswordScope+ ( PasswordRequirements_PasswordScope_SCOPEUNSPECIFIED,+ PasswordRequirements_PasswordScope_SCOPEDEVICE,+ PasswordRequirements_PasswordScope_SCOPEPROFILE,+ ..+ ),++ -- * PasswordRequirements_RequirePasswordUnlock+ PasswordRequirements_RequirePasswordUnlock+ ( PasswordRequirements_RequirePasswordUnlock_REQUIREPASSWORDUNLOCKUNSPECIFIED,+ PasswordRequirements_RequirePasswordUnlock_USEDEFAULTDEVICETIMEOUT,+ PasswordRequirements_RequirePasswordUnlock_REQUIREEVERYDAY,+ ..+ ),++ -- * PasswordRequirements_UnifiedLockSettings+ PasswordRequirements_UnifiedLockSettings+ ( PasswordRequirements_UnifiedLockSettings_UNIFIEDLOCKSETTINGSUNSPECIFIED,+ PasswordRequirements_UnifiedLockSettings_ALLOWUNIFIEDWORKANDPERSONALLOCK,+ PasswordRequirements_UnifiedLockSettings_REQUIRESEPARATEWORKLOCK,+ ..+ ),++ -- * PerAppResult_ClearingResult+ PerAppResult_ClearingResult+ ( PerAppResult_ClearingResult_CLEARINGRESULTUNSPECIFIED,+ PerAppResult_ClearingResult_Success,+ PerAppResult_ClearingResult_APPNOTFOUND,+ PerAppResult_ClearingResult_APPPROTECTED,+ PerAppResult_ClearingResult_APILEVEL,+ ..+ ),++ -- * PermissionGrant_Policy+ PermissionGrant_Policy+ ( PermissionGrant_Policy_PERMISSIONPOLICYUNSPECIFIED,+ PermissionGrant_Policy_Prompt,+ PermissionGrant_Policy_Grant,+ PermissionGrant_Policy_Deny,+ ..+ ),++ -- * PersonalApplicationPolicy_InstallType+ PersonalApplicationPolicy_InstallType+ ( PersonalApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED,+ PersonalApplicationPolicy_InstallType_Blocked,+ PersonalApplicationPolicy_InstallType_Available,+ ..+ ),++ -- * PersonalUsagePolicies_PersonalPlayStoreMode+ PersonalUsagePolicies_PersonalPlayStoreMode+ ( PersonalUsagePolicies_PersonalPlayStoreMode_PLAYSTOREMODEUNSPECIFIED,+ PersonalUsagePolicies_PersonalPlayStoreMode_Blacklist,+ PersonalUsagePolicies_PersonalPlayStoreMode_Blocklist,+ PersonalUsagePolicies_PersonalPlayStoreMode_Allowlist,+ ..+ ),++ -- * PersonalUsagePolicies_PrivateSpacePolicy+ PersonalUsagePolicies_PrivateSpacePolicy+ ( PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEPOLICYUNSPECIFIED,+ PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEALLOWED,+ PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEDISALLOWED,+ ..+ ),++ -- * Policy_AndroidDevicePolicyTracksItem+ Policy_AndroidDevicePolicyTracksItem+ ( Policy_AndroidDevicePolicyTracksItem_APPTRACKUNSPECIFIED,+ Policy_AndroidDevicePolicyTracksItem_Production,+ Policy_AndroidDevicePolicyTracksItem_Beta,+ ..+ ),++ -- * Policy_AppAutoUpdatePolicy+ Policy_AppAutoUpdatePolicy+ ( Policy_AppAutoUpdatePolicy_APPAUTOUPDATEPOLICYUNSPECIFIED,+ Policy_AppAutoUpdatePolicy_CHOICETOTHEUSER,+ Policy_AppAutoUpdatePolicy_Never,+ Policy_AppAutoUpdatePolicy_WIFIONLY,+ Policy_AppAutoUpdatePolicy_Always,+ ..+ ),++ -- * Policy_AssistContentPolicy+ Policy_AssistContentPolicy+ ( Policy_AssistContentPolicy_ASSISTCONTENTPOLICYUNSPECIFIED,+ Policy_AssistContentPolicy_ASSISTCONTENTDISALLOWED,+ Policy_AssistContentPolicy_ASSISTCONTENTALLOWED,+ ..+ ),++ -- * Policy_AutoDateAndTimeZone+ Policy_AutoDateAndTimeZone+ ( Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUNSPECIFIED,+ Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUSERCHOICE,+ Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEENFORCED,+ ..+ ),++ -- * Policy_CameraAccess+ Policy_CameraAccess+ ( Policy_CameraAccess_CAMERAACCESSUNSPECIFIED,+ Policy_CameraAccess_CAMERAACCESSUSERCHOICE,+ Policy_CameraAccess_CAMERAACCESSDISABLED,+ Policy_CameraAccess_CAMERAACCESSENFORCED,+ ..+ ),++ -- * Policy_CredentialProviderPolicyDefault+ Policy_CredentialProviderPolicyDefault+ ( Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERPOLICYDEFAULTUNSPECIFIED,+ Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWED,+ Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWEDEXCEPTSYSTEM,+ ..+ ),++ -- * Policy_DefaultPermissionPolicy+ Policy_DefaultPermissionPolicy+ ( Policy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED,+ Policy_DefaultPermissionPolicy_Prompt,+ Policy_DefaultPermissionPolicy_Grant,+ Policy_DefaultPermissionPolicy_Deny,+ ..+ ),++ -- * Policy_EncryptionPolicy+ Policy_EncryptionPolicy+ ( Policy_EncryptionPolicy_ENCRYPTIONPOLICYUNSPECIFIED,+ Policy_EncryptionPolicy_ENABLEDWITHOUTPASSWORD,+ Policy_EncryptionPolicy_ENABLEDWITHPASSWORD,+ ..+ ),++ -- * Policy_KeyguardDisabledFeaturesItem+ Policy_KeyguardDisabledFeaturesItem+ ( Policy_KeyguardDisabledFeaturesItem_KEYGUARDDISABLEDFEATUREUNSPECIFIED,+ Policy_KeyguardDisabledFeaturesItem_Camera,+ Policy_KeyguardDisabledFeaturesItem_Notifications,+ Policy_KeyguardDisabledFeaturesItem_UNREDACTEDNOTIFICATIONS,+ Policy_KeyguardDisabledFeaturesItem_TRUSTAGENTS,+ Policy_KeyguardDisabledFeaturesItem_DISABLEFINGERPRINT,+ Policy_KeyguardDisabledFeaturesItem_DISABLEREMOTEINPUT,+ Policy_KeyguardDisabledFeaturesItem_Face,+ Policy_KeyguardDisabledFeaturesItem_Iris,+ Policy_KeyguardDisabledFeaturesItem_Biometrics,+ Policy_KeyguardDisabledFeaturesItem_Shortcuts,+ Policy_KeyguardDisabledFeaturesItem_ALLFEATURES,+ ..+ ),++ -- * Policy_LocationMode+ Policy_LocationMode+ ( Policy_LocationMode_LOCATIONMODEUNSPECIFIED,+ Policy_LocationMode_HIGHACCURACY,+ Policy_LocationMode_SENSORSONLY,+ Policy_LocationMode_BATTERYSAVING,+ Policy_LocationMode_Off,+ Policy_LocationMode_LOCATIONUSERCHOICE,+ Policy_LocationMode_LOCATIONENFORCED,+ Policy_LocationMode_LOCATIONDISABLED,+ ..+ ),++ -- * Policy_MicrophoneAccess+ Policy_MicrophoneAccess+ ( Policy_MicrophoneAccess_MICROPHONEACCESSUNSPECIFIED,+ Policy_MicrophoneAccess_MICROPHONEACCESSUSERCHOICE,+ Policy_MicrophoneAccess_MICROPHONEACCESSDISABLED,+ Policy_MicrophoneAccess_MICROPHONEACCESSENFORCED,+ ..+ ),++ -- * Policy_PlayStoreMode+ Policy_PlayStoreMode+ ( Policy_PlayStoreMode_PLAYSTOREMODEUNSPECIFIED,+ Policy_PlayStoreMode_Whitelist,+ Policy_PlayStoreMode_Blacklist,+ ..+ ),++ -- * Policy_PreferentialNetworkService+ Policy_PreferentialNetworkService+ ( Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEUNSPECIFIED,+ Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEDISABLED,+ Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEENABLED,+ ..+ ),++ -- * Policy_PrintingPolicy+ Policy_PrintingPolicy+ ( Policy_PrintingPolicy_PRINTINGPOLICYUNSPECIFIED,+ Policy_PrintingPolicy_PRINTINGDISALLOWED,+ Policy_PrintingPolicy_PRINTINGALLOWED,+ ..+ ),++ -- * Policy_StayOnPluggedModesItem+ Policy_StayOnPluggedModesItem+ ( Policy_StayOnPluggedModesItem_BATTERYPLUGGEDMODEUNSPECIFIED,+ Policy_StayOnPluggedModesItem_AC,+ Policy_StayOnPluggedModesItem_Usb,+ Policy_StayOnPluggedModesItem_Wireless,+ ..+ ),++ -- * PostureDetail_SecurityRisk+ PostureDetail_SecurityRisk+ ( PostureDetail_SecurityRisk_SECURITYRISKUNSPECIFIED,+ PostureDetail_SecurityRisk_UNKNOWNOS,+ PostureDetail_SecurityRisk_COMPROMISEDOS,+ PostureDetail_SecurityRisk_HARDWAREBACKEDEVALUATIONFAILED,+ ..+ ),++ -- * PowerManagementEvent_EventType+ PowerManagementEvent_EventType+ ( PowerManagementEvent_EventType_POWERMANAGEMENTEVENTTYPEUNSPECIFIED,+ PowerManagementEvent_EventType_BATTERYLEVELCOLLECTED,+ PowerManagementEvent_EventType_POWERCONNECTED,+ PowerManagementEvent_EventType_POWERDISCONNECTED,+ PowerManagementEvent_EventType_BATTERYLOW,+ PowerManagementEvent_EventType_BATTERYOKAY,+ PowerManagementEvent_EventType_BOOTCOMPLETED,+ PowerManagementEvent_EventType_Shutdown,+ ..+ ),++ -- * ProvisioningInfo_ManagementMode+ ProvisioningInfo_ManagementMode+ ( ProvisioningInfo_ManagementMode_MANAGEMENTMODEUNSPECIFIED,+ ProvisioningInfo_ManagementMode_DEVICEOWNER,+ ProvisioningInfo_ManagementMode_PROFILEOWNER,+ ..+ ),++ -- * ProvisioningInfo_Ownership+ ProvisioningInfo_Ownership+ ( ProvisioningInfo_Ownership_OWNERSHIPUNSPECIFIED,+ ProvisioningInfo_Ownership_COMPANYOWNED,+ ProvisioningInfo_Ownership_PERSONALLYOWNED,+ ..+ ),++ -- * ScreenBrightnessSettings_ScreenBrightnessMode+ ScreenBrightnessSettings_ScreenBrightnessMode+ ( ScreenBrightnessSettings_ScreenBrightnessMode_SCREENBRIGHTNESSMODEUNSPECIFIED,+ ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSUSERCHOICE,+ ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSAUTOMATIC,+ ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSFIXED,+ ..+ ),++ -- * ScreenTimeoutSettings_ScreenTimeoutMode+ ScreenTimeoutSettings_ScreenTimeoutMode+ ( ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTMODEUNSPECIFIED,+ ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTUSERCHOICE,+ ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTENFORCED,+ ..+ ),++ -- * SecurityPosture_DevicePosture+ SecurityPosture_DevicePosture+ ( SecurityPosture_DevicePosture_POSTUREUNSPECIFIED,+ SecurityPosture_DevicePosture_Secure',+ SecurityPosture_DevicePosture_ATRISK,+ SecurityPosture_DevicePosture_POTENTIALLYCOMPROMISED,+ ..+ ),++ -- * SigninDetail_AllowPersonalUsage+ SigninDetail_AllowPersonalUsage+ ( SigninDetail_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED,+ SigninDetail_AllowPersonalUsage_PERSONALUSAGEALLOWED,+ SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWED,+ SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS,+ ..+ ),++ -- * SigninDetail_DefaultStatus+ SigninDetail_DefaultStatus+ ( SigninDetail_DefaultStatus_SIGNINDETAILDEFAULTSTATUSUNSPECIFIED,+ SigninDetail_DefaultStatus_SIGNINDETAILISDEFAULT,+ SigninDetail_DefaultStatus_SIGNINDETAILISNOTDEFAULT,+ ..+ ),++ -- * StartLostModeStatus_Status+ StartLostModeStatus_Status+ ( StartLostModeStatus_Status_STATUSUNSPECIFIED,+ StartLostModeStatus_Status_Success,+ StartLostModeStatus_Status_RESETPASSWORDRECENTLY,+ StartLostModeStatus_Status_USEREXITLOSTMODERECENTLY,+ StartLostModeStatus_Status_ALREADYINLOSTMODE,+ ..+ ),++ -- * StopLostModeStatus_Status+ StopLostModeStatus_Status+ ( StopLostModeStatus_Status_STATUSUNSPECIFIED,+ StopLostModeStatus_Status_Success,+ StopLostModeStatus_Status_NOTINLOSTMODE,+ ..+ ),++ -- * StopLostModeUserAttemptEvent_Status+ StopLostModeUserAttemptEvent_Status+ ( StopLostModeUserAttemptEvent_Status_STATUSUNSPECIFIED,+ StopLostModeUserAttemptEvent_Status_ATTEMPTSUCCEEDED,+ StopLostModeUserAttemptEvent_Status_ATTEMPTFAILED,+ ..+ ),++ -- * SystemUpdate_Type+ SystemUpdate_Type+ ( SystemUpdate_Type_SYSTEMUPDATETYPEUNSPECIFIED,+ SystemUpdate_Type_Automatic,+ SystemUpdate_Type_Windowed,+ SystemUpdate_Type_Postpone,+ ..+ ),++ -- * SystemUpdateInfo_UpdateStatus+ SystemUpdateInfo_UpdateStatus+ ( SystemUpdateInfo_UpdateStatus_UPDATESTATUSUNKNOWN,+ SystemUpdateInfo_UpdateStatus_UPTODATE,+ SystemUpdateInfo_UpdateStatus_UNKNOWNUPDATEAVAILABLE,+ SystemUpdateInfo_UpdateStatus_SECURITYUPDATEAVAILABLE,+ SystemUpdateInfo_UpdateStatus_OSUPDATEAVAILABLE,+ ..+ ),++ -- * UsageLog_EnabledLogTypesItem+ UsageLog_EnabledLogTypesItem+ ( UsageLog_EnabledLogTypesItem_LOGTYPEUNSPECIFIED,+ UsageLog_EnabledLogTypesItem_SECURITYLOGS,+ UsageLog_EnabledLogTypesItem_NETWORKACTIVITYLOGS,+ ..+ ),++ -- * UsageLog_UploadOnCellularAllowedItem+ UsageLog_UploadOnCellularAllowedItem+ ( UsageLog_UploadOnCellularAllowedItem_LOGTYPEUNSPECIFIED,+ UsageLog_UploadOnCellularAllowedItem_SECURITYLOGS,+ UsageLog_UploadOnCellularAllowedItem_NETWORKACTIVITYLOGS,+ ..+ ),++ -- * UsageLogEvent_EventType+ UsageLogEvent_EventType+ ( UsageLogEvent_EventType_EVENTTYPEUNSPECIFIED,+ UsageLogEvent_EventType_ADBSHELLCOMMAND,+ UsageLogEvent_EventType_ADBSHELLINTERACTIVE,+ UsageLogEvent_EventType_APPPROCESSSTART,+ UsageLogEvent_EventType_KEYGUARDDISMISSED,+ UsageLogEvent_EventType_KEYGUARDDISMISSAUTHATTEMPT,+ UsageLogEvent_EventType_KEYGUARDSECURED,+ UsageLogEvent_EventType_FILEPULLED,+ UsageLogEvent_EventType_FILEPUSHED,+ UsageLogEvent_EventType_CERTAUTHORITYINSTALLED,+ UsageLogEvent_EventType_CERTAUTHORITYREMOVED,+ UsageLogEvent_EventType_CERTVALIDATIONFAILURE,+ UsageLogEvent_EventType_CRYPTOSELFTESTCOMPLETED,+ UsageLogEvent_EventType_KEYDESTRUCTION,+ UsageLogEvent_EventType_KEYGENERATED,+ UsageLogEvent_EventType_KEYIMPORT,+ UsageLogEvent_EventType_KEYINTEGRITYVIOLATION,+ UsageLogEvent_EventType_LOGGINGSTARTED,+ UsageLogEvent_EventType_LOGGINGSTOPPED,+ UsageLogEvent_EventType_LOGBUFFERSIZECRITICAL,+ UsageLogEvent_EventType_MEDIAMOUNT,+ UsageLogEvent_EventType_MEDIAUNMOUNT,+ UsageLogEvent_EventType_OSSHUTDOWN,+ UsageLogEvent_EventType_OSSTARTUP,+ UsageLogEvent_EventType_REMOTELOCK,+ UsageLogEvent_EventType_WIPEFAILURE,+ UsageLogEvent_EventType_Connect,+ UsageLogEvent_EventType_Dns,+ UsageLogEvent_EventType_STOPLOSTMODEUSERATTEMPT,+ UsageLogEvent_EventType_LOSTMODEOUTGOINGPHONECALL,+ UsageLogEvent_EventType_LOSTMODELOCATION,+ UsageLogEvent_EventType_ENROLLMENTCOMPLETE,+ ..+ ),++ -- * WebApp_DisplayMode+ WebApp_DisplayMode+ ( WebApp_DisplayMode_DISPLAYMODEUNSPECIFIED,+ WebApp_DisplayMode_MINIMALUI,+ WebApp_DisplayMode_Standalone,+ WebApp_DisplayMode_FULLSCREEN,+ ..+ ),++ -- * WebToken_EnabledFeaturesItem+ WebToken_EnabledFeaturesItem+ ( WebToken_EnabledFeaturesItem_FEATUREUNSPECIFIED,+ WebToken_EnabledFeaturesItem_PLAYSEARCH,+ WebToken_EnabledFeaturesItem_PRIVATEAPPS,+ WebToken_EnabledFeaturesItem_WEBAPPS,+ WebToken_EnabledFeaturesItem_STOREBUILDER,+ WebToken_EnabledFeaturesItem_MANAGEDCONFIGURATIONS,+ WebToken_EnabledFeaturesItem_ZEROTOUCHCUSTOMERMANAGEMENT,+ ..+ ),++ -- * WebToken_PermissionsItem+ WebToken_PermissionsItem+ ( WebToken_PermissionsItem_WEBTOKENPERMISSIONUNSPECIFIED,+ WebToken_PermissionsItem_APPROVEAPPS,+ ..+ ),++ -- * WifiRoamingSetting_WifiRoamingMode+ WifiRoamingSetting_WifiRoamingMode+ ( WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGMODEUNSPECIFIED,+ WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDISABLED,+ WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDEFAULT,+ WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGAGGRESSIVE,+ ..+ ),++ -- * WifiSsidPolicy_WifiSsidPolicyType+ WifiSsidPolicy_WifiSsidPolicyType+ ( WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDPOLICYTYPEUNSPECIFIED,+ WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDDENYLIST,+ WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDALLOWLIST,+ ..+ ),++ -- * EnterprisesDevicesDeleteWipeDataFlags+ EnterprisesDevicesDeleteWipeDataFlags+ ( EnterprisesDevicesDeleteWipeDataFlags_WIPEDATAFLAGUNSPECIFIED,+ EnterprisesDevicesDeleteWipeDataFlags_PRESERVERESETPROTECTIONDATA,+ EnterprisesDevicesDeleteWipeDataFlags_WIPEEXTERNALSTORAGE,+ ..+ ),++ -- * EnterprisesListView+ EnterprisesListView+ ( EnterprisesListView_ENTERPRISEVIEWUNSPECIFIED,+ EnterprisesListView_Basic,+ ..+ ),+ )+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+ #-}++-- | Controls Common Criteria Mode—security standards defined in the Common Criteria for Information Technology Security Evaluation (https:\/\/www.commoncriteriaportal.org\/) (CC). Enabling Common Criteria Mode increases certain security components on a device, see CommonCriteriaMode for details.Warning: Common Criteria Mode enforces a strict security model typically only required for IT products used in national security systems and other highly sensitive organizations. Standard device use may be affected. Only enabled if required. If Common Criteria Mode is turned off after being enabled previously, all user-configured Wi-Fi networks may be lost and any enterprise-configured Wi-Fi networks that require user input may need to be reconfigured.+newtype AdvancedSecurityOverrides_CommonCriteriaMode = AdvancedSecurityOverrides_CommonCriteriaMode {fromAdvancedSecurityOverrides_CommonCriteriaMode :: 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 COMMON/CRITERIA/MODE_DISABLED.+pattern AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEUNSPECIFIED :: AdvancedSecurityOverrides_CommonCriteriaMode+pattern AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEUNSPECIFIED = AdvancedSecurityOverrides_CommonCriteriaMode "COMMON_CRITERIA_MODE_UNSPECIFIED"++-- | Default. Disables Common Criteria Mode.+pattern AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEDISABLED :: AdvancedSecurityOverrides_CommonCriteriaMode+pattern AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEDISABLED = AdvancedSecurityOverrides_CommonCriteriaMode "COMMON_CRITERIA_MODE_DISABLED"++-- | Enables Common Criteria Mode.+pattern AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEENABLED :: AdvancedSecurityOverrides_CommonCriteriaMode+pattern AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEENABLED = AdvancedSecurityOverrides_CommonCriteriaMode "COMMON_CRITERIA_MODE_ENABLED"++{-# COMPLETE+ AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEUNSPECIFIED,+ AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEDISABLED,+ AdvancedSecurityOverrides_CommonCriteriaMode_COMMONCRITERIAMODEENABLED,+ AdvancedSecurityOverrides_CommonCriteriaMode+ #-}++-- | Optional. Controls whether content protection, which scans for deceptive apps, is enabled. This is supported on Android 15 and above.+newtype AdvancedSecurityOverrides_ContentProtectionPolicy = AdvancedSecurityOverrides_ContentProtectionPolicy {fromAdvancedSecurityOverrides_ContentProtectionPolicy :: 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 CONTENT/PROTECTION/DISABLED.+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONPOLICYUNSPECIFIED :: AdvancedSecurityOverrides_ContentProtectionPolicy+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONPOLICYUNSPECIFIED = AdvancedSecurityOverrides_ContentProtectionPolicy "CONTENT_PROTECTION_POLICY_UNSPECIFIED"++-- | Content protection is disabled and the user cannot change this.+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONDISABLED :: AdvancedSecurityOverrides_ContentProtectionPolicy+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONDISABLED = AdvancedSecurityOverrides_ContentProtectionPolicy "CONTENT_PROTECTION_DISABLED"++-- | Content protection is enabled and the user cannot change this.Supported on Android 15 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 15.+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONENFORCED :: AdvancedSecurityOverrides_ContentProtectionPolicy+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONENFORCED = AdvancedSecurityOverrides_ContentProtectionPolicy "CONTENT_PROTECTION_ENFORCED"++-- | Content protection is not controlled by the policy. The user is allowed to choose the behavior of content protection.Supported on Android 15 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 15.+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONUSERCHOICE :: AdvancedSecurityOverrides_ContentProtectionPolicy+pattern AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONUSERCHOICE = AdvancedSecurityOverrides_ContentProtectionPolicy "CONTENT_PROTECTION_USER_CHOICE"++{-# COMPLETE+ AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONPOLICYUNSPECIFIED,+ AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONDISABLED,+ AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONENFORCED,+ AdvancedSecurityOverrides_ContentProtectionPolicy_CONTENTPROTECTIONUSERCHOICE,+ AdvancedSecurityOverrides_ContentProtectionPolicy+ #-}++-- | Controls access to developer settings: developer options and safe boot. Replaces safeBootDisabled (deprecated) and debuggingFeaturesAllowed (deprecated).+newtype AdvancedSecurityOverrides_DeveloperSettings = AdvancedSecurityOverrides_DeveloperSettings {fromAdvancedSecurityOverrides_DeveloperSettings :: 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 DEVELOPER/SETTINGS/DISABLED.+pattern AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSUNSPECIFIED :: AdvancedSecurityOverrides_DeveloperSettings+pattern AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSUNSPECIFIED = AdvancedSecurityOverrides_DeveloperSettings "DEVELOPER_SETTINGS_UNSPECIFIED"++-- | Default. Disables all developer settings and prevents the user from accessing them.+pattern AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSDISABLED :: AdvancedSecurityOverrides_DeveloperSettings+pattern AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSDISABLED = AdvancedSecurityOverrides_DeveloperSettings "DEVELOPER_SETTINGS_DISABLED"++-- | Allows all developer settings. The user can access and optionally configure the settings.+pattern AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSALLOWED :: AdvancedSecurityOverrides_DeveloperSettings+pattern AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSALLOWED = AdvancedSecurityOverrides_DeveloperSettings "DEVELOPER_SETTINGS_ALLOWED"++{-# COMPLETE+ AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSUNSPECIFIED,+ AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSDISABLED,+ AdvancedSecurityOverrides_DeveloperSettings_DEVELOPERSETTINGSALLOWED,+ AdvancedSecurityOverrides_DeveloperSettings+ #-}++-- | Whether Google Play Protect verification (https:\/\/support.google.com\/accounts\/answer\/2812853) is enforced. Replaces ensureVerifyAppsEnabled (deprecated).+newtype AdvancedSecurityOverrides_GooglePlayProtectVerifyApps = AdvancedSecurityOverrides_GooglePlayProtectVerifyApps {fromAdvancedSecurityOverrides_GooglePlayProtectVerifyApps :: 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 VERIFY/APPS/ENFORCED.+pattern AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_GOOGLEPLAYPROTECTVERIFYAPPSUNSPECIFIED :: AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+pattern AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_GOOGLEPLAYPROTECTVERIFYAPPSUNSPECIFIED = AdvancedSecurityOverrides_GooglePlayProtectVerifyApps "GOOGLE_PLAY_PROTECT_VERIFY_APPS_UNSPECIFIED"++-- | Default. Force-enables app verification.+pattern AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSENFORCED :: AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+pattern AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSENFORCED = AdvancedSecurityOverrides_GooglePlayProtectVerifyApps "VERIFY_APPS_ENFORCED"++-- | Allows the user to choose whether to enable app verification.+pattern AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSUSERCHOICE :: AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+pattern AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSUSERCHOICE = AdvancedSecurityOverrides_GooglePlayProtectVerifyApps "VERIFY_APPS_USER_CHOICE"++{-# COMPLETE+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_GOOGLEPLAYPROTECTVERIFYAPPSUNSPECIFIED,+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSENFORCED,+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps_VERIFYAPPSUSERCHOICE,+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+ #-}++-- | Optional. Controls Memory Tagging Extension (MTE) (https:\/\/source.android.com\/docs\/security\/test\/memory-safety\/arm-mte) on the device. The device needs to be rebooted to apply changes to the MTE policy.+newtype AdvancedSecurityOverrides_MtePolicy = AdvancedSecurityOverrides_MtePolicy {fromAdvancedSecurityOverrides_MtePolicy :: 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 MTE/USER/CHOICE.+pattern AdvancedSecurityOverrides_MtePolicy_MTEPOLICYUNSPECIFIED :: AdvancedSecurityOverrides_MtePolicy+pattern AdvancedSecurityOverrides_MtePolicy_MTEPOLICYUNSPECIFIED = AdvancedSecurityOverrides_MtePolicy "MTE_POLICY_UNSPECIFIED"++-- | The user can choose to enable or disable MTE on the device if the device supports this.+pattern AdvancedSecurityOverrides_MtePolicy_MTEUSERCHOICE :: AdvancedSecurityOverrides_MtePolicy+pattern AdvancedSecurityOverrides_MtePolicy_MTEUSERCHOICE = AdvancedSecurityOverrides_MtePolicy "MTE_USER_CHOICE"++-- | MTE is enabled on the device and the user is not allowed to change this setting. This can be set on fully managed devices and work profiles on company-owned devices. A nonComplianceDetail with MANAGEMENT/MODE is reported for other management modes. A nonComplianceDetail with DEVICE/INCOMPATIBLE is reported if the device does not support MTE.Supported on Android 14 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.+pattern AdvancedSecurityOverrides_MtePolicy_MTEENFORCED :: AdvancedSecurityOverrides_MtePolicy+pattern AdvancedSecurityOverrides_MtePolicy_MTEENFORCED = AdvancedSecurityOverrides_MtePolicy "MTE_ENFORCED"++-- | MTE is disabled on the device and the user is not allowed to change this setting. This applies only on fully managed devices. In other cases, a nonComplianceDetail with MANAGEMENT/MODE is reported. A nonComplianceDetail with DEVICE/INCOMPATIBLE is reported if the device does not support MTE.Supported on Android 14 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.+pattern AdvancedSecurityOverrides_MtePolicy_MTEDISABLED :: AdvancedSecurityOverrides_MtePolicy+pattern AdvancedSecurityOverrides_MtePolicy_MTEDISABLED = AdvancedSecurityOverrides_MtePolicy "MTE_DISABLED"++{-# COMPLETE+ AdvancedSecurityOverrides_MtePolicy_MTEPOLICYUNSPECIFIED,+ AdvancedSecurityOverrides_MtePolicy_MTEUSERCHOICE,+ AdvancedSecurityOverrides_MtePolicy_MTEENFORCED,+ AdvancedSecurityOverrides_MtePolicy_MTEDISABLED,+ AdvancedSecurityOverrides_MtePolicy+ #-}++-- | The policy for untrusted apps (apps from unknown sources) enforced on the device. Replaces install/unknown/sources_allowed (deprecated).+newtype AdvancedSecurityOverrides_UntrustedAppsPolicy = AdvancedSecurityOverrides_UntrustedAppsPolicy {fromAdvancedSecurityOverrides_UntrustedAppsPolicy :: 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 DISALLOW_INSTALL.+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_UNTRUSTEDAPPSPOLICYUNSPECIFIED :: AdvancedSecurityOverrides_UntrustedAppsPolicy+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_UNTRUSTEDAPPSPOLICYUNSPECIFIED = AdvancedSecurityOverrides_UntrustedAppsPolicy "UNTRUSTED_APPS_POLICY_UNSPECIFIED"++-- | Default. Disallow untrusted app installs on entire device.+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_DISALLOWINSTALL :: AdvancedSecurityOverrides_UntrustedAppsPolicy+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_DISALLOWINSTALL = AdvancedSecurityOverrides_UntrustedAppsPolicy "DISALLOW_INSTALL"++-- | For devices with work profiles, allow untrusted app installs in the device\'s personal profile only.+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLINPERSONALPROFILEONLY :: AdvancedSecurityOverrides_UntrustedAppsPolicy+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLINPERSONALPROFILEONLY = AdvancedSecurityOverrides_UntrustedAppsPolicy "ALLOW_INSTALL_IN_PERSONAL_PROFILE_ONLY"++-- | Allow untrusted app installs on entire device.+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLDEVICEWIDE :: AdvancedSecurityOverrides_UntrustedAppsPolicy+pattern AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLDEVICEWIDE = AdvancedSecurityOverrides_UntrustedAppsPolicy "ALLOW_INSTALL_DEVICE_WIDE"++{-# COMPLETE+ AdvancedSecurityOverrides_UntrustedAppsPolicy_UNTRUSTEDAPPSPOLICYUNSPECIFIED,+ AdvancedSecurityOverrides_UntrustedAppsPolicy_DISALLOWINSTALL,+ AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLINPERSONALPROFILEONLY,+ AdvancedSecurityOverrides_UntrustedAppsPolicy_ALLOWINSTALLDEVICEWIDE,+ AdvancedSecurityOverrides_UntrustedAppsPolicy+ #-}++-- | Whether this app is free, free with in-app purchases, or paid. If the pricing is unspecified, this means the app is not generally available anymore (even though it might still be available to people who own it).+newtype Application_AppPricing = Application_AppPricing {fromApplication_AppPricing :: 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 app that is not generally available.+pattern Application_AppPricing_APPPRICINGUNSPECIFIED :: Application_AppPricing+pattern Application_AppPricing_APPPRICINGUNSPECIFIED = Application_AppPricing "APP_PRICING_UNSPECIFIED"++-- | The app is free.+pattern Application_AppPricing_Free :: Application_AppPricing+pattern Application_AppPricing_Free = Application_AppPricing "FREE"++-- | The app is free, but offers in-app purchases.+pattern Application_AppPricing_FREEWITHINAPPPURCHASE :: Application_AppPricing+pattern Application_AppPricing_FREEWITHINAPPPURCHASE = Application_AppPricing "FREE_WITH_IN_APP_PURCHASE"++-- | The app is paid.+pattern Application_AppPricing_Paid :: Application_AppPricing+pattern Application_AppPricing_Paid = Application_AppPricing "PAID"++{-# COMPLETE+ Application_AppPricing_APPPRICINGUNSPECIFIED,+ Application_AppPricing_Free,+ Application_AppPricing_FREEWITHINAPPPURCHASE,+ Application_AppPricing_Paid,+ Application_AppPricing+ #-}++-- | The content rating for this app.+newtype Application_ContentRating = Application_ContentRating {fromApplication_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+ )++-- | Unspecified.+pattern Application_ContentRating_CONTENTRATINGUNSPECIFIED :: Application_ContentRating+pattern Application_ContentRating_CONTENTRATINGUNSPECIFIED = Application_ContentRating "CONTENT_RATING_UNSPECIFIED"++-- | Content suitable for ages 3 and above only.+pattern Application_ContentRating_THREEYEARS :: Application_ContentRating+pattern Application_ContentRating_THREEYEARS = Application_ContentRating "THREE_YEARS"++-- | Content suitable for ages 7 and above only.+pattern Application_ContentRating_SEVENYEARS :: Application_ContentRating+pattern Application_ContentRating_SEVENYEARS = Application_ContentRating "SEVEN_YEARS"++-- | Content suitable for ages 12 and above only.+pattern Application_ContentRating_TWELVEYEARS :: Application_ContentRating+pattern Application_ContentRating_TWELVEYEARS = Application_ContentRating "TWELVE_YEARS"++-- | Content suitable for ages 16 and above only.+pattern Application_ContentRating_SIXTEENYEARS :: Application_ContentRating+pattern Application_ContentRating_SIXTEENYEARS = Application_ContentRating "SIXTEEN_YEARS"++-- | Content suitable for ages 18 and above only.+pattern Application_ContentRating_EIGHTEENYEARS :: Application_ContentRating+pattern Application_ContentRating_EIGHTEENYEARS = Application_ContentRating "EIGHTEEN_YEARS"++{-# COMPLETE+ Application_ContentRating_CONTENTRATINGUNSPECIFIED,+ Application_ContentRating_THREEYEARS,+ Application_ContentRating_SEVENYEARS,+ Application_ContentRating_TWELVEYEARS,+ Application_ContentRating_SIXTEENYEARS,+ Application_ContentRating_EIGHTEENYEARS,+ Application_ContentRating+ #-}++-- | How and to whom the package is made available.+newtype Application_DistributionChannel = Application_DistributionChannel {fromApplication_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+ )++-- | Unspecified.+pattern Application_DistributionChannel_DISTRIBUTIONCHANNELUNSPECIFIED :: Application_DistributionChannel+pattern Application_DistributionChannel_DISTRIBUTIONCHANNELUNSPECIFIED = Application_DistributionChannel "DISTRIBUTION_CHANNEL_UNSPECIFIED"++-- | Package is available through the Play store and not restricted to a specific enterprise.+pattern Application_DistributionChannel_PUBLICGOOGLEHOSTED :: Application_DistributionChannel+pattern Application_DistributionChannel_PUBLICGOOGLEHOSTED = Application_DistributionChannel "PUBLIC_GOOGLE_HOSTED"++-- | Package is a private app (restricted to an enterprise) but hosted by Google.+pattern Application_DistributionChannel_PRIVATEGOOGLEHOSTED :: Application_DistributionChannel+pattern Application_DistributionChannel_PRIVATEGOOGLEHOSTED = Application_DistributionChannel "PRIVATE_GOOGLE_HOSTED"++-- | Private app (restricted to an enterprise) and is privately hosted.+pattern Application_DistributionChannel_PRIVATESELFHOSTED :: Application_DistributionChannel+pattern Application_DistributionChannel_PRIVATESELFHOSTED = Application_DistributionChannel "PRIVATE_SELF_HOSTED"++{-# COMPLETE+ Application_DistributionChannel_DISTRIBUTIONCHANNELUNSPECIFIED,+ Application_DistributionChannel_PUBLICGOOGLEHOSTED,+ Application_DistributionChannel_PRIVATEGOOGLEHOSTED,+ Application_DistributionChannel_PRIVATESELFHOSTED,+ Application_DistributionChannel+ #-}++newtype Application_FeaturesItem = Application_FeaturesItem {fromApplication_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+ )++-- | Unspecified.+pattern Application_FeaturesItem_APPFEATUREUNSPECIFIED :: Application_FeaturesItem+pattern Application_FeaturesItem_APPFEATUREUNSPECIFIED = Application_FeaturesItem "APP_FEATURE_UNSPECIFIED"++-- | The app is a VPN.+pattern Application_FeaturesItem_VPNAPP :: Application_FeaturesItem+pattern Application_FeaturesItem_VPNAPP = Application_FeaturesItem "VPN_APP"++{-# COMPLETE+ Application_FeaturesItem_APPFEATUREUNSPECIFIED,+ Application_FeaturesItem_VPNAPP,+ Application_FeaturesItem+ #-}++-- | App event type.+newtype ApplicationEvent_EventType = ApplicationEvent_EventType {fromApplicationEvent_EventType :: 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 disallowed.+pattern ApplicationEvent_EventType_APPLICATIONEVENTTYPEUNSPECIFIED :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_APPLICATIONEVENTTYPEUNSPECIFIED = ApplicationEvent_EventType "APPLICATION_EVENT_TYPE_UNSPECIFIED"++-- | The app was installed.+pattern ApplicationEvent_EventType_Installed :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_Installed = ApplicationEvent_EventType "INSTALLED"++-- | The app was changed, for example, a component was enabled or disabled.+pattern ApplicationEvent_EventType_Changed :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_Changed = ApplicationEvent_EventType "CHANGED"++-- | The app data was cleared.+pattern ApplicationEvent_EventType_DATACLEARED :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_DATACLEARED = ApplicationEvent_EventType "DATA_CLEARED"++-- | The app was removed.+pattern ApplicationEvent_EventType_Removed :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_Removed = ApplicationEvent_EventType "REMOVED"++-- | A new version of the app has been installed, replacing the old version.+pattern ApplicationEvent_EventType_Replaced :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_Replaced = ApplicationEvent_EventType "REPLACED"++-- | The app was restarted.+pattern ApplicationEvent_EventType_Restarted :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_Restarted = ApplicationEvent_EventType "RESTARTED"++-- | The app was pinned to the foreground.+pattern ApplicationEvent_EventType_Pinned :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_Pinned = ApplicationEvent_EventType "PINNED"++-- | The app was unpinned.+pattern ApplicationEvent_EventType_Unpinned :: ApplicationEvent_EventType+pattern ApplicationEvent_EventType_Unpinned = ApplicationEvent_EventType "UNPINNED"++{-# COMPLETE+ ApplicationEvent_EventType_APPLICATIONEVENTTYPEUNSPECIFIED,+ ApplicationEvent_EventType_Installed,+ ApplicationEvent_EventType_Changed,+ ApplicationEvent_EventType_DATACLEARED,+ ApplicationEvent_EventType_Removed,+ ApplicationEvent_EventType_Replaced,+ ApplicationEvent_EventType_Restarted,+ ApplicationEvent_EventType_Pinned,+ ApplicationEvent_EventType_Unpinned,+ ApplicationEvent_EventType+ #-}++-- | Specifies whether the app is allowed networking when the VPN is not connected and alwaysOnVpnPackage.lockdownEnabled is enabled. If set to VPN/LOCKDOWN/ENFORCED, the app is not allowed networking, and if set to VPN/LOCKDOWN/EXEMPTION, the app is allowed networking. Only supported on devices running Android 10 and above. If this is not supported by the device, the device will contain a NonComplianceDetail with non/compliance/reason set to API/LEVEL and a fieldPath. If this is not applicable to the app, the device will contain a NonComplianceDetail with non/compliance_reason set to UNSUPPORTED and a fieldPath. The fieldPath is set to applications[i].alwaysOnVpnLockdownExemption, where i is the index of the package in the applications policy.+newtype ApplicationPolicy_AlwaysOnVpnLockdownExemption = ApplicationPolicy_AlwaysOnVpnLockdownExemption {fromApplicationPolicy_AlwaysOnVpnLockdownExemption :: 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 VPN/LOCKDOWN/ENFORCED.+pattern ApplicationPolicy_AlwaysOnVpnLockdownExemption_ALWAYSONVPNLOCKDOWNEXEMPTIONUNSPECIFIED :: ApplicationPolicy_AlwaysOnVpnLockdownExemption+pattern ApplicationPolicy_AlwaysOnVpnLockdownExemption_ALWAYSONVPNLOCKDOWNEXEMPTIONUNSPECIFIED = ApplicationPolicy_AlwaysOnVpnLockdownExemption "ALWAYS_ON_VPN_LOCKDOWN_EXEMPTION_UNSPECIFIED"++-- | The app respects the always-on VPN lockdown setting.+pattern ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNENFORCED :: ApplicationPolicy_AlwaysOnVpnLockdownExemption+pattern ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNENFORCED = ApplicationPolicy_AlwaysOnVpnLockdownExemption "VPN_LOCKDOWN_ENFORCED"++-- | The app is exempt from the always-on VPN lockdown setting.+pattern ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNEXEMPTION :: ApplicationPolicy_AlwaysOnVpnLockdownExemption+pattern ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNEXEMPTION = ApplicationPolicy_AlwaysOnVpnLockdownExemption "VPN_LOCKDOWN_EXEMPTION"++{-# COMPLETE+ ApplicationPolicy_AlwaysOnVpnLockdownExemption_ALWAYSONVPNLOCKDOWNEXEMPTIONUNSPECIFIED,+ ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNENFORCED,+ ApplicationPolicy_AlwaysOnVpnLockdownExemption_VPNLOCKDOWNEXEMPTION,+ ApplicationPolicy_AlwaysOnVpnLockdownExemption+ #-}++-- | Controls the auto-update mode for the app.+newtype ApplicationPolicy_AutoUpdateMode = ApplicationPolicy_AutoUpdateMode {fromApplicationPolicy_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 ApplicationPolicy_AutoUpdateMode_AUTOUPDATEMODEUNSPECIFIED :: ApplicationPolicy_AutoUpdateMode+pattern ApplicationPolicy_AutoUpdateMode_AUTOUPDATEMODEUNSPECIFIED = ApplicationPolicy_AutoUpdateMode "AUTO_UPDATE_MODE_UNSPECIFIED"++-- | The default update mode.The app is automatically updated with low priority to minimize the impact on the user.The app is updated when all of the following constraints are met: The device is not actively used. The device is connected to an unmetered network. The device is charging. The app to be updated is not running in the foreground.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 ApplicationPolicy_AutoUpdateMode_AUTOUPDATEDEFAULT :: ApplicationPolicy_AutoUpdateMode+pattern ApplicationPolicy_AutoUpdateMode_AUTOUPDATEDEFAULT = ApplicationPolicy_AutoUpdateMode "AUTO_UPDATE_DEFAULT"++-- | 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 ApplicationPolicy_AutoUpdateMode_AUTOUPDATEPOSTPONED :: ApplicationPolicy_AutoUpdateMode+pattern ApplicationPolicy_AutoUpdateMode_AUTOUPDATEPOSTPONED = ApplicationPolicy_AutoUpdateMode "AUTO_UPDATE_POSTPONED"++-- | The app is updated as soon as possible. No constraints are applied.The device is notified as soon as possible about a new update after it becomes available./NOTE:/ Updates to apps with larger deployments across Android\'s ecosystem can take up to 24h.+pattern ApplicationPolicy_AutoUpdateMode_AUTOUPDATEHIGHPRIORITY :: ApplicationPolicy_AutoUpdateMode+pattern ApplicationPolicy_AutoUpdateMode_AUTOUPDATEHIGHPRIORITY = ApplicationPolicy_AutoUpdateMode "AUTO_UPDATE_HIGH_PRIORITY"++{-# COMPLETE+ ApplicationPolicy_AutoUpdateMode_AUTOUPDATEMODEUNSPECIFIED,+ ApplicationPolicy_AutoUpdateMode_AUTOUPDATEDEFAULT,+ ApplicationPolicy_AutoUpdateMode_AUTOUPDATEPOSTPONED,+ ApplicationPolicy_AutoUpdateMode_AUTOUPDATEHIGHPRIORITY,+ ApplicationPolicy_AutoUpdateMode+ #-}++-- | Controls whether the app can communicate with itself across a device’s work and personal profiles, subject to user consent.+newtype ApplicationPolicy_ConnectedWorkAndPersonalApp = ApplicationPolicy_ConnectedWorkAndPersonalApp {fromApplicationPolicy_ConnectedWorkAndPersonalApp :: 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 CONNECTED/WORK/AND/PERSONAL/APPS_DISALLOWED.+pattern ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPUNSPECIFIED :: ApplicationPolicy_ConnectedWorkAndPersonalApp+pattern ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPUNSPECIFIED = ApplicationPolicy_ConnectedWorkAndPersonalApp "CONNECTED_WORK_AND_PERSONAL_APP_UNSPECIFIED"++-- | Default. Prevents the app from communicating cross-profile.+pattern ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPDISALLOWED :: ApplicationPolicy_ConnectedWorkAndPersonalApp+pattern ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPDISALLOWED = ApplicationPolicy_ConnectedWorkAndPersonalApp "CONNECTED_WORK_AND_PERSONAL_APP_DISALLOWED"++-- | Allows the app to communicate across profiles after receiving user consent.+pattern ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPALLOWED :: ApplicationPolicy_ConnectedWorkAndPersonalApp+pattern ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPALLOWED = ApplicationPolicy_ConnectedWorkAndPersonalApp "CONNECTED_WORK_AND_PERSONAL_APP_ALLOWED"++{-# COMPLETE+ ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPUNSPECIFIED,+ ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPDISALLOWED,+ ApplicationPolicy_ConnectedWorkAndPersonalApp_CONNECTEDWORKANDPERSONALAPPALLOWED,+ ApplicationPolicy_ConnectedWorkAndPersonalApp+ #-}++-- | Optional. Whether the app is allowed to act as a credential provider on Android 14 and above.+newtype ApplicationPolicy_CredentialProviderPolicy = ApplicationPolicy_CredentialProviderPolicy {fromApplicationPolicy_CredentialProviderPolicy :: 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. The behaviour is governed by credentialProviderPolicyDefault.+pattern ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERPOLICYUNSPECIFIED :: ApplicationPolicy_CredentialProviderPolicy+pattern ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERPOLICYUNSPECIFIED = ApplicationPolicy_CredentialProviderPolicy "CREDENTIAL_PROVIDER_POLICY_UNSPECIFIED"++-- | App is allowed to act as a credential provider.+pattern ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERALLOWED :: ApplicationPolicy_CredentialProviderPolicy+pattern ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERALLOWED = ApplicationPolicy_CredentialProviderPolicy "CREDENTIAL_PROVIDER_ALLOWED"++{-# COMPLETE+ ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERPOLICYUNSPECIFIED,+ ApplicationPolicy_CredentialProviderPolicy_CREDENTIALPROVIDERALLOWED,+ ApplicationPolicy_CredentialProviderPolicy+ #-}++-- | The default policy for all permissions requested by the app. If specified, this overrides the policy-level default/permission/policy which applies to all apps. It does not override the permission_grants which applies to all apps.+newtype ApplicationPolicy_DefaultPermissionPolicy = ApplicationPolicy_DefaultPermissionPolicy {fromApplicationPolicy_DefaultPermissionPolicy :: 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+ )++-- | Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.+pattern ApplicationPolicy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED :: ApplicationPolicy_DefaultPermissionPolicy+pattern ApplicationPolicy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED = ApplicationPolicy_DefaultPermissionPolicy "PERMISSION_POLICY_UNSPECIFIED"++-- | Prompt the user to grant a permission.+pattern ApplicationPolicy_DefaultPermissionPolicy_Prompt :: ApplicationPolicy_DefaultPermissionPolicy+pattern ApplicationPolicy_DefaultPermissionPolicy_Prompt = ApplicationPolicy_DefaultPermissionPolicy "PROMPT"++-- | Automatically grant a permission.On Android 12 and above, READ/SMS (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#READ/SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS/FINE/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/FINE/LOCATION) ACCESS/BACKGROUND/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/BACKGROUND/LOCATION) ACCESS/COARSE/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/COARSE/LOCATION) CAMERA (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#CAMERA) RECORD/AUDIO (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#RECORD/AUDIO) ACTIVITY/RECOGNITION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACTIVITY/RECOGNITION) BODY/SENSORS (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#BODY/SENSORS)+pattern ApplicationPolicy_DefaultPermissionPolicy_Grant :: ApplicationPolicy_DefaultPermissionPolicy+pattern ApplicationPolicy_DefaultPermissionPolicy_Grant = ApplicationPolicy_DefaultPermissionPolicy "GRANT"++-- | Automatically deny a permission.+pattern ApplicationPolicy_DefaultPermissionPolicy_Deny :: ApplicationPolicy_DefaultPermissionPolicy+pattern ApplicationPolicy_DefaultPermissionPolicy_Deny = ApplicationPolicy_DefaultPermissionPolicy "DENY"++{-# COMPLETE+ ApplicationPolicy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED,+ ApplicationPolicy_DefaultPermissionPolicy_Prompt,+ ApplicationPolicy_DefaultPermissionPolicy_Grant,+ ApplicationPolicy_DefaultPermissionPolicy_Deny,+ ApplicationPolicy_DefaultPermissionPolicy+ #-}++newtype ApplicationPolicy_DelegatedScopesItem = ApplicationPolicy_DelegatedScopesItem {fromApplicationPolicy_DelegatedScopesItem :: 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+ )++-- | No delegation scope specified.+pattern ApplicationPolicy_DelegatedScopesItem_DELEGATEDSCOPEUNSPECIFIED :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_DELEGATEDSCOPEUNSPECIFIED = ApplicationPolicy_DelegatedScopesItem "DELEGATED_SCOPE_UNSPECIFIED"++-- | Grants access to certificate installation and management. This scope can be delegated to multiple applications.+pattern ApplicationPolicy_DelegatedScopesItem_CERTINSTALL :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_CERTINSTALL = ApplicationPolicy_DelegatedScopesItem "CERT_INSTALL"++-- | Grants access to managed configurations management. This scope can be delegated to multiple applications.+pattern ApplicationPolicy_DelegatedScopesItem_MANAGEDCONFIGURATIONS :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_MANAGEDCONFIGURATIONS = ApplicationPolicy_DelegatedScopesItem "MANAGED_CONFIGURATIONS"++-- | Grants access to blocking uninstallation. This scope can be delegated to multiple applications.+pattern ApplicationPolicy_DelegatedScopesItem_BLOCKUNINSTALL :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_BLOCKUNINSTALL = ApplicationPolicy_DelegatedScopesItem "BLOCK_UNINSTALL"++-- | Grants access to permission policy and permission grant state. This scope can be delegated to multiple applications.+pattern ApplicationPolicy_DelegatedScopesItem_PERMISSIONGRANT :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_PERMISSIONGRANT = ApplicationPolicy_DelegatedScopesItem "PERMISSION_GRANT"++-- | Grants access to package access state. This scope can be delegated to multiple applications.+pattern ApplicationPolicy_DelegatedScopesItem_PACKAGEACCESS :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_PACKAGEACCESS = ApplicationPolicy_DelegatedScopesItem "PACKAGE_ACCESS"++-- | Grants access for enabling system apps. This scope can be delegated to multiple applications.+pattern ApplicationPolicy_DelegatedScopesItem_ENABLESYSTEMAPP :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_ENABLESYSTEMAPP = ApplicationPolicy_DelegatedScopesItem "ENABLE_SYSTEM_APP"++-- | Grants access to network activity logs. Allows the delegated application to call setNetworkLoggingEnabled (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#setNetworkLoggingEnabled%28android.content.ComponentName,%20boolean%29), isNetworkLoggingEnabled (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#isNetworkLoggingEnabled%28android.content.ComponentName%29) and retrieveNetworkLogs (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#retrieveNetworkLogs%28android.content.ComponentName,%20long%29) methods. This scope can be delegated to at most one application. Supported for fully managed devices on Android 10 and above. Supported for a work profile on Android 12 and above. When delegation is supported and set, NETWORK/ACTIVITY/LOGS is ignored.+pattern ApplicationPolicy_DelegatedScopesItem_NETWORKACTIVITYLOGS :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_NETWORKACTIVITYLOGS = ApplicationPolicy_DelegatedScopesItem "NETWORK_ACTIVITY_LOGS"++-- | Grants access to security logs. Allows the delegated application to call setSecurityLoggingEnabled (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#setSecurityLoggingEnabled%28android.content.ComponentName,%20boolean%29), isSecurityLoggingEnabled (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#isSecurityLoggingEnabled%28android.content.ComponentName%29), retrieveSecurityLogs (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#retrieveSecurityLogs%28android.content.ComponentName%29) and retrievePreRebootSecurityLogs (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#retrievePreRebootSecurityLogs%28android.content.ComponentName%29) methods. This scope can be delegated to at most one application. Supported for fully managed devices and company-owned devices with a work profile on Android 12 and above. When delegation is supported and set, SECURITY_LOGS is ignored.+pattern ApplicationPolicy_DelegatedScopesItem_SECURITYLOGS :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_SECURITYLOGS = ApplicationPolicy_DelegatedScopesItem "SECURITY_LOGS"++-- | Grants access to selection of KeyChain certificates on behalf of requesting apps. Once granted, the delegated application will start receiving DelegatedAdminReceiver#onChoosePrivateKeyAlias (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DelegatedAdminReceiver#onChoosePrivateKeyAlias%28android.content.Context,%20android.content.Intent,%20int,%20android.net.Uri,%20java.lang.String%29). Allows the delegated application to call grantKeyPairToApp (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#grantKeyPairToApp%28android.content.ComponentName,%20java.lang.String,%20java.lang.String%29) and revokeKeyPairFromApp (https:\/\/developer.android.com\/reference\/android\/app\/admin\/DevicePolicyManager#revokeKeyPairFromApp%28android.content.ComponentName,%20java.lang.String,%20java.lang.String%29) methods. This scope can be delegated to at most one application. choosePrivateKeyRules must be empty and privateKeySelectionEnabled has no effect if certificate selection+-- is delegated to an application.+pattern ApplicationPolicy_DelegatedScopesItem_CERTSELECTION :: ApplicationPolicy_DelegatedScopesItem+pattern ApplicationPolicy_DelegatedScopesItem_CERTSELECTION = ApplicationPolicy_DelegatedScopesItem "CERT_SELECTION"++{-# COMPLETE+ ApplicationPolicy_DelegatedScopesItem_DELEGATEDSCOPEUNSPECIFIED,+ ApplicationPolicy_DelegatedScopesItem_CERTINSTALL,+ ApplicationPolicy_DelegatedScopesItem_MANAGEDCONFIGURATIONS,+ ApplicationPolicy_DelegatedScopesItem_BLOCKUNINSTALL,+ ApplicationPolicy_DelegatedScopesItem_PERMISSIONGRANT,+ ApplicationPolicy_DelegatedScopesItem_PACKAGEACCESS,+ ApplicationPolicy_DelegatedScopesItem_ENABLESYSTEMAPP,+ ApplicationPolicy_DelegatedScopesItem_NETWORKACTIVITYLOGS,+ ApplicationPolicy_DelegatedScopesItem_SECURITYLOGS,+ ApplicationPolicy_DelegatedScopesItem_CERTSELECTION,+ ApplicationPolicy_DelegatedScopesItem+ #-}++-- | The type of installation to perform.+newtype ApplicationPolicy_InstallType = ApplicationPolicy_InstallType {fromApplicationPolicy_InstallType :: 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 AVAILABLE.+pattern ApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED :: ApplicationPolicy_InstallType+pattern ApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED = ApplicationPolicy_InstallType "INSTALL_TYPE_UNSPECIFIED"++-- | The app is automatically installed and can be removed by the user.+pattern ApplicationPolicy_InstallType_Preinstalled :: ApplicationPolicy_InstallType+pattern ApplicationPolicy_InstallType_Preinstalled = ApplicationPolicy_InstallType "PREINSTALLED"++-- | The app is automatically installed regardless of a set maintenance window and can\'t be removed by the user.+pattern ApplicationPolicy_InstallType_FORCEINSTALLED :: ApplicationPolicy_InstallType+pattern ApplicationPolicy_InstallType_FORCEINSTALLED = ApplicationPolicy_InstallType "FORCE_INSTALLED"++-- | The app is blocked and can\'t be installed. If the app was installed under a previous policy, it will be uninstalled. This also blocks its instant app functionality.+pattern ApplicationPolicy_InstallType_Blocked :: ApplicationPolicy_InstallType+pattern ApplicationPolicy_InstallType_Blocked = ApplicationPolicy_InstallType "BLOCKED"++-- | The app is available to install.+pattern ApplicationPolicy_InstallType_Available :: ApplicationPolicy_InstallType+pattern ApplicationPolicy_InstallType_Available = ApplicationPolicy_InstallType "AVAILABLE"++-- | The app is automatically installed and can\'t be removed by the user and will prevent setup from completion until installation is complete.+pattern ApplicationPolicy_InstallType_REQUIREDFORSETUP :: ApplicationPolicy_InstallType+pattern ApplicationPolicy_InstallType_REQUIREDFORSETUP = ApplicationPolicy_InstallType "REQUIRED_FOR_SETUP"++-- | The app is automatically installed in kiosk mode: it\'s set as the preferred home intent and whitelisted for lock task mode. Device setup won\'t complete until the app is installed. After installation, users won\'t be able to remove the app. You can only set this installType for one app per policy. When this is present in the policy, status bar will be automatically disabled.+pattern ApplicationPolicy_InstallType_Kiosk :: ApplicationPolicy_InstallType+pattern ApplicationPolicy_InstallType_Kiosk = ApplicationPolicy_InstallType "KIOSK"++{-# COMPLETE+ ApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED,+ ApplicationPolicy_InstallType_Preinstalled,+ ApplicationPolicy_InstallType_FORCEINSTALLED,+ ApplicationPolicy_InstallType_Blocked,+ ApplicationPolicy_InstallType_Available,+ ApplicationPolicy_InstallType_REQUIREDFORSETUP,+ ApplicationPolicy_InstallType_Kiosk,+ ApplicationPolicy_InstallType+ #-}++-- | Optional. Specifies whether user control is permitted for the app. User control includes user actions like force-stopping and clearing app data. Supported on Android 11 and above.+newtype ApplicationPolicy_UserControlSettings = ApplicationPolicy_UserControlSettings {fromApplicationPolicy_UserControlSettings :: 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+ )++-- | Uses the default behaviour of the app to determine if user control is allowed or disallowed. For most apps, user control is allowed by default, but for some critical apps such as companion apps (extensionConfig set to true), kiosk apps and other critical system apps, user control is disallowed.+pattern ApplicationPolicy_UserControlSettings_USERCONTROLSETTINGSUNSPECIFIED :: ApplicationPolicy_UserControlSettings+pattern ApplicationPolicy_UserControlSettings_USERCONTROLSETTINGSUNSPECIFIED = ApplicationPolicy_UserControlSettings "USER_CONTROL_SETTINGS_UNSPECIFIED"++-- | User control is allowed for the app. Kiosk apps can use this to allow user control.+pattern ApplicationPolicy_UserControlSettings_USERCONTROLALLOWED :: ApplicationPolicy_UserControlSettings+pattern ApplicationPolicy_UserControlSettings_USERCONTROLALLOWED = ApplicationPolicy_UserControlSettings "USER_CONTROL_ALLOWED"++-- | User control is disallowed for the app. API_LEVEL is reported if the Android version is less than 11.+pattern ApplicationPolicy_UserControlSettings_USERCONTROLDISALLOWED :: ApplicationPolicy_UserControlSettings+pattern ApplicationPolicy_UserControlSettings_USERCONTROLDISALLOWED = ApplicationPolicy_UserControlSettings "USER_CONTROL_DISALLOWED"++{-# COMPLETE+ ApplicationPolicy_UserControlSettings_USERCONTROLSETTINGSUNSPECIFIED,+ ApplicationPolicy_UserControlSettings_USERCONTROLALLOWED,+ ApplicationPolicy_UserControlSettings_USERCONTROLDISALLOWED,+ ApplicationPolicy_UserControlSettings+ #-}++-- | Specifies whether the app installed in the work profile is allowed to add widgets to the home screen.+newtype ApplicationPolicy_WorkProfileWidgets = ApplicationPolicy_WorkProfileWidgets {fromApplicationPolicy_WorkProfileWidgets :: 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 work/profile/widgets_default+pattern ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSUNSPECIFIED :: ApplicationPolicy_WorkProfileWidgets+pattern ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSUNSPECIFIED = ApplicationPolicy_WorkProfileWidgets "WORK_PROFILE_WIDGETS_UNSPECIFIED"++-- | Work profile widgets are allowed. This means the application will be able to add widgets to the home screen.+pattern ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSALLOWED :: ApplicationPolicy_WorkProfileWidgets+pattern ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSALLOWED = ApplicationPolicy_WorkProfileWidgets "WORK_PROFILE_WIDGETS_ALLOWED"++-- | Work profile widgets are disallowed. This means the application will not be able to add widgets to the home screen.+pattern ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSDISALLOWED :: ApplicationPolicy_WorkProfileWidgets+pattern ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSDISALLOWED = ApplicationPolicy_WorkProfileWidgets "WORK_PROFILE_WIDGETS_DISALLOWED"++{-# COMPLETE+ ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSUNSPECIFIED,+ ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSALLOWED,+ ApplicationPolicy_WorkProfileWidgets_WORKPROFILEWIDGETSDISALLOWED,+ ApplicationPolicy_WorkProfileWidgets+ #-}++-- | The source of the package.+newtype ApplicationReport_ApplicationSource = ApplicationReport_ApplicationSource {fromApplicationReport_ApplicationSource :: 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 app was sideloaded from an unspecified source.+pattern ApplicationReport_ApplicationSource_APPLICATIONSOURCEUNSPECIFIED :: ApplicationReport_ApplicationSource+pattern ApplicationReport_ApplicationSource_APPLICATIONSOURCEUNSPECIFIED = ApplicationReport_ApplicationSource "APPLICATION_SOURCE_UNSPECIFIED"++-- | This is a system app from the device\'s factory image.+pattern ApplicationReport_ApplicationSource_SYSTEMAPPFACTORYVERSION :: ApplicationReport_ApplicationSource+pattern ApplicationReport_ApplicationSource_SYSTEMAPPFACTORYVERSION = ApplicationReport_ApplicationSource "SYSTEM_APP_FACTORY_VERSION"++-- | This is an updated system app.+pattern ApplicationReport_ApplicationSource_SYSTEMAPPUPDATEDVERSION :: ApplicationReport_ApplicationSource+pattern ApplicationReport_ApplicationSource_SYSTEMAPPUPDATEDVERSION = ApplicationReport_ApplicationSource "SYSTEM_APP_UPDATED_VERSION"++-- | The app was installed from the Google Play Store.+pattern ApplicationReport_ApplicationSource_INSTALLEDFROMPLAYSTORE :: ApplicationReport_ApplicationSource+pattern ApplicationReport_ApplicationSource_INSTALLEDFROMPLAYSTORE = ApplicationReport_ApplicationSource "INSTALLED_FROM_PLAY_STORE"++{-# COMPLETE+ ApplicationReport_ApplicationSource_APPLICATIONSOURCEUNSPECIFIED,+ ApplicationReport_ApplicationSource_SYSTEMAPPFACTORYVERSION,+ ApplicationReport_ApplicationSource_SYSTEMAPPUPDATEDVERSION,+ ApplicationReport_ApplicationSource_INSTALLEDFROMPLAYSTORE,+ ApplicationReport_ApplicationSource+ #-}++-- | Application state.+newtype ApplicationReport_State = ApplicationReport_State {fromApplicationReport_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+ )++-- | App state is unspecified+pattern ApplicationReport_State_APPLICATIONSTATEUNSPECIFIED :: ApplicationReport_State+pattern ApplicationReport_State_APPLICATIONSTATEUNSPECIFIED = ApplicationReport_State "APPLICATION_STATE_UNSPECIFIED"++-- | App was removed from the device+pattern ApplicationReport_State_Removed :: ApplicationReport_State+pattern ApplicationReport_State_Removed = ApplicationReport_State "REMOVED"++-- | App is installed on the device+pattern ApplicationReport_State_Installed :: ApplicationReport_State+pattern ApplicationReport_State_Installed = ApplicationReport_State "INSTALLED"++{-# COMPLETE+ ApplicationReport_State_APPLICATIONSTATEUNSPECIFIED,+ ApplicationReport_State_Removed,+ ApplicationReport_State_Installed,+ ApplicationReport_State+ #-}++-- | Whether the app is user facing.+newtype ApplicationReport_UserFacingType = ApplicationReport_UserFacingType {fromApplicationReport_UserFacingType :: 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+ )++-- | App user facing type is unspecified.+pattern ApplicationReport_UserFacingType_USERFACINGTYPEUNSPECIFIED :: ApplicationReport_UserFacingType+pattern ApplicationReport_UserFacingType_USERFACINGTYPEUNSPECIFIED = ApplicationReport_UserFacingType "USER_FACING_TYPE_UNSPECIFIED"++-- | App is not user facing.+pattern ApplicationReport_UserFacingType_NOTUSERFACING :: ApplicationReport_UserFacingType+pattern ApplicationReport_UserFacingType_NOTUSERFACING = ApplicationReport_UserFacingType "NOT_USER_FACING"++-- | App is user facing.+pattern ApplicationReport_UserFacingType_USERFACING :: ApplicationReport_UserFacingType+pattern ApplicationReport_UserFacingType_USERFACING = ApplicationReport_UserFacingType "USER_FACING"++{-# COMPLETE+ ApplicationReport_UserFacingType_USERFACINGTYPEUNSPECIFIED,+ ApplicationReport_UserFacingType_NOTUSERFACING,+ ApplicationReport_UserFacingType_USERFACING,+ ApplicationReport_UserFacingType+ #-}++-- | Specifies the scope of this BlockAction. Only applicable to devices that are company-owned.+newtype BlockAction_BlockScope = BlockAction_BlockScope {fromBlockAction_BlockScope :: 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 BLOCK/SCOPE/WORK_PROFILE.+pattern BlockAction_BlockScope_BLOCKSCOPEUNSPECIFIED :: BlockAction_BlockScope+pattern BlockAction_BlockScope_BLOCKSCOPEUNSPECIFIED = BlockAction_BlockScope "BLOCK_SCOPE_UNSPECIFIED"++-- | Block action is only applied to apps in the work profile. Apps in the personal profile are unaffected.+pattern BlockAction_BlockScope_BLOCKSCOPEWORKPROFILE :: BlockAction_BlockScope+pattern BlockAction_BlockScope_BLOCKSCOPEWORKPROFILE = BlockAction_BlockScope "BLOCK_SCOPE_WORK_PROFILE"++-- | Block action is applied to the entire device, including apps in the personal profile.+pattern BlockAction_BlockScope_BLOCKSCOPEDEVICE :: BlockAction_BlockScope+pattern BlockAction_BlockScope_BLOCKSCOPEDEVICE = BlockAction_BlockScope "BLOCK_SCOPE_DEVICE"++{-# COMPLETE+ BlockAction_BlockScope_BLOCKSCOPEUNSPECIFIED,+ BlockAction_BlockScope_BLOCKSCOPEWORKPROFILE,+ BlockAction_BlockScope_BLOCKSCOPEDEVICE,+ BlockAction_BlockScope+ #-}++-- | If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.+newtype Command_ErrorCode = Command_ErrorCode {fromCommand_ErrorCode :: 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+ )++-- | There was no error.+pattern Command_ErrorCode_COMMANDERRORCODEUNSPECIFIED :: Command_ErrorCode+pattern Command_ErrorCode_COMMANDERRORCODEUNSPECIFIED = Command_ErrorCode "COMMAND_ERROR_CODE_UNSPECIFIED"++-- | An unknown error occurred.+pattern Command_ErrorCode_Unknown :: Command_ErrorCode+pattern Command_ErrorCode_Unknown = Command_ErrorCode "UNKNOWN"++-- | The API level of the device does not support this command.+pattern Command_ErrorCode_APILEVEL :: Command_ErrorCode+pattern Command_ErrorCode_APILEVEL = Command_ErrorCode "API_LEVEL"++-- | The management mode (profile owner, device owner, etc.) does not support the command.+pattern Command_ErrorCode_MANAGEMENTMODE :: Command_ErrorCode+pattern Command_ErrorCode_MANAGEMENTMODE = Command_ErrorCode "MANAGEMENT_MODE"++-- | The command has an invalid parameter value.+pattern Command_ErrorCode_INVALIDVALUE :: Command_ErrorCode+pattern Command_ErrorCode_INVALIDVALUE = Command_ErrorCode "INVALID_VALUE"++-- | The device doesn\'t support the command. Updating Android Device Policy to the latest version may resolve the issue.+pattern Command_ErrorCode_Unsupported :: Command_ErrorCode+pattern Command_ErrorCode_Unsupported = Command_ErrorCode "UNSUPPORTED"++{-# COMPLETE+ Command_ErrorCode_COMMANDERRORCODEUNSPECIFIED,+ Command_ErrorCode_Unknown,+ Command_ErrorCode_APILEVEL,+ Command_ErrorCode_MANAGEMENTMODE,+ Command_ErrorCode_INVALIDVALUE,+ Command_ErrorCode_Unsupported,+ Command_ErrorCode+ #-}++newtype Command_ResetPasswordFlagsItem = Command_ResetPasswordFlagsItem {fromCommand_ResetPasswordFlagsItem :: 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 ignored.+pattern Command_ResetPasswordFlagsItem_RESETPASSWORDFLAGUNSPECIFIED :: Command_ResetPasswordFlagsItem+pattern Command_ResetPasswordFlagsItem_RESETPASSWORDFLAGUNSPECIFIED = Command_ResetPasswordFlagsItem "RESET_PASSWORD_FLAG_UNSPECIFIED"++-- | Don\'t allow other admins to change the password again until the user has entered it.+pattern Command_ResetPasswordFlagsItem_REQUIREENTRY :: Command_ResetPasswordFlagsItem+pattern Command_ResetPasswordFlagsItem_REQUIREENTRY = Command_ResetPasswordFlagsItem "REQUIRE_ENTRY"++-- | Don\'t ask for user credentials on device boot.+pattern Command_ResetPasswordFlagsItem_DONOTASKCREDENTIALSONBOOT :: Command_ResetPasswordFlagsItem+pattern Command_ResetPasswordFlagsItem_DONOTASKCREDENTIALSONBOOT = Command_ResetPasswordFlagsItem "DO_NOT_ASK_CREDENTIALS_ON_BOOT"++-- | Lock the device after password reset.+pattern Command_ResetPasswordFlagsItem_LOCKNOW :: Command_ResetPasswordFlagsItem+pattern Command_ResetPasswordFlagsItem_LOCKNOW = Command_ResetPasswordFlagsItem "LOCK_NOW"++{-# COMPLETE+ Command_ResetPasswordFlagsItem_RESETPASSWORDFLAGUNSPECIFIED,+ Command_ResetPasswordFlagsItem_REQUIREENTRY,+ Command_ResetPasswordFlagsItem_DONOTASKCREDENTIALSONBOOT,+ Command_ResetPasswordFlagsItem_LOCKNOW,+ Command_ResetPasswordFlagsItem+ #-}++-- | The type of the command.+newtype Command_Type = Command_Type {fromCommand_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+ )++-- | This value is disallowed.+pattern Command_Type_COMMANDTYPEUNSPECIFIED :: Command_Type+pattern Command_Type_COMMANDTYPEUNSPECIFIED = Command_Type "COMMAND_TYPE_UNSPECIFIED"++-- | Lock the device, as if the lock screen timeout had expired.+pattern Command_Type_Lock :: Command_Type+pattern Command_Type_Lock = Command_Type "LOCK"++-- | Reset the user\'s password.+pattern Command_Type_RESETPASSWORD :: Command_Type+pattern Command_Type_RESETPASSWORD = Command_Type "RESET_PASSWORD"++-- | Reboot the device. Only supported on fully managed devices running Android 7.0 (API level 24) or higher.+pattern Command_Type_Reboot :: Command_Type+pattern Command_Type_Reboot = Command_Type "REBOOT"++-- | Removes the work profile and all policies from a company-owned Android 8.0+ device, relinquishing the device for personal use. Apps and data associated with the personal profile(s) are preserved. The device will be deleted from the server after it acknowledges the command.+pattern Command_Type_RELINQUISHOWNERSHIP :: Command_Type+pattern Command_Type_RELINQUISHOWNERSHIP = Command_Type "RELINQUISH_OWNERSHIP"++-- | Clears the application data of specified apps. This is supported on Android 9 and above. Note that an application can store data outside of its application data, for example in external storage or in a user dictionary. See also clear/apps/data_params.+pattern Command_Type_CLEARAPPDATA :: Command_Type+pattern Command_Type_CLEARAPPDATA = Command_Type "CLEAR_APP_DATA"++-- | Puts the device into lost mode. Only supported on fully managed devices or organization-owned devices with a managed profile. See also start/lost/mode_params.+pattern Command_Type_STARTLOSTMODE :: Command_Type+pattern Command_Type_STARTLOSTMODE = Command_Type "START_LOST_MODE"++-- | Takes the device out of lost mode. Only supported on fully managed devices or organization-owned devices with a managed profile. See also stop/lost/mode_params.+pattern Command_Type_STOPLOSTMODE :: Command_Type+pattern Command_Type_STOPLOSTMODE = Command_Type "STOP_LOST_MODE"++{-# COMPLETE+ Command_Type_COMMANDTYPEUNSPECIFIED,+ Command_Type_Lock,+ Command_Type_RESETPASSWORD,+ Command_Type_Reboot,+ Command_Type_RELINQUISHOWNERSHIP,+ Command_Type_CLEARAPPDATA,+ Command_Type_STARTLOSTMODE,+ Command_Type_STOPLOSTMODE,+ Command_Type+ #-}++-- | Whether Common Criteria Mode is enabled.+newtype CommonCriteriaModeInfo_CommonCriteriaModeStatus = CommonCriteriaModeInfo_CommonCriteriaModeStatus {fromCommonCriteriaModeInfo_CommonCriteriaModeStatus :: 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 status.+pattern CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODESTATUSUNKNOWN :: CommonCriteriaModeInfo_CommonCriteriaModeStatus+pattern CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODESTATUSUNKNOWN = CommonCriteriaModeInfo_CommonCriteriaModeStatus "COMMON_CRITERIA_MODE_STATUS_UNKNOWN"++-- | Common Criteria Mode is currently disabled.+pattern CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEDISABLED :: CommonCriteriaModeInfo_CommonCriteriaModeStatus+pattern CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEDISABLED = CommonCriteriaModeInfo_CommonCriteriaModeStatus "COMMON_CRITERIA_MODE_DISABLED"++-- | Common Criteria Mode is currently enabled.+pattern CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEENABLED :: CommonCriteriaModeInfo_CommonCriteriaModeStatus+pattern CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEENABLED = CommonCriteriaModeInfo_CommonCriteriaModeStatus "COMMON_CRITERIA_MODE_ENABLED"++{-# COMPLETE+ CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODESTATUSUNKNOWN,+ CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEDISABLED,+ CommonCriteriaModeInfo_CommonCriteriaModeStatus_COMMONCRITERIAMODEENABLED,+ CommonCriteriaModeInfo_CommonCriteriaModeStatus+ #-}++-- | Output only. The status of policy signature verification.+newtype CommonCriteriaModeInfo_PolicySignatureVerificationStatus = CommonCriteriaModeInfo_PolicySignatureVerificationStatus {fromCommonCriteriaModeInfo_PolicySignatureVerificationStatus :: 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. The verification status has not been reported. This is set only if statusReportingSettings.commonCriteriaModeEnabled is false.+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSTATUSUNSPECIFIED :: CommonCriteriaModeInfo_PolicySignatureVerificationStatus+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSTATUSUNSPECIFIED = CommonCriteriaModeInfo_PolicySignatureVerificationStatus "POLICY_SIGNATURE_VERIFICATION_STATUS_UNSPECIFIED"++-- | Policy signature verification is disabled on the device as common/criteria/mode is set to false.+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONDISABLED :: CommonCriteriaModeInfo_PolicySignatureVerificationStatus+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONDISABLED = CommonCriteriaModeInfo_PolicySignatureVerificationStatus "POLICY_SIGNATURE_VERIFICATION_DISABLED"++-- | Policy signature verification succeeded.+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSUCCEEDED :: CommonCriteriaModeInfo_PolicySignatureVerificationStatus+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSUCCEEDED = CommonCriteriaModeInfo_PolicySignatureVerificationStatus "POLICY_SIGNATURE_VERIFICATION_SUCCEEDED"++-- | Policy signature verification is not supported, e.g. because the device has been enrolled with a CloudDPC version that does not support the policy signature verification.+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONNOTSUPPORTED :: CommonCriteriaModeInfo_PolicySignatureVerificationStatus+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONNOTSUPPORTED = CommonCriteriaModeInfo_PolicySignatureVerificationStatus "POLICY_SIGNATURE_VERIFICATION_NOT_SUPPORTED"++-- | The policy signature verification failed. The policy has not been applied.+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONFAILED :: CommonCriteriaModeInfo_PolicySignatureVerificationStatus+pattern CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONFAILED = CommonCriteriaModeInfo_PolicySignatureVerificationStatus "POLICY_SIGNATURE_VERIFICATION_FAILED"++{-# COMPLETE+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSTATUSUNSPECIFIED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONDISABLED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONSUCCEEDED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONNOTSUPPORTED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus_POLICYSIGNATUREVERIFICATIONFAILED,+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus+ #-}++-- | Whether text copied from one profile (personal or work) can be pasted in the other profile.+newtype CrossProfilePolicies_CrossProfileCopyPaste = CrossProfilePolicies_CrossProfileCopyPaste {fromCrossProfilePolicies_CrossProfileCopyPaste :: 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 COPY/FROM/WORK/TO/PERSONAL_DISALLOWED+pattern CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEUNSPECIFIED :: CrossProfilePolicies_CrossProfileCopyPaste+pattern CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEUNSPECIFIED = CrossProfilePolicies_CrossProfileCopyPaste "CROSS_PROFILE_COPY_PASTE_UNSPECIFIED"++-- | Default. Prevents users from pasting into the personal profile text copied from the work profile. Text copied from the personal profile can be pasted into the work profile, and text copied from the work profile can be pasted into the work profile.+pattern CrossProfilePolicies_CrossProfileCopyPaste_COPYFROMWORKTOPERSONALDISALLOWED :: CrossProfilePolicies_CrossProfileCopyPaste+pattern CrossProfilePolicies_CrossProfileCopyPaste_COPYFROMWORKTOPERSONALDISALLOWED = CrossProfilePolicies_CrossProfileCopyPaste "COPY_FROM_WORK_TO_PERSONAL_DISALLOWED"++-- | Text copied in either profile can be pasted in the other profile.+pattern CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEALLOWED :: CrossProfilePolicies_CrossProfileCopyPaste+pattern CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEALLOWED = CrossProfilePolicies_CrossProfileCopyPaste "CROSS_PROFILE_COPY_PASTE_ALLOWED"++{-# COMPLETE+ CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEUNSPECIFIED,+ CrossProfilePolicies_CrossProfileCopyPaste_COPYFROMWORKTOPERSONALDISALLOWED,+ CrossProfilePolicies_CrossProfileCopyPaste_CROSSPROFILECOPYPASTEALLOWED,+ CrossProfilePolicies_CrossProfileCopyPaste+ #-}++-- | Whether data from one profile (personal or work) can be shared with apps in the other profile. Specifically controls simple data sharing via intents. Management of other cross-profile communication channels, such as contact search, copy\/paste, or connected work & personal apps, are configured separately.+newtype CrossProfilePolicies_CrossProfileDataSharing = CrossProfilePolicies_CrossProfileDataSharing {fromCrossProfilePolicies_CrossProfileDataSharing :: 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 DATA/SHARING/FROM/WORK/TO/PERSONAL/DISALLOWED.+pattern CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGUNSPECIFIED :: CrossProfilePolicies_CrossProfileDataSharing+pattern CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGUNSPECIFIED = CrossProfilePolicies_CrossProfileDataSharing "CROSS_PROFILE_DATA_SHARING_UNSPECIFIED"++-- | Prevents data from being shared from both the personal profile to the work profile and the work profile to the personal profile.+pattern CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGDISALLOWED :: CrossProfilePolicies_CrossProfileDataSharing+pattern CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGDISALLOWED = CrossProfilePolicies_CrossProfileDataSharing "CROSS_PROFILE_DATA_SHARING_DISALLOWED"++-- | Default. Prevents users from sharing data from the work profile to apps in the personal profile. Personal data can be shared with work apps.+pattern CrossProfilePolicies_CrossProfileDataSharing_DATASHARINGFROMWORKTOPERSONALDISALLOWED :: CrossProfilePolicies_CrossProfileDataSharing+pattern CrossProfilePolicies_CrossProfileDataSharing_DATASHARINGFROMWORKTOPERSONALDISALLOWED = CrossProfilePolicies_CrossProfileDataSharing "DATA_SHARING_FROM_WORK_TO_PERSONAL_DISALLOWED"++-- | Data from either profile can be shared with the other profile.+pattern CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGALLOWED :: CrossProfilePolicies_CrossProfileDataSharing+pattern CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGALLOWED = CrossProfilePolicies_CrossProfileDataSharing "CROSS_PROFILE_DATA_SHARING_ALLOWED"++{-# COMPLETE+ CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGUNSPECIFIED,+ CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGDISALLOWED,+ CrossProfilePolicies_CrossProfileDataSharing_DATASHARINGFROMWORKTOPERSONALDISALLOWED,+ CrossProfilePolicies_CrossProfileDataSharing_CROSSPROFILEDATASHARINGALLOWED,+ CrossProfilePolicies_CrossProfileDataSharing+ #-}++-- | Whether personal apps can access contacts stored in the work profile.See also exemptions/to/show/work/contacts/in/personal_profile.+newtype CrossProfilePolicies_ShowWorkContactsInPersonalProfile = CrossProfilePolicies_ShowWorkContactsInPersonalProfile {fromCrossProfilePolicies_ShowWorkContactsInPersonalProfile :: 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 SHOW/WORK/CONTACTS/IN/PERSONAL/PROFILE/ALLOWED.When this is set, exemptions/to/show/work/contacts/in/personal_profile must not be set.+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEUNSPECIFIED :: CrossProfilePolicies_ShowWorkContactsInPersonalProfile+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEUNSPECIFIED = CrossProfilePolicies_ShowWorkContactsInPersonalProfile "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_UNSPECIFIED"++-- | Prevents personal apps from accessing work profile contacts and looking up work contacts.When this is set, personal apps specified in exemptions/to/show/work/contacts/in/personal/profile are allowlisted and can access work profile contacts directly.Supported on Android 7.0 and above. A nonComplianceDetail with API/LEVEL is reported if the Android version is less than 7.0.+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWED :: CrossProfilePolicies_ShowWorkContactsInPersonalProfile+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWED = CrossProfilePolicies_ShowWorkContactsInPersonalProfile "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED"++-- | Default. Allows apps in the personal profile to access work profile contacts including contact searches and incoming calls.When this is set, personal apps specified in exemptions/to/show/work/contacts/in/personal/profile are blocklisted and can not access work profile contacts directly.Supported on Android 7.0 and above. A nonComplianceDetail with API/LEVEL is reported if the Android version is less than 7.0.+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEALLOWED :: CrossProfilePolicies_ShowWorkContactsInPersonalProfile+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEALLOWED = CrossProfilePolicies_ShowWorkContactsInPersonalProfile "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_ALLOWED"++-- | Prevents most personal apps from accessing work profile contacts including contact searches and incoming calls, except for the OEM default Dialer, Messages, and Contacts apps. Neither user-configured Dialer, Messages, and Contacts apps, nor any other system or play installed apps, will be able to query work contacts directly.When this is set, personal apps specified in exemptions/to/show/work/contacts/in/personal/profile are allowlisted and can access work profile contacts.Supported on Android 14 and above. If this is set on a device with Android version less than 14, the behaviour falls back to SHOW/WORK/CONTACTS/IN/PERSONAL/PROFILE/DISALLOWED and a nonComplianceDetail with API/LEVEL is reported.+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWEDEXCEPTSYSTEM :: CrossProfilePolicies_ShowWorkContactsInPersonalProfile+pattern CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWEDEXCEPTSYSTEM = CrossProfilePolicies_ShowWorkContactsInPersonalProfile "SHOW_WORK_CONTACTS_IN_PERSONAL_PROFILE_DISALLOWED_EXCEPT_SYSTEM"++{-# COMPLETE+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEUNSPECIFIED,+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWED,+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEALLOWED,+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile_SHOWWORKCONTACTSINPERSONALPROFILEDISALLOWEDEXCEPTSYSTEM,+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile+ #-}++-- | Specifies the default behaviour for work profile widgets. If the policy does not specify work/profile/widgets for a specific application, it will behave according to the value specified here.+newtype CrossProfilePolicies_WorkProfileWidgetsDefault = CrossProfilePolicies_WorkProfileWidgetsDefault {fromCrossProfilePolicies_WorkProfileWidgetsDefault :: 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 WORK/PROFILE/WIDGETS/DEFAULT/DISALLOWED.+pattern CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTUNSPECIFIED :: CrossProfilePolicies_WorkProfileWidgetsDefault+pattern CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTUNSPECIFIED = CrossProfilePolicies_WorkProfileWidgetsDefault "WORK_PROFILE_WIDGETS_DEFAULT_UNSPECIFIED"++-- | Work profile widgets are allowed by default. This means that if the policy does not specify work/profile/widgets as WORK/PROFILE/WIDGETS_DISALLOWED for the application, it will be able to add widgets to the home screen.+pattern CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTALLOWED :: CrossProfilePolicies_WorkProfileWidgetsDefault+pattern CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTALLOWED = CrossProfilePolicies_WorkProfileWidgetsDefault "WORK_PROFILE_WIDGETS_DEFAULT_ALLOWED"++-- | Work profile widgets are disallowed by default. This means that if the policy does not specify work/profile/widgets as WORK/PROFILE/WIDGETS_ALLOWED for the application, it will be unable to add widgets to the home screen.+pattern CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTDISALLOWED :: CrossProfilePolicies_WorkProfileWidgetsDefault+pattern CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTDISALLOWED = CrossProfilePolicies_WorkProfileWidgetsDefault "WORK_PROFILE_WIDGETS_DEFAULT_DISALLOWED"++{-# COMPLETE+ CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTUNSPECIFIED,+ CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTALLOWED,+ CrossProfilePolicies_WorkProfileWidgetsDefault_WORKPROFILEWIDGETSDEFAULTDISALLOWED,+ CrossProfilePolicies_WorkProfileWidgetsDefault+ #-}++-- | The state currently applied to the device.+newtype Device_AppliedState = Device_AppliedState {fromDevice_AppliedState :: 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 disallowed.+pattern Device_AppliedState_DEVICESTATEUNSPECIFIED :: Device_AppliedState+pattern Device_AppliedState_DEVICESTATEUNSPECIFIED = Device_AppliedState "DEVICE_STATE_UNSPECIFIED"++-- | The device is active.+pattern Device_AppliedState_Active :: Device_AppliedState+pattern Device_AppliedState_Active = Device_AppliedState "ACTIVE"++-- | The device is disabled.+pattern Device_AppliedState_Disabled :: Device_AppliedState+pattern Device_AppliedState_Disabled = Device_AppliedState "DISABLED"++-- | The device was deleted. This state is never returned by an API call, but is used in the final status report when the device acknowledges the deletion. If the device is deleted via the API call, this state is published to Pub\/Sub. If the user deletes the work profile or resets the device, the device state will remain unknown to the server.+pattern Device_AppliedState_Deleted :: Device_AppliedState+pattern Device_AppliedState_Deleted = Device_AppliedState "DELETED"++-- | The device is being provisioned. Newly enrolled devices are in this state until they have a policy applied.+pattern Device_AppliedState_Provisioning :: Device_AppliedState+pattern Device_AppliedState_Provisioning = Device_AppliedState "PROVISIONING"++-- | The device is lost. This state is only possible on organization-owned devices.+pattern Device_AppliedState_Lost :: Device_AppliedState+pattern Device_AppliedState_Lost = Device_AppliedState "LOST"++-- | The device is preparing for migrating to Android Management API. No further action is needed for the migration to continue.+pattern Device_AppliedState_PREPARINGFORMIGRATION :: Device_AppliedState+pattern Device_AppliedState_PREPARINGFORMIGRATION = Device_AppliedState "PREPARING_FOR_MIGRATION"++-- | This is a financed device that has been \"locked\" by the financing agent. This means certain policy settings have been applied which limit device functionality until the device has been \"unlocked\" by the financing agent. The device will continue to apply policy settings excluding those overridden by the financing agent. When the device is \"locked\", the state is reported in appliedState as DEACTIVATED/BY/DEVICE_FINANCE.+pattern Device_AppliedState_DEACTIVATEDBYDEVICEFINANCE :: Device_AppliedState+pattern Device_AppliedState_DEACTIVATEDBYDEVICEFINANCE = Device_AppliedState "DEACTIVATED_BY_DEVICE_FINANCE"++{-# COMPLETE+ Device_AppliedState_DEVICESTATEUNSPECIFIED,+ Device_AppliedState_Active,+ Device_AppliedState_Disabled,+ Device_AppliedState_Deleted,+ Device_AppliedState_Provisioning,+ Device_AppliedState_Lost,+ Device_AppliedState_PREPARINGFORMIGRATION,+ Device_AppliedState_DEACTIVATEDBYDEVICEFINANCE,+ Device_AppliedState+ #-}++-- | The type of management mode Android Device Policy takes on the device. This influences which policy settings are supported.+newtype Device_ManagementMode = Device_ManagementMode {fromDevice_ManagementMode :: 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 disallowed.+pattern Device_ManagementMode_MANAGEMENTMODEUNSPECIFIED :: Device_ManagementMode+pattern Device_ManagementMode_MANAGEMENTMODEUNSPECIFIED = Device_ManagementMode "MANAGEMENT_MODE_UNSPECIFIED"++-- | Device owner. Android Device Policy has full control over the device.+pattern Device_ManagementMode_DEVICEOWNER :: Device_ManagementMode+pattern Device_ManagementMode_DEVICEOWNER = Device_ManagementMode "DEVICE_OWNER"++-- | Profile owner. Android Device Policy has control over a managed profile on the device.+pattern Device_ManagementMode_PROFILEOWNER :: Device_ManagementMode+pattern Device_ManagementMode_PROFILEOWNER = Device_ManagementMode "PROFILE_OWNER"++{-# COMPLETE+ Device_ManagementMode_MANAGEMENTMODEUNSPECIFIED,+ Device_ManagementMode_DEVICEOWNER,+ Device_ManagementMode_PROFILEOWNER,+ Device_ManagementMode+ #-}++-- | Ownership of the managed device.+newtype Device_Ownership = Device_Ownership {fromDevice_Ownership :: 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+ )++-- | Ownership is unspecified.+pattern Device_Ownership_OWNERSHIPUNSPECIFIED :: Device_Ownership+pattern Device_Ownership_OWNERSHIPUNSPECIFIED = Device_Ownership "OWNERSHIP_UNSPECIFIED"++-- | Device is company-owned.+pattern Device_Ownership_COMPANYOWNED :: Device_Ownership+pattern Device_Ownership_COMPANYOWNED = Device_Ownership "COMPANY_OWNED"++-- | Device is personally-owned.+pattern Device_Ownership_PERSONALLYOWNED :: Device_Ownership+pattern Device_Ownership_PERSONALLYOWNED = Device_Ownership "PERSONALLY_OWNED"++{-# COMPLETE+ Device_Ownership_OWNERSHIPUNSPECIFIED,+ Device_Ownership_COMPANYOWNED,+ Device_Ownership_PERSONALLYOWNED,+ Device_Ownership+ #-}++-- | The state to be applied to the device. This field can be modified by a patch request. Note that when calling enterprises.devices.patch, ACTIVE and DISABLED are the only allowable values. To enter the device into a DELETED state, call enterprises.devices.delete.+newtype Device_State = Device_State {fromDevice_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+ )++-- | This value is disallowed.+pattern Device_State_DEVICESTATEUNSPECIFIED :: Device_State+pattern Device_State_DEVICESTATEUNSPECIFIED = Device_State "DEVICE_STATE_UNSPECIFIED"++-- | The device is active.+pattern Device_State_Active :: Device_State+pattern Device_State_Active = Device_State "ACTIVE"++-- | The device is disabled.+pattern Device_State_Disabled :: Device_State+pattern Device_State_Disabled = Device_State "DISABLED"++-- | The device was deleted. This state is never returned by an API call, but is used in the final status report when the device acknowledges the deletion. If the device is deleted via the API call, this state is published to Pub\/Sub. If the user deletes the work profile or resets the device, the device state will remain unknown to the server.+pattern Device_State_Deleted :: Device_State+pattern Device_State_Deleted = Device_State "DELETED"++-- | The device is being provisioned. Newly enrolled devices are in this state until they have a policy applied.+pattern Device_State_Provisioning :: Device_State+pattern Device_State_Provisioning = Device_State "PROVISIONING"++-- | The device is lost. This state is only possible on organization-owned devices.+pattern Device_State_Lost :: Device_State+pattern Device_State_Lost = Device_State "LOST"++-- | The device is preparing for migrating to Android Management API. No further action is needed for the migration to continue.+pattern Device_State_PREPARINGFORMIGRATION :: Device_State+pattern Device_State_PREPARINGFORMIGRATION = Device_State "PREPARING_FOR_MIGRATION"++-- | This is a financed device that has been \"locked\" by the financing agent. This means certain policy settings have been applied which limit device functionality until the device has been \"unlocked\" by the financing agent. The device will continue to apply policy settings excluding those overridden by the financing agent. When the device is \"locked\", the state is reported in appliedState as DEACTIVATED/BY/DEVICE_FINANCE.+pattern Device_State_DEACTIVATEDBYDEVICEFINANCE :: Device_State+pattern Device_State_DEACTIVATEDBYDEVICEFINANCE = Device_State "DEACTIVATED_BY_DEVICE_FINANCE"++{-# COMPLETE+ Device_State_DEVICESTATEUNSPECIFIED,+ Device_State_Active,+ Device_State_Disabled,+ Device_State_Deleted,+ Device_State_Provisioning,+ Device_State_Lost,+ Device_State_PREPARINGFORMIGRATION,+ Device_State_DEACTIVATEDBYDEVICEFINANCE,+ Device_State+ #-}++-- | Controls Wi-Fi configuring privileges. Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks.+newtype DeviceConnectivityManagement_ConfigureWifi = DeviceConnectivityManagement_ConfigureWifi {fromDeviceConnectivityManagement_ConfigureWifi :: 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 ALLOW/CONFIGURING/WIFI unless wifiConfigDisabled is set to true. If wifiConfigDisabled is set to true, this is equivalent to DISALLOW/CONFIGURING/WIFI.+pattern DeviceConnectivityManagement_ConfigureWifi_CONFIGUREWIFIUNSPECIFIED :: DeviceConnectivityManagement_ConfigureWifi+pattern DeviceConnectivityManagement_ConfigureWifi_CONFIGUREWIFIUNSPECIFIED = DeviceConnectivityManagement_ConfigureWifi "CONFIGURE_WIFI_UNSPECIFIED"++-- | The user is allowed to configure Wi-Fi. wifiConfigDisabled is ignored.+pattern DeviceConnectivityManagement_ConfigureWifi_ALLOWCONFIGURINGWIFI :: DeviceConnectivityManagement_ConfigureWifi+pattern DeviceConnectivityManagement_ConfigureWifi_ALLOWCONFIGURINGWIFI = DeviceConnectivityManagement_ConfigureWifi "ALLOW_CONFIGURING_WIFI"++-- | Adding new Wi-Fi configurations is disallowed. The user is only able to switch between already configured networks. Supported on Android 13 and above, on fully managed devices and work profiles on company-owned devices. If the setting is not supported, ALLOW/CONFIGURING/WIFI is set. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13. wifiConfigDisabled is ignored.+pattern DeviceConnectivityManagement_ConfigureWifi_DISALLOWADDWIFICONFIG :: DeviceConnectivityManagement_ConfigureWifi+pattern DeviceConnectivityManagement_ConfigureWifi_DISALLOWADDWIFICONFIG = DeviceConnectivityManagement_ConfigureWifi "DISALLOW_ADD_WIFI_CONFIG"++-- | Disallows configuring Wi-Fi networks. The setting wifiConfigDisabled is ignored when this value is set. Supported on fully managed devices and work profile on company-owned devices, on all supported API levels. For fully managed devices, setting this removes all configured networks and retains only the networks configured using openNetworkConfiguration policy. For work profiles on company-owned devices, existing configured networks are not affected and the user is not allowed to add, remove, or modify Wi-Fi networks. Note: If a network connection can\'t be made at boot time and configuring Wi-Fi is disabled then network escape hatch will be shown in order to refresh the device policy (see networkEscapeHatchEnabled).+pattern DeviceConnectivityManagement_ConfigureWifi_DISALLOWCONFIGURINGWIFI :: DeviceConnectivityManagement_ConfigureWifi+pattern DeviceConnectivityManagement_ConfigureWifi_DISALLOWCONFIGURINGWIFI = DeviceConnectivityManagement_ConfigureWifi "DISALLOW_CONFIGURING_WIFI"++{-# COMPLETE+ DeviceConnectivityManagement_ConfigureWifi_CONFIGUREWIFIUNSPECIFIED,+ DeviceConnectivityManagement_ConfigureWifi_ALLOWCONFIGURINGWIFI,+ DeviceConnectivityManagement_ConfigureWifi_DISALLOWADDWIFICONFIG,+ DeviceConnectivityManagement_ConfigureWifi_DISALLOWCONFIGURINGWIFI,+ DeviceConnectivityManagement_ConfigureWifi+ #-}++-- | Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering.+newtype DeviceConnectivityManagement_TetheringSettings = DeviceConnectivityManagement_TetheringSettings {fromDeviceConnectivityManagement_TetheringSettings :: 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 ALLOW/ALL/TETHERING unless tetheringConfigDisabled is set to true. If tetheringConfigDisabled is set to true, this is equivalent to DISALLOW/ALL/TETHERING.+pattern DeviceConnectivityManagement_TetheringSettings_TETHERINGSETTINGSUNSPECIFIED :: DeviceConnectivityManagement_TetheringSettings+pattern DeviceConnectivityManagement_TetheringSettings_TETHERINGSETTINGSUNSPECIFIED = DeviceConnectivityManagement_TetheringSettings "TETHERING_SETTINGS_UNSPECIFIED"++-- | Allows configuration and use of all forms of tethering. tetheringConfigDisabled is ignored.+pattern DeviceConnectivityManagement_TetheringSettings_ALLOWALLTETHERING :: DeviceConnectivityManagement_TetheringSettings+pattern DeviceConnectivityManagement_TetheringSettings_ALLOWALLTETHERING = DeviceConnectivityManagement_TetheringSettings "ALLOW_ALL_TETHERING"++-- | Disallows the user from using Wi-Fi tethering. Supported on company owned devices running Android 13 and above. If the setting is not supported, ALLOW/ALL/TETHERING will be set. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13. tetheringConfigDisabled is ignored.+pattern DeviceConnectivityManagement_TetheringSettings_DISALLOWWIFITETHERING :: DeviceConnectivityManagement_TetheringSettings+pattern DeviceConnectivityManagement_TetheringSettings_DISALLOWWIFITETHERING = DeviceConnectivityManagement_TetheringSettings "DISALLOW_WIFI_TETHERING"++-- | Disallows all forms of tethering. Supported on fully managed devices and work profile on company-owned devices, on all supported android versions. The setting tetheringConfigDisabled is ignored.+pattern DeviceConnectivityManagement_TetheringSettings_DISALLOWALLTETHERING :: DeviceConnectivityManagement_TetheringSettings+pattern DeviceConnectivityManagement_TetheringSettings_DISALLOWALLTETHERING = DeviceConnectivityManagement_TetheringSettings "DISALLOW_ALL_TETHERING"++{-# COMPLETE+ DeviceConnectivityManagement_TetheringSettings_TETHERINGSETTINGSUNSPECIFIED,+ DeviceConnectivityManagement_TetheringSettings_ALLOWALLTETHERING,+ DeviceConnectivityManagement_TetheringSettings_DISALLOWWIFITETHERING,+ DeviceConnectivityManagement_TetheringSettings_DISALLOWALLTETHERING,+ DeviceConnectivityManagement_TetheringSettings+ #-}++-- | Controls what files and\/or data can be transferred via USB. Supported only on company-owned devices.+newtype DeviceConnectivityManagement_UsbDataAccess = DeviceConnectivityManagement_UsbDataAccess {fromDeviceConnectivityManagement_UsbDataAccess :: 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 DISALLOW/USB/FILE_TRANSFER.+pattern DeviceConnectivityManagement_UsbDataAccess_USBDATAACCESSUNSPECIFIED :: DeviceConnectivityManagement_UsbDataAccess+pattern DeviceConnectivityManagement_UsbDataAccess_USBDATAACCESSUNSPECIFIED = DeviceConnectivityManagement_UsbDataAccess "USB_DATA_ACCESS_UNSPECIFIED"++-- | All types of USB data transfers are allowed. usbFileTransferDisabled is ignored.+pattern DeviceConnectivityManagement_UsbDataAccess_ALLOWUSBDATATRANSFER :: DeviceConnectivityManagement_UsbDataAccess+pattern DeviceConnectivityManagement_UsbDataAccess_ALLOWUSBDATATRANSFER = DeviceConnectivityManagement_UsbDataAccess "ALLOW_USB_DATA_TRANSFER"++-- | Transferring files over USB is disallowed. Other types of USB data connections, such as mouse and keyboard connection, are allowed. usbFileTransferDisabled is ignored.+pattern DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBFILETRANSFER :: DeviceConnectivityManagement_UsbDataAccess+pattern DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBFILETRANSFER = DeviceConnectivityManagement_UsbDataAccess "DISALLOW_USB_FILE_TRANSFER"++-- | When set, all types of USB data transfers are prohibited. Supported for devices running Android 12 or above with USB HAL 1.3 or above. If the setting is not supported, DISALLOW/USB/FILE/TRANSFER will be set. A nonComplianceDetail with API/LEVEL is reported if the Android version is less than 12. A nonComplianceDetail with DEVICE_INCOMPATIBLE is reported if the device does not have USB HAL 1.3 or above. usbFileTransferDisabled is ignored.+pattern DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBDATATRANSFER :: DeviceConnectivityManagement_UsbDataAccess+pattern DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBDATATRANSFER = DeviceConnectivityManagement_UsbDataAccess "DISALLOW_USB_DATA_TRANSFER"++{-# COMPLETE+ DeviceConnectivityManagement_UsbDataAccess_USBDATAACCESSUNSPECIFIED,+ DeviceConnectivityManagement_UsbDataAccess_ALLOWUSBDATATRANSFER,+ DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBFILETRANSFER,+ DeviceConnectivityManagement_UsbDataAccess_DISALLOWUSBDATATRANSFER,+ DeviceConnectivityManagement_UsbDataAccess+ #-}++-- | Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above.+newtype DeviceConnectivityManagement_WifiDirectSettings = DeviceConnectivityManagement_WifiDirectSettings {fromDeviceConnectivityManagement_WifiDirectSettings :: 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 ALLOW/WIFI/DIRECT+pattern DeviceConnectivityManagement_WifiDirectSettings_WIFIDIRECTSETTINGSUNSPECIFIED :: DeviceConnectivityManagement_WifiDirectSettings+pattern DeviceConnectivityManagement_WifiDirectSettings_WIFIDIRECTSETTINGSUNSPECIFIED = DeviceConnectivityManagement_WifiDirectSettings "WIFI_DIRECT_SETTINGS_UNSPECIFIED"++-- | The user is allowed to use Wi-Fi direct.+pattern DeviceConnectivityManagement_WifiDirectSettings_ALLOWWIFIDIRECT :: DeviceConnectivityManagement_WifiDirectSettings+pattern DeviceConnectivityManagement_WifiDirectSettings_ALLOWWIFIDIRECT = DeviceConnectivityManagement_WifiDirectSettings "ALLOW_WIFI_DIRECT"++-- | The user is not allowed to use Wi-Fi direct. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.+pattern DeviceConnectivityManagement_WifiDirectSettings_DISALLOWWIFIDIRECT :: DeviceConnectivityManagement_WifiDirectSettings+pattern DeviceConnectivityManagement_WifiDirectSettings_DISALLOWWIFIDIRECT = DeviceConnectivityManagement_WifiDirectSettings "DISALLOW_WIFI_DIRECT"++{-# COMPLETE+ DeviceConnectivityManagement_WifiDirectSettings_WIFIDIRECTSETTINGSUNSPECIFIED,+ DeviceConnectivityManagement_WifiDirectSettings_ALLOWWIFIDIRECT,+ DeviceConnectivityManagement_WifiDirectSettings_DISALLOWWIFIDIRECT,+ DeviceConnectivityManagement_WifiDirectSettings+ #-}++-- | Controls whether airplane mode can be toggled by the user or not.+newtype DeviceRadioState_AirplaneModeState = DeviceRadioState_AirplaneModeState {fromDeviceRadioState_AirplaneModeState :: 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 AIRPLANE/MODE/USER_CHOICE.+pattern DeviceRadioState_AirplaneModeState_AIRPLANEMODESTATEUNSPECIFIED :: DeviceRadioState_AirplaneModeState+pattern DeviceRadioState_AirplaneModeState_AIRPLANEMODESTATEUNSPECIFIED = DeviceRadioState_AirplaneModeState "AIRPLANE_MODE_STATE_UNSPECIFIED"++-- | The user is allowed to toggle airplane mode on or off.+pattern DeviceRadioState_AirplaneModeState_AIRPLANEMODEUSERCHOICE :: DeviceRadioState_AirplaneModeState+pattern DeviceRadioState_AirplaneModeState_AIRPLANEMODEUSERCHOICE = DeviceRadioState_AirplaneModeState "AIRPLANE_MODE_USER_CHOICE"++-- | Airplane mode is disabled. The user is not allowed to toggle airplane mode on. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 9.+pattern DeviceRadioState_AirplaneModeState_AIRPLANEMODEDISABLED :: DeviceRadioState_AirplaneModeState+pattern DeviceRadioState_AirplaneModeState_AIRPLANEMODEDISABLED = DeviceRadioState_AirplaneModeState "AIRPLANE_MODE_DISABLED"++{-# COMPLETE+ DeviceRadioState_AirplaneModeState_AIRPLANEMODESTATEUNSPECIFIED,+ DeviceRadioState_AirplaneModeState_AIRPLANEMODEUSERCHOICE,+ DeviceRadioState_AirplaneModeState_AIRPLANEMODEDISABLED,+ DeviceRadioState_AirplaneModeState+ #-}++-- | Controls whether cellular 2G setting can be toggled by the user or not.+newtype DeviceRadioState_CellularTwoGState = DeviceRadioState_CellularTwoGState {fromDeviceRadioState_CellularTwoGState :: 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 CELLULAR/TWO/G/USER/CHOICE.+pattern DeviceRadioState_CellularTwoGState_CELLULARTWOGSTATEUNSPECIFIED :: DeviceRadioState_CellularTwoGState+pattern DeviceRadioState_CellularTwoGState_CELLULARTWOGSTATEUNSPECIFIED = DeviceRadioState_CellularTwoGState "CELLULAR_TWO_G_STATE_UNSPECIFIED"++-- | The user is allowed to toggle cellular 2G on or off.+pattern DeviceRadioState_CellularTwoGState_CELLULARTWOGUSERCHOICE :: DeviceRadioState_CellularTwoGState+pattern DeviceRadioState_CellularTwoGState_CELLULARTWOGUSERCHOICE = DeviceRadioState_CellularTwoGState "CELLULAR_TWO_G_USER_CHOICE"++-- | Cellular 2G is disabled. The user is not allowed to toggle cellular 2G on via settings. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.+pattern DeviceRadioState_CellularTwoGState_CELLULARTWOGDISABLED :: DeviceRadioState_CellularTwoGState+pattern DeviceRadioState_CellularTwoGState_CELLULARTWOGDISABLED = DeviceRadioState_CellularTwoGState "CELLULAR_TWO_G_DISABLED"++{-# COMPLETE+ DeviceRadioState_CellularTwoGState_CELLULARTWOGSTATEUNSPECIFIED,+ DeviceRadioState_CellularTwoGState_CELLULARTWOGUSERCHOICE,+ DeviceRadioState_CellularTwoGState_CELLULARTWOGDISABLED,+ DeviceRadioState_CellularTwoGState+ #-}++-- | The minimum required security level of Wi-Fi networks that the device can connect to.+newtype DeviceRadioState_MinimumWifiSecurityLevel = DeviceRadioState_MinimumWifiSecurityLevel {fromDeviceRadioState_MinimumWifiSecurityLevel :: 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+ )++-- | Defaults to OPEN/NETWORK/SECURITY, which means the device will be able to connect to all types of Wi-Fi networks.+pattern DeviceRadioState_MinimumWifiSecurityLevel_MINIMUMWIFISECURITYLEVELUNSPECIFIED :: DeviceRadioState_MinimumWifiSecurityLevel+pattern DeviceRadioState_MinimumWifiSecurityLevel_MINIMUMWIFISECURITYLEVELUNSPECIFIED = DeviceRadioState_MinimumWifiSecurityLevel "MINIMUM_WIFI_SECURITY_LEVEL_UNSPECIFIED"++-- | The device will be able to connect to all types of Wi-Fi networks.+pattern DeviceRadioState_MinimumWifiSecurityLevel_OPENNETWORKSECURITY :: DeviceRadioState_MinimumWifiSecurityLevel+pattern DeviceRadioState_MinimumWifiSecurityLevel_OPENNETWORKSECURITY = DeviceRadioState_MinimumWifiSecurityLevel "OPEN_NETWORK_SECURITY"++-- | A personal network such as WEP, WPA2-PSK is the minimum required security. The device will not be able to connect to open wifi networks. This is stricter than OPEN/NETWORK/SECURITY. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.+pattern DeviceRadioState_MinimumWifiSecurityLevel_PERSONALNETWORKSECURITY :: DeviceRadioState_MinimumWifiSecurityLevel+pattern DeviceRadioState_MinimumWifiSecurityLevel_PERSONALNETWORKSECURITY = DeviceRadioState_MinimumWifiSecurityLevel "PERSONAL_NETWORK_SECURITY"++-- | An enterprise EAP network is the minimum required security level. The device will not be able to connect to Wi-Fi network below this security level. This is stricter than PERSONAL/NETWORK/SECURITY. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.+pattern DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISENETWORKSECURITY :: DeviceRadioState_MinimumWifiSecurityLevel+pattern DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISENETWORKSECURITY = DeviceRadioState_MinimumWifiSecurityLevel "ENTERPRISE_NETWORK_SECURITY"++-- | A 192-bit enterprise network is the minimum required security level. The device will not be able to connect to Wi-Fi network below this security level. This is stricter than ENTERPRISE/NETWORK/SECURITY. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.+pattern DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISEBIT192NETWORKSECURITY :: DeviceRadioState_MinimumWifiSecurityLevel+pattern DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISEBIT192NETWORKSECURITY = DeviceRadioState_MinimumWifiSecurityLevel "ENTERPRISE_BIT192_NETWORK_SECURITY"++{-# COMPLETE+ DeviceRadioState_MinimumWifiSecurityLevel_MINIMUMWIFISECURITYLEVELUNSPECIFIED,+ DeviceRadioState_MinimumWifiSecurityLevel_OPENNETWORKSECURITY,+ DeviceRadioState_MinimumWifiSecurityLevel_PERSONALNETWORKSECURITY,+ DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISENETWORKSECURITY,+ DeviceRadioState_MinimumWifiSecurityLevel_ENTERPRISEBIT192NETWORKSECURITY,+ DeviceRadioState_MinimumWifiSecurityLevel+ #-}++-- | Controls the state of the ultra wideband setting and whether the user can toggle it on or off.+newtype DeviceRadioState_UltraWidebandState = DeviceRadioState_UltraWidebandState {fromDeviceRadioState_UltraWidebandState :: 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 ULTRA/WIDEBAND/USER_CHOICE.+pattern DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDSTATEUNSPECIFIED :: DeviceRadioState_UltraWidebandState+pattern DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDSTATEUNSPECIFIED = DeviceRadioState_UltraWidebandState "ULTRA_WIDEBAND_STATE_UNSPECIFIED"++-- | The user is allowed to toggle ultra wideband on or off.+pattern DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDUSERCHOICE :: DeviceRadioState_UltraWidebandState+pattern DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDUSERCHOICE = DeviceRadioState_UltraWidebandState "ULTRA_WIDEBAND_USER_CHOICE"++-- | Ultra wideband is disabled. The user is not allowed to toggle ultra wideband on via settings. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 14.+pattern DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDDISABLED :: DeviceRadioState_UltraWidebandState+pattern DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDDISABLED = DeviceRadioState_UltraWidebandState "ULTRA_WIDEBAND_DISABLED"++{-# COMPLETE+ DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDSTATEUNSPECIFIED,+ DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDUSERCHOICE,+ DeviceRadioState_UltraWidebandState_ULTRAWIDEBANDDISABLED,+ DeviceRadioState_UltraWidebandState+ #-}++-- | Controls current state of Wi-Fi and if user can change its state.+newtype DeviceRadioState_WifiState = DeviceRadioState_WifiState {fromDeviceRadioState_WifiState :: 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 WIFI/STATE/USER_CHOICE+pattern DeviceRadioState_WifiState_WIFISTATEUNSPECIFIED :: DeviceRadioState_WifiState+pattern DeviceRadioState_WifiState_WIFISTATEUNSPECIFIED = DeviceRadioState_WifiState "WIFI_STATE_UNSPECIFIED"++-- | User is allowed to enable\/disable Wi-Fi.+pattern DeviceRadioState_WifiState_WIFISTATEUSERCHOICE :: DeviceRadioState_WifiState+pattern DeviceRadioState_WifiState_WIFISTATEUSERCHOICE = DeviceRadioState_WifiState "WIFI_STATE_USER_CHOICE"++-- | Wi-Fi is on and the user is not allowed to turn it off. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.+pattern DeviceRadioState_WifiState_WIFIENABLED :: DeviceRadioState_WifiState+pattern DeviceRadioState_WifiState_WIFIENABLED = DeviceRadioState_WifiState "WIFI_ENABLED"++-- | Wi-Fi is off and the user is not allowed to turn it on. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 13.+pattern DeviceRadioState_WifiState_WIFIDISABLED :: DeviceRadioState_WifiState+pattern DeviceRadioState_WifiState_WIFIDISABLED = DeviceRadioState_WifiState "WIFI_DISABLED"++{-# COMPLETE+ DeviceRadioState_WifiState_WIFISTATEUNSPECIFIED,+ DeviceRadioState_WifiState_WIFISTATEUSERCHOICE,+ DeviceRadioState_WifiState_WIFIENABLED,+ DeviceRadioState_WifiState_WIFIDISABLED,+ DeviceRadioState_WifiState+ #-}++-- | Encryption status from DevicePolicyManager.+newtype DeviceSettings_EncryptionStatus = DeviceSettings_EncryptionStatus {fromDeviceSettings_EncryptionStatus :: 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. No device should have this type.+pattern DeviceSettings_EncryptionStatus_ENCRYPTIONSTATUSUNSPECIFIED :: DeviceSettings_EncryptionStatus+pattern DeviceSettings_EncryptionStatus_ENCRYPTIONSTATUSUNSPECIFIED = DeviceSettings_EncryptionStatus "ENCRYPTION_STATUS_UNSPECIFIED"++-- | Encryption is not supported by the device.+pattern DeviceSettings_EncryptionStatus_Unsupported :: DeviceSettings_EncryptionStatus+pattern DeviceSettings_EncryptionStatus_Unsupported = DeviceSettings_EncryptionStatus "UNSUPPORTED"++-- | Encryption is supported by the device, but is not currently active.+pattern DeviceSettings_EncryptionStatus_Inactive :: DeviceSettings_EncryptionStatus+pattern DeviceSettings_EncryptionStatus_Inactive = DeviceSettings_EncryptionStatus "INACTIVE"++-- | Encryption is not currently active, but is currently being activated.+pattern DeviceSettings_EncryptionStatus_Activating :: DeviceSettings_EncryptionStatus+pattern DeviceSettings_EncryptionStatus_Activating = DeviceSettings_EncryptionStatus "ACTIVATING"++-- | Encryption is active.+pattern DeviceSettings_EncryptionStatus_Active :: DeviceSettings_EncryptionStatus+pattern DeviceSettings_EncryptionStatus_Active = DeviceSettings_EncryptionStatus "ACTIVE"++-- | Encryption is active, but an encryption key is not set by the user.+pattern DeviceSettings_EncryptionStatus_ACTIVEDEFAULTKEY :: DeviceSettings_EncryptionStatus+pattern DeviceSettings_EncryptionStatus_ACTIVEDEFAULTKEY = DeviceSettings_EncryptionStatus "ACTIVE_DEFAULT_KEY"++-- | Encryption is active, and the encryption key is tied to the user profile.+pattern DeviceSettings_EncryptionStatus_ACTIVEPERUSER :: DeviceSettings_EncryptionStatus+pattern DeviceSettings_EncryptionStatus_ACTIVEPERUSER = DeviceSettings_EncryptionStatus "ACTIVE_PER_USER"++{-# COMPLETE+ DeviceSettings_EncryptionStatus_ENCRYPTIONSTATUSUNSPECIFIED,+ DeviceSettings_EncryptionStatus_Unsupported,+ DeviceSettings_EncryptionStatus_Inactive,+ DeviceSettings_EncryptionStatus_Activating,+ DeviceSettings_EncryptionStatus_Active,+ DeviceSettings_EncryptionStatus_ACTIVEDEFAULTKEY,+ DeviceSettings_EncryptionStatus_ACTIVEPERUSER,+ DeviceSettings_EncryptionStatus+ #-}++-- | State of the display.+newtype Display_State = Display_State {fromDisplay_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+ )++-- | This value is disallowed.+pattern Display_State_DISPLAYSTATEUNSPECIFIED :: Display_State+pattern Display_State_DISPLAYSTATEUNSPECIFIED = Display_State "DISPLAY_STATE_UNSPECIFIED"++-- | Display is off.+pattern Display_State_Off :: Display_State+pattern Display_State_Off = Display_State "OFF"++-- | Display is on.+pattern Display_State_ON :: Display_State+pattern Display_State_ON = Display_State "ON"++-- | Display is dozing in a low power state+pattern Display_State_Doze :: Display_State+pattern Display_State_Doze = Display_State "DOZE"++-- | Display is dozing in a suspended low power state.+pattern Display_State_Suspended :: Display_State+pattern Display_State_Suspended = Display_State "SUSPENDED"++{-# COMPLETE+ Display_State_DISPLAYSTATEUNSPECIFIED,+ Display_State_Off,+ Display_State_ON,+ Display_State_Doze,+ Display_State_Suspended,+ Display_State+ #-}++-- | Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.+newtype EnrollmentToken_AllowPersonalUsage = EnrollmentToken_AllowPersonalUsage {fromEnrollmentToken_AllowPersonalUsage :: 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+ )++-- | Personal usage restriction is not specified+pattern EnrollmentToken_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED :: EnrollmentToken_AllowPersonalUsage+pattern EnrollmentToken_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED = EnrollmentToken_AllowPersonalUsage "ALLOW_PERSONAL_USAGE_UNSPECIFIED"++-- | Personal usage is allowed+pattern EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEALLOWED :: EnrollmentToken_AllowPersonalUsage+pattern EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEALLOWED = EnrollmentToken_AllowPersonalUsage "PERSONAL_USAGE_ALLOWED"++-- | Personal usage is disallowed+pattern EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWED :: EnrollmentToken_AllowPersonalUsage+pattern EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWED = EnrollmentToken_AllowPersonalUsage "PERSONAL_USAGE_DISALLOWED"++-- | Device is not associated with a single user, and thus both personal usage and corporate identity authentication are not expected. Important: This setting is mandatory for dedicated device enrollment and it is a breaking change. This change needs to be implemented before January 2025.For additional details see the dedicated device provisioning guide (https:\/\/developers.google.com\/android\/management\/provision-device#company-owned/devices/for/work/use_only).+pattern EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS :: EnrollmentToken_AllowPersonalUsage+pattern EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS = EnrollmentToken_AllowPersonalUsage "PERSONAL_USAGE_DISALLOWED_USERLESS"++{-# COMPLETE+ EnrollmentToken_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED,+ EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEALLOWED,+ EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWED,+ EnrollmentToken_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS,+ EnrollmentToken_AllowPersonalUsage+ #-}++newtype Enterprise_EnabledNotificationTypesItem = Enterprise_EnabledNotificationTypesItem {fromEnterprise_EnabledNotificationTypesItem :: 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 ignored.+pattern Enterprise_EnabledNotificationTypesItem_NOTIFICATIONTYPEUNSPECIFIED :: Enterprise_EnabledNotificationTypesItem+pattern Enterprise_EnabledNotificationTypesItem_NOTIFICATIONTYPEUNSPECIFIED = Enterprise_EnabledNotificationTypesItem "NOTIFICATION_TYPE_UNSPECIFIED"++-- | A notification sent when a device enrolls.+pattern Enterprise_EnabledNotificationTypesItem_Enrollment :: Enterprise_EnabledNotificationTypesItem+pattern Enterprise_EnabledNotificationTypesItem_Enrollment = Enterprise_EnabledNotificationTypesItem "ENROLLMENT"++-- | Deprecated.+pattern Enterprise_EnabledNotificationTypesItem_COMPLIANCEREPORT :: Enterprise_EnabledNotificationTypesItem+pattern Enterprise_EnabledNotificationTypesItem_COMPLIANCEREPORT = Enterprise_EnabledNotificationTypesItem "COMPLIANCE_REPORT"++-- | A notification sent when a device issues a status report.+pattern Enterprise_EnabledNotificationTypesItem_STATUSREPORT :: Enterprise_EnabledNotificationTypesItem+pattern Enterprise_EnabledNotificationTypesItem_STATUSREPORT = Enterprise_EnabledNotificationTypesItem "STATUS_REPORT"++-- | A notification sent when a device command has completed.+pattern Enterprise_EnabledNotificationTypesItem_Command :: Enterprise_EnabledNotificationTypesItem+pattern Enterprise_EnabledNotificationTypesItem_Command = Enterprise_EnabledNotificationTypesItem "COMMAND"++-- | A notification sent when device sends BatchUsageLogEvents.+pattern Enterprise_EnabledNotificationTypesItem_USAGELOGS :: Enterprise_EnabledNotificationTypesItem+pattern Enterprise_EnabledNotificationTypesItem_USAGELOGS = Enterprise_EnabledNotificationTypesItem "USAGE_LOGS"++-- | A notification sent when an enterprise is upgraded.Note: This feature is not generally available.+pattern Enterprise_EnabledNotificationTypesItem_ENTERPRISEUPGRADE :: Enterprise_EnabledNotificationTypesItem+pattern Enterprise_EnabledNotificationTypesItem_ENTERPRISEUPGRADE = Enterprise_EnabledNotificationTypesItem "ENTERPRISE_UPGRADE"++{-# COMPLETE+ Enterprise_EnabledNotificationTypesItem_NOTIFICATIONTYPEUNSPECIFIED,+ Enterprise_EnabledNotificationTypesItem_Enrollment,+ Enterprise_EnabledNotificationTypesItem_COMPLIANCEREPORT,+ Enterprise_EnabledNotificationTypesItem_STATUSREPORT,+ Enterprise_EnabledNotificationTypesItem_Command,+ Enterprise_EnabledNotificationTypesItem_USAGELOGS,+ Enterprise_EnabledNotificationTypesItem_ENTERPRISEUPGRADE,+ Enterprise_EnabledNotificationTypesItem+ #-}++-- | Output only. 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 "ENTERPRISE_TYPE_UNSPECIFIED"++-- | The enterprise belongs to a managed Google domain (https:\/\/developers.google.com\/android\/work\/terminology#managed/google/domain).+pattern Enterprise_EnterpriseType_MANAGEDGOOGLEDOMAIN :: Enterprise_EnterpriseType+pattern Enterprise_EnterpriseType_MANAGEDGOOGLEDOMAIN = Enterprise_EnterpriseType "MANAGED_GOOGLE_DOMAIN"++-- | The enterprise is a managed Google Play Accounts enterprise (https:\/\/developers.google.com\/android\/work\/terminology#managed/google/play/accounts/enterprise).+pattern Enterprise_EnterpriseType_MANAGEDGOOGLEPLAYACCOUNTSENTERPRISE :: Enterprise_EnterpriseType+pattern Enterprise_EnterpriseType_MANAGEDGOOGLEPLAYACCOUNTSENTERPRISE = Enterprise_EnterpriseType "MANAGED_GOOGLE_PLAY_ACCOUNTS_ENTERPRISE"++{-# COMPLETE+ Enterprise_EnterpriseType_ENTERPRISETYPEUNSPECIFIED,+ Enterprise_EnterpriseType_MANAGEDGOOGLEDOMAIN,+ Enterprise_EnterpriseType_MANAGEDGOOGLEPLAYACCOUNTSENTERPRISE,+ Enterprise_EnterpriseType+ #-}++-- | Output only. 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 "MANAGED_GOOGLE_DOMAIN_TYPE_UNSPECIFIED"++-- | The managed Google domain is an email-verified team.+pattern Enterprise_ManagedGoogleDomainType_TYPETEAM :: Enterprise_ManagedGoogleDomainType+pattern Enterprise_ManagedGoogleDomainType_TYPETEAM = Enterprise_ManagedGoogleDomainType "TYPE_TEAM"++-- | The managed Google domain is domain-verified.+pattern Enterprise_ManagedGoogleDomainType_TYPEDOMAIN :: Enterprise_ManagedGoogleDomainType+pattern Enterprise_ManagedGoogleDomainType_TYPEDOMAIN = Enterprise_ManagedGoogleDomainType "TYPE_DOMAIN"++{-# COMPLETE+ Enterprise_ManagedGoogleDomainType_MANAGEDGOOGLEDOMAINTYPEUNSPECIFIED,+ Enterprise_ManagedGoogleDomainType_TYPETEAM,+ Enterprise_ManagedGoogleDomainType_TYPEDOMAIN,+ Enterprise_ManagedGoogleDomainType+ #-}++-- | Output only. The type of a managed Google Play Accounts enterprise.+newtype Enterprise_ManagedGooglePlayAccountsEnterpriseType = Enterprise_ManagedGooglePlayAccountsEnterpriseType {fromEnterprise_ManagedGooglePlayAccountsEnterpriseType :: 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 Play Accounts enterprise type is not specified.+pattern Enterprise_ManagedGooglePlayAccountsEnterpriseType_MANAGEDGOOGLEPLAYACCOUNTSENTERPRISETYPEUNSPECIFIED :: Enterprise_ManagedGooglePlayAccountsEnterpriseType+pattern Enterprise_ManagedGooglePlayAccountsEnterpriseType_MANAGEDGOOGLEPLAYACCOUNTSENTERPRISETYPEUNSPECIFIED = Enterprise_ManagedGooglePlayAccountsEnterpriseType "MANAGED_GOOGLE_PLAY_ACCOUNTS_ENTERPRISE_TYPE_UNSPECIFIED"++-- | The enterprise is customer-managed+pattern Enterprise_ManagedGooglePlayAccountsEnterpriseType_CUSTOMERMANAGED :: Enterprise_ManagedGooglePlayAccountsEnterpriseType+pattern Enterprise_ManagedGooglePlayAccountsEnterpriseType_CUSTOMERMANAGED = Enterprise_ManagedGooglePlayAccountsEnterpriseType "CUSTOMER_MANAGED"++-- | The enterprise is EMM-managed (deprecated).+pattern Enterprise_ManagedGooglePlayAccountsEnterpriseType_EMMMANAGED :: Enterprise_ManagedGooglePlayAccountsEnterpriseType+pattern Enterprise_ManagedGooglePlayAccountsEnterpriseType_EMMMANAGED = Enterprise_ManagedGooglePlayAccountsEnterpriseType "EMM_MANAGED"++{-# COMPLETE+ Enterprise_ManagedGooglePlayAccountsEnterpriseType_MANAGEDGOOGLEPLAYACCOUNTSENTERPRISETYPEUNSPECIFIED,+ Enterprise_ManagedGooglePlayAccountsEnterpriseType_CUSTOMERMANAGED,+ Enterprise_ManagedGooglePlayAccountsEnterpriseType_EMMMANAGED,+ Enterprise_ManagedGooglePlayAccountsEnterpriseType+ #-}++-- | Output only. Whether users need to be authenticated by Google during the enrollment process. IT admin can specify if Google authentication is enabled for the enterprise for knowledge worker devices. This value can be set only via the Google Admin Console. Google authentication can be used with signin/url In the case where Google authentication is required and a signin/url is specified, Google authentication will be launched before signin_url.+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 not used.+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_GOOGLEAUTHENTICATIONREQUIREDUNSPECIFIED :: GoogleAuthenticationSettings_GoogleAuthenticationRequired+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_GOOGLEAUTHENTICATIONREQUIREDUNSPECIFIED = GoogleAuthenticationSettings_GoogleAuthenticationRequired "GOOGLE_AUTHENTICATION_REQUIRED_UNSPECIFIED"++-- | Google authentication is not required.+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_NOTREQUIRED :: GoogleAuthenticationSettings_GoogleAuthenticationRequired+pattern GoogleAuthenticationSettings_GoogleAuthenticationRequired_NOTREQUIRED = GoogleAuthenticationSettings_GoogleAuthenticationRequired "NOT_REQUIRED"++-- | 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+ #-}++-- | Optional. Charging constraint.+newtype InstallConstraint_ChargingConstraint = InstallConstraint_ChargingConstraint {fromInstallConstraint_ChargingConstraint :: 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. Default to CHARGING/NOT/REQUIRED.+pattern InstallConstraint_ChargingConstraint_CHARGINGCONSTRAINTUNSPECIFIED :: InstallConstraint_ChargingConstraint+pattern InstallConstraint_ChargingConstraint_CHARGINGCONSTRAINTUNSPECIFIED = InstallConstraint_ChargingConstraint "CHARGING_CONSTRAINT_UNSPECIFIED"++-- | Device doesn\'t have to be charging.+pattern InstallConstraint_ChargingConstraint_CHARGINGNOTREQUIRED :: InstallConstraint_ChargingConstraint+pattern InstallConstraint_ChargingConstraint_CHARGINGNOTREQUIRED = InstallConstraint_ChargingConstraint "CHARGING_NOT_REQUIRED"++-- | Device has to be charging.+pattern InstallConstraint_ChargingConstraint_INSTALLONLYWHENCHARGING :: InstallConstraint_ChargingConstraint+pattern InstallConstraint_ChargingConstraint_INSTALLONLYWHENCHARGING = InstallConstraint_ChargingConstraint "INSTALL_ONLY_WHEN_CHARGING"++{-# COMPLETE+ InstallConstraint_ChargingConstraint_CHARGINGCONSTRAINTUNSPECIFIED,+ InstallConstraint_ChargingConstraint_CHARGINGNOTREQUIRED,+ InstallConstraint_ChargingConstraint_INSTALLONLYWHENCHARGING,+ InstallConstraint_ChargingConstraint+ #-}++-- | Optional. Device idle constraint.+newtype InstallConstraint_DeviceIdleConstraint = InstallConstraint_DeviceIdleConstraint {fromInstallConstraint_DeviceIdleConstraint :: 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. Default to DEVICE/IDLE/NOT_REQUIRED.+pattern InstallConstraint_DeviceIdleConstraint_DEVICEIDLECONSTRAINTUNSPECIFIED :: InstallConstraint_DeviceIdleConstraint+pattern InstallConstraint_DeviceIdleConstraint_DEVICEIDLECONSTRAINTUNSPECIFIED = InstallConstraint_DeviceIdleConstraint "DEVICE_IDLE_CONSTRAINT_UNSPECIFIED"++-- | Device doesn\'t have to be idle, app can be installed while the user is interacting with the device.+pattern InstallConstraint_DeviceIdleConstraint_DEVICEIDLENOTREQUIRED :: InstallConstraint_DeviceIdleConstraint+pattern InstallConstraint_DeviceIdleConstraint_DEVICEIDLENOTREQUIRED = InstallConstraint_DeviceIdleConstraint "DEVICE_IDLE_NOT_REQUIRED"++-- | Device has to be idle.+pattern InstallConstraint_DeviceIdleConstraint_INSTALLONLYWHENDEVICEIDLE :: InstallConstraint_DeviceIdleConstraint+pattern InstallConstraint_DeviceIdleConstraint_INSTALLONLYWHENDEVICEIDLE = InstallConstraint_DeviceIdleConstraint "INSTALL_ONLY_WHEN_DEVICE_IDLE"++{-# COMPLETE+ InstallConstraint_DeviceIdleConstraint_DEVICEIDLECONSTRAINTUNSPECIFIED,+ InstallConstraint_DeviceIdleConstraint_DEVICEIDLENOTREQUIRED,+ InstallConstraint_DeviceIdleConstraint_INSTALLONLYWHENDEVICEIDLE,+ InstallConstraint_DeviceIdleConstraint+ #-}++-- | Optional. Network type constraint.+newtype InstallConstraint_NetworkTypeConstraint = InstallConstraint_NetworkTypeConstraint {fromInstallConstraint_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+ )++-- | Unspecified. Default to INSTALL/ON/ANY_NETWORK.+pattern InstallConstraint_NetworkTypeConstraint_NETWORKTYPECONSTRAINTUNSPECIFIED :: InstallConstraint_NetworkTypeConstraint+pattern InstallConstraint_NetworkTypeConstraint_NETWORKTYPECONSTRAINTUNSPECIFIED = InstallConstraint_NetworkTypeConstraint "NETWORK_TYPE_CONSTRAINT_UNSPECIFIED"++-- | Any active networks (Wi-Fi, cellular, etc.).+pattern InstallConstraint_NetworkTypeConstraint_INSTALLONANYNETWORK :: InstallConstraint_NetworkTypeConstraint+pattern InstallConstraint_NetworkTypeConstraint_INSTALLONANYNETWORK = InstallConstraint_NetworkTypeConstraint "INSTALL_ON_ANY_NETWORK"++-- | Any unmetered network (e.g. Wi-FI).+pattern InstallConstraint_NetworkTypeConstraint_INSTALLONLYONUNMETEREDNETWORK :: InstallConstraint_NetworkTypeConstraint+pattern InstallConstraint_NetworkTypeConstraint_INSTALLONLYONUNMETEREDNETWORK = InstallConstraint_NetworkTypeConstraint "INSTALL_ONLY_ON_UNMETERED_NETWORK"++{-# COMPLETE+ InstallConstraint_NetworkTypeConstraint_NETWORKTYPECONSTRAINTUNSPECIFIED,+ InstallConstraint_NetworkTypeConstraint_INSTALLONANYNETWORK,+ InstallConstraint_NetworkTypeConstraint_INSTALLONLYONUNMETEREDNETWORK,+ InstallConstraint_NetworkTypeConstraint+ #-}++-- | The severity of the app state.+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+ )++-- | Unspecified severity level.+pattern KeyedAppState_Severity_SEVERITYUNSPECIFIED :: KeyedAppState_Severity+pattern KeyedAppState_Severity_SEVERITYUNSPECIFIED = KeyedAppState_Severity "SEVERITY_UNSPECIFIED"++-- | Information severity level.+pattern KeyedAppState_Severity_Info :: KeyedAppState_Severity+pattern KeyedAppState_Severity_Info = KeyedAppState_Severity "INFO"++-- | Error severity level. This should only be set for genuine error conditions that a management organization needs to take action to fix.+pattern KeyedAppState_Severity_Error' :: KeyedAppState_Severity+pattern KeyedAppState_Severity_Error' = KeyedAppState_Severity "ERROR"++{-# COMPLETE+ KeyedAppState_Severity_SEVERITYUNSPECIFIED,+ KeyedAppState_Severity_Info,+ KeyedAppState_Severity_Error',+ KeyedAppState_Severity+ #-}++-- | Specifies whether the Settings app is allowed in kiosk mode.+newtype KioskCustomization_DeviceSettings = KioskCustomization_DeviceSettings {fromKioskCustomization_DeviceSettings :: 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 SETTINGS/ACCESS/ALLOWED.+pattern KioskCustomization_DeviceSettings_DEVICESETTINGSUNSPECIFIED :: KioskCustomization_DeviceSettings+pattern KioskCustomization_DeviceSettings_DEVICESETTINGSUNSPECIFIED = KioskCustomization_DeviceSettings "DEVICE_SETTINGS_UNSPECIFIED"++-- | Access to the Settings app is allowed in kiosk mode.+pattern KioskCustomization_DeviceSettings_SETTINGSACCESSALLOWED :: KioskCustomization_DeviceSettings+pattern KioskCustomization_DeviceSettings_SETTINGSACCESSALLOWED = KioskCustomization_DeviceSettings "SETTINGS_ACCESS_ALLOWED"++-- | Access to the Settings app is not allowed in kiosk mode.+pattern KioskCustomization_DeviceSettings_SETTINGSACCESSBLOCKED :: KioskCustomization_DeviceSettings+pattern KioskCustomization_DeviceSettings_SETTINGSACCESSBLOCKED = KioskCustomization_DeviceSettings "SETTINGS_ACCESS_BLOCKED"++{-# COMPLETE+ KioskCustomization_DeviceSettings_DEVICESETTINGSUNSPECIFIED,+ KioskCustomization_DeviceSettings_SETTINGSACCESSALLOWED,+ KioskCustomization_DeviceSettings_SETTINGSACCESSBLOCKED,+ KioskCustomization_DeviceSettings+ #-}++-- | Sets the behavior of a device in kiosk mode when a user presses and holds (long-presses) the Power button.+newtype KioskCustomization_PowerButtonActions = KioskCustomization_PowerButtonActions {fromKioskCustomization_PowerButtonActions :: 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 POWER/BUTTON/AVAILABLE.+pattern KioskCustomization_PowerButtonActions_POWERBUTTONACTIONSUNSPECIFIED :: KioskCustomization_PowerButtonActions+pattern KioskCustomization_PowerButtonActions_POWERBUTTONACTIONSUNSPECIFIED = KioskCustomization_PowerButtonActions "POWER_BUTTON_ACTIONS_UNSPECIFIED"++-- | The power menu (e.g. Power off, Restart) is shown when a user long-presses the Power button of a device in kiosk mode.+pattern KioskCustomization_PowerButtonActions_POWERBUTTONAVAILABLE :: KioskCustomization_PowerButtonActions+pattern KioskCustomization_PowerButtonActions_POWERBUTTONAVAILABLE = KioskCustomization_PowerButtonActions "POWER_BUTTON_AVAILABLE"++-- | The power menu (e.g. Power off, Restart) is not shown when a user long-presses the Power button of a device in kiosk mode. Note: this may prevent users from turning off the device.+pattern KioskCustomization_PowerButtonActions_POWERBUTTONBLOCKED :: KioskCustomization_PowerButtonActions+pattern KioskCustomization_PowerButtonActions_POWERBUTTONBLOCKED = KioskCustomization_PowerButtonActions "POWER_BUTTON_BLOCKED"++{-# COMPLETE+ KioskCustomization_PowerButtonActions_POWERBUTTONACTIONSUNSPECIFIED,+ KioskCustomization_PowerButtonActions_POWERBUTTONAVAILABLE,+ KioskCustomization_PowerButtonActions_POWERBUTTONBLOCKED,+ KioskCustomization_PowerButtonActions+ #-}++-- | Specifies whether system info and notifications are disabled in kiosk mode.+newtype KioskCustomization_StatusBar = KioskCustomization_StatusBar {fromKioskCustomization_StatusBar :: 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 INFO/AND/NOTIFICATIONS_DISABLED.+pattern KioskCustomization_StatusBar_STATUSBARUNSPECIFIED :: KioskCustomization_StatusBar+pattern KioskCustomization_StatusBar_STATUSBARUNSPECIFIED = KioskCustomization_StatusBar "STATUS_BAR_UNSPECIFIED"++-- | System info and notifications are shown on the status bar in kiosk mode.Note: For this policy to take effect, the device\'s home button must be enabled using kioskCustomization.systemNavigation.+pattern KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFOENABLED :: KioskCustomization_StatusBar+pattern KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFOENABLED = KioskCustomization_StatusBar "NOTIFICATIONS_AND_SYSTEM_INFO_ENABLED"++-- | System info and notifications are disabled in kiosk mode.+pattern KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFODISABLED :: KioskCustomization_StatusBar+pattern KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFODISABLED = KioskCustomization_StatusBar "NOTIFICATIONS_AND_SYSTEM_INFO_DISABLED"++-- | Only system info is shown on the status bar.+pattern KioskCustomization_StatusBar_SYSTEMINFOONLY :: KioskCustomization_StatusBar+pattern KioskCustomization_StatusBar_SYSTEMINFOONLY = KioskCustomization_StatusBar "SYSTEM_INFO_ONLY"++{-# COMPLETE+ KioskCustomization_StatusBar_STATUSBARUNSPECIFIED,+ KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFOENABLED,+ KioskCustomization_StatusBar_NOTIFICATIONSANDSYSTEMINFODISABLED,+ KioskCustomization_StatusBar_SYSTEMINFOONLY,+ KioskCustomization_StatusBar+ #-}++-- | Specifies whether system error dialogs for crashed or unresponsive apps are blocked in kiosk mode. When blocked, the system will force-stop the app as if the user chooses the \"close app\" option on the UI.+newtype KioskCustomization_SystemErrorWarnings = KioskCustomization_SystemErrorWarnings {fromKioskCustomization_SystemErrorWarnings :: 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 ERROR/AND/WARNINGS_MUTED.+pattern KioskCustomization_SystemErrorWarnings_SYSTEMERRORWARNINGSUNSPECIFIED :: KioskCustomization_SystemErrorWarnings+pattern KioskCustomization_SystemErrorWarnings_SYSTEMERRORWARNINGSUNSPECIFIED = KioskCustomization_SystemErrorWarnings "SYSTEM_ERROR_WARNINGS_UNSPECIFIED"++-- | All system error dialogs such as crash and app not responding (ANR) are displayed.+pattern KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSENABLED :: KioskCustomization_SystemErrorWarnings+pattern KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSENABLED = KioskCustomization_SystemErrorWarnings "ERROR_AND_WARNINGS_ENABLED"++-- | All system error dialogs, such as crash and app not responding (ANR) are blocked. When blocked, the system force-stops the app as if the user closes the app from the UI.+pattern KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSMUTED :: KioskCustomization_SystemErrorWarnings+pattern KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSMUTED = KioskCustomization_SystemErrorWarnings "ERROR_AND_WARNINGS_MUTED"++{-# COMPLETE+ KioskCustomization_SystemErrorWarnings_SYSTEMERRORWARNINGSUNSPECIFIED,+ KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSENABLED,+ KioskCustomization_SystemErrorWarnings_ERRORANDWARNINGSMUTED,+ KioskCustomization_SystemErrorWarnings+ #-}++-- | Specifies which navigation features are enabled (e.g. Home, Overview buttons) in kiosk mode.+newtype KioskCustomization_SystemNavigation = KioskCustomization_SystemNavigation {fromKioskCustomization_SystemNavigation :: 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 NAVIGATION_DISABLED.+pattern KioskCustomization_SystemNavigation_SYSTEMNAVIGATIONUNSPECIFIED :: KioskCustomization_SystemNavigation+pattern KioskCustomization_SystemNavigation_SYSTEMNAVIGATIONUNSPECIFIED = KioskCustomization_SystemNavigation "SYSTEM_NAVIGATION_UNSPECIFIED"++-- | Home and overview buttons are enabled.+pattern KioskCustomization_SystemNavigation_NAVIGATIONENABLED :: KioskCustomization_SystemNavigation+pattern KioskCustomization_SystemNavigation_NAVIGATIONENABLED = KioskCustomization_SystemNavigation "NAVIGATION_ENABLED"++-- | The home and Overview buttons are not accessible.+pattern KioskCustomization_SystemNavigation_NAVIGATIONDISABLED :: KioskCustomization_SystemNavigation+pattern KioskCustomization_SystemNavigation_NAVIGATIONDISABLED = KioskCustomization_SystemNavigation "NAVIGATION_DISABLED"++-- | Only the home button is enabled.+pattern KioskCustomization_SystemNavigation_HOMEBUTTONONLY :: KioskCustomization_SystemNavigation+pattern KioskCustomization_SystemNavigation_HOMEBUTTONONLY = KioskCustomization_SystemNavigation "HOME_BUTTON_ONLY"++{-# COMPLETE+ KioskCustomization_SystemNavigation_SYSTEMNAVIGATIONUNSPECIFIED,+ KioskCustomization_SystemNavigation_NAVIGATIONENABLED,+ KioskCustomization_SystemNavigation_NAVIGATIONDISABLED,+ KioskCustomization_SystemNavigation_HOMEBUTTONONLY,+ KioskCustomization_SystemNavigation+ #-}++-- | The type of the property.+newtype ManagedProperty_Type = ManagedProperty_Type {fromManagedProperty_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+ )++-- | Not used.+pattern ManagedProperty_Type_MANAGEDPROPERTYTYPEUNSPECIFIED :: ManagedProperty_Type+pattern ManagedProperty_Type_MANAGEDPROPERTYTYPEUNSPECIFIED = ManagedProperty_Type "MANAGED_PROPERTY_TYPE_UNSPECIFIED"++-- | A property of boolean type.+pattern ManagedProperty_Type_Bool :: ManagedProperty_Type+pattern ManagedProperty_Type_Bool = ManagedProperty_Type "BOOL"++-- | A property of string type.+pattern ManagedProperty_Type_String :: ManagedProperty_Type+pattern ManagedProperty_Type_String = ManagedProperty_Type "STRING"++-- | A property of integer type.+pattern ManagedProperty_Type_Integer :: ManagedProperty_Type+pattern ManagedProperty_Type_Integer = ManagedProperty_Type "INTEGER"++-- | A choice of one item from a set.+pattern ManagedProperty_Type_Choice :: ManagedProperty_Type+pattern ManagedProperty_Type_Choice = ManagedProperty_Type "CHOICE"++-- | A choice of multiple items from a set.+pattern ManagedProperty_Type_Multiselect :: ManagedProperty_Type+pattern ManagedProperty_Type_Multiselect = ManagedProperty_Type "MULTISELECT"++-- | A hidden restriction of string type (the default value can be used to pass along information that can\'t be modified, such as a version code).+pattern ManagedProperty_Type_Hidden :: ManagedProperty_Type+pattern ManagedProperty_Type_Hidden = ManagedProperty_Type "HIDDEN"++-- | A bundle of properties+pattern ManagedProperty_Type_Bundle :: ManagedProperty_Type+pattern ManagedProperty_Type_Bundle = ManagedProperty_Type "BUNDLE"++-- | An array of property bundles.+pattern ManagedProperty_Type_BUNDLEARRAY :: ManagedProperty_Type+pattern ManagedProperty_Type_BUNDLEARRAY = ManagedProperty_Type "BUNDLE_ARRAY"++{-# COMPLETE+ ManagedProperty_Type_MANAGEDPROPERTYTYPEUNSPECIFIED,+ ManagedProperty_Type_Bool,+ ManagedProperty_Type_String,+ ManagedProperty_Type_Integer,+ ManagedProperty_Type_Choice,+ ManagedProperty_Type_Multiselect,+ ManagedProperty_Type_Hidden,+ ManagedProperty_Type_Bundle,+ ManagedProperty_Type_BUNDLEARRAY,+ ManagedProperty_Type+ #-}++-- | Event type.+newtype MemoryEvent_EventType = MemoryEvent_EventType {fromMemoryEvent_EventType :: 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. No events have this type.+pattern MemoryEvent_EventType_MEMORYEVENTTYPEUNSPECIFIED :: MemoryEvent_EventType+pattern MemoryEvent_EventType_MEMORYEVENTTYPEUNSPECIFIED = MemoryEvent_EventType "MEMORY_EVENT_TYPE_UNSPECIFIED"++-- | Free space in RAM was measured.+pattern MemoryEvent_EventType_RAMMEASURED :: MemoryEvent_EventType+pattern MemoryEvent_EventType_RAMMEASURED = MemoryEvent_EventType "RAM_MEASURED"++-- | Free space in internal storage was measured.+pattern MemoryEvent_EventType_INTERNALSTORAGEMEASURED :: MemoryEvent_EventType+pattern MemoryEvent_EventType_INTERNALSTORAGEMEASURED = MemoryEvent_EventType "INTERNAL_STORAGE_MEASURED"++-- | A new external storage medium was detected. The reported byte count is the total capacity of the storage medium.+pattern MemoryEvent_EventType_EXTERNALSTORAGEDETECTED :: MemoryEvent_EventType+pattern MemoryEvent_EventType_EXTERNALSTORAGEDETECTED = MemoryEvent_EventType "EXTERNAL_STORAGE_DETECTED"++-- | An external storage medium was removed. The reported byte count is zero.+pattern MemoryEvent_EventType_EXTERNALSTORAGEREMOVED :: MemoryEvent_EventType+pattern MemoryEvent_EventType_EXTERNALSTORAGEREMOVED = MemoryEvent_EventType "EXTERNAL_STORAGE_REMOVED"++-- | Free space in an external storage medium was measured.+pattern MemoryEvent_EventType_EXTERNALSTORAGEMEASURED :: MemoryEvent_EventType+pattern MemoryEvent_EventType_EXTERNALSTORAGEMEASURED = MemoryEvent_EventType "EXTERNAL_STORAGE_MEASURED"++{-# COMPLETE+ MemoryEvent_EventType_MEMORYEVENTTYPEUNSPECIFIED,+ MemoryEvent_EventType_RAMMEASURED,+ MemoryEvent_EventType_INTERNALSTORAGEMEASURED,+ MemoryEvent_EventType_EXTERNALSTORAGEDETECTED,+ MemoryEvent_EventType_EXTERNALSTORAGEREMOVED,+ MemoryEvent_EventType_EXTERNALSTORAGEMEASURED,+ MemoryEvent_EventType+ #-}++-- | Required. Immutable. The management mode of the device or profile being migrated.+newtype MigrationToken_ManagementMode = MigrationToken_ManagementMode {fromMigrationToken_ManagementMode :: 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 must not be used.+pattern MigrationToken_ManagementMode_MANAGEMENTMODEUNSPECIFIED :: MigrationToken_ManagementMode+pattern MigrationToken_ManagementMode_MANAGEMENTMODEUNSPECIFIED = MigrationToken_ManagementMode "MANAGEMENT_MODE_UNSPECIFIED"++-- | A work profile on a personally owned device. Supported only on devices running Android 9 and above.+pattern MigrationToken_ManagementMode_WORKPROFILEPERSONALLYOWNED :: MigrationToken_ManagementMode+pattern MigrationToken_ManagementMode_WORKPROFILEPERSONALLYOWNED = MigrationToken_ManagementMode "WORK_PROFILE_PERSONALLY_OWNED"++-- | A work profile on a company-owned device. Supported only on devices running Android 11 and above.+pattern MigrationToken_ManagementMode_WORKPROFILECOMPANYOWNED :: MigrationToken_ManagementMode+pattern MigrationToken_ManagementMode_WORKPROFILECOMPANYOWNED = MigrationToken_ManagementMode "WORK_PROFILE_COMPANY_OWNED"++-- | A fully-managed device. Supported only on devices running Android 9 and above.+pattern MigrationToken_ManagementMode_FULLYMANAGED :: MigrationToken_ManagementMode+pattern MigrationToken_ManagementMode_FULLYMANAGED = MigrationToken_ManagementMode "FULLY_MANAGED"++{-# COMPLETE+ MigrationToken_ManagementMode_MANAGEMENTMODEUNSPECIFIED,+ MigrationToken_ManagementMode_WORKPROFILEPERSONALLYOWNED,+ MigrationToken_ManagementMode_WORKPROFILECOMPANYOWNED,+ MigrationToken_ManagementMode_FULLYMANAGED,+ MigrationToken_ManagementMode+ #-}++-- | If package/name is set and the non-compliance reason is APP/NOT/INSTALLED or APP/NOT_UPDATED, the detailed reason the app can\'t be installed or updated.+newtype NonComplianceDetail_InstallationFailureReason = NonComplianceDetail_InstallationFailureReason {fromNonComplianceDetail_InstallationFailureReason :: 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 disallowed.+pattern NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNSPECIFIED :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNSPECIFIED = NonComplianceDetail_InstallationFailureReason "INSTALLATION_FAILURE_REASON_UNSPECIFIED"++-- | An unknown condition is preventing the app from being installed. Some potential reasons are that the device doesn\'t have enough storage, the device network connection is unreliable, or the installation is taking longer than expected. The installation will be retried automatically.+pattern NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNKNOWN :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNKNOWN = NonComplianceDetail_InstallationFailureReason "INSTALLATION_FAILURE_REASON_UNKNOWN"++-- | The installation is still in progress.+pattern NonComplianceDetail_InstallationFailureReason_INPROGRESS :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_INPROGRESS = NonComplianceDetail_InstallationFailureReason "IN_PROGRESS"++-- | The app was not found in Play.+pattern NonComplianceDetail_InstallationFailureReason_NOTFOUND :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_NOTFOUND = NonComplianceDetail_InstallationFailureReason "NOT_FOUND"++-- | The app is incompatible with the device.+pattern NonComplianceDetail_InstallationFailureReason_NOTCOMPATIBLEWITHDEVICE :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_NOTCOMPATIBLEWITHDEVICE = NonComplianceDetail_InstallationFailureReason "NOT_COMPATIBLE_WITH_DEVICE"++-- | The app has not been approved by the admin.+pattern NonComplianceDetail_InstallationFailureReason_NOTAPPROVED :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_NOTAPPROVED = NonComplianceDetail_InstallationFailureReason "NOT_APPROVED"++-- | The app has new permissions that have not been accepted by the admin.+pattern NonComplianceDetail_InstallationFailureReason_PERMISSIONSNOTACCEPTED :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_PERMISSIONSNOTACCEPTED = NonComplianceDetail_InstallationFailureReason "PERMISSIONS_NOT_ACCEPTED"++-- | The app is not available in the user\'s country.+pattern NonComplianceDetail_InstallationFailureReason_NOTAVAILABLEINCOUNTRY :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_NOTAVAILABLEINCOUNTRY = NonComplianceDetail_InstallationFailureReason "NOT_AVAILABLE_IN_COUNTRY"++-- | There are no licenses available to assign to the user.+pattern NonComplianceDetail_InstallationFailureReason_NOLICENSESREMAINING :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_NOLICENSESREMAINING = NonComplianceDetail_InstallationFailureReason "NO_LICENSES_REMAINING"++-- | The enterprise is no longer enrolled with Managed Google Play or the admin has not accepted the latest Managed Google Play Terms of Service.+pattern NonComplianceDetail_InstallationFailureReason_NOTENROLLED :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_NOTENROLLED = NonComplianceDetail_InstallationFailureReason "NOT_ENROLLED"++-- | The user is no longer valid. The user may have been deleted or disabled.+pattern NonComplianceDetail_InstallationFailureReason_USERINVALID :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_USERINVALID = NonComplianceDetail_InstallationFailureReason "USER_INVALID"++-- | A network error on the user\'s device has prevented the install from succeeding. This usually happens when the device\'s internet connectivity is degraded, unavailable or there\'s a network configuration issue. Please ensure the device has access to full internet connectivity on a network that meets Android Enterprise Network Requirements (https:\/\/support.google.com\/work\/android\/answer\/10513641). App install or update will automatically resume once this is the case.+pattern NonComplianceDetail_InstallationFailureReason_NETWORKERRORUNRELIABLECONNECTION :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_NETWORKERRORUNRELIABLECONNECTION = NonComplianceDetail_InstallationFailureReason "NETWORK_ERROR_UNRELIABLE_CONNECTION"++-- | The user\'s device does not have sufficient storage space to install the app. This can be resolved by clearing up storage space on the device. App install or update will automatically resume once the device has sufficient storage.+pattern NonComplianceDetail_InstallationFailureReason_INSUFFICIENTSTORAGE :: NonComplianceDetail_InstallationFailureReason+pattern NonComplianceDetail_InstallationFailureReason_INSUFFICIENTSTORAGE = NonComplianceDetail_InstallationFailureReason "INSUFFICIENT_STORAGE"++{-# COMPLETE+ NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNSPECIFIED,+ NonComplianceDetail_InstallationFailureReason_INSTALLATIONFAILUREREASONUNKNOWN,+ NonComplianceDetail_InstallationFailureReason_INPROGRESS,+ NonComplianceDetail_InstallationFailureReason_NOTFOUND,+ NonComplianceDetail_InstallationFailureReason_NOTCOMPATIBLEWITHDEVICE,+ NonComplianceDetail_InstallationFailureReason_NOTAPPROVED,+ NonComplianceDetail_InstallationFailureReason_PERMISSIONSNOTACCEPTED,+ NonComplianceDetail_InstallationFailureReason_NOTAVAILABLEINCOUNTRY,+ NonComplianceDetail_InstallationFailureReason_NOLICENSESREMAINING,+ NonComplianceDetail_InstallationFailureReason_NOTENROLLED,+ NonComplianceDetail_InstallationFailureReason_USERINVALID,+ NonComplianceDetail_InstallationFailureReason_NETWORKERRORUNRELIABLECONNECTION,+ NonComplianceDetail_InstallationFailureReason_INSUFFICIENTSTORAGE,+ NonComplianceDetail_InstallationFailureReason+ #-}++-- | The reason the device is not in compliance with the setting.+newtype NonComplianceDetail_NonComplianceReason = NonComplianceDetail_NonComplianceReason {fromNonComplianceDetail_NonComplianceReason :: 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 NonComplianceDetail_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED = NonComplianceDetail_NonComplianceReason "NON_COMPLIANCE_REASON_UNSPECIFIED"++-- | The setting is not supported in the API level of the Android version running on the device.+pattern NonComplianceDetail_NonComplianceReason_APILEVEL :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_APILEVEL = NonComplianceDetail_NonComplianceReason "API_LEVEL"++-- | The management mode (such as fully managed or work profile) doesn\'t support the setting.+pattern NonComplianceDetail_NonComplianceReason_MANAGEMENTMODE :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_MANAGEMENTMODE = NonComplianceDetail_NonComplianceReason "MANAGEMENT_MODE"++-- | The user has not taken required action to comply with the setting.+pattern NonComplianceDetail_NonComplianceReason_USERACTION :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_USERACTION = NonComplianceDetail_NonComplianceReason "USER_ACTION"++-- | The setting has an invalid value.+pattern NonComplianceDetail_NonComplianceReason_INVALIDVALUE :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_INVALIDVALUE = NonComplianceDetail_NonComplianceReason "INVALID_VALUE"++-- | The app required to implement the policy is not installed.+pattern NonComplianceDetail_NonComplianceReason_APPNOTINSTALLED :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_APPNOTINSTALLED = NonComplianceDetail_NonComplianceReason "APP_NOT_INSTALLED"++-- | The policy is not supported by the version of Android Device Policy on the device.+pattern NonComplianceDetail_NonComplianceReason_Unsupported :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_Unsupported = NonComplianceDetail_NonComplianceReason "UNSUPPORTED"++-- | A blocked app is installed.+pattern NonComplianceDetail_NonComplianceReason_APPINSTALLED :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_APPINSTALLED = NonComplianceDetail_NonComplianceReason "APP_INSTALLED"++-- | The setting hasn\'t been applied at the time of the report, but is expected to be applied shortly.+pattern NonComplianceDetail_NonComplianceReason_Pending :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_Pending = NonComplianceDetail_NonComplianceReason "PENDING"++-- | The setting can\'t be applied to the app because the app doesn\'t support it, for example because its target SDK version is not high enough.+pattern NonComplianceDetail_NonComplianceReason_APPINCOMPATIBLE :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_APPINCOMPATIBLE = NonComplianceDetail_NonComplianceReason "APP_INCOMPATIBLE"++-- | The app is installed, but it hasn\'t been updated to the minimum version code specified by policy.+pattern NonComplianceDetail_NonComplianceReason_APPNOTUPDATED :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_APPNOTUPDATED = NonComplianceDetail_NonComplianceReason "APP_NOT_UPDATED"++-- | The device is incompatible with the policy requirements.+pattern NonComplianceDetail_NonComplianceReason_DEVICEINCOMPATIBLE :: NonComplianceDetail_NonComplianceReason+pattern NonComplianceDetail_NonComplianceReason_DEVICEINCOMPATIBLE = NonComplianceDetail_NonComplianceReason "DEVICE_INCOMPATIBLE"++{-# COMPLETE+ NonComplianceDetail_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED,+ NonComplianceDetail_NonComplianceReason_APILEVEL,+ NonComplianceDetail_NonComplianceReason_MANAGEMENTMODE,+ NonComplianceDetail_NonComplianceReason_USERACTION,+ NonComplianceDetail_NonComplianceReason_INVALIDVALUE,+ NonComplianceDetail_NonComplianceReason_APPNOTINSTALLED,+ NonComplianceDetail_NonComplianceReason_Unsupported,+ NonComplianceDetail_NonComplianceReason_APPINSTALLED,+ NonComplianceDetail_NonComplianceReason_Pending,+ NonComplianceDetail_NonComplianceReason_APPINCOMPATIBLE,+ NonComplianceDetail_NonComplianceReason_APPNOTUPDATED,+ NonComplianceDetail_NonComplianceReason_DEVICEINCOMPATIBLE,+ NonComplianceDetail_NonComplianceReason+ #-}++-- | The policy-specific reason the device is not in compliance with the setting.+newtype NonComplianceDetail_SpecificNonComplianceReason = NonComplianceDetail_SpecificNonComplianceReason {fromNonComplianceDetail_SpecificNonComplianceReason :: 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+ )++-- | Specific non-compliance reason is not specified. Fields in specific/non/compliance_context are not set.+pattern NonComplianceDetail_SpecificNonComplianceReason_SPECIFICNONCOMPLIANCEREASONUNSPECIFIED :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_SPECIFICNONCOMPLIANCEREASONUNSPECIFIED = NonComplianceDetail_SpecificNonComplianceReason "SPECIFIC_NON_COMPLIANCE_REASON_UNSPECIFIED"++-- | User needs to confirm credentials by entering the screen lock. Fields in specific/non/compliance/context are not set. nonComplianceReason is set to USER/ACTION.+pattern NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESUSERCREDENTIALSCONFIRMATIONREQUIRED :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESUSERCREDENTIALSCONFIRMATIONREQUIRED = NonComplianceDetail_SpecificNonComplianceReason "PASSWORD_POLICIES_USER_CREDENTIALS_CONFIRMATION_REQUIRED"++-- | The device or profile password has expired. passwordPoliciesContext is set. nonComplianceReason is set to USER_ACTION.+pattern NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDEXPIRED :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDEXPIRED = NonComplianceDetail_SpecificNonComplianceReason "PASSWORD_POLICIES_PASSWORD_EXPIRED"++-- | The device password does not satisfy password requirements. passwordPoliciesContext is set. nonComplianceReason is set to USER_ACTION.+pattern NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDNOTSUFFICIENT :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDNOTSUFFICIENT = NonComplianceDetail_SpecificNonComplianceReason "PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT"++-- | There is an incorrect value in ONC Wi-Fi configuration. fieldPath specifies which field value is incorrect. oncWifiContext is set. nonComplianceReason is set to INVALID_VALUE.+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDVALUE :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDVALUE = NonComplianceDetail_SpecificNonComplianceReason "ONC_WIFI_INVALID_VALUE"++-- | The ONC Wi-Fi setting is not supported in the API level of the Android version running on the device. fieldPath specifies which field value is not supported. oncWifiContext is set. nonComplianceReason is set to API_LEVEL.+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIAPILEVEL :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIAPILEVEL = NonComplianceDetail_SpecificNonComplianceReason "ONC_WIFI_API_LEVEL"++-- | The enterprise Wi-Fi network is missing either the root CA or domain name. nonComplianceReason is set to INVALID_VALUE.+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDENTERPRISECONFIG :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDENTERPRISECONFIG = NonComplianceDetail_SpecificNonComplianceReason "ONC_WIFI_INVALID_ENTERPRISE_CONFIG"++-- | User needs to remove the configured Wi-Fi network manually. This is applicable only on work profiles on personally-owned devices. nonComplianceReason is set to USER_ACTION.+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIUSERSHOULDREMOVENETWORK :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIUSERSHOULDREMOVENETWORK = NonComplianceDetail_SpecificNonComplianceReason "ONC_WIFI_USER_SHOULD_REMOVE_NETWORK"++-- | Key pair alias specified via ClientCertKeyPairAlias (https:\/\/chromium.googlesource.com\/chromium\/src\/+\/main\/components\/onc\/docs\/onc/spec.md#eap-type) field in openNetworkConfiguration does not correspond to an existing key installed on the device. nonComplianceReason is set to INVALID/VALUE.+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIKEYPAIRALIASNOTCORRESPONDINGTOEXISTINGKEY :: NonComplianceDetail_SpecificNonComplianceReason+pattern NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIKEYPAIRALIASNOTCORRESPONDINGTOEXISTINGKEY = NonComplianceDetail_SpecificNonComplianceReason "ONC_WIFI_KEY_PAIR_ALIAS_NOT_CORRESPONDING_TO_EXISTING_KEY"++{-# COMPLETE+ NonComplianceDetail_SpecificNonComplianceReason_SPECIFICNONCOMPLIANCEREASONUNSPECIFIED,+ NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESUSERCREDENTIALSCONFIRMATIONREQUIRED,+ NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDEXPIRED,+ NonComplianceDetail_SpecificNonComplianceReason_PASSWORDPOLICIESPASSWORDNOTSUFFICIENT,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDVALUE,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIAPILEVEL,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIINVALIDENTERPRISECONFIG,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIUSERSHOULDREMOVENETWORK,+ NonComplianceDetail_SpecificNonComplianceReason_ONCWIFIKEYPAIRALIASNOTCORRESPONDINGTOEXISTINGKEY,+ NonComplianceDetail_SpecificNonComplianceReason+ #-}++-- | The reason the device is not in compliance with the setting. If not set, then this condition matches any reason.+newtype NonComplianceDetailCondition_NonComplianceReason = NonComplianceDetailCondition_NonComplianceReason {fromNonComplianceDetailCondition_NonComplianceReason :: 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 NonComplianceDetailCondition_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED = NonComplianceDetailCondition_NonComplianceReason "NON_COMPLIANCE_REASON_UNSPECIFIED"++-- | The setting is not supported in the API level of the Android version running on the device.+pattern NonComplianceDetailCondition_NonComplianceReason_APILEVEL :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_APILEVEL = NonComplianceDetailCondition_NonComplianceReason "API_LEVEL"++-- | The management mode (such as fully managed or work profile) doesn\'t support the setting.+pattern NonComplianceDetailCondition_NonComplianceReason_MANAGEMENTMODE :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_MANAGEMENTMODE = NonComplianceDetailCondition_NonComplianceReason "MANAGEMENT_MODE"++-- | The user has not taken required action to comply with the setting.+pattern NonComplianceDetailCondition_NonComplianceReason_USERACTION :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_USERACTION = NonComplianceDetailCondition_NonComplianceReason "USER_ACTION"++-- | The setting has an invalid value.+pattern NonComplianceDetailCondition_NonComplianceReason_INVALIDVALUE :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_INVALIDVALUE = NonComplianceDetailCondition_NonComplianceReason "INVALID_VALUE"++-- | The app required to implement the policy is not installed.+pattern NonComplianceDetailCondition_NonComplianceReason_APPNOTINSTALLED :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_APPNOTINSTALLED = NonComplianceDetailCondition_NonComplianceReason "APP_NOT_INSTALLED"++-- | The policy is not supported by the version of Android Device Policy on the device.+pattern NonComplianceDetailCondition_NonComplianceReason_Unsupported :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_Unsupported = NonComplianceDetailCondition_NonComplianceReason "UNSUPPORTED"++-- | A blocked app is installed.+pattern NonComplianceDetailCondition_NonComplianceReason_APPINSTALLED :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_APPINSTALLED = NonComplianceDetailCondition_NonComplianceReason "APP_INSTALLED"++-- | The setting hasn\'t been applied at the time of the report, but is expected to be applied shortly.+pattern NonComplianceDetailCondition_NonComplianceReason_Pending :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_Pending = NonComplianceDetailCondition_NonComplianceReason "PENDING"++-- | The setting can\'t be applied to the app because the app doesn\'t support it, for example because its target SDK version is not high enough.+pattern NonComplianceDetailCondition_NonComplianceReason_APPINCOMPATIBLE :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_APPINCOMPATIBLE = NonComplianceDetailCondition_NonComplianceReason "APP_INCOMPATIBLE"++-- | The app is installed, but it hasn\'t been updated to the minimum version code specified by policy.+pattern NonComplianceDetailCondition_NonComplianceReason_APPNOTUPDATED :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_APPNOTUPDATED = NonComplianceDetailCondition_NonComplianceReason "APP_NOT_UPDATED"++-- | The device is incompatible with the policy requirements.+pattern NonComplianceDetailCondition_NonComplianceReason_DEVICEINCOMPATIBLE :: NonComplianceDetailCondition_NonComplianceReason+pattern NonComplianceDetailCondition_NonComplianceReason_DEVICEINCOMPATIBLE = NonComplianceDetailCondition_NonComplianceReason "DEVICE_INCOMPATIBLE"++{-# COMPLETE+ NonComplianceDetailCondition_NonComplianceReason_NONCOMPLIANCEREASONUNSPECIFIED,+ NonComplianceDetailCondition_NonComplianceReason_APILEVEL,+ NonComplianceDetailCondition_NonComplianceReason_MANAGEMENTMODE,+ NonComplianceDetailCondition_NonComplianceReason_USERACTION,+ NonComplianceDetailCondition_NonComplianceReason_INVALIDVALUE,+ NonComplianceDetailCondition_NonComplianceReason_APPNOTINSTALLED,+ NonComplianceDetailCondition_NonComplianceReason_Unsupported,+ NonComplianceDetailCondition_NonComplianceReason_APPINSTALLED,+ NonComplianceDetailCondition_NonComplianceReason_Pending,+ NonComplianceDetailCondition_NonComplianceReason_APPINCOMPATIBLE,+ NonComplianceDetailCondition_NonComplianceReason_APPNOTUPDATED,+ NonComplianceDetailCondition_NonComplianceReason_DEVICEINCOMPATIBLE,+ NonComplianceDetailCondition_NonComplianceReason+ #-}++-- | Verified Boot state.+newtype OsStartupEvent_VerifiedBootState = OsStartupEvent_VerifiedBootState {fromOsStartupEvent_VerifiedBootState :: 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 value.+pattern OsStartupEvent_VerifiedBootState_VERIFIEDBOOTSTATEUNSPECIFIED :: OsStartupEvent_VerifiedBootState+pattern OsStartupEvent_VerifiedBootState_VERIFIEDBOOTSTATEUNSPECIFIED = OsStartupEvent_VerifiedBootState "VERIFIED_BOOT_STATE_UNSPECIFIED"++-- | Indicates that there is a full chain of trust extending from the bootloader to verified partitions including the bootloader, boot partition, and all verified partitions.+pattern OsStartupEvent_VerifiedBootState_Green :: OsStartupEvent_VerifiedBootState+pattern OsStartupEvent_VerifiedBootState_Green = OsStartupEvent_VerifiedBootState "GREEN"++-- | Indicates that the boot partition has been verified using the embedded certificate and the signature is valid.+pattern OsStartupEvent_VerifiedBootState_Yellow :: OsStartupEvent_VerifiedBootState+pattern OsStartupEvent_VerifiedBootState_Yellow = OsStartupEvent_VerifiedBootState "YELLOW"++-- | Indicates that the device may be freely modified. Device integrity is left to the user to verify out-of-band.+pattern OsStartupEvent_VerifiedBootState_Orange :: OsStartupEvent_VerifiedBootState+pattern OsStartupEvent_VerifiedBootState_Orange = OsStartupEvent_VerifiedBootState "ORANGE"++{-# COMPLETE+ OsStartupEvent_VerifiedBootState_VERIFIEDBOOTSTATEUNSPECIFIED,+ OsStartupEvent_VerifiedBootState_Green,+ OsStartupEvent_VerifiedBootState_Yellow,+ OsStartupEvent_VerifiedBootState_Orange,+ OsStartupEvent_VerifiedBootState+ #-}++-- | dm-verity mode.+newtype OsStartupEvent_VerityMode = OsStartupEvent_VerityMode {fromOsStartupEvent_VerityMode :: 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 value.+pattern OsStartupEvent_VerityMode_DMVERITYMODEUNSPECIFIED :: OsStartupEvent_VerityMode+pattern OsStartupEvent_VerityMode_DMVERITYMODEUNSPECIFIED = OsStartupEvent_VerityMode "DM_VERITY_MODE_UNSPECIFIED"++-- | Indicates that the device will be restarted when corruption is detected.+pattern OsStartupEvent_VerityMode_Enforcing :: OsStartupEvent_VerityMode+pattern OsStartupEvent_VerityMode_Enforcing = OsStartupEvent_VerityMode "ENFORCING"++-- | Indicates that an I\/O error will be returned for an attempt to read corrupted data blocks (also known as eio boot state).+pattern OsStartupEvent_VerityMode_IOERROR :: OsStartupEvent_VerityMode+pattern OsStartupEvent_VerityMode_IOERROR = OsStartupEvent_VerityMode "IO_ERROR"++-- | Indicates that dm-verity is disabled on device.+pattern OsStartupEvent_VerityMode_Disabled :: OsStartupEvent_VerityMode+pattern OsStartupEvent_VerityMode_Disabled = OsStartupEvent_VerityMode "DISABLED"++{-# COMPLETE+ OsStartupEvent_VerityMode_DMVERITYMODEUNSPECIFIED,+ OsStartupEvent_VerityMode_Enforcing,+ OsStartupEvent_VerityMode_IOERROR,+ OsStartupEvent_VerityMode_Disabled,+ OsStartupEvent_VerityMode+ #-}++-- | The scope of non-compliant password.+newtype PasswordPoliciesContext_PasswordPolicyScope = PasswordPoliciesContext_PasswordPolicyScope {fromPasswordPoliciesContext_PasswordPolicyScope :: 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 scope is unspecified. The password requirements are applied to the work profile for work profile devices and the whole device for fully managed or dedicated devices.+pattern PasswordPoliciesContext_PasswordPolicyScope_SCOPEUNSPECIFIED :: PasswordPoliciesContext_PasswordPolicyScope+pattern PasswordPoliciesContext_PasswordPolicyScope_SCOPEUNSPECIFIED = PasswordPoliciesContext_PasswordPolicyScope "SCOPE_UNSPECIFIED"++-- | The password requirements are only applied to the device.+pattern PasswordPoliciesContext_PasswordPolicyScope_SCOPEDEVICE :: PasswordPoliciesContext_PasswordPolicyScope+pattern PasswordPoliciesContext_PasswordPolicyScope_SCOPEDEVICE = PasswordPoliciesContext_PasswordPolicyScope "SCOPE_DEVICE"++-- | The password requirements are only applied to the work profile.+pattern PasswordPoliciesContext_PasswordPolicyScope_SCOPEPROFILE :: PasswordPoliciesContext_PasswordPolicyScope+pattern PasswordPoliciesContext_PasswordPolicyScope_SCOPEPROFILE = PasswordPoliciesContext_PasswordPolicyScope "SCOPE_PROFILE"++{-# COMPLETE+ PasswordPoliciesContext_PasswordPolicyScope_SCOPEUNSPECIFIED,+ PasswordPoliciesContext_PasswordPolicyScope_SCOPEDEVICE,+ PasswordPoliciesContext_PasswordPolicyScope_SCOPEPROFILE,+ PasswordPoliciesContext_PasswordPolicyScope+ #-}++-- | The required password quality.+newtype PasswordRequirements_PasswordQuality = PasswordRequirements_PasswordQuality {fromPasswordRequirements_PasswordQuality :: 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+ )++-- | There are no password requirements.+pattern PasswordRequirements_PasswordQuality_PASSWORDQUALITYUNSPECIFIED :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_PASSWORDQUALITYUNSPECIFIED = PasswordRequirements_PasswordQuality "PASSWORD_QUALITY_UNSPECIFIED"++-- | The device must be secured with a low-security biometric recognition technology, at minimum. This includes technologies that can recognize the identity of an individual that are roughly equivalent to a 3-digit PIN (false detection is less than 1 in 1,000).This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_LOW for application. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_BIOMETRICWEAK :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_BIOMETRICWEAK = PasswordRequirements_PasswordQuality "BIOMETRIC_WEAK"++-- | A password is required, but there are no restrictions on what the password must contain.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_LOW for application. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_Something :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_Something = PasswordRequirements_PasswordQuality "SOMETHING"++-- | The password must contain numeric characters.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_MEDIUM for application. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_Numeric :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_Numeric = PasswordRequirements_PasswordQuality "NUMERIC"++-- | The password must contain numeric characters with no repeating (4444) or ordered (1234, 4321, 2468) sequences.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_MEDIUM for application. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_NUMERICCOMPLEX :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_NUMERICCOMPLEX = PasswordRequirements_PasswordQuality "NUMERIC_COMPLEX"++-- | The password must contain alphabetic (or symbol) characters.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_HIGH for application. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_Alphabetic :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_Alphabetic = PasswordRequirements_PasswordQuality "ALPHABETIC"++-- | The password must contain both numeric and alphabetic (or symbol) characters.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_HIGH for application. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_Alphanumeric :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_Alphanumeric = PasswordRequirements_PasswordQuality "ALPHANUMERIC"++-- | The password must meet the minimum requirements specified in passwordMinimumLength, passwordMinimumLetters, passwordMinimumSymbols, etc. For example, if passwordMinimumSymbols is 2, the password must contain at least two symbols.This, when applied on personally owned work profile devices on Android 12 device-scoped, will be treated as COMPLEXITY_HIGH for application. In this case, the requirements in passwordMinimumLength, passwordMinimumLetters, passwordMinimumSymbols, etc are not applied. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_Complex :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_Complex = PasswordRequirements_PasswordQuality "COMPLEX"++-- | Define the low password complexity band as: pattern PIN with repeating (4444) or ordered (1234, 4321, 2468) sequencesThis sets the minimum complexity band which the password must meet.Enforcement varies among different Android versions, management modes and password scopes. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_COMPLEXITYLOW :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_COMPLEXITYLOW = PasswordRequirements_PasswordQuality "COMPLEXITY_LOW"++-- | Define the medium password complexity band as: PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 4 alphabetic, length at least 4 alphanumeric, length at least 4This sets the minimum complexity band which the password must meet.Enforcement varies among different Android versions, management modes and password scopes. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_COMPLEXITYMEDIUM :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_COMPLEXITYMEDIUM = PasswordRequirements_PasswordQuality "COMPLEXITY_MEDIUM"++-- | Define the high password complexity band as:On Android 12 and above: PIN with no repeating (4444) or ordered (1234, 4321, 2468) sequences, length at least 8 alphabetic, length at least 6 alphanumeric, length at least 6This sets the minimum complexity band which the password must meet.Enforcement varies among different Android versions, management modes and password scopes. See PasswordQuality for details.+pattern PasswordRequirements_PasswordQuality_COMPLEXITYHIGH :: PasswordRequirements_PasswordQuality+pattern PasswordRequirements_PasswordQuality_COMPLEXITYHIGH = PasswordRequirements_PasswordQuality "COMPLEXITY_HIGH"++{-# COMPLETE+ PasswordRequirements_PasswordQuality_PASSWORDQUALITYUNSPECIFIED,+ PasswordRequirements_PasswordQuality_BIOMETRICWEAK,+ PasswordRequirements_PasswordQuality_Something,+ PasswordRequirements_PasswordQuality_Numeric,+ PasswordRequirements_PasswordQuality_NUMERICCOMPLEX,+ PasswordRequirements_PasswordQuality_Alphabetic,+ PasswordRequirements_PasswordQuality_Alphanumeric,+ PasswordRequirements_PasswordQuality_Complex,+ PasswordRequirements_PasswordQuality_COMPLEXITYLOW,+ PasswordRequirements_PasswordQuality_COMPLEXITYMEDIUM,+ PasswordRequirements_PasswordQuality_COMPLEXITYHIGH,+ PasswordRequirements_PasswordQuality+ #-}++-- | The scope that the password requirement applies to.+newtype PasswordRequirements_PasswordScope = PasswordRequirements_PasswordScope {fromPasswordRequirements_PasswordScope :: 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 scope is unspecified. The password requirements are applied to the work profile for work profile devices and the whole device for fully managed or dedicated devices.+pattern PasswordRequirements_PasswordScope_SCOPEUNSPECIFIED :: PasswordRequirements_PasswordScope+pattern PasswordRequirements_PasswordScope_SCOPEUNSPECIFIED = PasswordRequirements_PasswordScope "SCOPE_UNSPECIFIED"++-- | The password requirements are only applied to the device.+pattern PasswordRequirements_PasswordScope_SCOPEDEVICE :: PasswordRequirements_PasswordScope+pattern PasswordRequirements_PasswordScope_SCOPEDEVICE = PasswordRequirements_PasswordScope "SCOPE_DEVICE"++-- | The password requirements are only applied to the work profile.+pattern PasswordRequirements_PasswordScope_SCOPEPROFILE :: PasswordRequirements_PasswordScope+pattern PasswordRequirements_PasswordScope_SCOPEPROFILE = PasswordRequirements_PasswordScope "SCOPE_PROFILE"++{-# COMPLETE+ PasswordRequirements_PasswordScope_SCOPEUNSPECIFIED,+ PasswordRequirements_PasswordScope_SCOPEDEVICE,+ PasswordRequirements_PasswordScope_SCOPEPROFILE,+ PasswordRequirements_PasswordScope+ #-}++-- | The length of time after a device or work profile is unlocked using a strong form of authentication (password, PIN, pattern) that it can be unlocked using any other authentication method (e.g. fingerprint, trust agents, face). After the specified time period elapses, only strong forms of authentication can be used to unlock the device or work profile.+newtype PasswordRequirements_RequirePasswordUnlock = PasswordRequirements_RequirePasswordUnlock {fromPasswordRequirements_RequirePasswordUnlock :: 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 USE/DEFAULT/DEVICE_TIMEOUT.+pattern PasswordRequirements_RequirePasswordUnlock_REQUIREPASSWORDUNLOCKUNSPECIFIED :: PasswordRequirements_RequirePasswordUnlock+pattern PasswordRequirements_RequirePasswordUnlock_REQUIREPASSWORDUNLOCKUNSPECIFIED = PasswordRequirements_RequirePasswordUnlock "REQUIRE_PASSWORD_UNLOCK_UNSPECIFIED"++-- | The timeout period is set to the device’s default.+pattern PasswordRequirements_RequirePasswordUnlock_USEDEFAULTDEVICETIMEOUT :: PasswordRequirements_RequirePasswordUnlock+pattern PasswordRequirements_RequirePasswordUnlock_USEDEFAULTDEVICETIMEOUT = PasswordRequirements_RequirePasswordUnlock "USE_DEFAULT_DEVICE_TIMEOUT"++-- | The timeout period is set to 24 hours.+pattern PasswordRequirements_RequirePasswordUnlock_REQUIREEVERYDAY :: PasswordRequirements_RequirePasswordUnlock+pattern PasswordRequirements_RequirePasswordUnlock_REQUIREEVERYDAY = PasswordRequirements_RequirePasswordUnlock "REQUIRE_EVERY_DAY"++{-# COMPLETE+ PasswordRequirements_RequirePasswordUnlock_REQUIREPASSWORDUNLOCKUNSPECIFIED,+ PasswordRequirements_RequirePasswordUnlock_USEDEFAULTDEVICETIMEOUT,+ PasswordRequirements_RequirePasswordUnlock_REQUIREEVERYDAY,+ PasswordRequirements_RequirePasswordUnlock+ #-}++-- | Controls whether a unified lock is allowed for the device and the work profile, on devices running Android 9 and above with a work profile. This can be set only if password/scope is set to SCOPE/PROFILE, the policy will be rejected otherwise. If user has not set a separate work lock and this field is set to REQUIRE/SEPARATE/WORK/LOCK, a NonComplianceDetail is reported with nonComplianceReason set to USER/ACTION.+newtype PasswordRequirements_UnifiedLockSettings = PasswordRequirements_UnifiedLockSettings {fromPasswordRequirements_UnifiedLockSettings :: 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 ALLOW/UNIFIED/WORK/AND/PERSONAL_LOCK.+pattern PasswordRequirements_UnifiedLockSettings_UNIFIEDLOCKSETTINGSUNSPECIFIED :: PasswordRequirements_UnifiedLockSettings+pattern PasswordRequirements_UnifiedLockSettings_UNIFIEDLOCKSETTINGSUNSPECIFIED = PasswordRequirements_UnifiedLockSettings "UNIFIED_LOCK_SETTINGS_UNSPECIFIED"++-- | A common lock for the device and the work profile is allowed.+pattern PasswordRequirements_UnifiedLockSettings_ALLOWUNIFIEDWORKANDPERSONALLOCK :: PasswordRequirements_UnifiedLockSettings+pattern PasswordRequirements_UnifiedLockSettings_ALLOWUNIFIEDWORKANDPERSONALLOCK = PasswordRequirements_UnifiedLockSettings "ALLOW_UNIFIED_WORK_AND_PERSONAL_LOCK"++-- | A separate lock for the work profile is required.+pattern PasswordRequirements_UnifiedLockSettings_REQUIRESEPARATEWORKLOCK :: PasswordRequirements_UnifiedLockSettings+pattern PasswordRequirements_UnifiedLockSettings_REQUIRESEPARATEWORKLOCK = PasswordRequirements_UnifiedLockSettings "REQUIRE_SEPARATE_WORK_LOCK"++{-# COMPLETE+ PasswordRequirements_UnifiedLockSettings_UNIFIEDLOCKSETTINGSUNSPECIFIED,+ PasswordRequirements_UnifiedLockSettings_ALLOWUNIFIEDWORKANDPERSONALLOCK,+ PasswordRequirements_UnifiedLockSettings_REQUIRESEPARATEWORKLOCK,+ PasswordRequirements_UnifiedLockSettings+ #-}++-- | The result of an attempt to clear the data of a single app.+newtype PerAppResult_ClearingResult = PerAppResult_ClearingResult {fromPerAppResult_ClearingResult :: 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 result.+pattern PerAppResult_ClearingResult_CLEARINGRESULTUNSPECIFIED :: PerAppResult_ClearingResult+pattern PerAppResult_ClearingResult_CLEARINGRESULTUNSPECIFIED = PerAppResult_ClearingResult "CLEARING_RESULT_UNSPECIFIED"++-- | This app’s data was successfully cleared.+pattern PerAppResult_ClearingResult_Success :: PerAppResult_ClearingResult+pattern PerAppResult_ClearingResult_Success = PerAppResult_ClearingResult "SUCCESS"++-- | This app’s data could not be cleared because the app was not found.+pattern PerAppResult_ClearingResult_APPNOTFOUND :: PerAppResult_ClearingResult+pattern PerAppResult_ClearingResult_APPNOTFOUND = PerAppResult_ClearingResult "APP_NOT_FOUND"++-- | This app’s data could not be cleared because the app is protected. For example, this may apply to apps critical to the functioning of the device, such as Google Play Store.+pattern PerAppResult_ClearingResult_APPPROTECTED :: PerAppResult_ClearingResult+pattern PerAppResult_ClearingResult_APPPROTECTED = PerAppResult_ClearingResult "APP_PROTECTED"++-- | This app’s data could not be cleared because the device API level does not support this command.+pattern PerAppResult_ClearingResult_APILEVEL :: PerAppResult_ClearingResult+pattern PerAppResult_ClearingResult_APILEVEL = PerAppResult_ClearingResult "API_LEVEL"++{-# COMPLETE+ PerAppResult_ClearingResult_CLEARINGRESULTUNSPECIFIED,+ PerAppResult_ClearingResult_Success,+ PerAppResult_ClearingResult_APPNOTFOUND,+ PerAppResult_ClearingResult_APPPROTECTED,+ PerAppResult_ClearingResult_APILEVEL,+ PerAppResult_ClearingResult+ #-}++-- | The policy for granting the permission.+newtype PermissionGrant_Policy = PermissionGrant_Policy {fromPermissionGrant_Policy :: 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+ )++-- | Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.+pattern PermissionGrant_Policy_PERMISSIONPOLICYUNSPECIFIED :: PermissionGrant_Policy+pattern PermissionGrant_Policy_PERMISSIONPOLICYUNSPECIFIED = PermissionGrant_Policy "PERMISSION_POLICY_UNSPECIFIED"++-- | Prompt the user to grant a permission.+pattern PermissionGrant_Policy_Prompt :: PermissionGrant_Policy+pattern PermissionGrant_Policy_Prompt = PermissionGrant_Policy "PROMPT"++-- | Automatically grant a permission.On Android 12 and above, READ/SMS (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#READ/SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS/FINE/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/FINE/LOCATION) ACCESS/BACKGROUND/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/BACKGROUND/LOCATION) ACCESS/COARSE/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/COARSE/LOCATION) CAMERA (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#CAMERA) RECORD/AUDIO (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#RECORD/AUDIO) ACTIVITY/RECOGNITION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACTIVITY/RECOGNITION) BODY/SENSORS (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#BODY/SENSORS)+pattern PermissionGrant_Policy_Grant :: PermissionGrant_Policy+pattern PermissionGrant_Policy_Grant = PermissionGrant_Policy "GRANT"++-- | Automatically deny a permission.+pattern PermissionGrant_Policy_Deny :: PermissionGrant_Policy+pattern PermissionGrant_Policy_Deny = PermissionGrant_Policy "DENY"++{-# COMPLETE+ PermissionGrant_Policy_PERMISSIONPOLICYUNSPECIFIED,+ PermissionGrant_Policy_Prompt,+ PermissionGrant_Policy_Grant,+ PermissionGrant_Policy_Deny,+ PermissionGrant_Policy+ #-}++-- | The type of installation to perform.+newtype PersonalApplicationPolicy_InstallType = PersonalApplicationPolicy_InstallType {fromPersonalApplicationPolicy_InstallType :: 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 AVAILABLE.+pattern PersonalApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED :: PersonalApplicationPolicy_InstallType+pattern PersonalApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED = PersonalApplicationPolicy_InstallType "INSTALL_TYPE_UNSPECIFIED"++-- | The app is blocked and can\'t be installed in the personal profile. If the app was previously installed in the device, it will be uninstalled.+pattern PersonalApplicationPolicy_InstallType_Blocked :: PersonalApplicationPolicy_InstallType+pattern PersonalApplicationPolicy_InstallType_Blocked = PersonalApplicationPolicy_InstallType "BLOCKED"++-- | The app is available to install in the personal profile.+pattern PersonalApplicationPolicy_InstallType_Available :: PersonalApplicationPolicy_InstallType+pattern PersonalApplicationPolicy_InstallType_Available = PersonalApplicationPolicy_InstallType "AVAILABLE"++{-# COMPLETE+ PersonalApplicationPolicy_InstallType_INSTALLTYPEUNSPECIFIED,+ PersonalApplicationPolicy_InstallType_Blocked,+ PersonalApplicationPolicy_InstallType_Available,+ PersonalApplicationPolicy_InstallType+ #-}++-- | Used together with personalApplications to control how apps in the personal profile are allowed or blocked.+newtype PersonalUsagePolicies_PersonalPlayStoreMode = PersonalUsagePolicies_PersonalPlayStoreMode {fromPersonalUsagePolicies_PersonalPlayStoreMode :: 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 BLOCKLIST.+pattern PersonalUsagePolicies_PersonalPlayStoreMode_PLAYSTOREMODEUNSPECIFIED :: PersonalUsagePolicies_PersonalPlayStoreMode+pattern PersonalUsagePolicies_PersonalPlayStoreMode_PLAYSTOREMODEUNSPECIFIED = PersonalUsagePolicies_PersonalPlayStoreMode "PLAY_STORE_MODE_UNSPECIFIED"++-- | All Play Store apps are available for installation in the personal profile, except those whose installType is BLOCKED in personalApplications.+pattern PersonalUsagePolicies_PersonalPlayStoreMode_Blacklist :: PersonalUsagePolicies_PersonalPlayStoreMode+pattern PersonalUsagePolicies_PersonalPlayStoreMode_Blacklist = PersonalUsagePolicies_PersonalPlayStoreMode "BLACKLIST"++-- | All Play Store apps are available for installation in the personal profile, except those whose installType is BLOCKED in personalApplications.+pattern PersonalUsagePolicies_PersonalPlayStoreMode_Blocklist :: PersonalUsagePolicies_PersonalPlayStoreMode+pattern PersonalUsagePolicies_PersonalPlayStoreMode_Blocklist = PersonalUsagePolicies_PersonalPlayStoreMode "BLOCKLIST"++-- | Only apps explicitly specified in personalApplications with installType set to AVAILABLE are allowed to be installed in the personal profile.+pattern PersonalUsagePolicies_PersonalPlayStoreMode_Allowlist :: PersonalUsagePolicies_PersonalPlayStoreMode+pattern PersonalUsagePolicies_PersonalPlayStoreMode_Allowlist = PersonalUsagePolicies_PersonalPlayStoreMode "ALLOWLIST"++{-# COMPLETE+ PersonalUsagePolicies_PersonalPlayStoreMode_PLAYSTOREMODEUNSPECIFIED,+ PersonalUsagePolicies_PersonalPlayStoreMode_Blacklist,+ PersonalUsagePolicies_PersonalPlayStoreMode_Blocklist,+ PersonalUsagePolicies_PersonalPlayStoreMode_Allowlist,+ PersonalUsagePolicies_PersonalPlayStoreMode+ #-}++-- | Optional. Controls whether a private space is allowed on the device.+newtype PersonalUsagePolicies_PrivateSpacePolicy = PersonalUsagePolicies_PrivateSpacePolicy {fromPersonalUsagePolicies_PrivateSpacePolicy :: 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 PRIVATE/SPACE/ALLOWED.+pattern PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEPOLICYUNSPECIFIED :: PersonalUsagePolicies_PrivateSpacePolicy+pattern PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEPOLICYUNSPECIFIED = PersonalUsagePolicies_PrivateSpacePolicy "PRIVATE_SPACE_POLICY_UNSPECIFIED"++-- | Users can create a private space profile.+pattern PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEALLOWED :: PersonalUsagePolicies_PrivateSpacePolicy+pattern PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEALLOWED = PersonalUsagePolicies_PrivateSpacePolicy "PRIVATE_SPACE_ALLOWED"++-- | Users cannot create a private space profile. Supported only for company-owned devices with a work profile. Caution: Any existing private space will be removed.+pattern PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEDISALLOWED :: PersonalUsagePolicies_PrivateSpacePolicy+pattern PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEDISALLOWED = PersonalUsagePolicies_PrivateSpacePolicy "PRIVATE_SPACE_DISALLOWED"++{-# COMPLETE+ PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEPOLICYUNSPECIFIED,+ PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEALLOWED,+ PersonalUsagePolicies_PrivateSpacePolicy_PRIVATESPACEDISALLOWED,+ PersonalUsagePolicies_PrivateSpacePolicy+ #-}++newtype Policy_AndroidDevicePolicyTracksItem = Policy_AndroidDevicePolicyTracksItem {fromPolicy_AndroidDevicePolicyTracksItem :: 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 ignored.+pattern Policy_AndroidDevicePolicyTracksItem_APPTRACKUNSPECIFIED :: Policy_AndroidDevicePolicyTracksItem+pattern Policy_AndroidDevicePolicyTracksItem_APPTRACKUNSPECIFIED = Policy_AndroidDevicePolicyTracksItem "APP_TRACK_UNSPECIFIED"++-- | The production track, which provides the latest stable release.+pattern Policy_AndroidDevicePolicyTracksItem_Production :: Policy_AndroidDevicePolicyTracksItem+pattern Policy_AndroidDevicePolicyTracksItem_Production = Policy_AndroidDevicePolicyTracksItem "PRODUCTION"++-- | The beta track, which provides the latest beta release.+pattern Policy_AndroidDevicePolicyTracksItem_Beta :: Policy_AndroidDevicePolicyTracksItem+pattern Policy_AndroidDevicePolicyTracksItem_Beta = Policy_AndroidDevicePolicyTracksItem "BETA"++{-# COMPLETE+ Policy_AndroidDevicePolicyTracksItem_APPTRACKUNSPECIFIED,+ Policy_AndroidDevicePolicyTracksItem_Production,+ Policy_AndroidDevicePolicyTracksItem_Beta,+ Policy_AndroidDevicePolicyTracksItem+ #-}++-- | 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, this field has no effect.The app auto update policy, which controls when automatic app updates can be applied.+newtype Policy_AppAutoUpdatePolicy = Policy_AppAutoUpdatePolicy {fromPolicy_AppAutoUpdatePolicy :: 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. Equivalent to CHOICE/TO/THE_USER.+pattern Policy_AppAutoUpdatePolicy_APPAUTOUPDATEPOLICYUNSPECIFIED :: Policy_AppAutoUpdatePolicy+pattern Policy_AppAutoUpdatePolicy_APPAUTOUPDATEPOLICYUNSPECIFIED = Policy_AppAutoUpdatePolicy "APP_AUTO_UPDATE_POLICY_UNSPECIFIED"++-- | The user can control auto-updates.+pattern Policy_AppAutoUpdatePolicy_CHOICETOTHEUSER :: Policy_AppAutoUpdatePolicy+pattern Policy_AppAutoUpdatePolicy_CHOICETOTHEUSER = Policy_AppAutoUpdatePolicy "CHOICE_TO_THE_USER"++-- | Apps are never auto-updated.+pattern Policy_AppAutoUpdatePolicy_Never :: Policy_AppAutoUpdatePolicy+pattern Policy_AppAutoUpdatePolicy_Never = Policy_AppAutoUpdatePolicy "NEVER"++-- | Apps are auto-updated over Wi-Fi only.+pattern Policy_AppAutoUpdatePolicy_WIFIONLY :: Policy_AppAutoUpdatePolicy+pattern Policy_AppAutoUpdatePolicy_WIFIONLY = Policy_AppAutoUpdatePolicy "WIFI_ONLY"++-- | Apps are auto-updated at any time. Data charges may apply.+pattern Policy_AppAutoUpdatePolicy_Always :: Policy_AppAutoUpdatePolicy+pattern Policy_AppAutoUpdatePolicy_Always = Policy_AppAutoUpdatePolicy "ALWAYS"++{-# COMPLETE+ Policy_AppAutoUpdatePolicy_APPAUTOUPDATEPOLICYUNSPECIFIED,+ Policy_AppAutoUpdatePolicy_CHOICETOTHEUSER,+ Policy_AppAutoUpdatePolicy_Never,+ Policy_AppAutoUpdatePolicy_WIFIONLY,+ Policy_AppAutoUpdatePolicy_Always,+ Policy_AppAutoUpdatePolicy+ #-}++-- | Optional. Controls whether AssistContent (https:\/\/developer.android.com\/reference\/android\/app\/assist\/AssistContent) is allowed to be sent to a privileged app such as an assistant app. AssistContent includes screenshots and information about an app, such as package name. This is supported on Android 15 and above.+newtype Policy_AssistContentPolicy = Policy_AssistContentPolicy {fromPolicy_AssistContentPolicy :: 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 ASSIST/CONTENT/ALLOWED.+pattern Policy_AssistContentPolicy_ASSISTCONTENTPOLICYUNSPECIFIED :: Policy_AssistContentPolicy+pattern Policy_AssistContentPolicy_ASSISTCONTENTPOLICYUNSPECIFIED = Policy_AssistContentPolicy "ASSIST_CONTENT_POLICY_UNSPECIFIED"++-- | Assist content is blocked from being sent to a privileged app.Supported on Android 15 and above. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 15.+pattern Policy_AssistContentPolicy_ASSISTCONTENTDISALLOWED :: Policy_AssistContentPolicy+pattern Policy_AssistContentPolicy_ASSISTCONTENTDISALLOWED = Policy_AssistContentPolicy "ASSIST_CONTENT_DISALLOWED"++-- | Assist content is allowed to be sent to a privileged app.Supported on Android 15 and above.+pattern Policy_AssistContentPolicy_ASSISTCONTENTALLOWED :: Policy_AssistContentPolicy+pattern Policy_AssistContentPolicy_ASSISTCONTENTALLOWED = Policy_AssistContentPolicy "ASSIST_CONTENT_ALLOWED"++{-# COMPLETE+ Policy_AssistContentPolicy_ASSISTCONTENTPOLICYUNSPECIFIED,+ Policy_AssistContentPolicy_ASSISTCONTENTDISALLOWED,+ Policy_AssistContentPolicy_ASSISTCONTENTALLOWED,+ Policy_AssistContentPolicy+ #-}++-- | Whether auto date, time, and time zone are enabled on a company-owned device. If this is set, then autoTimeRequired is ignored.+newtype Policy_AutoDateAndTimeZone = Policy_AutoDateAndTimeZone {fromPolicy_AutoDateAndTimeZone :: 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/DATE/AND/TIME/ZONE/USER/CHOICE.+pattern Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUNSPECIFIED :: Policy_AutoDateAndTimeZone+pattern Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUNSPECIFIED = Policy_AutoDateAndTimeZone "AUTO_DATE_AND_TIME_ZONE_UNSPECIFIED"++-- | Auto date, time, and time zone are left to user\'s choice.+pattern Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUSERCHOICE :: Policy_AutoDateAndTimeZone+pattern Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUSERCHOICE = Policy_AutoDateAndTimeZone "AUTO_DATE_AND_TIME_ZONE_USER_CHOICE"++-- | Enforce auto date, time, and time zone on the device.+pattern Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEENFORCED :: Policy_AutoDateAndTimeZone+pattern Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEENFORCED = Policy_AutoDateAndTimeZone "AUTO_DATE_AND_TIME_ZONE_ENFORCED"++{-# COMPLETE+ Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUNSPECIFIED,+ Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEUSERCHOICE,+ Policy_AutoDateAndTimeZone_AUTODATEANDTIMEZONEENFORCED,+ Policy_AutoDateAndTimeZone+ #-}++-- | Controls the use of the camera and whether the user has access to the camera access toggle.+newtype Policy_CameraAccess = Policy_CameraAccess {fromPolicy_CameraAccess :: 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+ )++-- | If camera/disabled is true, this is equivalent to CAMERA/ACCESS/DISABLED. Otherwise, this is equivalent to CAMERA/ACCESS/USER/CHOICE.+pattern Policy_CameraAccess_CAMERAACCESSUNSPECIFIED :: Policy_CameraAccess+pattern Policy_CameraAccess_CAMERAACCESSUNSPECIFIED = Policy_CameraAccess "CAMERA_ACCESS_UNSPECIFIED"++-- | The field camera_disabled is ignored. This is the default device behaviour: all cameras on the device are available. On Android 12 and above, the user can use the camera access toggle.+pattern Policy_CameraAccess_CAMERAACCESSUSERCHOICE :: Policy_CameraAccess+pattern Policy_CameraAccess_CAMERAACCESSUSERCHOICE = Policy_CameraAccess "CAMERA_ACCESS_USER_CHOICE"++-- | The field camera_disabled is ignored. All cameras on the device are disabled (for fully managed devices, this applies device-wide and for work profiles this applies only to the work profile).There are no explicit restrictions placed on the camera access toggle on Android 12 and above: on fully managed devices, the camera access toggle has no effect as all cameras are disabled. On devices with a work profile, this toggle has no effect on apps in the work profile, but it affects apps outside the work profile.+pattern Policy_CameraAccess_CAMERAACCESSDISABLED :: Policy_CameraAccess+pattern Policy_CameraAccess_CAMERAACCESSDISABLED = Policy_CameraAccess "CAMERA_ACCESS_DISABLED"++-- | The field camera/disabled is ignored. All cameras on the device are available. On fully managed devices running Android 12 and above, the user is unable to use the camera access toggle. On devices which are not fully managed or which run Android 11 or below, this is equivalent to CAMERA/ACCESS/USER/CHOICE.+pattern Policy_CameraAccess_CAMERAACCESSENFORCED :: Policy_CameraAccess+pattern Policy_CameraAccess_CAMERAACCESSENFORCED = Policy_CameraAccess "CAMERA_ACCESS_ENFORCED"++{-# COMPLETE+ Policy_CameraAccess_CAMERAACCESSUNSPECIFIED,+ Policy_CameraAccess_CAMERAACCESSUSERCHOICE,+ Policy_CameraAccess_CAMERAACCESSDISABLED,+ Policy_CameraAccess_CAMERAACCESSENFORCED,+ Policy_CameraAccess+ #-}++-- | Controls which apps are allowed to act as credential providers on Android 14 and above. These apps store credentials, see this (https:\/\/developer.android.com\/training\/sign-in\/passkeys) and this (https:\/\/developer.android.com\/reference\/androidx\/credentials\/CredentialManager) for details. See also credentialProviderPolicy.+newtype Policy_CredentialProviderPolicyDefault = Policy_CredentialProviderPolicyDefault {fromPolicy_CredentialProviderPolicyDefault :: 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 CREDENTIAL/PROVIDER/DEFAULT_DISALLOWED.+pattern Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERPOLICYDEFAULTUNSPECIFIED :: Policy_CredentialProviderPolicyDefault+pattern Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERPOLICYDEFAULTUNSPECIFIED = Policy_CredentialProviderPolicyDefault "CREDENTIAL_PROVIDER_POLICY_DEFAULT_UNSPECIFIED"++-- | Apps with credentialProviderPolicy unspecified are not allowed to act as a credential provider.+pattern Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWED :: Policy_CredentialProviderPolicyDefault+pattern Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWED = Policy_CredentialProviderPolicyDefault "CREDENTIAL_PROVIDER_DEFAULT_DISALLOWED"++-- | Apps with credentialProviderPolicy unspecified are not allowed to act as a credential provider except for the OEM default credential providers. OEM default credential providers are always allowed to act as credential providers.+pattern Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWEDEXCEPTSYSTEM :: Policy_CredentialProviderPolicyDefault+pattern Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWEDEXCEPTSYSTEM = Policy_CredentialProviderPolicyDefault "CREDENTIAL_PROVIDER_DEFAULT_DISALLOWED_EXCEPT_SYSTEM"++{-# COMPLETE+ Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERPOLICYDEFAULTUNSPECIFIED,+ Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWED,+ Policy_CredentialProviderPolicyDefault_CREDENTIALPROVIDERDEFAULTDISALLOWEDEXCEPTSYSTEM,+ Policy_CredentialProviderPolicyDefault+ #-}++-- | The default permission policy for runtime permission requests.+newtype Policy_DefaultPermissionPolicy = Policy_DefaultPermissionPolicy {fromPolicy_DefaultPermissionPolicy :: 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+ )++-- | Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.+pattern Policy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED :: Policy_DefaultPermissionPolicy+pattern Policy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED = Policy_DefaultPermissionPolicy "PERMISSION_POLICY_UNSPECIFIED"++-- | Prompt the user to grant a permission.+pattern Policy_DefaultPermissionPolicy_Prompt :: Policy_DefaultPermissionPolicy+pattern Policy_DefaultPermissionPolicy_Prompt = Policy_DefaultPermissionPolicy "PROMPT"++-- | Automatically grant a permission.On Android 12 and above, READ/SMS (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#READ/SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS/FINE/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/FINE/LOCATION) ACCESS/BACKGROUND/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/BACKGROUND/LOCATION) ACCESS/COARSE/LOCATION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACCESS/COARSE/LOCATION) CAMERA (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#CAMERA) RECORD/AUDIO (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#RECORD/AUDIO) ACTIVITY/RECOGNITION (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#ACTIVITY/RECOGNITION) BODY/SENSORS (https:\/\/developer.android.com\/reference\/android\/Manifest.permission#BODY/SENSORS)+pattern Policy_DefaultPermissionPolicy_Grant :: Policy_DefaultPermissionPolicy+pattern Policy_DefaultPermissionPolicy_Grant = Policy_DefaultPermissionPolicy "GRANT"++-- | Automatically deny a permission.+pattern Policy_DefaultPermissionPolicy_Deny :: Policy_DefaultPermissionPolicy+pattern Policy_DefaultPermissionPolicy_Deny = Policy_DefaultPermissionPolicy "DENY"++{-# COMPLETE+ Policy_DefaultPermissionPolicy_PERMISSIONPOLICYUNSPECIFIED,+ Policy_DefaultPermissionPolicy_Prompt,+ Policy_DefaultPermissionPolicy_Grant,+ Policy_DefaultPermissionPolicy_Deny,+ Policy_DefaultPermissionPolicy+ #-}++-- | Whether encryption is enabled+newtype Policy_EncryptionPolicy = Policy_EncryptionPolicy {fromPolicy_EncryptionPolicy :: 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 ignored, i.e. no encryption required+pattern Policy_EncryptionPolicy_ENCRYPTIONPOLICYUNSPECIFIED :: Policy_EncryptionPolicy+pattern Policy_EncryptionPolicy_ENCRYPTIONPOLICYUNSPECIFIED = Policy_EncryptionPolicy "ENCRYPTION_POLICY_UNSPECIFIED"++-- | Encryption required but no password required to boot+pattern Policy_EncryptionPolicy_ENABLEDWITHOUTPASSWORD :: Policy_EncryptionPolicy+pattern Policy_EncryptionPolicy_ENABLEDWITHOUTPASSWORD = Policy_EncryptionPolicy "ENABLED_WITHOUT_PASSWORD"++-- | Encryption required with password required to boot+pattern Policy_EncryptionPolicy_ENABLEDWITHPASSWORD :: Policy_EncryptionPolicy+pattern Policy_EncryptionPolicy_ENABLEDWITHPASSWORD = Policy_EncryptionPolicy "ENABLED_WITH_PASSWORD"++{-# COMPLETE+ Policy_EncryptionPolicy_ENCRYPTIONPOLICYUNSPECIFIED,+ Policy_EncryptionPolicy_ENABLEDWITHOUTPASSWORD,+ Policy_EncryptionPolicy_ENABLEDWITHPASSWORD,+ Policy_EncryptionPolicy+ #-}++newtype Policy_KeyguardDisabledFeaturesItem = Policy_KeyguardDisabledFeaturesItem {fromPolicy_KeyguardDisabledFeaturesItem :: 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 ignored.+pattern Policy_KeyguardDisabledFeaturesItem_KEYGUARDDISABLEDFEATUREUNSPECIFIED :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_KEYGUARDDISABLEDFEATUREUNSPECIFIED = Policy_KeyguardDisabledFeaturesItem "KEYGUARD_DISABLED_FEATURE_UNSPECIFIED"++-- | Disable the camera on secure keyguard screens (e.g. PIN).+pattern Policy_KeyguardDisabledFeaturesItem_Camera :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_Camera = Policy_KeyguardDisabledFeaturesItem "CAMERA"++-- | Disable showing all notifications on secure keyguard screens.+pattern Policy_KeyguardDisabledFeaturesItem_Notifications :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_Notifications = Policy_KeyguardDisabledFeaturesItem "NOTIFICATIONS"++-- | Disable unredacted notifications on secure keyguard screens.+pattern Policy_KeyguardDisabledFeaturesItem_UNREDACTEDNOTIFICATIONS :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_UNREDACTEDNOTIFICATIONS = Policy_KeyguardDisabledFeaturesItem "UNREDACTED_NOTIFICATIONS"++-- | Ignore trust agent state on secure keyguard screens.+pattern Policy_KeyguardDisabledFeaturesItem_TRUSTAGENTS :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_TRUSTAGENTS = Policy_KeyguardDisabledFeaturesItem "TRUST_AGENTS"++-- | Disable fingerprint sensor on secure keyguard screens.+pattern Policy_KeyguardDisabledFeaturesItem_DISABLEFINGERPRINT :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_DISABLEFINGERPRINT = Policy_KeyguardDisabledFeaturesItem "DISABLE_FINGERPRINT"++-- | On devices running Android 6 and below, disables text entry into notifications on secure keyguard screens. Has no effect on Android 7 and above.+pattern Policy_KeyguardDisabledFeaturesItem_DISABLEREMOTEINPUT :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_DISABLEREMOTEINPUT = Policy_KeyguardDisabledFeaturesItem "DISABLE_REMOTE_INPUT"++-- | Disable face authentication on secure keyguard screens.+pattern Policy_KeyguardDisabledFeaturesItem_Face :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_Face = Policy_KeyguardDisabledFeaturesItem "FACE"++-- | Disable iris authentication on secure keyguard screens.+pattern Policy_KeyguardDisabledFeaturesItem_Iris :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_Iris = Policy_KeyguardDisabledFeaturesItem "IRIS"++-- | Disable all biometric authentication on secure keyguard screens.+pattern Policy_KeyguardDisabledFeaturesItem_Biometrics :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_Biometrics = Policy_KeyguardDisabledFeaturesItem "BIOMETRICS"++-- | Disable all shortcuts on secure keyguard screen on Android 14 and above.+pattern Policy_KeyguardDisabledFeaturesItem_Shortcuts :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_Shortcuts = Policy_KeyguardDisabledFeaturesItem "SHORTCUTS"++-- | Disable all current and future keyguard customizations.+pattern Policy_KeyguardDisabledFeaturesItem_ALLFEATURES :: Policy_KeyguardDisabledFeaturesItem+pattern Policy_KeyguardDisabledFeaturesItem_ALLFEATURES = Policy_KeyguardDisabledFeaturesItem "ALL_FEATURES"++{-# COMPLETE+ Policy_KeyguardDisabledFeaturesItem_KEYGUARDDISABLEDFEATUREUNSPECIFIED,+ Policy_KeyguardDisabledFeaturesItem_Camera,+ Policy_KeyguardDisabledFeaturesItem_Notifications,+ Policy_KeyguardDisabledFeaturesItem_UNREDACTEDNOTIFICATIONS,+ Policy_KeyguardDisabledFeaturesItem_TRUSTAGENTS,+ Policy_KeyguardDisabledFeaturesItem_DISABLEFINGERPRINT,+ Policy_KeyguardDisabledFeaturesItem_DISABLEREMOTEINPUT,+ Policy_KeyguardDisabledFeaturesItem_Face,+ Policy_KeyguardDisabledFeaturesItem_Iris,+ Policy_KeyguardDisabledFeaturesItem_Biometrics,+ Policy_KeyguardDisabledFeaturesItem_Shortcuts,+ Policy_KeyguardDisabledFeaturesItem_ALLFEATURES,+ Policy_KeyguardDisabledFeaturesItem+ #-}++-- | The degree of location detection enabled.+newtype Policy_LocationMode = Policy_LocationMode {fromPolicy_LocationMode :: 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+ )++-- | Defaults to LOCATION/USER/CHOICE.+pattern Policy_LocationMode_LOCATIONMODEUNSPECIFIED :: Policy_LocationMode+pattern Policy_LocationMode_LOCATIONMODEUNSPECIFIED = Policy_LocationMode "LOCATION_MODE_UNSPECIFIED"++-- | On Android 8 and below, all location detection methods are enabled, including GPS, networks, and other sensors. On Android 9 and above, this is equivalent to LOCATION_ENFORCED.+pattern Policy_LocationMode_HIGHACCURACY :: Policy_LocationMode+pattern Policy_LocationMode_HIGHACCURACY = Policy_LocationMode "HIGH_ACCURACY"++-- | On Android 8 and below, only GPS and other sensors are enabled. On Android 9 and above, this is equivalent to LOCATION_ENFORCED.+pattern Policy_LocationMode_SENSORSONLY :: Policy_LocationMode+pattern Policy_LocationMode_SENSORSONLY = Policy_LocationMode "SENSORS_ONLY"++-- | On Android 8 and below, only the network location provider is enabled. On Android 9 and above, this is equivalent to LOCATION_ENFORCED.+pattern Policy_LocationMode_BATTERYSAVING :: Policy_LocationMode+pattern Policy_LocationMode_BATTERYSAVING = Policy_LocationMode "BATTERY_SAVING"++-- | On Android 8 and below, location setting and accuracy are disabled. On Android 9 and above, this is equivalent to LOCATION_DISABLED.+pattern Policy_LocationMode_Off :: Policy_LocationMode+pattern Policy_LocationMode_Off = Policy_LocationMode "OFF"++-- | Location setting is not restricted on the device. No specific behavior is set or enforced.+pattern Policy_LocationMode_LOCATIONUSERCHOICE :: Policy_LocationMode+pattern Policy_LocationMode_LOCATIONUSERCHOICE = Policy_LocationMode "LOCATION_USER_CHOICE"++-- | Enable location setting on the device.+pattern Policy_LocationMode_LOCATIONENFORCED :: Policy_LocationMode+pattern Policy_LocationMode_LOCATIONENFORCED = Policy_LocationMode "LOCATION_ENFORCED"++-- | Disable location setting on the device.+pattern Policy_LocationMode_LOCATIONDISABLED :: Policy_LocationMode+pattern Policy_LocationMode_LOCATIONDISABLED = Policy_LocationMode "LOCATION_DISABLED"++{-# COMPLETE+ Policy_LocationMode_LOCATIONMODEUNSPECIFIED,+ Policy_LocationMode_HIGHACCURACY,+ Policy_LocationMode_SENSORSONLY,+ Policy_LocationMode_BATTERYSAVING,+ Policy_LocationMode_Off,+ Policy_LocationMode_LOCATIONUSERCHOICE,+ Policy_LocationMode_LOCATIONENFORCED,+ Policy_LocationMode_LOCATIONDISABLED,+ Policy_LocationMode+ #-}++-- | Controls the use of the microphone and whether the user has access to the microphone access toggle. This applies only on fully managed devices.+newtype Policy_MicrophoneAccess = Policy_MicrophoneAccess {fromPolicy_MicrophoneAccess :: 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+ )++-- | If unmute/microphone/disabled is true, this is equivalent to MICROPHONE/ACCESS/DISABLED. Otherwise, this is equivalent to MICROPHONE/ACCESS/USER_CHOICE.+pattern Policy_MicrophoneAccess_MICROPHONEACCESSUNSPECIFIED :: Policy_MicrophoneAccess+pattern Policy_MicrophoneAccess_MICROPHONEACCESSUNSPECIFIED = Policy_MicrophoneAccess "MICROPHONE_ACCESS_UNSPECIFIED"++-- | The field unmute/microphone/disabled is ignored. This is the default device behaviour: the microphone on the device is available. On Android 12 and above, the user can use the microphone access toggle.+pattern Policy_MicrophoneAccess_MICROPHONEACCESSUSERCHOICE :: Policy_MicrophoneAccess+pattern Policy_MicrophoneAccess_MICROPHONEACCESSUSERCHOICE = Policy_MicrophoneAccess "MICROPHONE_ACCESS_USER_CHOICE"++-- | The field unmute/microphone/disabled is ignored. The microphone on the device is disabled (for fully managed devices, this applies device-wide).The microphone access toggle has no effect as the microphone is disabled.+pattern Policy_MicrophoneAccess_MICROPHONEACCESSDISABLED :: Policy_MicrophoneAccess+pattern Policy_MicrophoneAccess_MICROPHONEACCESSDISABLED = Policy_MicrophoneAccess "MICROPHONE_ACCESS_DISABLED"++-- | The field unmute/microphone/disabled is ignored. The microphone on the device is available. On devices running Android 12 and above, the user is unable to use the microphone access toggle. On devices which run Android 11 or below, this is equivalent to MICROPHONE/ACCESS/USER_CHOICE.+pattern Policy_MicrophoneAccess_MICROPHONEACCESSENFORCED :: Policy_MicrophoneAccess+pattern Policy_MicrophoneAccess_MICROPHONEACCESSENFORCED = Policy_MicrophoneAccess "MICROPHONE_ACCESS_ENFORCED"++{-# COMPLETE+ Policy_MicrophoneAccess_MICROPHONEACCESSUNSPECIFIED,+ Policy_MicrophoneAccess_MICROPHONEACCESSUSERCHOICE,+ Policy_MicrophoneAccess_MICROPHONEACCESSDISABLED,+ Policy_MicrophoneAccess_MICROPHONEACCESSENFORCED,+ Policy_MicrophoneAccess+ #-}++-- | This mode controls which apps are available to the user in the Play Store and the behavior on the device when apps are removed from the policy.+newtype Policy_PlayStoreMode = Policy_PlayStoreMode {fromPolicy_PlayStoreMode :: 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 WHITELIST.+pattern Policy_PlayStoreMode_PLAYSTOREMODEUNSPECIFIED :: Policy_PlayStoreMode+pattern Policy_PlayStoreMode_PLAYSTOREMODEUNSPECIFIED = Policy_PlayStoreMode "PLAY_STORE_MODE_UNSPECIFIED"++-- | Only apps that are in the policy are available and any app not in the policy will be automatically uninstalled from the device.+pattern Policy_PlayStoreMode_Whitelist :: Policy_PlayStoreMode+pattern Policy_PlayStoreMode_Whitelist = Policy_PlayStoreMode "WHITELIST"++-- | All apps are available and any app that should not be on the device should be explicitly marked as \'BLOCKED\' in the applications policy.+pattern Policy_PlayStoreMode_Blacklist :: Policy_PlayStoreMode+pattern Policy_PlayStoreMode_Blacklist = Policy_PlayStoreMode "BLACKLIST"++{-# COMPLETE+ Policy_PlayStoreMode_PLAYSTOREMODEUNSPECIFIED,+ Policy_PlayStoreMode_Whitelist,+ Policy_PlayStoreMode_Blacklist,+ Policy_PlayStoreMode+ #-}++-- | Controls whether preferential network service is enabled on the work profile. For example, an organization may have an agreement with a carrier that all of the work data from its employees\' devices will be sent via a network service dedicated for enterprise use. An example of a supported preferential network service is the enterprise slice on 5G networks. This has no effect on fully managed devices.+newtype Policy_PreferentialNetworkService = Policy_PreferentialNetworkService {fromPolicy_PreferentialNetworkService :: 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 PREFERENTIAL/NETWORK/SERVICES_DISABLED.+pattern Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEUNSPECIFIED :: Policy_PreferentialNetworkService+pattern Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEUNSPECIFIED = Policy_PreferentialNetworkService "PREFERENTIAL_NETWORK_SERVICE_UNSPECIFIED"++-- | Preferential network service is disabled on the work profile.+pattern Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEDISABLED :: Policy_PreferentialNetworkService+pattern Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEDISABLED = Policy_PreferentialNetworkService "PREFERENTIAL_NETWORK_SERVICE_DISABLED"++-- | Preferential network service is enabled on the work profile.+pattern Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEENABLED :: Policy_PreferentialNetworkService+pattern Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEENABLED = Policy_PreferentialNetworkService "PREFERENTIAL_NETWORK_SERVICE_ENABLED"++{-# COMPLETE+ Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEUNSPECIFIED,+ Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEDISABLED,+ Policy_PreferentialNetworkService_PREFERENTIALNETWORKSERVICEENABLED,+ Policy_PreferentialNetworkService+ #-}++-- | Optional. Controls whether printing is allowed. This is supported on devices running Android 9 and above. .+newtype Policy_PrintingPolicy = Policy_PrintingPolicy {fromPolicy_PrintingPolicy :: 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 PRINTING_ALLOWED.+pattern Policy_PrintingPolicy_PRINTINGPOLICYUNSPECIFIED :: Policy_PrintingPolicy+pattern Policy_PrintingPolicy_PRINTINGPOLICYUNSPECIFIED = Policy_PrintingPolicy "PRINTING_POLICY_UNSPECIFIED"++-- | Printing is disallowed. A nonComplianceDetail with API_LEVEL is reported if the Android version is less than 9.+pattern Policy_PrintingPolicy_PRINTINGDISALLOWED :: Policy_PrintingPolicy+pattern Policy_PrintingPolicy_PRINTINGDISALLOWED = Policy_PrintingPolicy "PRINTING_DISALLOWED"++-- | Printing is allowed.+pattern Policy_PrintingPolicy_PRINTINGALLOWED :: Policy_PrintingPolicy+pattern Policy_PrintingPolicy_PRINTINGALLOWED = Policy_PrintingPolicy "PRINTING_ALLOWED"++{-# COMPLETE+ Policy_PrintingPolicy_PRINTINGPOLICYUNSPECIFIED,+ Policy_PrintingPolicy_PRINTINGDISALLOWED,+ Policy_PrintingPolicy_PRINTINGALLOWED,+ Policy_PrintingPolicy+ #-}++newtype Policy_StayOnPluggedModesItem = Policy_StayOnPluggedModesItem {fromPolicy_StayOnPluggedModesItem :: 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 ignored.+pattern Policy_StayOnPluggedModesItem_BATTERYPLUGGEDMODEUNSPECIFIED :: Policy_StayOnPluggedModesItem+pattern Policy_StayOnPluggedModesItem_BATTERYPLUGGEDMODEUNSPECIFIED = Policy_StayOnPluggedModesItem "BATTERY_PLUGGED_MODE_UNSPECIFIED"++-- | Power source is an AC charger.+pattern Policy_StayOnPluggedModesItem_AC :: Policy_StayOnPluggedModesItem+pattern Policy_StayOnPluggedModesItem_AC = Policy_StayOnPluggedModesItem "AC"++-- | Power source is a USB port.+pattern Policy_StayOnPluggedModesItem_Usb :: Policy_StayOnPluggedModesItem+pattern Policy_StayOnPluggedModesItem_Usb = Policy_StayOnPluggedModesItem "USB"++-- | Power source is wireless.+pattern Policy_StayOnPluggedModesItem_Wireless :: Policy_StayOnPluggedModesItem+pattern Policy_StayOnPluggedModesItem_Wireless = Policy_StayOnPluggedModesItem "WIRELESS"++{-# COMPLETE+ Policy_StayOnPluggedModesItem_BATTERYPLUGGEDMODEUNSPECIFIED,+ Policy_StayOnPluggedModesItem_AC,+ Policy_StayOnPluggedModesItem_Usb,+ Policy_StayOnPluggedModesItem_Wireless,+ Policy_StayOnPluggedModesItem+ #-}++-- | A specific security risk that negatively affects the security posture of the device.+newtype PostureDetail_SecurityRisk = PostureDetail_SecurityRisk {fromPostureDetail_SecurityRisk :: 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.+pattern PostureDetail_SecurityRisk_SECURITYRISKUNSPECIFIED :: PostureDetail_SecurityRisk+pattern PostureDetail_SecurityRisk_SECURITYRISKUNSPECIFIED = PostureDetail_SecurityRisk "SECURITY_RISK_UNSPECIFIED"++-- | Play Integrity API detects that the device is running an unknown OS (basicIntegrity check succeeds but ctsProfileMatch fails).+pattern PostureDetail_SecurityRisk_UNKNOWNOS :: PostureDetail_SecurityRisk+pattern PostureDetail_SecurityRisk_UNKNOWNOS = PostureDetail_SecurityRisk "UNKNOWN_OS"++-- | Play Integrity API detects that the device is running a compromised OS (basicIntegrity check fails).+pattern PostureDetail_SecurityRisk_COMPROMISEDOS :: PostureDetail_SecurityRisk+pattern PostureDetail_SecurityRisk_COMPROMISEDOS = PostureDetail_SecurityRisk "COMPROMISED_OS"++-- | Play Integrity API detects that the device does not have a strong guarantee of system integrity, if the MEETS/STRONG/INTEGRITY label doesn\'t show in the device integrity field (https:\/\/developer.android.com\/google\/play\/integrity\/verdicts#device-integrity-field).+pattern PostureDetail_SecurityRisk_HARDWAREBACKEDEVALUATIONFAILED :: PostureDetail_SecurityRisk+pattern PostureDetail_SecurityRisk_HARDWAREBACKEDEVALUATIONFAILED = PostureDetail_SecurityRisk "HARDWARE_BACKED_EVALUATION_FAILED"++{-# COMPLETE+ PostureDetail_SecurityRisk_SECURITYRISKUNSPECIFIED,+ PostureDetail_SecurityRisk_UNKNOWNOS,+ PostureDetail_SecurityRisk_COMPROMISEDOS,+ PostureDetail_SecurityRisk_HARDWAREBACKEDEVALUATIONFAILED,+ PostureDetail_SecurityRisk+ #-}++-- | Event type.+newtype PowerManagementEvent_EventType = PowerManagementEvent_EventType {fromPowerManagementEvent_EventType :: 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. No events have this type.+pattern PowerManagementEvent_EventType_POWERMANAGEMENTEVENTTYPEUNSPECIFIED :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_POWERMANAGEMENTEVENTTYPEUNSPECIFIED = PowerManagementEvent_EventType "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED"++-- | Battery level was measured.+pattern PowerManagementEvent_EventType_BATTERYLEVELCOLLECTED :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_BATTERYLEVELCOLLECTED = PowerManagementEvent_EventType "BATTERY_LEVEL_COLLECTED"++-- | The device started charging.+pattern PowerManagementEvent_EventType_POWERCONNECTED :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_POWERCONNECTED = PowerManagementEvent_EventType "POWER_CONNECTED"++-- | The device stopped charging.+pattern PowerManagementEvent_EventType_POWERDISCONNECTED :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_POWERDISCONNECTED = PowerManagementEvent_EventType "POWER_DISCONNECTED"++-- | The device entered low-power mode.+pattern PowerManagementEvent_EventType_BATTERYLOW :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_BATTERYLOW = PowerManagementEvent_EventType "BATTERY_LOW"++-- | The device exited low-power mode.+pattern PowerManagementEvent_EventType_BATTERYOKAY :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_BATTERYOKAY = PowerManagementEvent_EventType "BATTERY_OKAY"++-- | The device booted.+pattern PowerManagementEvent_EventType_BOOTCOMPLETED :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_BOOTCOMPLETED = PowerManagementEvent_EventType "BOOT_COMPLETED"++-- | The device shut down.+pattern PowerManagementEvent_EventType_Shutdown :: PowerManagementEvent_EventType+pattern PowerManagementEvent_EventType_Shutdown = PowerManagementEvent_EventType "SHUTDOWN"++{-# COMPLETE+ PowerManagementEvent_EventType_POWERMANAGEMENTEVENTTYPEUNSPECIFIED,+ PowerManagementEvent_EventType_BATTERYLEVELCOLLECTED,+ PowerManagementEvent_EventType_POWERCONNECTED,+ PowerManagementEvent_EventType_POWERDISCONNECTED,+ PowerManagementEvent_EventType_BATTERYLOW,+ PowerManagementEvent_EventType_BATTERYOKAY,+ PowerManagementEvent_EventType_BOOTCOMPLETED,+ PowerManagementEvent_EventType_Shutdown,+ PowerManagementEvent_EventType+ #-}++-- | The management mode of the device or profile.+newtype ProvisioningInfo_ManagementMode = ProvisioningInfo_ManagementMode {fromProvisioningInfo_ManagementMode :: 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 disallowed.+pattern ProvisioningInfo_ManagementMode_MANAGEMENTMODEUNSPECIFIED :: ProvisioningInfo_ManagementMode+pattern ProvisioningInfo_ManagementMode_MANAGEMENTMODEUNSPECIFIED = ProvisioningInfo_ManagementMode "MANAGEMENT_MODE_UNSPECIFIED"++-- | Device owner. Android Device Policy has full control over the device.+pattern ProvisioningInfo_ManagementMode_DEVICEOWNER :: ProvisioningInfo_ManagementMode+pattern ProvisioningInfo_ManagementMode_DEVICEOWNER = ProvisioningInfo_ManagementMode "DEVICE_OWNER"++-- | Profile owner. Android Device Policy has control over a managed profile on the device.+pattern ProvisioningInfo_ManagementMode_PROFILEOWNER :: ProvisioningInfo_ManagementMode+pattern ProvisioningInfo_ManagementMode_PROFILEOWNER = ProvisioningInfo_ManagementMode "PROFILE_OWNER"++{-# COMPLETE+ ProvisioningInfo_ManagementMode_MANAGEMENTMODEUNSPECIFIED,+ ProvisioningInfo_ManagementMode_DEVICEOWNER,+ ProvisioningInfo_ManagementMode_PROFILEOWNER,+ ProvisioningInfo_ManagementMode+ #-}++-- | Ownership of the managed device.+newtype ProvisioningInfo_Ownership = ProvisioningInfo_Ownership {fromProvisioningInfo_Ownership :: 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+ )++-- | Ownership is unspecified.+pattern ProvisioningInfo_Ownership_OWNERSHIPUNSPECIFIED :: ProvisioningInfo_Ownership+pattern ProvisioningInfo_Ownership_OWNERSHIPUNSPECIFIED = ProvisioningInfo_Ownership "OWNERSHIP_UNSPECIFIED"++-- | Device is company-owned.+pattern ProvisioningInfo_Ownership_COMPANYOWNED :: ProvisioningInfo_Ownership+pattern ProvisioningInfo_Ownership_COMPANYOWNED = ProvisioningInfo_Ownership "COMPANY_OWNED"++-- | Device is personally-owned.+pattern ProvisioningInfo_Ownership_PERSONALLYOWNED :: ProvisioningInfo_Ownership+pattern ProvisioningInfo_Ownership_PERSONALLYOWNED = ProvisioningInfo_Ownership "PERSONALLY_OWNED"++{-# COMPLETE+ ProvisioningInfo_Ownership_OWNERSHIPUNSPECIFIED,+ ProvisioningInfo_Ownership_COMPANYOWNED,+ ProvisioningInfo_Ownership_PERSONALLYOWNED,+ ProvisioningInfo_Ownership+ #-}++-- | Optional. Controls the screen brightness mode.+newtype ScreenBrightnessSettings_ScreenBrightnessMode = ScreenBrightnessSettings_ScreenBrightnessMode {fromScreenBrightnessSettings_ScreenBrightnessMode :: 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 BRIGHTNESS/USER/CHOICE.+pattern ScreenBrightnessSettings_ScreenBrightnessMode_SCREENBRIGHTNESSMODEUNSPECIFIED :: ScreenBrightnessSettings_ScreenBrightnessMode+pattern ScreenBrightnessSettings_ScreenBrightnessMode_SCREENBRIGHTNESSMODEUNSPECIFIED = ScreenBrightnessSettings_ScreenBrightnessMode "SCREEN_BRIGHTNESS_MODE_UNSPECIFIED"++-- | The user is allowed to configure the screen brightness. screenBrightness must not be set.+pattern ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSUSERCHOICE :: ScreenBrightnessSettings_ScreenBrightnessMode+pattern ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSUSERCHOICE = ScreenBrightnessSettings_ScreenBrightnessMode "BRIGHTNESS_USER_CHOICE"++-- | The screen brightness mode is automatic in which the brightness is automatically adjusted and the user is not allowed to configure the screen brightness. screenBrightness can still be set and it is taken into account while the brightness is automatically adjusted. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.+pattern ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSAUTOMATIC :: ScreenBrightnessSettings_ScreenBrightnessMode+pattern ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSAUTOMATIC = ScreenBrightnessSettings_ScreenBrightnessMode "BRIGHTNESS_AUTOMATIC"++-- | The screen brightness mode is fixed in which the brightness is set to screenBrightness and the user is not allowed to configure the screen brightness. screenBrightness must be set. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.+pattern ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSFIXED :: ScreenBrightnessSettings_ScreenBrightnessMode+pattern ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSFIXED = ScreenBrightnessSettings_ScreenBrightnessMode "BRIGHTNESS_FIXED"++{-# COMPLETE+ ScreenBrightnessSettings_ScreenBrightnessMode_SCREENBRIGHTNESSMODEUNSPECIFIED,+ ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSUSERCHOICE,+ ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSAUTOMATIC,+ ScreenBrightnessSettings_ScreenBrightnessMode_BRIGHTNESSFIXED,+ ScreenBrightnessSettings_ScreenBrightnessMode+ #-}++-- | Optional. Controls whether the user is allowed to configure the screen timeout.+newtype ScreenTimeoutSettings_ScreenTimeoutMode = ScreenTimeoutSettings_ScreenTimeoutMode {fromScreenTimeoutSettings_ScreenTimeoutMode :: 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 SCREEN/TIMEOUT/USER_CHOICE.+pattern ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTMODEUNSPECIFIED :: ScreenTimeoutSettings_ScreenTimeoutMode+pattern ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTMODEUNSPECIFIED = ScreenTimeoutSettings_ScreenTimeoutMode "SCREEN_TIMEOUT_MODE_UNSPECIFIED"++-- | The user is allowed to configure the screen timeout. screenTimeout must not be set.+pattern ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTUSERCHOICE :: ScreenTimeoutSettings_ScreenTimeoutMode+pattern ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTUSERCHOICE = ScreenTimeoutSettings_ScreenTimeoutMode "SCREEN_TIMEOUT_USER_CHOICE"++-- | The screen timeout is set to screenTimeout and the user is not allowed to configure the timeout. screenTimeout must be set. Supported on Android 9 and above on fully managed devices. A NonComplianceDetail with API_LEVEL is reported if the Android version is less than 9. Supported on work profiles on company-owned devices on Android 15 and above.+pattern ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTENFORCED :: ScreenTimeoutSettings_ScreenTimeoutMode+pattern ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTENFORCED = ScreenTimeoutSettings_ScreenTimeoutMode "SCREEN_TIMEOUT_ENFORCED"++{-# COMPLETE+ ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTMODEUNSPECIFIED,+ ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTUSERCHOICE,+ ScreenTimeoutSettings_ScreenTimeoutMode_SCREENTIMEOUTENFORCED,+ ScreenTimeoutSettings_ScreenTimeoutMode+ #-}++-- | Device\'s security posture value.+newtype SecurityPosture_DevicePosture = SecurityPosture_DevicePosture {fromSecurityPosture_DevicePosture :: 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. There is no posture detail for this posture value.+pattern SecurityPosture_DevicePosture_POSTUREUNSPECIFIED :: SecurityPosture_DevicePosture+pattern SecurityPosture_DevicePosture_POSTUREUNSPECIFIED = SecurityPosture_DevicePosture "POSTURE_UNSPECIFIED"++-- | This device is secure.+pattern SecurityPosture_DevicePosture_Secure' :: SecurityPosture_DevicePosture+pattern SecurityPosture_DevicePosture_Secure' = SecurityPosture_DevicePosture "SECURE"++-- | This device may be more vulnerable to malicious actors than is recommended for use with corporate data.+pattern SecurityPosture_DevicePosture_ATRISK :: SecurityPosture_DevicePosture+pattern SecurityPosture_DevicePosture_ATRISK = SecurityPosture_DevicePosture "AT_RISK"++-- | This device may be compromised and corporate data may be accessible to unauthorized actors.+pattern SecurityPosture_DevicePosture_POTENTIALLYCOMPROMISED :: SecurityPosture_DevicePosture+pattern SecurityPosture_DevicePosture_POTENTIALLYCOMPROMISED = SecurityPosture_DevicePosture "POTENTIALLY_COMPROMISED"++{-# COMPLETE+ SecurityPosture_DevicePosture_POSTUREUNSPECIFIED,+ SecurityPosture_DevicePosture_Secure',+ SecurityPosture_DevicePosture_ATRISK,+ SecurityPosture_DevicePosture_POTENTIALLYCOMPROMISED,+ SecurityPosture_DevicePosture+ #-}++-- | Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.+newtype SigninDetail_AllowPersonalUsage = SigninDetail_AllowPersonalUsage {fromSigninDetail_AllowPersonalUsage :: 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+ )++-- | Personal usage restriction is not specified+pattern SigninDetail_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED :: SigninDetail_AllowPersonalUsage+pattern SigninDetail_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED = SigninDetail_AllowPersonalUsage "ALLOW_PERSONAL_USAGE_UNSPECIFIED"++-- | Personal usage is allowed+pattern SigninDetail_AllowPersonalUsage_PERSONALUSAGEALLOWED :: SigninDetail_AllowPersonalUsage+pattern SigninDetail_AllowPersonalUsage_PERSONALUSAGEALLOWED = SigninDetail_AllowPersonalUsage "PERSONAL_USAGE_ALLOWED"++-- | Personal usage is disallowed+pattern SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWED :: SigninDetail_AllowPersonalUsage+pattern SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWED = SigninDetail_AllowPersonalUsage "PERSONAL_USAGE_DISALLOWED"++-- | Device is not associated with a single user, and thus both personal usage and corporate identity authentication are not expected. Important: This setting is mandatory for dedicated device enrollment and it is a breaking change. This change needs to be implemented before January 2025.For additional details see the dedicated device provisioning guide (https:\/\/developers.google.com\/android\/management\/provision-device#company-owned/devices/for/work/use_only).+pattern SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS :: SigninDetail_AllowPersonalUsage+pattern SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS = SigninDetail_AllowPersonalUsage "PERSONAL_USAGE_DISALLOWED_USERLESS"++{-# COMPLETE+ SigninDetail_AllowPersonalUsage_ALLOWPERSONALUSAGEUNSPECIFIED,+ SigninDetail_AllowPersonalUsage_PERSONALUSAGEALLOWED,+ SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWED,+ SigninDetail_AllowPersonalUsage_PERSONALUSAGEDISALLOWEDUSERLESS,+ SigninDetail_AllowPersonalUsage+ #-}++-- | Optional. Whether the sign-in URL should be used by default for the enterprise. The SigninDetail with defaultStatus set to SIGNIN/DETAIL/IS/DEFAULT is used for Google account enrollment method. Only one of an enterprise\'s signinDetails can have defaultStatus set to SIGNIN/DETAIL/IS/DEFAULT. If an Enterprise has at least one signinDetails and none of them have defaultStatus set to SIGNIN/DETAIL/IS/DEFAULT then the first one from the list is selected and has set defaultStatus to SIGNIN/DETAIL/IS/DEFAULT. If no signinDetails specified for the Enterprise then the Google Account device enrollment will fail.+newtype SigninDetail_DefaultStatus = SigninDetail_DefaultStatus {fromSigninDetail_DefaultStatus :: 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+ )++-- | Equivalent to SIGNIN/DETAIL/IS/NOT/DEFAULT.+pattern SigninDetail_DefaultStatus_SIGNINDETAILDEFAULTSTATUSUNSPECIFIED :: SigninDetail_DefaultStatus+pattern SigninDetail_DefaultStatus_SIGNINDETAILDEFAULTSTATUSUNSPECIFIED = SigninDetail_DefaultStatus "SIGNIN_DETAIL_DEFAULT_STATUS_UNSPECIFIED"++-- | The sign-in URL will be used by default for the enterprise.+pattern SigninDetail_DefaultStatus_SIGNINDETAILISDEFAULT :: SigninDetail_DefaultStatus+pattern SigninDetail_DefaultStatus_SIGNINDETAILISDEFAULT = SigninDetail_DefaultStatus "SIGNIN_DETAIL_IS_DEFAULT"++-- | The sign-in URL will not be used by default for the enterprise.+pattern SigninDetail_DefaultStatus_SIGNINDETAILISNOTDEFAULT :: SigninDetail_DefaultStatus+pattern SigninDetail_DefaultStatus_SIGNINDETAILISNOTDEFAULT = SigninDetail_DefaultStatus "SIGNIN_DETAIL_IS_NOT_DEFAULT"++{-# COMPLETE+ SigninDetail_DefaultStatus_SIGNINDETAILDEFAULTSTATUSUNSPECIFIED,+ SigninDetail_DefaultStatus_SIGNINDETAILISDEFAULT,+ SigninDetail_DefaultStatus_SIGNINDETAILISNOTDEFAULT,+ SigninDetail_DefaultStatus+ #-}++-- | The status. See StartLostModeStatus.+newtype StartLostModeStatus_Status = StartLostModeStatus_Status {fromStartLostModeStatus_Status :: 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 StartLostModeStatus_Status_STATUSUNSPECIFIED :: StartLostModeStatus_Status+pattern StartLostModeStatus_Status_STATUSUNSPECIFIED = StartLostModeStatus_Status "STATUS_UNSPECIFIED"++-- | The device was put into lost mode.+pattern StartLostModeStatus_Status_Success :: StartLostModeStatus_Status+pattern StartLostModeStatus_Status_Success = StartLostModeStatus_Status "SUCCESS"++-- | The device could not be put into lost mode because the admin reset the device\'s password recently.+pattern StartLostModeStatus_Status_RESETPASSWORDRECENTLY :: StartLostModeStatus_Status+pattern StartLostModeStatus_Status_RESETPASSWORDRECENTLY = StartLostModeStatus_Status "RESET_PASSWORD_RECENTLY"++-- | The device could not be put into lost mode because the user exited lost mode recently.+pattern StartLostModeStatus_Status_USEREXITLOSTMODERECENTLY :: StartLostModeStatus_Status+pattern StartLostModeStatus_Status_USEREXITLOSTMODERECENTLY = StartLostModeStatus_Status "USER_EXIT_LOST_MODE_RECENTLY"++-- | The device is already in lost mode.+pattern StartLostModeStatus_Status_ALREADYINLOSTMODE :: StartLostModeStatus_Status+pattern StartLostModeStatus_Status_ALREADYINLOSTMODE = StartLostModeStatus_Status "ALREADY_IN_LOST_MODE"++{-# COMPLETE+ StartLostModeStatus_Status_STATUSUNSPECIFIED,+ StartLostModeStatus_Status_Success,+ StartLostModeStatus_Status_RESETPASSWORDRECENTLY,+ StartLostModeStatus_Status_USEREXITLOSTMODERECENTLY,+ StartLostModeStatus_Status_ALREADYINLOSTMODE,+ StartLostModeStatus_Status+ #-}++-- | The status. See StopLostModeStatus.+newtype StopLostModeStatus_Status = StopLostModeStatus_Status {fromStopLostModeStatus_Status :: 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 StopLostModeStatus_Status_STATUSUNSPECIFIED :: StopLostModeStatus_Status+pattern StopLostModeStatus_Status_STATUSUNSPECIFIED = StopLostModeStatus_Status "STATUS_UNSPECIFIED"++-- | The device was taken out of lost mode.+pattern StopLostModeStatus_Status_Success :: StopLostModeStatus_Status+pattern StopLostModeStatus_Status_Success = StopLostModeStatus_Status "SUCCESS"++-- | The device is not in lost mode.+pattern StopLostModeStatus_Status_NOTINLOSTMODE :: StopLostModeStatus_Status+pattern StopLostModeStatus_Status_NOTINLOSTMODE = StopLostModeStatus_Status "NOT_IN_LOST_MODE"++{-# COMPLETE+ StopLostModeStatus_Status_STATUSUNSPECIFIED,+ StopLostModeStatus_Status_Success,+ StopLostModeStatus_Status_NOTINLOSTMODE,+ StopLostModeStatus_Status+ #-}++-- | The status of the attempt to stop lost mode.+newtype StopLostModeUserAttemptEvent_Status = StopLostModeUserAttemptEvent_Status {fromStopLostModeUserAttemptEvent_Status :: 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 StopLostModeUserAttemptEvent_Status_STATUSUNSPECIFIED :: StopLostModeUserAttemptEvent_Status+pattern StopLostModeUserAttemptEvent_Status_STATUSUNSPECIFIED = StopLostModeUserAttemptEvent_Status "STATUS_UNSPECIFIED"++-- | Indicates that the user successfully stopped lost mode.+pattern StopLostModeUserAttemptEvent_Status_ATTEMPTSUCCEEDED :: StopLostModeUserAttemptEvent_Status+pattern StopLostModeUserAttemptEvent_Status_ATTEMPTSUCCEEDED = StopLostModeUserAttemptEvent_Status "ATTEMPT_SUCCEEDED"++-- | Indicates that the user\'s attempt to stop lost mode failed.+pattern StopLostModeUserAttemptEvent_Status_ATTEMPTFAILED :: StopLostModeUserAttemptEvent_Status+pattern StopLostModeUserAttemptEvent_Status_ATTEMPTFAILED = StopLostModeUserAttemptEvent_Status "ATTEMPT_FAILED"++{-# COMPLETE+ StopLostModeUserAttemptEvent_Status_STATUSUNSPECIFIED,+ StopLostModeUserAttemptEvent_Status_ATTEMPTSUCCEEDED,+ StopLostModeUserAttemptEvent_Status_ATTEMPTFAILED,+ StopLostModeUserAttemptEvent_Status+ #-}++-- | The type of system update to configure.+newtype SystemUpdate_Type = SystemUpdate_Type {fromSystemUpdate_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+ )++-- | Follow the default update behavior for the device, which typically requires the user to accept system updates.+pattern SystemUpdate_Type_SYSTEMUPDATETYPEUNSPECIFIED :: SystemUpdate_Type+pattern SystemUpdate_Type_SYSTEMUPDATETYPEUNSPECIFIED = SystemUpdate_Type "SYSTEM_UPDATE_TYPE_UNSPECIFIED"++-- | Install automatically as soon as an update is available.+pattern SystemUpdate_Type_Automatic :: SystemUpdate_Type+pattern SystemUpdate_Type_Automatic = SystemUpdate_Type "AUTOMATIC"++-- | Install automatically within a daily maintenance window. This also configures Play apps to be updated within the window. This is strongly recommended for kiosk devices because this is the only way apps persistently pinned to the foreground can be updated by Play.If autoUpdateMode is set to AUTO/UPDATE/HIGH_PRIORITY for an app, then the maintenance window is ignored for that app and it is updated as soon as possible even outside of the maintenance window.+pattern SystemUpdate_Type_Windowed :: SystemUpdate_Type+pattern SystemUpdate_Type_Windowed = SystemUpdate_Type "WINDOWED"++-- | Postpone automatic install up to a maximum of 30 days. This policy does not affect security updates (e.g. monthly security patches).+pattern SystemUpdate_Type_Postpone :: SystemUpdate_Type+pattern SystemUpdate_Type_Postpone = SystemUpdate_Type "POSTPONE"++{-# COMPLETE+ SystemUpdate_Type_SYSTEMUPDATETYPEUNSPECIFIED,+ SystemUpdate_Type_Automatic,+ SystemUpdate_Type_Windowed,+ SystemUpdate_Type_Postpone,+ SystemUpdate_Type+ #-}++-- | The status of an update: whether an update exists and what type it is.+newtype SystemUpdateInfo_UpdateStatus = SystemUpdateInfo_UpdateStatus {fromSystemUpdateInfo_UpdateStatus :: 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+ )++-- | It is unknown whether there is a pending system update. This happens when, for example, the device API level is less than 26, or if the version of Android Device Policy is outdated.+pattern SystemUpdateInfo_UpdateStatus_UPDATESTATUSUNKNOWN :: SystemUpdateInfo_UpdateStatus+pattern SystemUpdateInfo_UpdateStatus_UPDATESTATUSUNKNOWN = SystemUpdateInfo_UpdateStatus "UPDATE_STATUS_UNKNOWN"++-- | There is no pending system update available on the device.+pattern SystemUpdateInfo_UpdateStatus_UPTODATE :: SystemUpdateInfo_UpdateStatus+pattern SystemUpdateInfo_UpdateStatus_UPTODATE = SystemUpdateInfo_UpdateStatus "UP_TO_DATE"++-- | There is a pending system update available, but its type is not known.+pattern SystemUpdateInfo_UpdateStatus_UNKNOWNUPDATEAVAILABLE :: SystemUpdateInfo_UpdateStatus+pattern SystemUpdateInfo_UpdateStatus_UNKNOWNUPDATEAVAILABLE = SystemUpdateInfo_UpdateStatus "UNKNOWN_UPDATE_AVAILABLE"++-- | There is a pending security update available.+pattern SystemUpdateInfo_UpdateStatus_SECURITYUPDATEAVAILABLE :: SystemUpdateInfo_UpdateStatus+pattern SystemUpdateInfo_UpdateStatus_SECURITYUPDATEAVAILABLE = SystemUpdateInfo_UpdateStatus "SECURITY_UPDATE_AVAILABLE"++-- | There is a pending OS update available.+pattern SystemUpdateInfo_UpdateStatus_OSUPDATEAVAILABLE :: SystemUpdateInfo_UpdateStatus+pattern SystemUpdateInfo_UpdateStatus_OSUPDATEAVAILABLE = SystemUpdateInfo_UpdateStatus "OS_UPDATE_AVAILABLE"++{-# COMPLETE+ SystemUpdateInfo_UpdateStatus_UPDATESTATUSUNKNOWN,+ SystemUpdateInfo_UpdateStatus_UPTODATE,+ SystemUpdateInfo_UpdateStatus_UNKNOWNUPDATEAVAILABLE,+ SystemUpdateInfo_UpdateStatus_SECURITYUPDATEAVAILABLE,+ SystemUpdateInfo_UpdateStatus_OSUPDATEAVAILABLE,+ SystemUpdateInfo_UpdateStatus+ #-}++newtype UsageLog_EnabledLogTypesItem = UsageLog_EnabledLogTypesItem {fromUsageLog_EnabledLogTypesItem :: 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 UsageLog_EnabledLogTypesItem_LOGTYPEUNSPECIFIED :: UsageLog_EnabledLogTypesItem+pattern UsageLog_EnabledLogTypesItem_LOGTYPEUNSPECIFIED = UsageLog_EnabledLogTypesItem "LOG_TYPE_UNSPECIFIED"++-- | Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS+pattern UsageLog_EnabledLogTypesItem_SECURITYLOGS :: UsageLog_EnabledLogTypesItem+pattern UsageLog_EnabledLogTypesItem_SECURITYLOGS = UsageLog_EnabledLogTypesItem "SECURITY_LOGS"++-- | Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK/ACTIVITY/LOGS+pattern UsageLog_EnabledLogTypesItem_NETWORKACTIVITYLOGS :: UsageLog_EnabledLogTypesItem+pattern UsageLog_EnabledLogTypesItem_NETWORKACTIVITYLOGS = UsageLog_EnabledLogTypesItem "NETWORK_ACTIVITY_LOGS"++{-# COMPLETE+ UsageLog_EnabledLogTypesItem_LOGTYPEUNSPECIFIED,+ UsageLog_EnabledLogTypesItem_SECURITYLOGS,+ UsageLog_EnabledLogTypesItem_NETWORKACTIVITYLOGS,+ UsageLog_EnabledLogTypesItem+ #-}++newtype UsageLog_UploadOnCellularAllowedItem = UsageLog_UploadOnCellularAllowedItem {fromUsageLog_UploadOnCellularAllowedItem :: 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 UsageLog_UploadOnCellularAllowedItem_LOGTYPEUNSPECIFIED :: UsageLog_UploadOnCellularAllowedItem+pattern UsageLog_UploadOnCellularAllowedItem_LOGTYPEUNSPECIFIED = UsageLog_UploadOnCellularAllowedItem "LOG_TYPE_UNSPECIFIED"++-- | Enable logging of on-device security events, like when the device password is incorrectly entered or removable storage is mounted. See UsageLogEvent for a complete description of the logged security events. Supported for fully managed devices on Android 7 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only security events from the work profile are logged. Can be overridden by the application delegated scope SECURITY_LOGS+pattern UsageLog_UploadOnCellularAllowedItem_SECURITYLOGS :: UsageLog_UploadOnCellularAllowedItem+pattern UsageLog_UploadOnCellularAllowedItem_SECURITYLOGS = UsageLog_UploadOnCellularAllowedItem "SECURITY_LOGS"++-- | Enable logging of on-device network events, like DNS lookups and TCP connections. See UsageLogEvent for a complete description of the logged network events. Supported for fully managed devices on Android 8 and above. Supported for company-owned devices with a work profile on Android 12 and above, on which only network events from the work profile are logged. Can be overridden by the application delegated scope NETWORK/ACTIVITY/LOGS+pattern UsageLog_UploadOnCellularAllowedItem_NETWORKACTIVITYLOGS :: UsageLog_UploadOnCellularAllowedItem+pattern UsageLog_UploadOnCellularAllowedItem_NETWORKACTIVITYLOGS = UsageLog_UploadOnCellularAllowedItem "NETWORK_ACTIVITY_LOGS"++{-# COMPLETE+ UsageLog_UploadOnCellularAllowedItem_LOGTYPEUNSPECIFIED,+ UsageLog_UploadOnCellularAllowedItem_SECURITYLOGS,+ UsageLog_UploadOnCellularAllowedItem_NETWORKACTIVITYLOGS,+ UsageLog_UploadOnCellularAllowedItem+ #-}++-- | The particular usage log event type that was reported on the device. Use this to determine which event field to access.+newtype UsageLogEvent_EventType = UsageLogEvent_EventType {fromUsageLogEvent_EventType :: 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 UsageLogEvent_EventType_EVENTTYPEUNSPECIFIED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_EVENTTYPEUNSPECIFIED = UsageLogEvent_EventType "EVENT_TYPE_UNSPECIFIED"++-- | Indicates adb/shell/command_event has been set.+pattern UsageLogEvent_EventType_ADBSHELLCOMMAND :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_ADBSHELLCOMMAND = UsageLogEvent_EventType "ADB_SHELL_COMMAND"++-- | Indicates adb/shell/interactive_event has been set.+pattern UsageLogEvent_EventType_ADBSHELLINTERACTIVE :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_ADBSHELLINTERACTIVE = UsageLogEvent_EventType "ADB_SHELL_INTERACTIVE"++-- | Indicates app/process/start_event has been set.+pattern UsageLogEvent_EventType_APPPROCESSSTART :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_APPPROCESSSTART = UsageLogEvent_EventType "APP_PROCESS_START"++-- | Indicates keyguard/dismissed/event has been set.+pattern UsageLogEvent_EventType_KEYGUARDDISMISSED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_KEYGUARDDISMISSED = UsageLogEvent_EventType "KEYGUARD_DISMISSED"++-- | Indicates keyguard/dismiss/auth/attempt/event has been set.+pattern UsageLogEvent_EventType_KEYGUARDDISMISSAUTHATTEMPT :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_KEYGUARDDISMISSAUTHATTEMPT = UsageLogEvent_EventType "KEYGUARD_DISMISS_AUTH_ATTEMPT"++-- | Indicates keyguard/secured/event has been set.+pattern UsageLogEvent_EventType_KEYGUARDSECURED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_KEYGUARDSECURED = UsageLogEvent_EventType "KEYGUARD_SECURED"++-- | Indicates file/pulled/event has been set.+pattern UsageLogEvent_EventType_FILEPULLED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_FILEPULLED = UsageLogEvent_EventType "FILE_PULLED"++-- | Indicates file/pushed/event has been set.+pattern UsageLogEvent_EventType_FILEPUSHED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_FILEPUSHED = UsageLogEvent_EventType "FILE_PUSHED"++-- | Indicates cert/authority/installed_event has been set.+pattern UsageLogEvent_EventType_CERTAUTHORITYINSTALLED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_CERTAUTHORITYINSTALLED = UsageLogEvent_EventType "CERT_AUTHORITY_INSTALLED"++-- | Indicates cert/authority/removed_event has been set.+pattern UsageLogEvent_EventType_CERTAUTHORITYREMOVED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_CERTAUTHORITYREMOVED = UsageLogEvent_EventType "CERT_AUTHORITY_REMOVED"++-- | Indicates cert/validation/failure_event has been set.+pattern UsageLogEvent_EventType_CERTVALIDATIONFAILURE :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_CERTVALIDATIONFAILURE = UsageLogEvent_EventType "CERT_VALIDATION_FAILURE"++-- | Indicates crypto/self/test/completed/event has been set.+pattern UsageLogEvent_EventType_CRYPTOSELFTESTCOMPLETED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_CRYPTOSELFTESTCOMPLETED = UsageLogEvent_EventType "CRYPTO_SELF_TEST_COMPLETED"++-- | Indicates key/destruction/event has been set.+pattern UsageLogEvent_EventType_KEYDESTRUCTION :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_KEYDESTRUCTION = UsageLogEvent_EventType "KEY_DESTRUCTION"++-- | Indicates key/generated/event has been set.+pattern UsageLogEvent_EventType_KEYGENERATED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_KEYGENERATED = UsageLogEvent_EventType "KEY_GENERATED"++-- | Indicates key/import/event has been set.+pattern UsageLogEvent_EventType_KEYIMPORT :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_KEYIMPORT = UsageLogEvent_EventType "KEY_IMPORT"++-- | Indicates key/integrity/violation_event has been set.+pattern UsageLogEvent_EventType_KEYINTEGRITYVIOLATION :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_KEYINTEGRITYVIOLATION = UsageLogEvent_EventType "KEY_INTEGRITY_VIOLATION"++-- | Indicates logging/started/event has been set.+pattern UsageLogEvent_EventType_LOGGINGSTARTED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_LOGGINGSTARTED = UsageLogEvent_EventType "LOGGING_STARTED"++-- | Indicates logging/stopped/event has been set.+pattern UsageLogEvent_EventType_LOGGINGSTOPPED :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_LOGGINGSTOPPED = UsageLogEvent_EventType "LOGGING_STOPPED"++-- | Indicates log/buffer/size/critical/event has been set.+pattern UsageLogEvent_EventType_LOGBUFFERSIZECRITICAL :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_LOGBUFFERSIZECRITICAL = UsageLogEvent_EventType "LOG_BUFFER_SIZE_CRITICAL"++-- | Indicates media/mount/event has been set.+pattern UsageLogEvent_EventType_MEDIAMOUNT :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_MEDIAMOUNT = UsageLogEvent_EventType "MEDIA_MOUNT"++-- | Indicates media/unmount/event has been set.+pattern UsageLogEvent_EventType_MEDIAUNMOUNT :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_MEDIAUNMOUNT = UsageLogEvent_EventType "MEDIA_UNMOUNT"++-- | Indicates os/shutdown/event has been set.+pattern UsageLogEvent_EventType_OSSHUTDOWN :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_OSSHUTDOWN = UsageLogEvent_EventType "OS_SHUTDOWN"++-- | Indicates os/startup/event has been set.+pattern UsageLogEvent_EventType_OSSTARTUP :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_OSSTARTUP = UsageLogEvent_EventType "OS_STARTUP"++-- | Indicates remote/lock/event has been set.+pattern UsageLogEvent_EventType_REMOTELOCK :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_REMOTELOCK = UsageLogEvent_EventType "REMOTE_LOCK"++-- | Indicates wipe/failure/event has been set.+pattern UsageLogEvent_EventType_WIPEFAILURE :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_WIPEFAILURE = UsageLogEvent_EventType "WIPE_FAILURE"++-- | Indicates connect_event has been set.+pattern UsageLogEvent_EventType_Connect :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_Connect = UsageLogEvent_EventType "CONNECT"++-- | Indicates dns_event has been set.+pattern UsageLogEvent_EventType_Dns :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_Dns = UsageLogEvent_EventType "DNS"++-- | Indicates stopLostModeUserAttemptEvent has been set.+pattern UsageLogEvent_EventType_STOPLOSTMODEUSERATTEMPT :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_STOPLOSTMODEUSERATTEMPT = UsageLogEvent_EventType "STOP_LOST_MODE_USER_ATTEMPT"++-- | Indicates lostModeOutgoingPhoneCallEvent has been set.+pattern UsageLogEvent_EventType_LOSTMODEOUTGOINGPHONECALL :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_LOSTMODEOUTGOINGPHONECALL = UsageLogEvent_EventType "LOST_MODE_OUTGOING_PHONE_CALL"++-- | Indicates lostModeLocationEvent has been set.+pattern UsageLogEvent_EventType_LOSTMODELOCATION :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_LOSTMODELOCATION = UsageLogEvent_EventType "LOST_MODE_LOCATION"++-- | Indicates enrollment/complete/event has been set.+pattern UsageLogEvent_EventType_ENROLLMENTCOMPLETE :: UsageLogEvent_EventType+pattern UsageLogEvent_EventType_ENROLLMENTCOMPLETE = UsageLogEvent_EventType "ENROLLMENT_COMPLETE"++{-# COMPLETE+ UsageLogEvent_EventType_EVENTTYPEUNSPECIFIED,+ UsageLogEvent_EventType_ADBSHELLCOMMAND,+ UsageLogEvent_EventType_ADBSHELLINTERACTIVE,+ UsageLogEvent_EventType_APPPROCESSSTART,+ UsageLogEvent_EventType_KEYGUARDDISMISSED,+ UsageLogEvent_EventType_KEYGUARDDISMISSAUTHATTEMPT,+ UsageLogEvent_EventType_KEYGUARDSECURED,+ UsageLogEvent_EventType_FILEPULLED,+ UsageLogEvent_EventType_FILEPUSHED,+ UsageLogEvent_EventType_CERTAUTHORITYINSTALLED,+ UsageLogEvent_EventType_CERTAUTHORITYREMOVED,+ UsageLogEvent_EventType_CERTVALIDATIONFAILURE,+ UsageLogEvent_EventType_CRYPTOSELFTESTCOMPLETED,+ UsageLogEvent_EventType_KEYDESTRUCTION,+ UsageLogEvent_EventType_KEYGENERATED,+ UsageLogEvent_EventType_KEYIMPORT,+ UsageLogEvent_EventType_KEYINTEGRITYVIOLATION,+ UsageLogEvent_EventType_LOGGINGSTARTED,+ UsageLogEvent_EventType_LOGGINGSTOPPED,+ UsageLogEvent_EventType_LOGBUFFERSIZECRITICAL,+ UsageLogEvent_EventType_MEDIAMOUNT,+ UsageLogEvent_EventType_MEDIAUNMOUNT,+ UsageLogEvent_EventType_OSSHUTDOWN,+ UsageLogEvent_EventType_OSSTARTUP,+ UsageLogEvent_EventType_REMOTELOCK,+ UsageLogEvent_EventType_WIPEFAILURE,+ UsageLogEvent_EventType_Connect,+ UsageLogEvent_EventType_Dns,+ UsageLogEvent_EventType_STOPLOSTMODEUSERATTEMPT,+ UsageLogEvent_EventType_LOSTMODEOUTGOINGPHONECALL,+ UsageLogEvent_EventType_LOSTMODELOCATION,+ UsageLogEvent_EventType_ENROLLMENTCOMPLETE,+ UsageLogEvent_EventType+ #-}++-- | The display mode of the web app.+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+ )++-- | Not used.+pattern WebApp_DisplayMode_DISPLAYMODEUNSPECIFIED :: WebApp_DisplayMode+pattern WebApp_DisplayMode_DISPLAYMODEUNSPECIFIED = WebApp_DisplayMode "DISPLAY_MODE_UNSPECIFIED"++-- | 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 "MINIMAL_UI"++-- | 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 "FULL_SCREEN"++{-# COMPLETE+ WebApp_DisplayMode_DISPLAYMODEUNSPECIFIED,+ WebApp_DisplayMode_MINIMALUI,+ WebApp_DisplayMode_Standalone,+ WebApp_DisplayMode_FULLSCREEN,+ WebApp_DisplayMode+ #-}++newtype WebToken_EnabledFeaturesItem = WebToken_EnabledFeaturesItem {fromWebToken_EnabledFeaturesItem :: 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 feature.+pattern WebToken_EnabledFeaturesItem_FEATUREUNSPECIFIED :: WebToken_EnabledFeaturesItem+pattern WebToken_EnabledFeaturesItem_FEATUREUNSPECIFIED = WebToken_EnabledFeaturesItem "FEATURE_UNSPECIFIED"++-- | The Managed Play search apps page (https:\/\/developers.google.com\/android\/management\/apps#search-apps).+pattern WebToken_EnabledFeaturesItem_PLAYSEARCH :: WebToken_EnabledFeaturesItem+pattern WebToken_EnabledFeaturesItem_PLAYSEARCH = WebToken_EnabledFeaturesItem "PLAY_SEARCH"++-- | The private apps page (https:\/\/developers.google.com\/android\/management\/apps#private-apps).+pattern WebToken_EnabledFeaturesItem_PRIVATEAPPS :: WebToken_EnabledFeaturesItem+pattern WebToken_EnabledFeaturesItem_PRIVATEAPPS = WebToken_EnabledFeaturesItem "PRIVATE_APPS"++-- | The Web Apps page (https:\/\/developers.google.com\/android\/management\/apps#web-apps).+pattern WebToken_EnabledFeaturesItem_WEBAPPS :: WebToken_EnabledFeaturesItem+pattern WebToken_EnabledFeaturesItem_WEBAPPS = WebToken_EnabledFeaturesItem "WEB_APPS"++-- | The organize apps page (https:\/\/developers.google.com\/android\/management\/apps#organize-apps).+pattern WebToken_EnabledFeaturesItem_STOREBUILDER :: WebToken_EnabledFeaturesItem+pattern WebToken_EnabledFeaturesItem_STOREBUILDER = WebToken_EnabledFeaturesItem "STORE_BUILDER"++-- | The managed configurations page (https:\/\/developers.google.com\/android\/management\/managed-configurations-iframe).+pattern WebToken_EnabledFeaturesItem_MANAGEDCONFIGURATIONS :: WebToken_EnabledFeaturesItem+pattern WebToken_EnabledFeaturesItem_MANAGEDCONFIGURATIONS = WebToken_EnabledFeaturesItem "MANAGED_CONFIGURATIONS"++-- | The zero-touch iframe (https:\/\/developers.google.com\/android\/management\/zero-touch-iframe).+pattern WebToken_EnabledFeaturesItem_ZEROTOUCHCUSTOMERMANAGEMENT :: WebToken_EnabledFeaturesItem+pattern WebToken_EnabledFeaturesItem_ZEROTOUCHCUSTOMERMANAGEMENT = WebToken_EnabledFeaturesItem "ZERO_TOUCH_CUSTOMER_MANAGEMENT"++{-# COMPLETE+ WebToken_EnabledFeaturesItem_FEATUREUNSPECIFIED,+ WebToken_EnabledFeaturesItem_PLAYSEARCH,+ WebToken_EnabledFeaturesItem_PRIVATEAPPS,+ WebToken_EnabledFeaturesItem_WEBAPPS,+ WebToken_EnabledFeaturesItem_STOREBUILDER,+ WebToken_EnabledFeaturesItem_MANAGEDCONFIGURATIONS,+ WebToken_EnabledFeaturesItem_ZEROTOUCHCUSTOMERMANAGEMENT,+ WebToken_EnabledFeaturesItem+ #-}++newtype WebToken_PermissionsItem = WebToken_PermissionsItem {fromWebToken_PermissionsItem :: 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 ignored.+pattern WebToken_PermissionsItem_WEBTOKENPERMISSIONUNSPECIFIED :: WebToken_PermissionsItem+pattern WebToken_PermissionsItem_WEBTOKENPERMISSIONUNSPECIFIED = WebToken_PermissionsItem "WEB_TOKEN_PERMISSION_UNSPECIFIED"++-- | The permission to approve apps for the enterprise.+pattern WebToken_PermissionsItem_APPROVEAPPS :: WebToken_PermissionsItem+pattern WebToken_PermissionsItem_APPROVEAPPS = WebToken_PermissionsItem "APPROVE_APPS"++{-# COMPLETE+ WebToken_PermissionsItem_WEBTOKENPERMISSIONUNSPECIFIED,+ WebToken_PermissionsItem_APPROVEAPPS,+ WebToken_PermissionsItem+ #-}++-- | Required. Wi-Fi roaming mode for the specified SSID.+newtype WifiRoamingSetting_WifiRoamingMode = WifiRoamingSetting_WifiRoamingMode {fromWifiRoamingSetting_WifiRoamingMode :: 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 WIFI/ROAMING/DEFAULT.+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGMODEUNSPECIFIED :: WifiRoamingSetting_WifiRoamingMode+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGMODEUNSPECIFIED = WifiRoamingSetting_WifiRoamingMode "WIFI_ROAMING_MODE_UNSPECIFIED"++-- | Wi-Fi roaming is disabled. Supported on Android 15 and above on fully managed devices and work profiles on company-owned devices. A nonComplianceDetail with MANAGEMENT/MODE is reported for other management modes. A nonComplianceDetail with API/LEVEL is reported if the Android version is less than 15.+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDISABLED :: WifiRoamingSetting_WifiRoamingMode+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDISABLED = WifiRoamingSetting_WifiRoamingMode "WIFI_ROAMING_DISABLED"++-- | Default Wi-Fi roaming mode of the device.+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDEFAULT :: WifiRoamingSetting_WifiRoamingMode+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDEFAULT = WifiRoamingSetting_WifiRoamingMode "WIFI_ROAMING_DEFAULT"++-- | Aggressive roaming mode which allows quicker Wi-Fi roaming. Supported on Android 15 and above on fully managed devices and work profiles on company-owned devices. A nonComplianceDetail with MANAGEMENT/MODE is reported for other management modes. A nonComplianceDetail with API/LEVEL is reported if the Android version is less than 15. A nonComplianceDetail with DEVICE_INCOMPATIBLE is reported if the device does not support aggressive roaming mode.+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGAGGRESSIVE :: WifiRoamingSetting_WifiRoamingMode+pattern WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGAGGRESSIVE = WifiRoamingSetting_WifiRoamingMode "WIFI_ROAMING_AGGRESSIVE"++{-# COMPLETE+ WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGMODEUNSPECIFIED,+ WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDISABLED,+ WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGDEFAULT,+ WifiRoamingSetting_WifiRoamingMode_WIFIROAMINGAGGRESSIVE,+ WifiRoamingSetting_WifiRoamingMode+ #-}++-- | Type of the Wi-Fi SSID policy to be applied.+newtype WifiSsidPolicy_WifiSsidPolicyType = WifiSsidPolicy_WifiSsidPolicyType {fromWifiSsidPolicy_WifiSsidPolicyType :: 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+ )++-- | Defaults to WIFI/SSID/DENYLIST. wifiSsids must not be set. There are no restrictions on which SSID the device can connect to.+pattern WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDPOLICYTYPEUNSPECIFIED :: WifiSsidPolicy_WifiSsidPolicyType+pattern WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDPOLICYTYPEUNSPECIFIED = WifiSsidPolicy_WifiSsidPolicyType "WIFI_SSID_POLICY_TYPE_UNSPECIFIED"++-- | The device cannot connect to any Wi-Fi network whose SSID is in wifiSsids, but can connect to other networks.+pattern WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDDENYLIST :: WifiSsidPolicy_WifiSsidPolicyType+pattern WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDDENYLIST = WifiSsidPolicy_WifiSsidPolicyType "WIFI_SSID_DENYLIST"++-- | The device can make Wi-Fi connections only to the SSIDs in wifiSsids. wifiSsids must not be empty. The device will not be able to connect to any other Wi-Fi network.+pattern WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDALLOWLIST :: WifiSsidPolicy_WifiSsidPolicyType+pattern WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDALLOWLIST = WifiSsidPolicy_WifiSsidPolicyType "WIFI_SSID_ALLOWLIST"++{-# COMPLETE+ WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDPOLICYTYPEUNSPECIFIED,+ WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDDENYLIST,+ WifiSsidPolicy_WifiSsidPolicyType_WIFISSIDALLOWLIST,+ WifiSsidPolicy_WifiSsidPolicyType+ #-}++-- | Optional flags that control the device wiping behavior.+newtype EnterprisesDevicesDeleteWipeDataFlags = EnterprisesDevicesDeleteWipeDataFlags {fromEnterprisesDevicesDeleteWipeDataFlags :: 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 ignored.+pattern EnterprisesDevicesDeleteWipeDataFlags_WIPEDATAFLAGUNSPECIFIED :: EnterprisesDevicesDeleteWipeDataFlags+pattern EnterprisesDevicesDeleteWipeDataFlags_WIPEDATAFLAGUNSPECIFIED = EnterprisesDevicesDeleteWipeDataFlags "WIPE_DATA_FLAG_UNSPECIFIED"++-- | Preserve the factory reset protection data on the device.+pattern EnterprisesDevicesDeleteWipeDataFlags_PRESERVERESETPROTECTIONDATA :: EnterprisesDevicesDeleteWipeDataFlags+pattern EnterprisesDevicesDeleteWipeDataFlags_PRESERVERESETPROTECTIONDATA = EnterprisesDevicesDeleteWipeDataFlags "PRESERVE_RESET_PROTECTION_DATA"++-- | Additionally wipe the device\'s external storage (such as SD cards).+pattern EnterprisesDevicesDeleteWipeDataFlags_WIPEEXTERNALSTORAGE :: EnterprisesDevicesDeleteWipeDataFlags+pattern EnterprisesDevicesDeleteWipeDataFlags_WIPEEXTERNALSTORAGE = EnterprisesDevicesDeleteWipeDataFlags "WIPE_EXTERNAL_STORAGE"++{-# COMPLETE+ EnterprisesDevicesDeleteWipeDataFlags_WIPEDATAFLAGUNSPECIFIED,+ EnterprisesDevicesDeleteWipeDataFlags_PRESERVERESETPROTECTIONDATA,+ EnterprisesDevicesDeleteWipeDataFlags_WIPEEXTERNALSTORAGE,+ EnterprisesDevicesDeleteWipeDataFlags+ #-}++-- | Specifies which Enterprise fields to return. This method only supports BASIC.+newtype EnterprisesListView = EnterprisesListView {fromEnterprisesListView :: 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 API will default to the BASIC view for the List method.+pattern EnterprisesListView_ENTERPRISEVIEWUNSPECIFIED :: EnterprisesListView+pattern EnterprisesListView_ENTERPRISEVIEWUNSPECIFIED = EnterprisesListView "ENTERPRISE_VIEW_UNSPECIFIED"++-- | Includes name and enterprise/display/name fields.+pattern EnterprisesListView_Basic :: EnterprisesListView+pattern EnterprisesListView_Basic = EnterprisesListView "BASIC"++{-# COMPLETE+ EnterprisesListView_ENTERPRISEVIEWUNSPECIFIED,+ EnterprisesListView_Basic,+ EnterprisesListView+ #-}
+ gen/Gogol/AndroidManagement/ProvisioningInfo/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.AndroidManagement.ProvisioningInfo.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)+--+-- Get the device provisioning information by the identifier provided in the sign-in url.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.provisioningInfo.get@.+module Gogol.AndroidManagement.ProvisioningInfo.Get+ ( -- * Resource+ AndroidManagementProvisioningInfoGetResource,++ -- ** Constructing a Request+ AndroidManagementProvisioningInfoGet (..),+ newAndroidManagementProvisioningInfoGet,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.provisioningInfo.get@ method which the+-- 'AndroidManagementProvisioningInfoGet' request conforms to.+type AndroidManagementProvisioningInfoGetResource =+ "v1"+ Core.:> Core.Capture "name" 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] ProvisioningInfo++-- | Get the device provisioning information by the identifier provided in the sign-in url.+--+-- /See:/ 'newAndroidManagementProvisioningInfoGet' smart constructor.+data AndroidManagementProvisioningInfoGet = AndroidManagementProvisioningInfoGet+ { -- | V1 error format.+ xgafv :: (Core.Maybe Xgafv),+ -- | OAuth access token.+ accessToken :: (Core.Maybe Core.Text),+ -- | JSONP+ callback :: (Core.Maybe Core.Text),+ -- | Required. The identifier that Android Device Policy passes to the 3P sign-in page in the form of provisioningInfo\/{provisioning_info}.+ name :: 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 'AndroidManagementProvisioningInfoGet' with the minimum fields required to make a request.+newAndroidManagementProvisioningInfoGet ::+ -- | Required. The identifier that Android Device Policy passes to the 3P sign-in page in the form of provisioningInfo\/{provisioning_info}. See 'name'.+ Core.Text ->+ AndroidManagementProvisioningInfoGet+newAndroidManagementProvisioningInfoGet name =+ AndroidManagementProvisioningInfoGet+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ callback = Core.Nothing,+ name = name,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementProvisioningInfoGet where+ type Rs AndroidManagementProvisioningInfoGet = ProvisioningInfo+ type+ Scopes AndroidManagementProvisioningInfoGet =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementProvisioningInfoGet {..} =+ go+ name+ xgafv+ accessToken+ callback+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementProvisioningInfoGetResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/SignupUrls/Create.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.AndroidManagement.SignupUrls.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)+--+-- Creates an enterprise signup URL.+--+-- /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.signupUrls.create@.+module Gogol.AndroidManagement.SignupUrls.Create+ ( -- * Resource+ AndroidManagementSignupUrlsCreateResource,++ -- ** Constructing a Request+ AndroidManagementSignupUrlsCreate (..),+ newAndroidManagementSignupUrlsCreate,+ )+where++import Gogol.AndroidManagement.Types+import Gogol.Prelude qualified as Core++-- | A resource alias for @androidmanagement.signupUrls.create@ method which the+-- 'AndroidManagementSignupUrlsCreate' request conforms to.+type AndroidManagementSignupUrlsCreateResource =+ "v1"+ Core.:> "signupUrls"+ 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 "projectId" 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] SignupUrl++-- | Creates an enterprise signup URL.+--+-- /See:/ 'newAndroidManagementSignupUrlsCreate' smart constructor.+data AndroidManagementSignupUrlsCreate = AndroidManagementSignupUrlsCreate+ { -- | 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 that the admin will be redirected to after successfully creating an enterprise. Before redirecting there the system will add a query parameter to this URL named enterpriseToken which will contain an opaque token to be used for the create enterprise request. The URL will be parsed then reformatted in order to add the enterpriseToken parameter, so there may be some minor formatting changes.+ callbackUrl :: (Core.Maybe Core.Text),+ -- | The ID of the Google Cloud Platform project which will own the enterprise.+ projectId :: (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 'AndroidManagementSignupUrlsCreate' with the minimum fields required to make a request.+newAndroidManagementSignupUrlsCreate ::+ AndroidManagementSignupUrlsCreate+newAndroidManagementSignupUrlsCreate =+ AndroidManagementSignupUrlsCreate+ { xgafv = Core.Nothing,+ accessToken = Core.Nothing,+ adminEmail = Core.Nothing,+ allowedDomains = Core.Nothing,+ callback = Core.Nothing,+ callbackUrl = Core.Nothing,+ projectId = Core.Nothing,+ uploadType = Core.Nothing,+ uploadProtocol = Core.Nothing+ }++instance Core.GoogleRequest AndroidManagementSignupUrlsCreate where+ type Rs AndroidManagementSignupUrlsCreate = SignupUrl+ type+ Scopes AndroidManagementSignupUrlsCreate =+ '[Androidmanagement'FullControl]+ requestClient AndroidManagementSignupUrlsCreate {..} =+ go+ xgafv+ accessToken+ adminEmail+ (allowedDomains Core.^. Core._Default)+ callback+ callbackUrl+ projectId+ uploadType+ uploadProtocol+ (Core.Just Core.AltJSON)+ androidManagementService+ where+ go =+ Core.buildClient+ ( Core.Proxy ::+ Core.Proxy AndroidManagementSignupUrlsCreateResource+ )+ Core.mempty
+ gen/Gogol/AndroidManagement/Types.hs view
@@ -0,0 +1,1020 @@+{-# 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.AndroidManagement.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.AndroidManagement.Types+ ( -- * Configuration+ androidManagementService,++ -- * OAuth Scopes+ Androidmanagement'FullControl,++ -- * Types++ -- ** Xgafv+ Xgafv (..),++ -- ** AdbShellCommandEvent+ AdbShellCommandEvent (..),+ newAdbShellCommandEvent,++ -- ** AdbShellInteractiveEvent+ AdbShellInteractiveEvent (..),+ newAdbShellInteractiveEvent,++ -- ** AdvancedSecurityOverrides+ AdvancedSecurityOverrides (..),+ newAdvancedSecurityOverrides,++ -- ** AdvancedSecurityOverrides_CommonCriteriaMode+ AdvancedSecurityOverrides_CommonCriteriaMode (..),++ -- ** AdvancedSecurityOverrides_ContentProtectionPolicy+ AdvancedSecurityOverrides_ContentProtectionPolicy (..),++ -- ** AdvancedSecurityOverrides_DeveloperSettings+ AdvancedSecurityOverrides_DeveloperSettings (..),++ -- ** AdvancedSecurityOverrides_GooglePlayProtectVerifyApps+ AdvancedSecurityOverrides_GooglePlayProtectVerifyApps (..),++ -- ** AdvancedSecurityOverrides_MtePolicy+ AdvancedSecurityOverrides_MtePolicy (..),++ -- ** AdvancedSecurityOverrides_UntrustedAppsPolicy+ AdvancedSecurityOverrides_UntrustedAppsPolicy (..),++ -- ** AlwaysOnVpnPackage+ AlwaysOnVpnPackage (..),+ newAlwaysOnVpnPackage,++ -- ** ApiLevelCondition+ ApiLevelCondition (..),+ newApiLevelCondition,++ -- ** AppProcessInfo+ AppProcessInfo (..),+ newAppProcessInfo,++ -- ** AppProcessStartEvent+ AppProcessStartEvent (..),+ newAppProcessStartEvent,++ -- ** AppTrackInfo+ AppTrackInfo (..),+ newAppTrackInfo,++ -- ** AppVersion+ AppVersion (..),+ newAppVersion,++ -- ** Application+ Application (..),+ newApplication,++ -- ** Application_AppPricing+ Application_AppPricing (..),++ -- ** Application_ContentRating+ Application_ContentRating (..),++ -- ** Application_DistributionChannel+ Application_DistributionChannel (..),++ -- ** Application_FeaturesItem+ Application_FeaturesItem (..),++ -- ** ApplicationEvent+ ApplicationEvent (..),+ newApplicationEvent,++ -- ** ApplicationEvent_EventType+ ApplicationEvent_EventType (..),++ -- ** ApplicationPermission+ ApplicationPermission (..),+ newApplicationPermission,++ -- ** ApplicationPolicy+ ApplicationPolicy (..),+ newApplicationPolicy,++ -- ** ApplicationPolicy_AlwaysOnVpnLockdownExemption+ ApplicationPolicy_AlwaysOnVpnLockdownExemption (..),++ -- ** ApplicationPolicy_AutoUpdateMode+ ApplicationPolicy_AutoUpdateMode (..),++ -- ** ApplicationPolicy_ConnectedWorkAndPersonalApp+ ApplicationPolicy_ConnectedWorkAndPersonalApp (..),++ -- ** ApplicationPolicy_CredentialProviderPolicy+ ApplicationPolicy_CredentialProviderPolicy (..),++ -- ** ApplicationPolicy_DefaultPermissionPolicy+ ApplicationPolicy_DefaultPermissionPolicy (..),++ -- ** ApplicationPolicy_DelegatedScopesItem+ ApplicationPolicy_DelegatedScopesItem (..),++ -- ** ApplicationPolicy_InstallType+ ApplicationPolicy_InstallType (..),++ -- ** ApplicationPolicy_ManagedConfiguration+ ApplicationPolicy_ManagedConfiguration (..),+ newApplicationPolicy_ManagedConfiguration,++ -- ** ApplicationPolicy_UserControlSettings+ ApplicationPolicy_UserControlSettings (..),++ -- ** ApplicationPolicy_WorkProfileWidgets+ ApplicationPolicy_WorkProfileWidgets (..),++ -- ** ApplicationReport+ ApplicationReport (..),+ newApplicationReport,++ -- ** ApplicationReport_ApplicationSource+ ApplicationReport_ApplicationSource (..),++ -- ** ApplicationReport_State+ ApplicationReport_State (..),++ -- ** ApplicationReport_UserFacingType+ ApplicationReport_UserFacingType (..),++ -- ** ApplicationReportingSettings+ ApplicationReportingSettings (..),+ newApplicationReportingSettings,++ -- ** BatchUsageLogEvents+ BatchUsageLogEvents (..),+ newBatchUsageLogEvents,++ -- ** BlockAction+ BlockAction (..),+ newBlockAction,++ -- ** BlockAction_BlockScope+ BlockAction_BlockScope (..),++ -- ** CertAuthorityInstalledEvent+ CertAuthorityInstalledEvent (..),+ newCertAuthorityInstalledEvent,++ -- ** CertAuthorityRemovedEvent+ CertAuthorityRemovedEvent (..),+ newCertAuthorityRemovedEvent,++ -- ** CertValidationFailureEvent+ CertValidationFailureEvent (..),+ newCertValidationFailureEvent,++ -- ** ChoosePrivateKeyRule+ ChoosePrivateKeyRule (..),+ newChoosePrivateKeyRule,++ -- ** ClearAppsDataParams+ ClearAppsDataParams (..),+ newClearAppsDataParams,++ -- ** ClearAppsDataStatus+ ClearAppsDataStatus (..),+ newClearAppsDataStatus,++ -- ** ClearAppsDataStatus_Results+ ClearAppsDataStatus_Results (..),+ newClearAppsDataStatus_Results,++ -- ** Command+ Command (..),+ newCommand,++ -- ** Command_ErrorCode+ Command_ErrorCode (..),++ -- ** Command_ResetPasswordFlagsItem+ Command_ResetPasswordFlagsItem (..),++ -- ** Command_Type+ Command_Type (..),++ -- ** CommonCriteriaModeInfo+ CommonCriteriaModeInfo (..),+ newCommonCriteriaModeInfo,++ -- ** CommonCriteriaModeInfo_CommonCriteriaModeStatus+ CommonCriteriaModeInfo_CommonCriteriaModeStatus (..),++ -- ** CommonCriteriaModeInfo_PolicySignatureVerificationStatus+ CommonCriteriaModeInfo_PolicySignatureVerificationStatus (..),++ -- ** ComplianceRule+ ComplianceRule (..),+ newComplianceRule,++ -- ** ConnectEvent+ ConnectEvent (..),+ newConnectEvent,++ -- ** ContactInfo+ ContactInfo (..),+ newContactInfo,++ -- ** ContentProviderEndpoint+ ContentProviderEndpoint (..),+ newContentProviderEndpoint,++ -- ** CrossProfilePolicies+ CrossProfilePolicies (..),+ newCrossProfilePolicies,++ -- ** CrossProfilePolicies_CrossProfileCopyPaste+ CrossProfilePolicies_CrossProfileCopyPaste (..),++ -- ** CrossProfilePolicies_CrossProfileDataSharing+ CrossProfilePolicies_CrossProfileDataSharing (..),++ -- ** CrossProfilePolicies_ShowWorkContactsInPersonalProfile+ CrossProfilePolicies_ShowWorkContactsInPersonalProfile (..),++ -- ** CrossProfilePolicies_WorkProfileWidgetsDefault+ CrossProfilePolicies_WorkProfileWidgetsDefault (..),++ -- ** CryptoSelfTestCompletedEvent+ CryptoSelfTestCompletedEvent (..),+ newCryptoSelfTestCompletedEvent,++ -- ** Date+ Date (..),+ newDate,++ -- ** Device+ Device (..),+ newDevice,++ -- ** Device_AppliedState+ Device_AppliedState (..),++ -- ** Device_ManagementMode+ Device_ManagementMode (..),++ -- ** Device_Ownership+ Device_Ownership (..),++ -- ** Device_State+ Device_State (..),++ -- ** Device_SystemProperties+ Device_SystemProperties (..),+ newDevice_SystemProperties,++ -- ** DeviceConnectivityManagement+ DeviceConnectivityManagement (..),+ newDeviceConnectivityManagement,++ -- ** DeviceConnectivityManagement_ConfigureWifi+ DeviceConnectivityManagement_ConfigureWifi (..),++ -- ** DeviceConnectivityManagement_TetheringSettings+ DeviceConnectivityManagement_TetheringSettings (..),++ -- ** DeviceConnectivityManagement_UsbDataAccess+ DeviceConnectivityManagement_UsbDataAccess (..),++ -- ** DeviceConnectivityManagement_WifiDirectSettings+ DeviceConnectivityManagement_WifiDirectSettings (..),++ -- ** DeviceRadioState+ DeviceRadioState (..),+ newDeviceRadioState,++ -- ** DeviceRadioState_AirplaneModeState+ DeviceRadioState_AirplaneModeState (..),++ -- ** DeviceRadioState_CellularTwoGState+ DeviceRadioState_CellularTwoGState (..),++ -- ** DeviceRadioState_MinimumWifiSecurityLevel+ DeviceRadioState_MinimumWifiSecurityLevel (..),++ -- ** DeviceRadioState_UltraWidebandState+ DeviceRadioState_UltraWidebandState (..),++ -- ** DeviceRadioState_WifiState+ DeviceRadioState_WifiState (..),++ -- ** DeviceSettings+ DeviceSettings (..),+ newDeviceSettings,++ -- ** DeviceSettings_EncryptionStatus+ DeviceSettings_EncryptionStatus (..),++ -- ** Display+ Display (..),+ newDisplay,++ -- ** Display_State+ Display_State (..),++ -- ** DisplaySettings+ DisplaySettings (..),+ newDisplaySettings,++ -- ** DnsEvent+ DnsEvent (..),+ newDnsEvent,++ -- ** DpcMigrationInfo+ DpcMigrationInfo (..),+ newDpcMigrationInfo,++ -- ** Empty+ Empty (..),+ newEmpty,++ -- ** EnrollmentCompleteEvent+ EnrollmentCompleteEvent (..),+ newEnrollmentCompleteEvent,++ -- ** EnrollmentToken+ EnrollmentToken (..),+ newEnrollmentToken,++ -- ** EnrollmentToken_AllowPersonalUsage+ EnrollmentToken_AllowPersonalUsage (..),++ -- ** Enterprise+ Enterprise (..),+ newEnterprise,++ -- ** Enterprise_EnabledNotificationTypesItem+ Enterprise_EnabledNotificationTypesItem (..),++ -- ** Enterprise_EnterpriseType+ Enterprise_EnterpriseType (..),++ -- ** Enterprise_ManagedGoogleDomainType+ Enterprise_ManagedGoogleDomainType (..),++ -- ** Enterprise_ManagedGooglePlayAccountsEnterpriseType+ Enterprise_ManagedGooglePlayAccountsEnterpriseType (..),++ -- ** ExtensionConfig+ ExtensionConfig (..),+ newExtensionConfig,++ -- ** ExternalData+ ExternalData (..),+ newExternalData,++ -- ** FilePulledEvent+ FilePulledEvent (..),+ newFilePulledEvent,++ -- ** FilePushedEvent+ FilePushedEvent (..),+ newFilePushedEvent,++ -- ** FreezePeriod+ FreezePeriod (..),+ newFreezePeriod,++ -- ** GenerateEnterpriseUpgradeUrlRequest+ GenerateEnterpriseUpgradeUrlRequest (..),+ newGenerateEnterpriseUpgradeUrlRequest,++ -- ** GenerateEnterpriseUpgradeUrlResponse+ GenerateEnterpriseUpgradeUrlResponse (..),+ newGenerateEnterpriseUpgradeUrlResponse,++ -- ** GoogleAuthenticationSettings+ GoogleAuthenticationSettings (..),+ newGoogleAuthenticationSettings,++ -- ** GoogleAuthenticationSettings_GoogleAuthenticationRequired+ GoogleAuthenticationSettings_GoogleAuthenticationRequired (..),++ -- ** HardwareInfo+ HardwareInfo (..),+ newHardwareInfo,++ -- ** HardwareStatus+ HardwareStatus (..),+ newHardwareStatus,++ -- ** InstallConstraint+ InstallConstraint (..),+ newInstallConstraint,++ -- ** InstallConstraint_ChargingConstraint+ InstallConstraint_ChargingConstraint (..),++ -- ** InstallConstraint_DeviceIdleConstraint+ InstallConstraint_DeviceIdleConstraint (..),++ -- ** InstallConstraint_NetworkTypeConstraint+ InstallConstraint_NetworkTypeConstraint (..),++ -- ** IssueCommandResponse+ IssueCommandResponse (..),+ newIssueCommandResponse,++ -- ** KeyDestructionEvent+ KeyDestructionEvent (..),+ newKeyDestructionEvent,++ -- ** KeyGeneratedEvent+ KeyGeneratedEvent (..),+ newKeyGeneratedEvent,++ -- ** KeyImportEvent+ KeyImportEvent (..),+ newKeyImportEvent,++ -- ** KeyIntegrityViolationEvent+ KeyIntegrityViolationEvent (..),+ newKeyIntegrityViolationEvent,++ -- ** KeyedAppState+ KeyedAppState (..),+ newKeyedAppState,++ -- ** KeyedAppState_Severity+ KeyedAppState_Severity (..),++ -- ** KeyguardDismissAuthAttemptEvent+ KeyguardDismissAuthAttemptEvent (..),+ newKeyguardDismissAuthAttemptEvent,++ -- ** KeyguardDismissedEvent+ KeyguardDismissedEvent (..),+ newKeyguardDismissedEvent,++ -- ** KeyguardSecuredEvent+ KeyguardSecuredEvent (..),+ newKeyguardSecuredEvent,++ -- ** KioskCustomization+ KioskCustomization (..),+ newKioskCustomization,++ -- ** KioskCustomization_DeviceSettings+ KioskCustomization_DeviceSettings (..),++ -- ** KioskCustomization_PowerButtonActions+ KioskCustomization_PowerButtonActions (..),++ -- ** KioskCustomization_StatusBar+ KioskCustomization_StatusBar (..),++ -- ** KioskCustomization_SystemErrorWarnings+ KioskCustomization_SystemErrorWarnings (..),++ -- ** KioskCustomization_SystemNavigation+ KioskCustomization_SystemNavigation (..),++ -- ** LaunchAppAction+ LaunchAppAction (..),+ newLaunchAppAction,++ -- ** ListDevicesResponse+ ListDevicesResponse (..),+ newListDevicesResponse,++ -- ** ListEnrollmentTokensResponse+ ListEnrollmentTokensResponse (..),+ newListEnrollmentTokensResponse,++ -- ** ListEnterprisesResponse+ ListEnterprisesResponse (..),+ newListEnterprisesResponse,++ -- ** ListMigrationTokensResponse+ ListMigrationTokensResponse (..),+ newListMigrationTokensResponse,++ -- ** ListOperationsResponse+ ListOperationsResponse (..),+ newListOperationsResponse,++ -- ** ListPoliciesResponse+ ListPoliciesResponse (..),+ newListPoliciesResponse,++ -- ** ListWebAppsResponse+ ListWebAppsResponse (..),+ newListWebAppsResponse,++ -- ** Location+ Location (..),+ newLocation,++ -- ** LogBufferSizeCriticalEvent+ LogBufferSizeCriticalEvent (..),+ newLogBufferSizeCriticalEvent,++ -- ** LoggingStartedEvent+ LoggingStartedEvent (..),+ newLoggingStartedEvent,++ -- ** LoggingStoppedEvent+ LoggingStoppedEvent (..),+ newLoggingStoppedEvent,++ -- ** LostModeLocationEvent+ LostModeLocationEvent (..),+ newLostModeLocationEvent,++ -- ** LostModeOutgoingPhoneCallEvent+ LostModeOutgoingPhoneCallEvent (..),+ newLostModeOutgoingPhoneCallEvent,++ -- ** ManagedConfigurationTemplate+ ManagedConfigurationTemplate (..),+ newManagedConfigurationTemplate,++ -- ** ManagedConfigurationTemplate_ConfigurationVariables+ ManagedConfigurationTemplate_ConfigurationVariables (..),+ newManagedConfigurationTemplate_ConfigurationVariables,++ -- ** ManagedProperty+ ManagedProperty (..),+ newManagedProperty,++ -- ** ManagedProperty_Type+ ManagedProperty_Type (..),++ -- ** ManagedPropertyEntry+ ManagedPropertyEntry (..),+ newManagedPropertyEntry,++ -- ** MediaMountEvent+ MediaMountEvent (..),+ newMediaMountEvent,++ -- ** MediaUnmountEvent+ MediaUnmountEvent (..),+ newMediaUnmountEvent,++ -- ** MemoryEvent+ MemoryEvent (..),+ newMemoryEvent,++ -- ** MemoryEvent_EventType+ MemoryEvent_EventType (..),++ -- ** MemoryInfo+ MemoryInfo (..),+ newMemoryInfo,++ -- ** MigrationToken+ MigrationToken (..),+ newMigrationToken,++ -- ** MigrationToken_ManagementMode+ MigrationToken_ManagementMode (..),++ -- ** NetworkInfo+ NetworkInfo (..),+ newNetworkInfo,++ -- ** NonComplianceDetail+ NonComplianceDetail (..),+ newNonComplianceDetail,++ -- ** NonComplianceDetail_InstallationFailureReason+ NonComplianceDetail_InstallationFailureReason (..),++ -- ** NonComplianceDetail_NonComplianceReason+ NonComplianceDetail_NonComplianceReason (..),++ -- ** NonComplianceDetail_SpecificNonComplianceReason+ NonComplianceDetail_SpecificNonComplianceReason (..),++ -- ** NonComplianceDetailCondition+ NonComplianceDetailCondition (..),+ newNonComplianceDetailCondition,++ -- ** NonComplianceDetailCondition_NonComplianceReason+ NonComplianceDetailCondition_NonComplianceReason (..),++ -- ** OncCertificateProvider+ OncCertificateProvider (..),+ newOncCertificateProvider,++ -- ** OncWifiContext+ OncWifiContext (..),+ newOncWifiContext,++ -- ** Operation+ Operation (..),+ newOperation,++ -- ** Operation_Metadata+ Operation_Metadata (..),+ newOperation_Metadata,++ -- ** Operation_Response+ Operation_Response (..),+ newOperation_Response,++ -- ** OsShutdownEvent+ OsShutdownEvent (..),+ newOsShutdownEvent,++ -- ** OsStartupEvent+ OsStartupEvent (..),+ newOsStartupEvent,++ -- ** OsStartupEvent_VerifiedBootState+ OsStartupEvent_VerifiedBootState (..),++ -- ** OsStartupEvent_VerityMode+ OsStartupEvent_VerityMode (..),++ -- ** PackageNameList+ PackageNameList (..),+ newPackageNameList,++ -- ** PasswordPoliciesContext+ PasswordPoliciesContext (..),+ newPasswordPoliciesContext,++ -- ** PasswordPoliciesContext_PasswordPolicyScope+ PasswordPoliciesContext_PasswordPolicyScope (..),++ -- ** PasswordRequirements+ PasswordRequirements (..),+ newPasswordRequirements,++ -- ** PasswordRequirements_PasswordQuality+ PasswordRequirements_PasswordQuality (..),++ -- ** PasswordRequirements_PasswordScope+ PasswordRequirements_PasswordScope (..),++ -- ** PasswordRequirements_RequirePasswordUnlock+ PasswordRequirements_RequirePasswordUnlock (..),++ -- ** PasswordRequirements_UnifiedLockSettings+ PasswordRequirements_UnifiedLockSettings (..),++ -- ** PerAppResult+ PerAppResult (..),+ newPerAppResult,++ -- ** PerAppResult_ClearingResult+ PerAppResult_ClearingResult (..),++ -- ** PermissionGrant+ PermissionGrant (..),+ newPermissionGrant,++ -- ** PermissionGrant_Policy+ PermissionGrant_Policy (..),++ -- ** PersistentPreferredActivity+ PersistentPreferredActivity (..),+ newPersistentPreferredActivity,++ -- ** PersonalApplicationPolicy+ PersonalApplicationPolicy (..),+ newPersonalApplicationPolicy,++ -- ** PersonalApplicationPolicy_InstallType+ PersonalApplicationPolicy_InstallType (..),++ -- ** PersonalUsagePolicies+ PersonalUsagePolicies (..),+ newPersonalUsagePolicies,++ -- ** PersonalUsagePolicies_PersonalPlayStoreMode+ PersonalUsagePolicies_PersonalPlayStoreMode (..),++ -- ** PersonalUsagePolicies_PrivateSpacePolicy+ PersonalUsagePolicies_PrivateSpacePolicy (..),++ -- ** Policy+ Policy (..),+ newPolicy,++ -- ** Policy_AndroidDevicePolicyTracksItem+ Policy_AndroidDevicePolicyTracksItem (..),++ -- ** Policy_AppAutoUpdatePolicy+ Policy_AppAutoUpdatePolicy (..),++ -- ** Policy_AssistContentPolicy+ Policy_AssistContentPolicy (..),++ -- ** Policy_AutoDateAndTimeZone+ Policy_AutoDateAndTimeZone (..),++ -- ** Policy_CameraAccess+ Policy_CameraAccess (..),++ -- ** Policy_CredentialProviderPolicyDefault+ Policy_CredentialProviderPolicyDefault (..),++ -- ** Policy_DefaultPermissionPolicy+ Policy_DefaultPermissionPolicy (..),++ -- ** Policy_EncryptionPolicy+ Policy_EncryptionPolicy (..),++ -- ** Policy_KeyguardDisabledFeaturesItem+ Policy_KeyguardDisabledFeaturesItem (..),++ -- ** Policy_LocationMode+ Policy_LocationMode (..),++ -- ** Policy_MicrophoneAccess+ Policy_MicrophoneAccess (..),++ -- ** Policy_OpenNetworkConfiguration+ Policy_OpenNetworkConfiguration (..),+ newPolicy_OpenNetworkConfiguration,++ -- ** Policy_PlayStoreMode+ Policy_PlayStoreMode (..),++ -- ** Policy_PreferentialNetworkService+ Policy_PreferentialNetworkService (..),++ -- ** Policy_PrintingPolicy+ Policy_PrintingPolicy (..),++ -- ** Policy_StayOnPluggedModesItem+ Policy_StayOnPluggedModesItem (..),++ -- ** PolicyEnforcementRule+ PolicyEnforcementRule (..),+ newPolicyEnforcementRule,++ -- ** PostureDetail+ PostureDetail (..),+ newPostureDetail,++ -- ** PostureDetail_SecurityRisk+ PostureDetail_SecurityRisk (..),++ -- ** PowerManagementEvent+ PowerManagementEvent (..),+ newPowerManagementEvent,++ -- ** PowerManagementEvent_EventType+ PowerManagementEvent_EventType (..),++ -- ** ProvisioningInfo+ ProvisioningInfo (..),+ newProvisioningInfo,++ -- ** ProvisioningInfo_ManagementMode+ ProvisioningInfo_ManagementMode (..),++ -- ** ProvisioningInfo_Ownership+ ProvisioningInfo_Ownership (..),++ -- ** ProxyInfo+ ProxyInfo (..),+ newProxyInfo,++ -- ** RemoteLockEvent+ RemoteLockEvent (..),+ newRemoteLockEvent,++ -- ** ScreenBrightnessSettings+ ScreenBrightnessSettings (..),+ newScreenBrightnessSettings,++ -- ** ScreenBrightnessSettings_ScreenBrightnessMode+ ScreenBrightnessSettings_ScreenBrightnessMode (..),++ -- ** ScreenTimeoutSettings+ ScreenTimeoutSettings (..),+ newScreenTimeoutSettings,++ -- ** ScreenTimeoutSettings_ScreenTimeoutMode+ ScreenTimeoutSettings_ScreenTimeoutMode (..),++ -- ** SecurityPosture+ SecurityPosture (..),+ newSecurityPosture,++ -- ** SecurityPosture_DevicePosture+ SecurityPosture_DevicePosture (..),++ -- ** SetupAction+ SetupAction (..),+ newSetupAction,++ -- ** SigninDetail+ SigninDetail (..),+ newSigninDetail,++ -- ** SigninDetail_AllowPersonalUsage+ SigninDetail_AllowPersonalUsage (..),++ -- ** SigninDetail_DefaultStatus+ SigninDetail_DefaultStatus (..),++ -- ** SignupUrl+ SignupUrl (..),+ newSignupUrl,++ -- ** SoftwareInfo+ SoftwareInfo (..),+ newSoftwareInfo,++ -- ** SpecificNonComplianceContext+ SpecificNonComplianceContext (..),+ newSpecificNonComplianceContext,++ -- ** StartLostModeParams+ StartLostModeParams (..),+ newStartLostModeParams,++ -- ** StartLostModeStatus+ StartLostModeStatus (..),+ newStartLostModeStatus,++ -- ** StartLostModeStatus_Status+ StartLostModeStatus_Status (..),++ -- ** Status+ Status (..),+ newStatus,++ -- ** Status_DetailsItem+ Status_DetailsItem (..),+ newStatus_DetailsItem,++ -- ** StatusReportingSettings+ StatusReportingSettings (..),+ newStatusReportingSettings,++ -- ** StopLostModeParams+ StopLostModeParams (..),+ newStopLostModeParams,++ -- ** StopLostModeStatus+ StopLostModeStatus (..),+ newStopLostModeStatus,++ -- ** StopLostModeStatus_Status+ StopLostModeStatus_Status (..),++ -- ** StopLostModeUserAttemptEvent+ StopLostModeUserAttemptEvent (..),+ newStopLostModeUserAttemptEvent,++ -- ** StopLostModeUserAttemptEvent_Status+ StopLostModeUserAttemptEvent_Status (..),++ -- ** SystemUpdate+ SystemUpdate (..),+ newSystemUpdate,++ -- ** SystemUpdate_Type+ SystemUpdate_Type (..),++ -- ** SystemUpdateInfo+ SystemUpdateInfo (..),+ newSystemUpdateInfo,++ -- ** SystemUpdateInfo_UpdateStatus+ SystemUpdateInfo_UpdateStatus (..),++ -- ** TelephonyInfo+ TelephonyInfo (..),+ newTelephonyInfo,++ -- ** TermsAndConditions+ TermsAndConditions (..),+ newTermsAndConditions,++ -- ** UsageLog+ UsageLog (..),+ newUsageLog,++ -- ** UsageLog_EnabledLogTypesItem+ UsageLog_EnabledLogTypesItem (..),++ -- ** UsageLog_UploadOnCellularAllowedItem+ UsageLog_UploadOnCellularAllowedItem (..),++ -- ** UsageLogEvent+ UsageLogEvent (..),+ newUsageLogEvent,++ -- ** UsageLogEvent_EventType+ UsageLogEvent_EventType (..),++ -- ** User+ User (..),+ newUser,++ -- ** UserFacingMessage+ UserFacingMessage (..),+ newUserFacingMessage,++ -- ** UserFacingMessage_LocalizedMessages+ UserFacingMessage_LocalizedMessages (..),+ newUserFacingMessage_LocalizedMessages,++ -- ** WebApp+ WebApp (..),+ newWebApp,++ -- ** WebApp_DisplayMode+ WebApp_DisplayMode (..),++ -- ** WebAppIcon+ WebAppIcon (..),+ newWebAppIcon,++ -- ** WebToken+ WebToken (..),+ newWebToken,++ -- ** WebToken_EnabledFeaturesItem+ WebToken_EnabledFeaturesItem (..),++ -- ** WebToken_PermissionsItem+ WebToken_PermissionsItem (..),++ -- ** WifiRoamingPolicy+ WifiRoamingPolicy (..),+ newWifiRoamingPolicy,++ -- ** WifiRoamingSetting+ WifiRoamingSetting (..),+ newWifiRoamingSetting,++ -- ** WifiRoamingSetting_WifiRoamingMode+ WifiRoamingSetting_WifiRoamingMode (..),++ -- ** WifiSsid+ WifiSsid (..),+ newWifiSsid,++ -- ** WifiSsidPolicy+ WifiSsidPolicy (..),+ newWifiSsidPolicy,++ -- ** WifiSsidPolicy_WifiSsidPolicyType+ WifiSsidPolicy_WifiSsidPolicyType (..),++ -- ** WipeAction+ WipeAction (..),+ newWipeAction,++ -- ** WipeFailureEvent+ WipeFailureEvent (..),+ newWipeFailureEvent,++ -- ** EnterprisesDevicesDeleteWipeDataFlags+ EnterprisesDevicesDeleteWipeDataFlags (..),++ -- ** EnterprisesListView+ EnterprisesListView (..),+ )+where++import Gogol.AndroidManagement.Internal.Product+import Gogol.AndroidManagement.Internal.Sum+import Gogol.Prelude qualified as Core++-- | Default request referring to version @v1@ of the Android Management API. This contains the host and root path used as a starting point for constructing service requests.+androidManagementService :: Core.ServiceConfig+androidManagementService =+ Core.defaultService+ (Core.ServiceId "androidmanagement:v1")+ "androidmanagement.googleapis.com"++-- | Manage Android devices and apps for your customers+type Androidmanagement'FullControl =+ "https://www.googleapis.com/auth/androidmanagement"
− gen/Network/Google/AndroidManagement.hs
@@ -1,850 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE TypeOperators #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}-{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}---- |--- Module : Network.Google.AndroidManagement--- 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)------ The Android Management API provides remote enterprise management of--- Android devices and apps.------ /See:/ <https://developers.google.com/android/management Android Management API Reference>-module Network.Google.AndroidManagement- (- -- * Service Configuration- androidManagementService-- -- * OAuth Scopes- , androidManagementScope-- -- * API Declaration- , AndroidManagementAPI-- -- * Resources-- -- ** androidmanagement.enterprises.applications.get- , module Network.Google.Resource.AndroidManagement.Enterprises.Applications.Get-- -- ** androidmanagement.enterprises.create- , module Network.Google.Resource.AndroidManagement.Enterprises.Create-- -- ** androidmanagement.enterprises.devices.delete- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Delete-- -- ** androidmanagement.enterprises.devices.get- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Get-- -- ** androidmanagement.enterprises.devices.issueCommand- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.IssueCommand-- -- ** androidmanagement.enterprises.devices.list- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.List-- -- ** androidmanagement.enterprises.devices.operations.cancel- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel-- -- ** androidmanagement.enterprises.devices.operations.delete- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Delete-- -- ** androidmanagement.enterprises.devices.operations.get- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Get-- -- ** androidmanagement.enterprises.devices.operations.list- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.List-- -- ** androidmanagement.enterprises.devices.patch- , module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch-- -- ** androidmanagement.enterprises.enrollmentTokens.create- , module Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create-- -- ** androidmanagement.enterprises.enrollmentTokens.delete- , module Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Delete-- -- ** androidmanagement.enterprises.get- , module Network.Google.Resource.AndroidManagement.Enterprises.Get-- -- ** androidmanagement.enterprises.patch- , module Network.Google.Resource.AndroidManagement.Enterprises.Patch-- -- ** androidmanagement.enterprises.policies.delete- , module Network.Google.Resource.AndroidManagement.Enterprises.Policies.Delete-- -- ** androidmanagement.enterprises.policies.get- , module Network.Google.Resource.AndroidManagement.Enterprises.Policies.Get-- -- ** androidmanagement.enterprises.policies.list- , module Network.Google.Resource.AndroidManagement.Enterprises.Policies.List-- -- ** androidmanagement.enterprises.policies.patch- , module Network.Google.Resource.AndroidManagement.Enterprises.Policies.Patch-- -- ** androidmanagement.enterprises.webApps.create- , module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Create-- -- ** androidmanagement.enterprises.webApps.delete- , module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Delete-- -- ** androidmanagement.enterprises.webApps.get- , module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Get-- -- ** androidmanagement.enterprises.webApps.list- , module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.List-- -- ** androidmanagement.enterprises.webApps.patch- , module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Patch-- -- ** androidmanagement.enterprises.webTokens.create- , module Network.Google.Resource.AndroidManagement.Enterprises.WebTokens.Create-- -- ** androidmanagement.signupUrls.create- , module Network.Google.Resource.AndroidManagement.SignupURLs.Create-- -- * Types-- -- ** PowerManagementEventEventType- , PowerManagementEventEventType (..)-- -- ** Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- ** SystemUpdateType- , SystemUpdateType (..)-- -- ** ListPoliciesResponse- , ListPoliciesResponse- , listPoliciesResponse- , lprNextPageToken- , lprPolicies-- -- ** MemoryInfo- , MemoryInfo- , memoryInfo- , miTotalInternalStorage- , miTotalRam-- -- ** DeviceState- , DeviceState (..)-- -- ** PackageNameList- , PackageNameList- , packageNameList- , pnlPackageNames-- -- ** Command- , Command- , command- , cResetPasswordFlags- , cNewPassword- , cUserName- , cErrorCode- , cType- , cDuration- , cCreateTime-- -- ** ListOperationsResponse- , ListOperationsResponse- , listOperationsResponse- , lorNextPageToken- , lorOperations-- -- ** Display- , Display- , display- , dHeight- , dState- , dWidth- , dName- , dRefreshRate- , dDisplayId- , dDensity-- -- ** AlwaysOnVPNPackage- , AlwaysOnVPNPackage- , alwaysOnVPNPackage- , aovpLockdownEnabled- , aovpPackageName-- -- ** PolicyOpenNetworkConfiguration- , PolicyOpenNetworkConfiguration- , policyOpenNetworkConfiguration- , poncAddtional-- -- ** LaunchAppAction- , LaunchAppAction- , launchAppAction- , laaPackageName-- -- ** CommandErrorCode- , CommandErrorCode (..)-- -- ** HardwareStatus- , HardwareStatus- , hardwareStatus- , hsCPUTemperatures- , hsBatteryTemperatures- , hsGpuTemperatures- , hsFanSpeeds- , hsSkinTemperatures- , hsCPUUsages- , hsCreateTime-- -- ** Application- , Application- , application- , aManagedProperties- , aName- , aPermissions- , aTitle-- -- ** ManagedProperty- , ManagedProperty- , managedProperty- , mpEntries- , mpNestedProperties- , mpKey- , mpDefaultValue- , mpTitle- , mpType- , mpDescription-- -- ** ProxyInfo- , ProxyInfo- , proxyInfo- , piPacURI- , piHost- , piExcludedHosts- , piPort-- -- ** PermissionGrantPolicy- , PermissionGrantPolicy (..)-- -- ** PersistentPreferredActivity- , PersistentPreferredActivity- , persistentPreferredActivity- , ppaActions- , ppaCategories- , ppaReceiverActivity-- -- ** Operation- , Operation- , operation- , oDone- , oError- , oResponse- , oName- , oMetadata-- -- ** Empty- , Empty- , empty-- -- ** ExternalData- , ExternalData- , externalData- , edURL- , edSha256Hash-- -- ** DisplayState- , DisplayState (..)-- -- ** APILevelCondition- , APILevelCondition- , apiLevelCondition- , alcMinAPILevel-- -- ** DeviceSettings- , DeviceSettings- , deviceSettings- , dsIsEncrypted- , dsAdbEnabled- , dsIsDeviceSecure- , dsVerifyAppsEnabled- , dsDevelopmentSettingsEnabled- , dsEncryptionStatus- , dsUnknownSourcesEnabled-- -- ** PolicyPlayStoreMode- , PolicyPlayStoreMode (..)-- -- ** ManagedConfigurationTemplateConfigurationVariables- , ManagedConfigurationTemplateConfigurationVariables- , managedConfigurationTemplateConfigurationVariables- , mctcvAddtional-- -- ** DeviceManagementMode- , DeviceManagementMode (..)-- -- ** HardwareInfo- , HardwareInfo- , hardwareInfo- , hiCPUThrottlingTemperatures- , hiManufacturer- , hiBrand- , hiCPUShutdownTemperatures- , hiBatteryThrottlingTemperatures- , hiModel- , hiBatteryShutdownTemperatures- , hiSkinThrottlingTemperatures- , hiGpuShutdownTemperatures- , hiGpuThrottlingTemperatures- , hiSkinShutdownTemperatures- , hiSerialNumber- , hiDeviceBasebandVersion- , hiHardware-- -- ** Device- , Device- , device- , devMemoryInfo- , devPolicyCompliant- , devApplicationReports- , devPolicyName- , devState- , devAppliedPolicyName- , devLastStatusReportTime- , devDeviceSettings- , devEnrollmentTokenName- , devManagementMode- , devHardwareInfo- , devPowerManagementEvents- , devUserName- , devMemoryEvents- , devAPILevel- , devUser- , devDisabledReason- , devLastPolicyComplianceReportTime- , devEnrollmentTokenData- , devName- , devAppliedPolicyVersion- , devHardwareStatusSamples- , devAppliedState- , devPreviousDeviceNames- , devLastPolicySyncTime- , devNetworkInfo- , devNonComplianceDetails- , devSoftwareInfo- , devEnrollmentTime- , devDisplays-- -- ** WebAppDisplayMode- , WebAppDisplayMode (..)-- -- ** ApplicationReportApplicationSource- , ApplicationReportApplicationSource (..)-- -- ** StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- ** ApplicationPolicyInstallType- , ApplicationPolicyInstallType (..)-- -- ** NonComplianceDetailInstallationFailureReason- , NonComplianceDetailInstallationFailureReason (..)-- -- ** PasswordRequirementsPasswordScope- , PasswordRequirementsPasswordScope (..)-- -- ** ManagedPropertyEntry- , ManagedPropertyEntry- , managedPropertyEntry- , mpeValue- , mpeName-- -- ** DeviceSettingsEncryptionStatus- , DeviceSettingsEncryptionStatus (..)-- -- ** PolicyLocationMode- , PolicyLocationMode (..)-- -- ** ChoosePrivateKeyRule- , ChoosePrivateKeyRule- , choosePrivateKeyRule- , cpkrPrivateKeyAlias- , cpkrURLPattern- , cpkrPackageNames-- -- ** UserFacingMessageLocalizedMessages- , UserFacingMessageLocalizedMessages- , userFacingMessageLocalizedMessages- , ufmlmAddtional-- -- ** User- , User- , user- , uAccountIdentifier-- -- ** SystemUpdate- , SystemUpdate- , systemUpdate- , suEndMinutes- , suStartMinutes- , suType-- -- ** ApplicationReport- , ApplicationReport- , applicationReport- , arVersionCode- , arSigningKeyCertFingerprints- , arState- , arVersionName- , arPackageName- , arPackageSha256Hash- , arKeyedAppStates- , arApplicationSource- , arEvents- , arDisplayName- , arInstallerPackageName-- -- ** PolicyAppAutoUpdatePolicy- , PolicyAppAutoUpdatePolicy (..)-- -- ** EnrollmentToken- , EnrollmentToken- , enrollmentToken- , etPolicyName- , etValue- , etQrCode- , etAdditionalData- , etUser- , etName- , etOneTimeOnly- , etExpirationTimestamp- , etDuration-- -- ** ApplicationPolicyManagedConfiguration- , ApplicationPolicyManagedConfiguration- , applicationPolicyManagedConfiguration- , apmcAddtional-- -- ** PolicyEncryptionPolicy- , PolicyEncryptionPolicy (..)-- -- ** StatusReportingSettings- , StatusReportingSettings- , statusReportingSettings- , srsSoftwareInfoEnabled- , srsHardwareStatusEnabled- , srsPowerManagementEventsEnabled- , srsDisplayInfoEnabled- , srsApplicationReportsEnabled- , srsMemoryInfoEnabled- , srsNetworkInfoEnabled- , srsDeviceSettingsEnabled- , srsApplicationReportingSettings-- -- ** CommandType- , CommandType (..)-- -- ** ApplicationPolicyDefaultPermissionPolicy- , ApplicationPolicyDefaultPermissionPolicy (..)-- -- ** WebAppIcon- , WebAppIcon- , webAppIcon- , waiImageData-- -- ** Xgafv- , Xgafv (..)-- -- ** ApplicationPolicy- , ApplicationPolicy- , applicationPolicy- , apDelegatedScopes- , apPackageName- , apManagedConfiguration- , apDefaultPermissionPolicy- , apDisabled- , apLockTaskAllowed- , apPermissionGrants- , apManagedConfigurationTemplate- , apMinimumVersionCode- , apInstallType-- -- ** ManagedPropertyType- , ManagedPropertyType (..)-- -- ** DeviceAppliedState- , DeviceAppliedState (..)-- -- ** ApplicationEventEventType- , ApplicationEventEventType (..)-- -- ** ListDevicesResponse- , ListDevicesResponse- , listDevicesResponse- , ldrNextPageToken- , ldrDevices-- -- ** ManagedConfigurationTemplate- , ManagedConfigurationTemplate- , managedConfigurationTemplate- , mctTemplateId- , mctConfigurationVariables-- -- ** NonComplianceDetailNonComplianceReason- , NonComplianceDetailNonComplianceReason (..)-- -- ** Enterprise- , Enterprise- , enterprise- , eAppAutoApprovalEnabled- , eEnabledNotificationTypes- , eSigninDetails- , eName- , ePubsubTopic- , eEnterpriseDisplayName- , eLogo- , eTermsAndConditions- , ePrimaryColor-- -- ** MemoryEvent- , MemoryEvent- , memoryEvent- , meByteCount- , meEventType- , meCreateTime-- -- ** PermissionGrant- , PermissionGrant- , permissionGrant- , pgPolicy- , pgPermission-- -- ** SigninDetail- , SigninDetail- , signinDetail- , sdSigninURL- , sdQrCode- , sdSigninEnrollmentToken-- -- ** SignupURL- , SignupURL- , signupURL- , suURL- , suName-- -- ** PolicyDefaultPermissionPolicy- , PolicyDefaultPermissionPolicy (..)-- -- ** NetworkInfo- , NetworkInfo- , networkInfo- , niNetworkOperatorName- , niMeid- , niImei- , niWifiMACAddress-- -- ** PowerManagementEvent- , PowerManagementEvent- , powerManagementEvent- , pmeBatteryLevel- , pmeEventType- , pmeCreateTime-- -- ** Policy- , Policy- , policy- , pBluetoothConfigDisabled- , pUnmuteMicrophoneDisabled- , pMountPhysicalMediaDisabled- , pFrpAdminEmails- , pAppAutoUpdatePolicy- , pEncryptionPolicy- , pAndroidDevicePolicyTracks- , pSafeBootDisabled- , pAlwaysOnVPNPackage- , pChoosePrivateKeyRules- , pCredentialsConfigDisabled- , pRecommendedGlobalProxy- , pKeyguardDisabled- , pSkipFirstUseHintsEnabled- , pAdjustVolumeDisabled- , pDefaultPermissionPolicy- , pUninstallAppsDisabled- , pSetUserIconDisabled- , pPermittedInputMethods- , pScreenCaptureDisabled- , pAddUserDisabled- , pShareLocationDisabled- , pAutoTimeRequired- , pInstallAppsDisabled- , pCreateWindowsDisabled- , pNetworkResetDisabled- , pBluetoothContactSharingDisabled- , pPermissionGrants- , pShortSupportMessage- , pStayOnPluggedModes- , pDataRoamingDisabled- , pDebuggingFeaturesAllowed- , pKioskCustomLauncherEnabled- , pWifiConfigsLockdownEnabled- , pUsbMassStorageEnabled- , pNetworkEscapeHatchEnabled- , pSystemUpdate- , pInstallUnknownSourcesAllowed- , pName- , pPrivateKeySelectionEnabled- , pOutgoingCallsDisabled- , pStatusReportingSettings- , pRemoveUserDisabled- , pMobileNetworksConfigDisabled- , pVersion- , pEnsureVerifyAppsEnabled- , pSetWallpaperDisabled- , pVPNConfigDisabled- , pSetupActions- , pOpenNetworkConfiguration- , pModifyAccountsDisabled- , pBlockApplicationsEnabled- , pKeyguardDisabledFeatures- , pFunDisabled- , pSmsDisabled- , pMaximumTimeToLock- , pOutgoingBeamDisabled- , pStatusBarDisabled- , pCellBroadcastsConfigDisabled- , pDeviceOwnerLockScreenInfo- , pPlayStoreMode- , pComplianceRules- , pTetheringConfigDisabled- , pAccountTypesWithManagementDisabled- , pWifiConfigDisabled- , pPersistentPreferredActivities- , pPasswordRequirements- , pLongSupportMessage- , pLocationMode- , pBluetoothDisabled- , pUsbFileTransferDisabled- , pCameraDisabled- , pApplications- , pPasswordPolicies- , pFactoryResetDisabled-- -- ** NonComplianceDetailCondition- , NonComplianceDetailCondition- , nonComplianceDetailCondition- , ncdcPackageName- , ncdcNonComplianceReason- , ncdcSettingName-- -- ** KeyedAppState- , KeyedAppState- , keyedAppState- , kasData- , kasSeverity- , kasKey- , kasMessage- , kasLastUpdateTime- , kasCreateTime-- -- ** OperationMetadata- , OperationMetadata- , operationMetadata- , omAddtional-- -- ** WebToken- , WebToken- , webToken- , wtParentFrameURL- , wtValue- , wtName- , wtPermissions-- -- ** KeyedAppStateSeverity- , KeyedAppStateSeverity (..)-- -- ** ComplianceRule- , ComplianceRule- , complianceRule- , crAPILevelCondition- , crDisableApps- , crPackageNamesToDisable- , crNonComplianceDetailCondition-- -- ** ListWebAppsResponse- , ListWebAppsResponse- , listWebAppsResponse- , lwarNextPageToken- , lwarWebApps-- -- ** PasswordRequirements- , PasswordRequirements- , passwordRequirements- , prPasswordMinimumSymbols- , prMaximumFailedPasswordsForWipe- , prPasswordExpirationTimeout- , prPasswordMinimumNonLetter- , prPasswordHistoryLength- , prPasswordMinimumLetters- , prPasswordMinimumUpperCase- , prPasswordMinimumNumeric- , prPasswordQuality- , prPasswordMinimumLength- , prPasswordScope- , prPasswordMinimumLowerCase-- -- ** ApplicationReportState- , ApplicationReportState (..)-- -- ** NonComplianceDetail- , NonComplianceDetail- , nonComplianceDetail- , ncdFieldPath- , ncdPackageName- , ncdInstallationFailureReason- , ncdNonComplianceReason- , ncdSettingName- , ncdCurrentValue-- -- ** NonComplianceDetailConditionNonComplianceReason- , NonComplianceDetailConditionNonComplianceReason (..)-- -- ** ApplicationEvent- , ApplicationEvent- , applicationEvent- , aeEventType- , aeCreateTime-- -- ** TermsAndConditions- , TermsAndConditions- , termsAndConditions- , tacContent- , tacHeader-- -- ** OperationResponse- , OperationResponse- , operationResponse- , orAddtional-- -- ** UserFacingMessage- , UserFacingMessage- , userFacingMessage- , ufmLocalizedMessages- , ufmDefaultMessage-- -- ** SoftwareInfo- , SoftwareInfo- , softwareInfo- , siSecurityPatchLevel- , siAndroidDevicePolicyVersionName- , siDeviceKernelVersion- , siAndroidDevicePolicyVersionCode- , siDeviceBuildSignature- , siBootLoaderVersion- , siAndroidBuildTime- , siPrimaryLanguageCode- , siAndroidBuildNumber- , siAndroidVersion-- -- ** ApplicationReportingSettings- , ApplicationReportingSettings- , applicationReportingSettings- , arsIncludeRemovedApps-- -- ** MemoryEventEventType- , MemoryEventEventType (..)-- -- ** ApplicationPermission- , ApplicationPermission- , applicationPermission- , apName- , apDescription- , apPermissionId-- -- ** SetupAction- , SetupAction- , setupAction- , saLaunchApp- , saTitle- , saDescription-- -- ** WebApp- , WebApp- , webApp- , waVersionCode- , waIcons- , waStartURL- , waDisplayMode- , waName- , waTitle-- -- ** PasswordRequirementsPasswordQuality- , PasswordRequirementsPasswordQuality (..)- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude-import Network.Google.Resource.AndroidManagement.Enterprises.Applications.Get-import Network.Google.Resource.AndroidManagement.Enterprises.Create-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.Delete-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.Get-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.IssueCommand-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.List-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Delete-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Get-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.List-import Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch-import Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create-import Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Delete-import Network.Google.Resource.AndroidManagement.Enterprises.Get-import Network.Google.Resource.AndroidManagement.Enterprises.Patch-import Network.Google.Resource.AndroidManagement.Enterprises.Policies.Delete-import Network.Google.Resource.AndroidManagement.Enterprises.Policies.Get-import Network.Google.Resource.AndroidManagement.Enterprises.Policies.List-import Network.Google.Resource.AndroidManagement.Enterprises.Policies.Patch-import Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Create-import Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Delete-import Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Get-import Network.Google.Resource.AndroidManagement.Enterprises.WebApps.List-import Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Patch-import Network.Google.Resource.AndroidManagement.Enterprises.WebTokens.Create-import Network.Google.Resource.AndroidManagement.SignupURLs.Create--{- $resources-TODO--}---- | Represents the entirety of the methods and resources available for the Android Management API service.-type AndroidManagementAPI =- EnterprisesEnrollmentTokensCreateResource :<|>- EnterprisesEnrollmentTokensDeleteResource- :<|> EnterprisesWebAppsListResource- :<|> EnterprisesWebAppsPatchResource- :<|> EnterprisesWebAppsGetResource- :<|> EnterprisesWebAppsCreateResource- :<|> EnterprisesWebAppsDeleteResource- :<|> EnterprisesWebTokensCreateResource- :<|> EnterprisesDevicesOperationsListResource- :<|> EnterprisesDevicesOperationsGetResource- :<|> EnterprisesDevicesOperationsCancelResource- :<|> EnterprisesDevicesOperationsDeleteResource- :<|> EnterprisesDevicesListResource- :<|> EnterprisesDevicesPatchResource- :<|> EnterprisesDevicesGetResource- :<|> EnterprisesDevicesIssueCommandResource- :<|> EnterprisesDevicesDeleteResource- :<|> EnterprisesPoliciesListResource- :<|> EnterprisesPoliciesPatchResource- :<|> EnterprisesPoliciesGetResource- :<|> EnterprisesPoliciesDeleteResource- :<|> EnterprisesApplicationsGetResource- :<|> EnterprisesPatchResource- :<|> EnterprisesGetResource- :<|> EnterprisesCreateResource- :<|> SignupURLsCreateResource
− gen/Network/Google/AndroidManagement/Types.hs
@@ -1,714 +0,0 @@-{-# LANGUAGE DataKinds #-}-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.AndroidManagement.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.AndroidManagement.Types- (- -- * Service Configuration- androidManagementService-- -- * OAuth Scopes- , androidManagementScope-- -- * PowerManagementEventEventType- , PowerManagementEventEventType (..)-- -- * Status- , Status- , status- , sDetails- , sCode- , sMessage-- -- * SystemUpdateType- , SystemUpdateType (..)-- -- * ListPoliciesResponse- , ListPoliciesResponse- , listPoliciesResponse- , lprNextPageToken- , lprPolicies-- -- * MemoryInfo- , MemoryInfo- , memoryInfo- , miTotalInternalStorage- , miTotalRam-- -- * DeviceState- , DeviceState (..)-- -- * PackageNameList- , PackageNameList- , packageNameList- , pnlPackageNames-- -- * Command- , Command- , command- , cResetPasswordFlags- , cNewPassword- , cUserName- , cErrorCode- , cType- , cDuration- , cCreateTime-- -- * ListOperationsResponse- , ListOperationsResponse- , listOperationsResponse- , lorNextPageToken- , lorOperations-- -- * Display- , Display- , display- , dHeight- , dState- , dWidth- , dName- , dRefreshRate- , dDisplayId- , dDensity-- -- * AlwaysOnVPNPackage- , AlwaysOnVPNPackage- , alwaysOnVPNPackage- , aovpLockdownEnabled- , aovpPackageName-- -- * PolicyOpenNetworkConfiguration- , PolicyOpenNetworkConfiguration- , policyOpenNetworkConfiguration- , poncAddtional-- -- * LaunchAppAction- , LaunchAppAction- , launchAppAction- , laaPackageName-- -- * CommandErrorCode- , CommandErrorCode (..)-- -- * HardwareStatus- , HardwareStatus- , hardwareStatus- , hsCPUTemperatures- , hsBatteryTemperatures- , hsGpuTemperatures- , hsFanSpeeds- , hsSkinTemperatures- , hsCPUUsages- , hsCreateTime-- -- * Application- , Application- , application- , aManagedProperties- , aName- , aPermissions- , aTitle-- -- * ManagedProperty- , ManagedProperty- , managedProperty- , mpEntries- , mpNestedProperties- , mpKey- , mpDefaultValue- , mpTitle- , mpType- , mpDescription-- -- * ProxyInfo- , ProxyInfo- , proxyInfo- , piPacURI- , piHost- , piExcludedHosts- , piPort-- -- * PermissionGrantPolicy- , PermissionGrantPolicy (..)-- -- * PersistentPreferredActivity- , PersistentPreferredActivity- , persistentPreferredActivity- , ppaActions- , ppaCategories- , ppaReceiverActivity-- -- * Operation- , Operation- , operation- , oDone- , oError- , oResponse- , oName- , oMetadata-- -- * Empty- , Empty- , empty-- -- * ExternalData- , ExternalData- , externalData- , edURL- , edSha256Hash-- -- * DisplayState- , DisplayState (..)-- -- * APILevelCondition- , APILevelCondition- , apiLevelCondition- , alcMinAPILevel-- -- * DeviceSettings- , DeviceSettings- , deviceSettings- , dsIsEncrypted- , dsAdbEnabled- , dsIsDeviceSecure- , dsVerifyAppsEnabled- , dsDevelopmentSettingsEnabled- , dsEncryptionStatus- , dsUnknownSourcesEnabled-- -- * PolicyPlayStoreMode- , PolicyPlayStoreMode (..)-- -- * ManagedConfigurationTemplateConfigurationVariables- , ManagedConfigurationTemplateConfigurationVariables- , managedConfigurationTemplateConfigurationVariables- , mctcvAddtional-- -- * DeviceManagementMode- , DeviceManagementMode (..)-- -- * HardwareInfo- , HardwareInfo- , hardwareInfo- , hiCPUThrottlingTemperatures- , hiManufacturer- , hiBrand- , hiCPUShutdownTemperatures- , hiBatteryThrottlingTemperatures- , hiModel- , hiBatteryShutdownTemperatures- , hiSkinThrottlingTemperatures- , hiGpuShutdownTemperatures- , hiGpuThrottlingTemperatures- , hiSkinShutdownTemperatures- , hiSerialNumber- , hiDeviceBasebandVersion- , hiHardware-- -- * Device- , Device- , device- , devMemoryInfo- , devPolicyCompliant- , devApplicationReports- , devPolicyName- , devState- , devAppliedPolicyName- , devLastStatusReportTime- , devDeviceSettings- , devEnrollmentTokenName- , devManagementMode- , devHardwareInfo- , devPowerManagementEvents- , devUserName- , devMemoryEvents- , devAPILevel- , devUser- , devDisabledReason- , devLastPolicyComplianceReportTime- , devEnrollmentTokenData- , devName- , devAppliedPolicyVersion- , devHardwareStatusSamples- , devAppliedState- , devPreviousDeviceNames- , devLastPolicySyncTime- , devNetworkInfo- , devNonComplianceDetails- , devSoftwareInfo- , devEnrollmentTime- , devDisplays-- -- * WebAppDisplayMode- , WebAppDisplayMode (..)-- -- * ApplicationReportApplicationSource- , ApplicationReportApplicationSource (..)-- -- * StatusDetailsItem- , StatusDetailsItem- , statusDetailsItem- , sdiAddtional-- -- * ApplicationPolicyInstallType- , ApplicationPolicyInstallType (..)-- -- * NonComplianceDetailInstallationFailureReason- , NonComplianceDetailInstallationFailureReason (..)-- -- * PasswordRequirementsPasswordScope- , PasswordRequirementsPasswordScope (..)-- -- * ManagedPropertyEntry- , ManagedPropertyEntry- , managedPropertyEntry- , mpeValue- , mpeName-- -- * DeviceSettingsEncryptionStatus- , DeviceSettingsEncryptionStatus (..)-- -- * PolicyLocationMode- , PolicyLocationMode (..)-- -- * ChoosePrivateKeyRule- , ChoosePrivateKeyRule- , choosePrivateKeyRule- , cpkrPrivateKeyAlias- , cpkrURLPattern- , cpkrPackageNames-- -- * UserFacingMessageLocalizedMessages- , UserFacingMessageLocalizedMessages- , userFacingMessageLocalizedMessages- , ufmlmAddtional-- -- * User- , User- , user- , uAccountIdentifier-- -- * SystemUpdate- , SystemUpdate- , systemUpdate- , suEndMinutes- , suStartMinutes- , suType-- -- * ApplicationReport- , ApplicationReport- , applicationReport- , arVersionCode- , arSigningKeyCertFingerprints- , arState- , arVersionName- , arPackageName- , arPackageSha256Hash- , arKeyedAppStates- , arApplicationSource- , arEvents- , arDisplayName- , arInstallerPackageName-- -- * PolicyAppAutoUpdatePolicy- , PolicyAppAutoUpdatePolicy (..)-- -- * EnrollmentToken- , EnrollmentToken- , enrollmentToken- , etPolicyName- , etValue- , etQrCode- , etAdditionalData- , etUser- , etName- , etOneTimeOnly- , etExpirationTimestamp- , etDuration-- -- * ApplicationPolicyManagedConfiguration- , ApplicationPolicyManagedConfiguration- , applicationPolicyManagedConfiguration- , apmcAddtional-- -- * PolicyEncryptionPolicy- , PolicyEncryptionPolicy (..)-- -- * StatusReportingSettings- , StatusReportingSettings- , statusReportingSettings- , srsSoftwareInfoEnabled- , srsHardwareStatusEnabled- , srsPowerManagementEventsEnabled- , srsDisplayInfoEnabled- , srsApplicationReportsEnabled- , srsMemoryInfoEnabled- , srsNetworkInfoEnabled- , srsDeviceSettingsEnabled- , srsApplicationReportingSettings-- -- * CommandType- , CommandType (..)-- -- * ApplicationPolicyDefaultPermissionPolicy- , ApplicationPolicyDefaultPermissionPolicy (..)-- -- * WebAppIcon- , WebAppIcon- , webAppIcon- , waiImageData-- -- * Xgafv- , Xgafv (..)-- -- * ApplicationPolicy- , ApplicationPolicy- , applicationPolicy- , apDelegatedScopes- , apPackageName- , apManagedConfiguration- , apDefaultPermissionPolicy- , apDisabled- , apLockTaskAllowed- , apPermissionGrants- , apManagedConfigurationTemplate- , apMinimumVersionCode- , apInstallType-- -- * ManagedPropertyType- , ManagedPropertyType (..)-- -- * DeviceAppliedState- , DeviceAppliedState (..)-- -- * ApplicationEventEventType- , ApplicationEventEventType (..)-- -- * ListDevicesResponse- , ListDevicesResponse- , listDevicesResponse- , ldrNextPageToken- , ldrDevices-- -- * ManagedConfigurationTemplate- , ManagedConfigurationTemplate- , managedConfigurationTemplate- , mctTemplateId- , mctConfigurationVariables-- -- * NonComplianceDetailNonComplianceReason- , NonComplianceDetailNonComplianceReason (..)-- -- * Enterprise- , Enterprise- , enterprise- , eAppAutoApprovalEnabled- , eEnabledNotificationTypes- , eSigninDetails- , eName- , ePubsubTopic- , eEnterpriseDisplayName- , eLogo- , eTermsAndConditions- , ePrimaryColor-- -- * MemoryEvent- , MemoryEvent- , memoryEvent- , meByteCount- , meEventType- , meCreateTime-- -- * PermissionGrant- , PermissionGrant- , permissionGrant- , pgPolicy- , pgPermission-- -- * SigninDetail- , SigninDetail- , signinDetail- , sdSigninURL- , sdQrCode- , sdSigninEnrollmentToken-- -- * SignupURL- , SignupURL- , signupURL- , suURL- , suName-- -- * PolicyDefaultPermissionPolicy- , PolicyDefaultPermissionPolicy (..)-- -- * NetworkInfo- , NetworkInfo- , networkInfo- , niNetworkOperatorName- , niMeid- , niImei- , niWifiMACAddress-- -- * PowerManagementEvent- , PowerManagementEvent- , powerManagementEvent- , pmeBatteryLevel- , pmeEventType- , pmeCreateTime-- -- * Policy- , Policy- , policy- , pBluetoothConfigDisabled- , pUnmuteMicrophoneDisabled- , pMountPhysicalMediaDisabled- , pFrpAdminEmails- , pAppAutoUpdatePolicy- , pEncryptionPolicy- , pAndroidDevicePolicyTracks- , pSafeBootDisabled- , pAlwaysOnVPNPackage- , pChoosePrivateKeyRules- , pCredentialsConfigDisabled- , pRecommendedGlobalProxy- , pKeyguardDisabled- , pSkipFirstUseHintsEnabled- , pAdjustVolumeDisabled- , pDefaultPermissionPolicy- , pUninstallAppsDisabled- , pSetUserIconDisabled- , pPermittedInputMethods- , pScreenCaptureDisabled- , pAddUserDisabled- , pShareLocationDisabled- , pAutoTimeRequired- , pInstallAppsDisabled- , pCreateWindowsDisabled- , pNetworkResetDisabled- , pBluetoothContactSharingDisabled- , pPermissionGrants- , pShortSupportMessage- , pStayOnPluggedModes- , pDataRoamingDisabled- , pDebuggingFeaturesAllowed- , pKioskCustomLauncherEnabled- , pWifiConfigsLockdownEnabled- , pUsbMassStorageEnabled- , pNetworkEscapeHatchEnabled- , pSystemUpdate- , pInstallUnknownSourcesAllowed- , pName- , pPrivateKeySelectionEnabled- , pOutgoingCallsDisabled- , pStatusReportingSettings- , pRemoveUserDisabled- , pMobileNetworksConfigDisabled- , pVersion- , pEnsureVerifyAppsEnabled- , pSetWallpaperDisabled- , pVPNConfigDisabled- , pSetupActions- , pOpenNetworkConfiguration- , pModifyAccountsDisabled- , pBlockApplicationsEnabled- , pKeyguardDisabledFeatures- , pFunDisabled- , pSmsDisabled- , pMaximumTimeToLock- , pOutgoingBeamDisabled- , pStatusBarDisabled- , pCellBroadcastsConfigDisabled- , pDeviceOwnerLockScreenInfo- , pPlayStoreMode- , pComplianceRules- , pTetheringConfigDisabled- , pAccountTypesWithManagementDisabled- , pWifiConfigDisabled- , pPersistentPreferredActivities- , pPasswordRequirements- , pLongSupportMessage- , pLocationMode- , pBluetoothDisabled- , pUsbFileTransferDisabled- , pCameraDisabled- , pApplications- , pPasswordPolicies- , pFactoryResetDisabled-- -- * NonComplianceDetailCondition- , NonComplianceDetailCondition- , nonComplianceDetailCondition- , ncdcPackageName- , ncdcNonComplianceReason- , ncdcSettingName-- -- * KeyedAppState- , KeyedAppState- , keyedAppState- , kasData- , kasSeverity- , kasKey- , kasMessage- , kasLastUpdateTime- , kasCreateTime-- -- * OperationMetadata- , OperationMetadata- , operationMetadata- , omAddtional-- -- * WebToken- , WebToken- , webToken- , wtParentFrameURL- , wtValue- , wtName- , wtPermissions-- -- * KeyedAppStateSeverity- , KeyedAppStateSeverity (..)-- -- * ComplianceRule- , ComplianceRule- , complianceRule- , crAPILevelCondition- , crDisableApps- , crPackageNamesToDisable- , crNonComplianceDetailCondition-- -- * ListWebAppsResponse- , ListWebAppsResponse- , listWebAppsResponse- , lwarNextPageToken- , lwarWebApps-- -- * PasswordRequirements- , PasswordRequirements- , passwordRequirements- , prPasswordMinimumSymbols- , prMaximumFailedPasswordsForWipe- , prPasswordExpirationTimeout- , prPasswordMinimumNonLetter- , prPasswordHistoryLength- , prPasswordMinimumLetters- , prPasswordMinimumUpperCase- , prPasswordMinimumNumeric- , prPasswordQuality- , prPasswordMinimumLength- , prPasswordScope- , prPasswordMinimumLowerCase-- -- * ApplicationReportState- , ApplicationReportState (..)-- -- * NonComplianceDetail- , NonComplianceDetail- , nonComplianceDetail- , ncdFieldPath- , ncdPackageName- , ncdInstallationFailureReason- , ncdNonComplianceReason- , ncdSettingName- , ncdCurrentValue-- -- * NonComplianceDetailConditionNonComplianceReason- , NonComplianceDetailConditionNonComplianceReason (..)-- -- * ApplicationEvent- , ApplicationEvent- , applicationEvent- , aeEventType- , aeCreateTime-- -- * TermsAndConditions- , TermsAndConditions- , termsAndConditions- , tacContent- , tacHeader-- -- * OperationResponse- , OperationResponse- , operationResponse- , orAddtional-- -- * UserFacingMessage- , UserFacingMessage- , userFacingMessage- , ufmLocalizedMessages- , ufmDefaultMessage-- -- * SoftwareInfo- , SoftwareInfo- , softwareInfo- , siSecurityPatchLevel- , siAndroidDevicePolicyVersionName- , siDeviceKernelVersion- , siAndroidDevicePolicyVersionCode- , siDeviceBuildSignature- , siBootLoaderVersion- , siAndroidBuildTime- , siPrimaryLanguageCode- , siAndroidBuildNumber- , siAndroidVersion-- -- * ApplicationReportingSettings- , ApplicationReportingSettings- , applicationReportingSettings- , arsIncludeRemovedApps-- -- * MemoryEventEventType- , MemoryEventEventType (..)-- -- * ApplicationPermission- , ApplicationPermission- , applicationPermission- , apName- , apDescription- , apPermissionId-- -- * SetupAction- , SetupAction- , setupAction- , saLaunchApp- , saTitle- , saDescription-- -- * WebApp- , WebApp- , webApp- , waVersionCode- , waIcons- , waStartURL- , waDisplayMode- , waName- , waTitle-- -- * PasswordRequirementsPasswordQuality- , PasswordRequirementsPasswordQuality (..)- ) where--import Network.Google.AndroidManagement.Types.Product-import Network.Google.AndroidManagement.Types.Sum-import Network.Google.Prelude---- | Default request referring to version 'v1' of the Android Management API. This contains the host and root path used as a starting point for constructing service requests.-androidManagementService :: ServiceConfig-androidManagementService- = defaultService (ServiceId "androidmanagement:v1")- "androidmanagement.googleapis.com"---- | Manage Android devices and apps for your customers-androidManagementScope :: Proxy '["https://www.googleapis.com/auth/androidmanagement"]-androidManagementScope = Proxy
− gen/Network/Google/AndroidManagement/Types/Product.hs
@@ -1,6346 +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.AndroidManagement.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.AndroidManagement.Types.Product where--import Network.Google.AndroidManagement.Types.Sum-import Network.Google.Prelude---- | The Status type defines a logical error model that is suitable for--- different programming environments, including REST APIs and RPC APIs. It--- is used by gRPC (https:\/\/github.com\/grpc). The error model is--- designed to be: Simple to use and understand for most users Flexible--- enough to meet unexpected needsOverviewThe Status message contains three--- pieces of data: error code, error message, and error details. The error--- code should be an enum value of google.rpc.Code, but it may accept--- additional error codes if needed. The error message should be a--- developer-facing English message that helps developers understand and--- resolve the error. If a localized user-facing error message is needed,--- put the localized message in the error details or localize it in the--- client. The optional error details may contain arbitrary information--- about the error. There is a predefined set of error detail types in the--- package google.rpc that can be used for common error conditions.Language--- mappingThe Status message is the logical representation of the error--- model, but it is not necessarily the actual wire format. When the Status--- message is exposed in different client libraries and different wire--- protocols, it can be mapped differently. For example, it will likely be--- mapped to some exceptions in Java, but more likely mapped to some error--- codes in C.Other usesThe error model and the Status message can be used--- in a variety of environments, either with or without APIs, to provide a--- consistent developer experience across different environments.Example--- uses of this error model include: Partial errors. If a service needs to--- return partial errors to the client, it may embed the Status in the--- normal response to indicate the partial errors. Workflow errors. A--- typical workflow has multiple steps. Each step may have a Status message--- for error reporting. Batch operations. If a client uses batch request--- and batch response, the Status message should be used directly inside--- batch response, one for each error sub-response. Asynchronous--- operations. If an API call embeds asynchronous operation results in its--- response, the status of those operations should be represented directly--- using the Status message. Logging. If some API errors are stored in--- logs, the message Status could be used directly after any stripping--- needed for security\/privacy reasons.------ /See:/ 'status' smart constructor.-data Status =- Status'- { _sDetails :: !(Maybe [StatusDetailsItem])- , _sCode :: !(Maybe (Textual Int32))- , _sMessage :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Status' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sDetails'------ * 'sCode'------ * 'sMessage'-status- :: Status-status = Status' {_sDetails = Nothing, _sCode = Nothing, _sMessage = Nothing}----- | A list of messages that carry the error details. There is a common set--- of message types for APIs to use.-sDetails :: Lens' Status [StatusDetailsItem]-sDetails- = lens _sDetails (\ s a -> s{_sDetails = a}) .- _Default- . _Coerce---- | The status code, which should be an enum value of google.rpc.Code.-sCode :: Lens' Status (Maybe Int32)-sCode- = lens _sCode (\ s a -> s{_sCode = a}) .- mapping _Coerce---- | A developer-facing error message, which should be in English. Any--- user-facing error message should be localized and sent in the--- google.rpc.Status.details field, or localized by the client.-sMessage :: Lens' Status (Maybe Text)-sMessage = lens _sMessage (\ s a -> s{_sMessage = a})--instance FromJSON Status where- parseJSON- = withObject "Status"- (\ o ->- Status' <$>- (o .:? "details" .!= mempty) <*> (o .:? "code") <*>- (o .:? "message"))--instance ToJSON Status where- toJSON Status'{..}- = object- (catMaybes- [("details" .=) <$> _sDetails,- ("code" .=) <$> _sCode,- ("message" .=) <$> _sMessage])---- | Response to a request to list policies for a given enterprise.------ /See:/ 'listPoliciesResponse' smart constructor.-data ListPoliciesResponse =- ListPoliciesResponse'- { _lprNextPageToken :: !(Maybe Text)- , _lprPolicies :: !(Maybe [Policy])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListPoliciesResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lprNextPageToken'------ * 'lprPolicies'-listPoliciesResponse- :: ListPoliciesResponse-listPoliciesResponse =- ListPoliciesResponse' {_lprNextPageToken = Nothing, _lprPolicies = Nothing}----- | If there are more results, a token to retrieve next page of results.-lprNextPageToken :: Lens' ListPoliciesResponse (Maybe Text)-lprNextPageToken- = lens _lprNextPageToken- (\ s a -> s{_lprNextPageToken = a})---- | The list of policies.-lprPolicies :: Lens' ListPoliciesResponse [Policy]-lprPolicies- = lens _lprPolicies (\ s a -> s{_lprPolicies = a}) .- _Default- . _Coerce--instance FromJSON ListPoliciesResponse where- parseJSON- = withObject "ListPoliciesResponse"- (\ o ->- ListPoliciesResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "policies" .!= mempty))--instance ToJSON ListPoliciesResponse where- toJSON ListPoliciesResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lprNextPageToken,- ("policies" .=) <$> _lprPolicies])---- | Information about device memory and storage.------ /See:/ 'memoryInfo' smart constructor.-data MemoryInfo =- MemoryInfo'- { _miTotalInternalStorage :: !(Maybe (Textual Int64))- , _miTotalRam :: !(Maybe (Textual Int64))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'MemoryInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'miTotalInternalStorage'------ * 'miTotalRam'-memoryInfo- :: MemoryInfo-memoryInfo =- MemoryInfo' {_miTotalInternalStorage = Nothing, _miTotalRam = Nothing}----- | Total internal storage on device in bytes.-miTotalInternalStorage :: Lens' MemoryInfo (Maybe Int64)-miTotalInternalStorage- = lens _miTotalInternalStorage- (\ s a -> s{_miTotalInternalStorage = a})- . mapping _Coerce---- | Total RAM on device in bytes.-miTotalRam :: Lens' MemoryInfo (Maybe Int64)-miTotalRam- = lens _miTotalRam (\ s a -> s{_miTotalRam = a}) .- mapping _Coerce--instance FromJSON MemoryInfo where- parseJSON- = withObject "MemoryInfo"- (\ o ->- MemoryInfo' <$>- (o .:? "totalInternalStorage") <*>- (o .:? "totalRam"))--instance ToJSON MemoryInfo where- toJSON MemoryInfo'{..}- = object- (catMaybes- [("totalInternalStorage" .=) <$>- _miTotalInternalStorage,- ("totalRam" .=) <$> _miTotalRam])---- | A list of package names.------ /See:/ 'packageNameList' smart constructor.-newtype PackageNameList =- PackageNameList'- { _pnlPackageNames :: Maybe [Text]- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PackageNameList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pnlPackageNames'-packageNameList- :: PackageNameList-packageNameList = PackageNameList' {_pnlPackageNames = Nothing}----- | A list of package names.-pnlPackageNames :: Lens' PackageNameList [Text]-pnlPackageNames- = lens _pnlPackageNames- (\ s a -> s{_pnlPackageNames = a})- . _Default- . _Coerce--instance FromJSON PackageNameList where- parseJSON- = withObject "PackageNameList"- (\ o ->- PackageNameList' <$>- (o .:? "packageNames" .!= mempty))--instance ToJSON PackageNameList where- toJSON PackageNameList'{..}- = object- (catMaybes- [("packageNames" .=) <$> _pnlPackageNames])---- | A command.------ /See:/ 'command' smart constructor.-data Command =- Command'- { _cResetPasswordFlags :: !(Maybe [Text])- , _cNewPassword :: !(Maybe Text)- , _cUserName :: !(Maybe Text)- , _cErrorCode :: !(Maybe CommandErrorCode)- , _cType :: !(Maybe CommandType)- , _cDuration :: !(Maybe GDuration)- , _cCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Command' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cResetPasswordFlags'------ * 'cNewPassword'------ * 'cUserName'------ * 'cErrorCode'------ * 'cType'------ * 'cDuration'------ * 'cCreateTime'-command- :: Command-command =- Command'- { _cResetPasswordFlags = Nothing- , _cNewPassword = Nothing- , _cUserName = Nothing- , _cErrorCode = Nothing- , _cType = Nothing- , _cDuration = Nothing- , _cCreateTime = Nothing- }----- | For commands of type RESET_PASSWORD, optionally specifies flags.-cResetPasswordFlags :: Lens' Command [Text]-cResetPasswordFlags- = lens _cResetPasswordFlags- (\ s a -> s{_cResetPasswordFlags = a})- . _Default- . _Coerce---- | For commands of type RESET_PASSWORD, optionally specifies the new--- password.-cNewPassword :: Lens' Command (Maybe Text)-cNewPassword- = lens _cNewPassword (\ s a -> s{_cNewPassword = a})---- | The resource name of the user that owns the device in the form--- enterprises\/{enterpriseId}\/users\/{userId}. This is automatically--- generated by the server based on the device the command is sent to.-cUserName :: Lens' Command (Maybe Text)-cUserName- = lens _cUserName (\ s a -> s{_cUserName = a})---- | If the command failed, an error code explaining the failure. This is not--- set when the command is cancelled by the caller.-cErrorCode :: Lens' Command (Maybe CommandErrorCode)-cErrorCode- = lens _cErrorCode (\ s a -> s{_cErrorCode = a})---- | The type of the command.-cType :: Lens' Command (Maybe CommandType)-cType = lens _cType (\ s a -> s{_cType = a})---- | The duration for which the command is valid. The command will expire if--- not executed by the device during this time. The default duration if--- unspecified is ten minutes. There is no maximum duration.-cDuration :: Lens' Command (Maybe Scientific)-cDuration- = lens _cDuration (\ s a -> s{_cDuration = a}) .- mapping _GDuration---- | The timestamp at which the command was created. The timestamp is--- automatically generated by the server.-cCreateTime :: Lens' Command (Maybe UTCTime)-cCreateTime- = lens _cCreateTime (\ s a -> s{_cCreateTime = a}) .- mapping _DateTime--instance FromJSON Command where- parseJSON- = withObject "Command"- (\ o ->- Command' <$>- (o .:? "resetPasswordFlags" .!= mempty) <*>- (o .:? "newPassword")- <*> (o .:? "userName")- <*> (o .:? "errorCode")- <*> (o .:? "type")- <*> (o .:? "duration")- <*> (o .:? "createTime"))--instance ToJSON Command where- toJSON Command'{..}- = object- (catMaybes- [("resetPasswordFlags" .=) <$> _cResetPasswordFlags,- ("newPassword" .=) <$> _cNewPassword,- ("userName" .=) <$> _cUserName,- ("errorCode" .=) <$> _cErrorCode,- ("type" .=) <$> _cType,- ("duration" .=) <$> _cDuration,- ("createTime" .=) <$> _cCreateTime])---- | The response message for Operations.ListOperations.------ /See:/ 'listOperationsResponse' smart constructor.-data ListOperationsResponse =- ListOperationsResponse'- { _lorNextPageToken :: !(Maybe Text)- , _lorOperations :: !(Maybe [Operation])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListOperationsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lorNextPageToken'------ * 'lorOperations'-listOperationsResponse- :: ListOperationsResponse-listOperationsResponse =- ListOperationsResponse'- {_lorNextPageToken = Nothing, _lorOperations = Nothing}----- | The standard List next-page token.-lorNextPageToken :: Lens' ListOperationsResponse (Maybe Text)-lorNextPageToken- = lens _lorNextPageToken- (\ s a -> s{_lorNextPageToken = a})---- | A list of operations that matches the specified filter in the request.-lorOperations :: Lens' ListOperationsResponse [Operation]-lorOperations- = lens _lorOperations- (\ s a -> s{_lorOperations = a})- . _Default- . _Coerce--instance FromJSON ListOperationsResponse where- parseJSON- = withObject "ListOperationsResponse"- (\ o ->- ListOperationsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "operations" .!= mempty))--instance ToJSON ListOperationsResponse where- toJSON ListOperationsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lorNextPageToken,- ("operations" .=) <$> _lorOperations])---- | Device display information.------ /See:/ 'display' smart constructor.-data Display =- Display'- { _dHeight :: !(Maybe (Textual Int32))- , _dState :: !(Maybe DisplayState)- , _dWidth :: !(Maybe (Textual Int32))- , _dName :: !(Maybe Text)- , _dRefreshRate :: !(Maybe (Textual Int32))- , _dDisplayId :: !(Maybe (Textual Int32))- , _dDensity :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Display' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dHeight'------ * 'dState'------ * 'dWidth'------ * 'dName'------ * 'dRefreshRate'------ * 'dDisplayId'------ * 'dDensity'-display- :: Display-display =- Display'- { _dHeight = Nothing- , _dState = Nothing- , _dWidth = Nothing- , _dName = Nothing- , _dRefreshRate = Nothing- , _dDisplayId = Nothing- , _dDensity = Nothing- }----- | Display height in pixels.-dHeight :: Lens' Display (Maybe Int32)-dHeight- = lens _dHeight (\ s a -> s{_dHeight = a}) .- mapping _Coerce---- | State of the display.-dState :: Lens' Display (Maybe DisplayState)-dState = lens _dState (\ s a -> s{_dState = a})---- | Display width in pixels.-dWidth :: Lens' Display (Maybe Int32)-dWidth- = lens _dWidth (\ s a -> s{_dWidth = a}) .- mapping _Coerce---- | Name of the display.-dName :: Lens' Display (Maybe Text)-dName = lens _dName (\ s a -> s{_dName = a})---- | Refresh rate of the display in frames per second.-dRefreshRate :: Lens' Display (Maybe Int32)-dRefreshRate- = lens _dRefreshRate (\ s a -> s{_dRefreshRate = a})- . mapping _Coerce---- | Unique display id.-dDisplayId :: Lens' Display (Maybe Int32)-dDisplayId- = lens _dDisplayId (\ s a -> s{_dDisplayId = a}) .- mapping _Coerce---- | Display density expressed as dots-per-inch.-dDensity :: Lens' Display (Maybe Int32)-dDensity- = lens _dDensity (\ s a -> s{_dDensity = a}) .- mapping _Coerce--instance FromJSON Display where- parseJSON- = withObject "Display"- (\ o ->- Display' <$>- (o .:? "height") <*> (o .:? "state") <*>- (o .:? "width")- <*> (o .:? "name")- <*> (o .:? "refreshRate")- <*> (o .:? "displayId")- <*> (o .:? "density"))--instance ToJSON Display where- toJSON Display'{..}- = object- (catMaybes- [("height" .=) <$> _dHeight,- ("state" .=) <$> _dState, ("width" .=) <$> _dWidth,- ("name" .=) <$> _dName,- ("refreshRate" .=) <$> _dRefreshRate,- ("displayId" .=) <$> _dDisplayId,- ("density" .=) <$> _dDensity])---- | Configuration for an always-on VPN connection.------ /See:/ 'alwaysOnVPNPackage' smart constructor.-data AlwaysOnVPNPackage =- AlwaysOnVPNPackage'- { _aovpLockdownEnabled :: !(Maybe Bool)- , _aovpPackageName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'AlwaysOnVPNPackage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aovpLockdownEnabled'------ * 'aovpPackageName'-alwaysOnVPNPackage- :: AlwaysOnVPNPackage-alwaysOnVPNPackage =- AlwaysOnVPNPackage'- {_aovpLockdownEnabled = Nothing, _aovpPackageName = Nothing}----- | Disallows networking when the VPN is not connected.-aovpLockdownEnabled :: Lens' AlwaysOnVPNPackage (Maybe Bool)-aovpLockdownEnabled- = lens _aovpLockdownEnabled- (\ s a -> s{_aovpLockdownEnabled = a})---- | The package name of the VPN app.-aovpPackageName :: Lens' AlwaysOnVPNPackage (Maybe Text)-aovpPackageName- = lens _aovpPackageName- (\ s a -> s{_aovpPackageName = a})--instance FromJSON AlwaysOnVPNPackage where- parseJSON- = withObject "AlwaysOnVPNPackage"- (\ o ->- AlwaysOnVPNPackage' <$>- (o .:? "lockdownEnabled") <*> (o .:? "packageName"))--instance ToJSON AlwaysOnVPNPackage where- toJSON AlwaysOnVPNPackage'{..}- = object- (catMaybes- [("lockdownEnabled" .=) <$> _aovpLockdownEnabled,- ("packageName" .=) <$> _aovpPackageName])---- | Network configuration for the device. See configure networks for more--- information.------ /See:/ 'policyOpenNetworkConfiguration' smart constructor.-newtype PolicyOpenNetworkConfiguration =- PolicyOpenNetworkConfiguration'- { _poncAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PolicyOpenNetworkConfiguration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'poncAddtional'-policyOpenNetworkConfiguration- :: HashMap Text JSONValue -- ^ 'poncAddtional'- -> PolicyOpenNetworkConfiguration-policyOpenNetworkConfiguration pPoncAddtional_ =- PolicyOpenNetworkConfiguration' {_poncAddtional = _Coerce # pPoncAddtional_}----- | Properties of the object.-poncAddtional :: Lens' PolicyOpenNetworkConfiguration (HashMap Text JSONValue)-poncAddtional- = lens _poncAddtional- (\ s a -> s{_poncAddtional = a})- . _Coerce--instance FromJSON PolicyOpenNetworkConfiguration- where- parseJSON- = withObject "PolicyOpenNetworkConfiguration"- (\ o ->- PolicyOpenNetworkConfiguration' <$>- (parseJSONObject o))--instance ToJSON PolicyOpenNetworkConfiguration where- toJSON = toJSON . _poncAddtional---- | An action to launch an app.------ /See:/ 'launchAppAction' smart constructor.-newtype LaunchAppAction =- LaunchAppAction'- { _laaPackageName :: Maybe Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'LaunchAppAction' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'laaPackageName'-launchAppAction- :: LaunchAppAction-launchAppAction = LaunchAppAction' {_laaPackageName = Nothing}----- | Package name of app to be launched-laaPackageName :: Lens' LaunchAppAction (Maybe Text)-laaPackageName- = lens _laaPackageName- (\ s a -> s{_laaPackageName = a})--instance FromJSON LaunchAppAction where- parseJSON- = withObject "LaunchAppAction"- (\ o -> LaunchAppAction' <$> (o .:? "packageName"))--instance ToJSON LaunchAppAction where- toJSON LaunchAppAction'{..}- = object- (catMaybes [("packageName" .=) <$> _laaPackageName])---- | Hardware status. Temperatures may be compared to the temperature--- thresholds available in hardwareInfo to determine hardware health.------ /See:/ 'hardwareStatus' smart constructor.-data HardwareStatus =- HardwareStatus'- { _hsCPUTemperatures :: !(Maybe [Textual Double])- , _hsBatteryTemperatures :: !(Maybe [Textual Double])- , _hsGpuTemperatures :: !(Maybe [Textual Double])- , _hsFanSpeeds :: !(Maybe [Textual Double])- , _hsSkinTemperatures :: !(Maybe [Textual Double])- , _hsCPUUsages :: !(Maybe [Textual Double])- , _hsCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'HardwareStatus' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'hsCPUTemperatures'------ * 'hsBatteryTemperatures'------ * 'hsGpuTemperatures'------ * 'hsFanSpeeds'------ * 'hsSkinTemperatures'------ * 'hsCPUUsages'------ * 'hsCreateTime'-hardwareStatus- :: HardwareStatus-hardwareStatus =- HardwareStatus'- { _hsCPUTemperatures = Nothing- , _hsBatteryTemperatures = Nothing- , _hsGpuTemperatures = Nothing- , _hsFanSpeeds = Nothing- , _hsSkinTemperatures = Nothing- , _hsCPUUsages = Nothing- , _hsCreateTime = Nothing- }----- | Current CPU temperatures in Celsius for each CPU on the device.-hsCPUTemperatures :: Lens' HardwareStatus [Double]-hsCPUTemperatures- = lens _hsCPUTemperatures- (\ s a -> s{_hsCPUTemperatures = a})- . _Default- . _Coerce---- | Current battery temperatures in Celsius for each battery on the device.-hsBatteryTemperatures :: Lens' HardwareStatus [Double]-hsBatteryTemperatures- = lens _hsBatteryTemperatures- (\ s a -> s{_hsBatteryTemperatures = a})- . _Default- . _Coerce---- | Current GPU temperatures in Celsius for each GPU on the device.-hsGpuTemperatures :: Lens' HardwareStatus [Double]-hsGpuTemperatures- = lens _hsGpuTemperatures- (\ s a -> s{_hsGpuTemperatures = a})- . _Default- . _Coerce---- | Fan speeds in RPM for each fan on the device. Empty array means that--- there are no fans or fan speed is not supported on the system.-hsFanSpeeds :: Lens' HardwareStatus [Double]-hsFanSpeeds- = lens _hsFanSpeeds (\ s a -> s{_hsFanSpeeds = a}) .- _Default- . _Coerce---- | Current device skin temperatures in Celsius.-hsSkinTemperatures :: Lens' HardwareStatus [Double]-hsSkinTemperatures- = lens _hsSkinTemperatures- (\ s a -> s{_hsSkinTemperatures = a})- . _Default- . _Coerce---- | CPU usages in percentage for each core available on the device. Usage is--- 0 for each unplugged core. Empty array implies that CPU usage is not--- supported in the system.-hsCPUUsages :: Lens' HardwareStatus [Double]-hsCPUUsages- = lens _hsCPUUsages (\ s a -> s{_hsCPUUsages = a}) .- _Default- . _Coerce---- | The time the measurements were taken.-hsCreateTime :: Lens' HardwareStatus (Maybe UTCTime)-hsCreateTime- = lens _hsCreateTime (\ s a -> s{_hsCreateTime = a})- . mapping _DateTime--instance FromJSON HardwareStatus where- parseJSON- = withObject "HardwareStatus"- (\ o ->- HardwareStatus' <$>- (o .:? "cpuTemperatures" .!= mempty) <*>- (o .:? "batteryTemperatures" .!= mempty)- <*> (o .:? "gpuTemperatures" .!= mempty)- <*> (o .:? "fanSpeeds" .!= mempty)- <*> (o .:? "skinTemperatures" .!= mempty)- <*> (o .:? "cpuUsages" .!= mempty)- <*> (o .:? "createTime"))--instance ToJSON HardwareStatus where- toJSON HardwareStatus'{..}- = object- (catMaybes- [("cpuTemperatures" .=) <$> _hsCPUTemperatures,- ("batteryTemperatures" .=) <$>- _hsBatteryTemperatures,- ("gpuTemperatures" .=) <$> _hsGpuTemperatures,- ("fanSpeeds" .=) <$> _hsFanSpeeds,- ("skinTemperatures" .=) <$> _hsSkinTemperatures,- ("cpuUsages" .=) <$> _hsCPUUsages,- ("createTime" .=) <$> _hsCreateTime])---- | Information about an app.------ /See:/ 'application' smart constructor.-data Application =- Application'- { _aManagedProperties :: !(Maybe [ManagedProperty])- , _aName :: !(Maybe Text)- , _aPermissions :: !(Maybe [ApplicationPermission])- , _aTitle :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Application' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aManagedProperties'------ * 'aName'------ * 'aPermissions'------ * 'aTitle'-application- :: Application-application =- Application'- { _aManagedProperties = Nothing- , _aName = Nothing- , _aPermissions = Nothing- , _aTitle = Nothing- }----- | The set of managed properties available to be pre-configured for the--- app.-aManagedProperties :: Lens' Application [ManagedProperty]-aManagedProperties- = lens _aManagedProperties- (\ s a -> s{_aManagedProperties = a})- . _Default- . _Coerce---- | The name of the app in the form--- enterprises\/{enterpriseId}\/applications\/{package_name}.-aName :: Lens' Application (Maybe Text)-aName = lens _aName (\ s a -> s{_aName = a})---- | The permissions required by the app.-aPermissions :: Lens' Application [ApplicationPermission]-aPermissions- = lens _aPermissions (\ s a -> s{_aPermissions = a})- . _Default- . _Coerce---- | The title of the app. Localized.-aTitle :: Lens' Application (Maybe Text)-aTitle = lens _aTitle (\ s a -> s{_aTitle = a})--instance FromJSON Application where- parseJSON- = withObject "Application"- (\ o ->- Application' <$>- (o .:? "managedProperties" .!= mempty) <*>- (o .:? "name")- <*> (o .:? "permissions" .!= mempty)- <*> (o .:? "title"))--instance ToJSON Application where- toJSON Application'{..}- = object- (catMaybes- [("managedProperties" .=) <$> _aManagedProperties,- ("name" .=) <$> _aName,- ("permissions" .=) <$> _aPermissions,- ("title" .=) <$> _aTitle])---- | Managed property.------ /See:/ 'managedProperty' smart constructor.-data ManagedProperty =- ManagedProperty'- { _mpEntries :: !(Maybe [ManagedPropertyEntry])- , _mpNestedProperties :: !(Maybe [ManagedProperty])- , _mpKey :: !(Maybe Text)- , _mpDefaultValue :: !(Maybe JSONValue)- , _mpTitle :: !(Maybe Text)- , _mpType :: !(Maybe ManagedPropertyType)- , _mpDescription :: !(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:------ * 'mpEntries'------ * 'mpNestedProperties'------ * 'mpKey'------ * 'mpDefaultValue'------ * 'mpTitle'------ * 'mpType'------ * 'mpDescription'-managedProperty- :: ManagedProperty-managedProperty =- ManagedProperty'- { _mpEntries = Nothing- , _mpNestedProperties = Nothing- , _mpKey = Nothing- , _mpDefaultValue = Nothing- , _mpTitle = Nothing- , _mpType = Nothing- , _mpDescription = Nothing- }----- | For CHOICE or MULTISELECT properties, the list of possible entries.-mpEntries :: Lens' ManagedProperty [ManagedPropertyEntry]-mpEntries- = lens _mpEntries (\ s a -> s{_mpEntries = a}) .- _Default- . _Coerce---- | For BUNDLE_ARRAY properties, the list of nested properties. A--- BUNDLE_ARRAY property is at most two levels deep.-mpNestedProperties :: Lens' ManagedProperty [ManagedProperty]-mpNestedProperties- = lens _mpNestedProperties- (\ s a -> s{_mpNestedProperties = a})- . _Default- . _Coerce---- | The unique key that the app uses to identify the property, e.g.--- \"com.google.android.gm.fieldname\".-mpKey :: Lens' ManagedProperty (Maybe Text)-mpKey = lens _mpKey (\ s a -> s{_mpKey = a})---- | The default value of the property. BUNDLE_ARRAY properties don\'t have a--- default value.-mpDefaultValue :: Lens' ManagedProperty (Maybe JSONValue)-mpDefaultValue- = lens _mpDefaultValue- (\ s a -> s{_mpDefaultValue = a})---- | The name of the property. Localized.-mpTitle :: Lens' ManagedProperty (Maybe Text)-mpTitle = lens _mpTitle (\ s a -> s{_mpTitle = a})---- | The type of the property.-mpType :: Lens' ManagedProperty (Maybe ManagedPropertyType)-mpType = lens _mpType (\ s a -> s{_mpType = a})---- | A longer description of the property, providing more detail of what it--- affects. Localized.-mpDescription :: Lens' ManagedProperty (Maybe Text)-mpDescription- = lens _mpDescription- (\ s a -> s{_mpDescription = a})--instance FromJSON ManagedProperty where- parseJSON- = withObject "ManagedProperty"- (\ o ->- ManagedProperty' <$>- (o .:? "entries" .!= mempty) <*>- (o .:? "nestedProperties" .!= mempty)- <*> (o .:? "key")- <*> (o .:? "defaultValue")- <*> (o .:? "title")- <*> (o .:? "type")- <*> (o .:? "description"))--instance ToJSON ManagedProperty where- toJSON ManagedProperty'{..}- = object- (catMaybes- [("entries" .=) <$> _mpEntries,- ("nestedProperties" .=) <$> _mpNestedProperties,- ("key" .=) <$> _mpKey,- ("defaultValue" .=) <$> _mpDefaultValue,- ("title" .=) <$> _mpTitle, ("type" .=) <$> _mpType,- ("description" .=) <$> _mpDescription])---- | Configuration info for an HTTP proxy. For a direct proxy, set the host,--- port, and excluded_hosts fields. For a PAC script proxy, set the pac_uri--- field.------ /See:/ 'proxyInfo' smart constructor.-data ProxyInfo =- ProxyInfo'- { _piPacURI :: !(Maybe Text)- , _piHost :: !(Maybe Text)- , _piExcludedHosts :: !(Maybe [Text])- , _piPort :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ProxyInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'piPacURI'------ * 'piHost'------ * 'piExcludedHosts'------ * 'piPort'-proxyInfo- :: ProxyInfo-proxyInfo =- ProxyInfo'- { _piPacURI = Nothing- , _piHost = Nothing- , _piExcludedHosts = Nothing- , _piPort = Nothing- }----- | The URI of the PAC script used to configure the proxy.-piPacURI :: Lens' ProxyInfo (Maybe Text)-piPacURI = lens _piPacURI (\ s a -> s{_piPacURI = a})---- | The host of the direct proxy.-piHost :: Lens' ProxyInfo (Maybe Text)-piHost = lens _piHost (\ s a -> s{_piHost = a})---- | For a direct proxy, the hosts for which the proxy is bypassed. The host--- names may contain wildcards such as *.example.com.-piExcludedHosts :: Lens' ProxyInfo [Text]-piExcludedHosts- = lens _piExcludedHosts- (\ s a -> s{_piExcludedHosts = a})- . _Default- . _Coerce---- | The port of the direct proxy.-piPort :: Lens' ProxyInfo (Maybe Int32)-piPort- = lens _piPort (\ s a -> s{_piPort = a}) .- mapping _Coerce--instance FromJSON ProxyInfo where- parseJSON- = withObject "ProxyInfo"- (\ o ->- ProxyInfo' <$>- (o .:? "pacUri") <*> (o .:? "host") <*>- (o .:? "excludedHosts" .!= mempty)- <*> (o .:? "port"))--instance ToJSON ProxyInfo where- toJSON ProxyInfo'{..}- = object- (catMaybes- [("pacUri" .=) <$> _piPacURI,- ("host" .=) <$> _piHost,- ("excludedHosts" .=) <$> _piExcludedHosts,- ("port" .=) <$> _piPort])---- | A default activity for handling intents that match a particular intent--- filter.------ /See:/ 'persistentPreferredActivity' smart constructor.-data PersistentPreferredActivity =- PersistentPreferredActivity'- { _ppaActions :: !(Maybe [Text])- , _ppaCategories :: !(Maybe [Text])- , _ppaReceiverActivity :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PersistentPreferredActivity' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ppaActions'------ * 'ppaCategories'------ * 'ppaReceiverActivity'-persistentPreferredActivity- :: PersistentPreferredActivity-persistentPreferredActivity =- PersistentPreferredActivity'- { _ppaActions = Nothing- , _ppaCategories = Nothing- , _ppaReceiverActivity = Nothing- }----- | The intent actions to match in the filter. If any actions are included--- in the filter, then an intent\'s action must be one of those values for--- it to match. If no actions are included, the intent action is ignored.-ppaActions :: Lens' PersistentPreferredActivity [Text]-ppaActions- = lens _ppaActions (\ s a -> s{_ppaActions = a}) .- _Default- . _Coerce---- | The intent categories to match in the filter. An intent includes the--- categories that it requires, all of which must be included in the filter--- in order to match. In other words, adding a category to the filter has--- no impact on matching unless that category is specified in the intent.-ppaCategories :: Lens' PersistentPreferredActivity [Text]-ppaCategories- = lens _ppaCategories- (\ s a -> s{_ppaCategories = a})- . _Default- . _Coerce---- | The activity that should be the default intent handler. This should be--- an Android component name, e.g.--- com.android.enterprise.app\/.MainActivity. Alternatively, the value may--- be the package name of an app, which causes Android Device Policy to--- choose an appropriate activity from the app to handle the intent.-ppaReceiverActivity :: Lens' PersistentPreferredActivity (Maybe Text)-ppaReceiverActivity- = lens _ppaReceiverActivity- (\ s a -> s{_ppaReceiverActivity = a})--instance FromJSON PersistentPreferredActivity where- parseJSON- = withObject "PersistentPreferredActivity"- (\ o ->- PersistentPreferredActivity' <$>- (o .:? "actions" .!= mempty) <*>- (o .:? "categories" .!= mempty)- <*> (o .:? "receiverActivity"))--instance ToJSON PersistentPreferredActivity where- toJSON PersistentPreferredActivity'{..}- = object- (catMaybes- [("actions" .=) <$> _ppaActions,- ("categories" .=) <$> _ppaCategories,- ("receiverActivity" .=) <$> _ppaReceiverActivity])---- | This resource represents a long-running operation that is the result of--- a network API call.------ /See:/ 'operation' smart constructor.-data Operation =- Operation'- { _oDone :: !(Maybe Bool)- , _oError :: !(Maybe Status)- , _oResponse :: !(Maybe OperationResponse)- , _oName :: !(Maybe Text)- , _oMetadata :: !(Maybe OperationMetadata)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Operation' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'oDone'------ * 'oError'------ * 'oResponse'------ * 'oName'------ * 'oMetadata'-operation- :: Operation-operation =- Operation'- { _oDone = Nothing- , _oError = Nothing- , _oResponse = Nothing- , _oName = Nothing- , _oMetadata = Nothing- }----- | If the value is false, it means the operation is still in progress. If--- true, the operation is completed, and either error or response is--- available.-oDone :: Lens' Operation (Maybe Bool)-oDone = lens _oDone (\ s a -> s{_oDone = a})---- | The error result of the operation in case of failure or cancellation.-oError :: Lens' Operation (Maybe Status)-oError = lens _oError (\ s a -> s{_oError = a})---- | The normal response of the operation in case of success. If the original--- method returns no data on success, such as Delete, the response is--- google.protobuf.Empty. If the original method is standard--- Get\/Create\/Update, the response should be the resource. For other--- methods, the response should have the type XxxResponse, where Xxx is the--- original method name. For example, if the original method name is--- TakeSnapshot(), the inferred response type is TakeSnapshotResponse.-oResponse :: Lens' Operation (Maybe OperationResponse)-oResponse- = lens _oResponse (\ s a -> s{_oResponse = a})---- | The server-assigned name, which is only unique within the same service--- that originally returns it. If you use the default HTTP mapping, the--- name should have the format of operations\/some\/unique\/name.-oName :: Lens' Operation (Maybe Text)-oName = lens _oName (\ s a -> s{_oName = a})---- | Service-specific metadata associated with the operation. It typically--- contains progress information and common metadata such as create time.--- Some services might not provide such metadata. Any method that returns a--- long-running operation should document the metadata type, if any.-oMetadata :: Lens' Operation (Maybe OperationMetadata)-oMetadata- = lens _oMetadata (\ s a -> s{_oMetadata = a})--instance FromJSON Operation where- parseJSON- = withObject "Operation"- (\ o ->- Operation' <$>- (o .:? "done") <*> (o .:? "error") <*>- (o .:? "response")- <*> (o .:? "name")- <*> (o .:? "metadata"))--instance ToJSON Operation where- toJSON Operation'{..}- = object- (catMaybes- [("done" .=) <$> _oDone, ("error" .=) <$> _oError,- ("response" .=) <$> _oResponse,- ("name" .=) <$> _oName,- ("metadata" .=) <$> _oMetadata])---- | A generic empty message that you can re-use to avoid defining duplicated--- empty messages in your APIs. A typical example is to use it as the--- request or the response type of an API method. For instance: service Foo--- { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The--- JSON representation for Empty is empty JSON object {}.------ /See:/ 'empty' smart constructor.-data Empty =- Empty'- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'Empty' with the minimum fields required to make a request.----empty- :: Empty-empty = Empty'---instance FromJSON Empty where- parseJSON = withObject "Empty" (\ o -> pure Empty')--instance ToJSON Empty where- toJSON = const emptyObject---- | Data hosted at an external location. The data is to be downloaded by--- Android Device Policy and verified against the hash.------ /See:/ 'externalData' smart constructor.-data ExternalData =- ExternalData'- { _edURL :: !(Maybe Text)- , _edSha256Hash :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ExternalData' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edURL'------ * 'edSha256Hash'-externalData- :: ExternalData-externalData = ExternalData' {_edURL = Nothing, _edSha256Hash = Nothing}----- | The absolute URL to the data, which must use either the http or https--- scheme. Android Device Policy doesn\'t provide any credentials in the--- GET request, so the URL must be publicly accessible. Including a long,--- random component in the URL may be used to prevent attackers from--- discovering the URL.-edURL :: Lens' ExternalData (Maybe Text)-edURL = lens _edURL (\ s a -> s{_edURL = a})---- | The base-64 encoded SHA-256 hash of the content hosted at url. If the--- content doesn\'t match this hash, Android Device Policy won\'t use the--- data.-edSha256Hash :: Lens' ExternalData (Maybe Text)-edSha256Hash- = lens _edSha256Hash (\ s a -> s{_edSha256Hash = a})--instance FromJSON ExternalData where- parseJSON- = withObject "ExternalData"- (\ o ->- ExternalData' <$>- (o .:? "url") <*> (o .:? "sha256Hash"))--instance ToJSON ExternalData where- toJSON ExternalData'{..}- = object- (catMaybes- [("url" .=) <$> _edURL,- ("sha256Hash" .=) <$> _edSha256Hash])---- | A compliance rule condition which is satisfied if the Android Framework--- API level on the device doesn\'t meet a minimum requirement. There can--- only be one rule with this type of condition per policy.------ /See:/ 'apiLevelCondition' smart constructor.-newtype APILevelCondition =- APILevelCondition'- { _alcMinAPILevel :: Maybe (Textual Int32)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'APILevelCondition' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'alcMinAPILevel'-apiLevelCondition- :: APILevelCondition-apiLevelCondition = APILevelCondition' {_alcMinAPILevel = Nothing}----- | The minimum desired Android Framework API level. If the device doesn\'t--- meet the minimum requirement, this condition is satisfied. Must be--- greater than zero.-alcMinAPILevel :: Lens' APILevelCondition (Maybe Int32)-alcMinAPILevel- = lens _alcMinAPILevel- (\ s a -> s{_alcMinAPILevel = a})- . mapping _Coerce--instance FromJSON APILevelCondition where- parseJSON- = withObject "APILevelCondition"- (\ o -> APILevelCondition' <$> (o .:? "minApiLevel"))--instance ToJSON APILevelCondition where- toJSON APILevelCondition'{..}- = object- (catMaybes [("minApiLevel" .=) <$> _alcMinAPILevel])---- | Information about security related device settings on device.------ /See:/ 'deviceSettings' smart constructor.-data DeviceSettings =- DeviceSettings'- { _dsIsEncrypted :: !(Maybe Bool)- , _dsAdbEnabled :: !(Maybe Bool)- , _dsIsDeviceSecure :: !(Maybe Bool)- , _dsVerifyAppsEnabled :: !(Maybe Bool)- , _dsDevelopmentSettingsEnabled :: !(Maybe Bool)- , _dsEncryptionStatus :: !(Maybe DeviceSettingsEncryptionStatus)- , _dsUnknownSourcesEnabled :: !(Maybe Bool)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'DeviceSettings' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'dsIsEncrypted'------ * 'dsAdbEnabled'------ * 'dsIsDeviceSecure'------ * 'dsVerifyAppsEnabled'------ * 'dsDevelopmentSettingsEnabled'------ * 'dsEncryptionStatus'------ * 'dsUnknownSourcesEnabled'-deviceSettings- :: DeviceSettings-deviceSettings =- DeviceSettings'- { _dsIsEncrypted = Nothing- , _dsAdbEnabled = Nothing- , _dsIsDeviceSecure = Nothing- , _dsVerifyAppsEnabled = Nothing- , _dsDevelopmentSettingsEnabled = Nothing- , _dsEncryptionStatus = Nothing- , _dsUnknownSourcesEnabled = Nothing- }----- | Whether the storage encryption is enabled.-dsIsEncrypted :: Lens' DeviceSettings (Maybe Bool)-dsIsEncrypted- = lens _dsIsEncrypted- (\ s a -> s{_dsIsEncrypted = a})---- | Whether ADB--- (https:\/\/developer.android.com\/studio\/command-line\/adb.html) is--- enabled on the device.-dsAdbEnabled :: Lens' DeviceSettings (Maybe Bool)-dsAdbEnabled- = lens _dsAdbEnabled (\ s a -> s{_dsAdbEnabled = a})---- | Whether the device is secured with PIN\/password.-dsIsDeviceSecure :: Lens' DeviceSettings (Maybe Bool)-dsIsDeviceSecure- = lens _dsIsDeviceSecure- (\ s a -> s{_dsIsDeviceSecure = a})---- | Whether Verify Apps (Google Play Protect--- (https:\/\/support.google.com\/googleplay\/answer\/2812853)) is enabled--- on the device.-dsVerifyAppsEnabled :: Lens' DeviceSettings (Maybe Bool)-dsVerifyAppsEnabled- = lens _dsVerifyAppsEnabled- (\ s a -> s{_dsVerifyAppsEnabled = a})---- | Whether developer mode is enabled on the device.-dsDevelopmentSettingsEnabled :: Lens' DeviceSettings (Maybe Bool)-dsDevelopmentSettingsEnabled- = lens _dsDevelopmentSettingsEnabled- (\ s a -> s{_dsDevelopmentSettingsEnabled = a})---- | Encryption status from DevicePolicyManager.-dsEncryptionStatus :: Lens' DeviceSettings (Maybe DeviceSettingsEncryptionStatus)-dsEncryptionStatus- = lens _dsEncryptionStatus- (\ s a -> s{_dsEncryptionStatus = a})---- | Whether installing apps from unknown sources is enabled.-dsUnknownSourcesEnabled :: Lens' DeviceSettings (Maybe Bool)-dsUnknownSourcesEnabled- = lens _dsUnknownSourcesEnabled- (\ s a -> s{_dsUnknownSourcesEnabled = a})--instance FromJSON DeviceSettings where- parseJSON- = withObject "DeviceSettings"- (\ o ->- DeviceSettings' <$>- (o .:? "isEncrypted") <*> (o .:? "adbEnabled") <*>- (o .:? "isDeviceSecure")- <*> (o .:? "verifyAppsEnabled")- <*> (o .:? "developmentSettingsEnabled")- <*> (o .:? "encryptionStatus")- <*> (o .:? "unknownSourcesEnabled"))--instance ToJSON DeviceSettings where- toJSON DeviceSettings'{..}- = object- (catMaybes- [("isEncrypted" .=) <$> _dsIsEncrypted,- ("adbEnabled" .=) <$> _dsAdbEnabled,- ("isDeviceSecure" .=) <$> _dsIsDeviceSecure,- ("verifyAppsEnabled" .=) <$> _dsVerifyAppsEnabled,- ("developmentSettingsEnabled" .=) <$>- _dsDevelopmentSettingsEnabled,- ("encryptionStatus" .=) <$> _dsEncryptionStatus,- ("unknownSourcesEnabled" .=) <$>- _dsUnknownSourcesEnabled])---- | Optional, a map containing configuration variables defined for the--- configuration.------ /See:/ 'managedConfigurationTemplateConfigurationVariables' smart constructor.-newtype ManagedConfigurationTemplateConfigurationVariables =- ManagedConfigurationTemplateConfigurationVariables'- { _mctcvAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationTemplateConfigurationVariables' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mctcvAddtional'-managedConfigurationTemplateConfigurationVariables- :: HashMap Text Text -- ^ 'mctcvAddtional'- -> ManagedConfigurationTemplateConfigurationVariables-managedConfigurationTemplateConfigurationVariables pMctcvAddtional_ =- ManagedConfigurationTemplateConfigurationVariables'- {_mctcvAddtional = _Coerce # pMctcvAddtional_}---mctcvAddtional :: Lens' ManagedConfigurationTemplateConfigurationVariables (HashMap Text Text)-mctcvAddtional- = lens _mctcvAddtional- (\ s a -> s{_mctcvAddtional = a})- . _Coerce--instance FromJSON- ManagedConfigurationTemplateConfigurationVariables- where- parseJSON- = withObject- "ManagedConfigurationTemplateConfigurationVariables"- (\ o ->- ManagedConfigurationTemplateConfigurationVariables'- <$> (parseJSONObject o))--instance ToJSON- ManagedConfigurationTemplateConfigurationVariables- where- toJSON = toJSON . _mctcvAddtional---- | Information about device hardware. The fields related to temperature--- thresholds are only available if hardwareStatusEnabled is true in the--- device\'s policy.------ /See:/ 'hardwareInfo' smart constructor.-data HardwareInfo =- HardwareInfo'- { _hiCPUThrottlingTemperatures :: !(Maybe [Textual Double])- , _hiManufacturer :: !(Maybe Text)- , _hiBrand :: !(Maybe Text)- , _hiCPUShutdownTemperatures :: !(Maybe [Textual Double])- , _hiBatteryThrottlingTemperatures :: !(Maybe [Textual Double])- , _hiModel :: !(Maybe Text)- , _hiBatteryShutdownTemperatures :: !(Maybe [Textual Double])- , _hiSkinThrottlingTemperatures :: !(Maybe [Textual Double])- , _hiGpuShutdownTemperatures :: !(Maybe [Textual Double])- , _hiGpuThrottlingTemperatures :: !(Maybe [Textual Double])- , _hiSkinShutdownTemperatures :: !(Maybe [Textual Double])- , _hiSerialNumber :: !(Maybe Text)- , _hiDeviceBasebandVersion :: !(Maybe Text)- , _hiHardware :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'HardwareInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'hiCPUThrottlingTemperatures'------ * 'hiManufacturer'------ * 'hiBrand'------ * 'hiCPUShutdownTemperatures'------ * 'hiBatteryThrottlingTemperatures'------ * 'hiModel'------ * 'hiBatteryShutdownTemperatures'------ * 'hiSkinThrottlingTemperatures'------ * 'hiGpuShutdownTemperatures'------ * 'hiGpuThrottlingTemperatures'------ * 'hiSkinShutdownTemperatures'------ * 'hiSerialNumber'------ * 'hiDeviceBasebandVersion'------ * 'hiHardware'-hardwareInfo- :: HardwareInfo-hardwareInfo =- HardwareInfo'- { _hiCPUThrottlingTemperatures = Nothing- , _hiManufacturer = Nothing- , _hiBrand = Nothing- , _hiCPUShutdownTemperatures = Nothing- , _hiBatteryThrottlingTemperatures = Nothing- , _hiModel = Nothing- , _hiBatteryShutdownTemperatures = Nothing- , _hiSkinThrottlingTemperatures = Nothing- , _hiGpuShutdownTemperatures = Nothing- , _hiGpuThrottlingTemperatures = Nothing- , _hiSkinShutdownTemperatures = Nothing- , _hiSerialNumber = Nothing- , _hiDeviceBasebandVersion = Nothing- , _hiHardware = Nothing- }----- | CPU throttling temperature thresholds in Celsius for each CPU on the--- device.-hiCPUThrottlingTemperatures :: Lens' HardwareInfo [Double]-hiCPUThrottlingTemperatures- = lens _hiCPUThrottlingTemperatures- (\ s a -> s{_hiCPUThrottlingTemperatures = a})- . _Default- . _Coerce---- | Manufacturer. For example, Motorola.-hiManufacturer :: Lens' HardwareInfo (Maybe Text)-hiManufacturer- = lens _hiManufacturer- (\ s a -> s{_hiManufacturer = a})---- | Brand of the device. For example, Google.-hiBrand :: Lens' HardwareInfo (Maybe Text)-hiBrand = lens _hiBrand (\ s a -> s{_hiBrand = a})---- | CPU shutdown temperature thresholds in Celsius for each CPU on the--- device.-hiCPUShutdownTemperatures :: Lens' HardwareInfo [Double]-hiCPUShutdownTemperatures- = lens _hiCPUShutdownTemperatures- (\ s a -> s{_hiCPUShutdownTemperatures = a})- . _Default- . _Coerce---- | Battery throttling temperature thresholds in Celsius for each battery on--- the device.-hiBatteryThrottlingTemperatures :: Lens' HardwareInfo [Double]-hiBatteryThrottlingTemperatures- = lens _hiBatteryThrottlingTemperatures- (\ s a -> s{_hiBatteryThrottlingTemperatures = a})- . _Default- . _Coerce---- | The model of the device. For example, Asus Nexus 7.-hiModel :: Lens' HardwareInfo (Maybe Text)-hiModel = lens _hiModel (\ s a -> s{_hiModel = a})---- | Battery shutdown temperature thresholds in Celsius for each battery on--- the device.-hiBatteryShutdownTemperatures :: Lens' HardwareInfo [Double]-hiBatteryShutdownTemperatures- = lens _hiBatteryShutdownTemperatures- (\ s a -> s{_hiBatteryShutdownTemperatures = a})- . _Default- . _Coerce---- | Device skin throttling temperature thresholds in Celsius.-hiSkinThrottlingTemperatures :: Lens' HardwareInfo [Double]-hiSkinThrottlingTemperatures- = lens _hiSkinThrottlingTemperatures- (\ s a -> s{_hiSkinThrottlingTemperatures = a})- . _Default- . _Coerce---- | GPU shutdown temperature thresholds in Celsius for each GPU on the--- device.-hiGpuShutdownTemperatures :: Lens' HardwareInfo [Double]-hiGpuShutdownTemperatures- = lens _hiGpuShutdownTemperatures- (\ s a -> s{_hiGpuShutdownTemperatures = a})- . _Default- . _Coerce---- | GPU throttling temperature thresholds in Celsius for each GPU on the--- device.-hiGpuThrottlingTemperatures :: Lens' HardwareInfo [Double]-hiGpuThrottlingTemperatures- = lens _hiGpuThrottlingTemperatures- (\ s a -> s{_hiGpuThrottlingTemperatures = a})- . _Default- . _Coerce---- | Device skin shutdown temperature thresholds in Celsius.-hiSkinShutdownTemperatures :: Lens' HardwareInfo [Double]-hiSkinShutdownTemperatures- = lens _hiSkinShutdownTemperatures- (\ s a -> s{_hiSkinShutdownTemperatures = a})- . _Default- . _Coerce---- | The device serial number.-hiSerialNumber :: Lens' HardwareInfo (Maybe Text)-hiSerialNumber- = lens _hiSerialNumber- (\ s a -> s{_hiSerialNumber = a})---- | Baseband version. For example, MDM9625_104662.22.05.34p.-hiDeviceBasebandVersion :: Lens' HardwareInfo (Maybe Text)-hiDeviceBasebandVersion- = lens _hiDeviceBasebandVersion- (\ s a -> s{_hiDeviceBasebandVersion = a})---- | Name of the hardware. For example, Angler.-hiHardware :: Lens' HardwareInfo (Maybe Text)-hiHardware- = lens _hiHardware (\ s a -> s{_hiHardware = a})--instance FromJSON HardwareInfo where- parseJSON- = withObject "HardwareInfo"- (\ o ->- HardwareInfo' <$>- (o .:? "cpuThrottlingTemperatures" .!= mempty) <*>- (o .:? "manufacturer")- <*> (o .:? "brand")- <*> (o .:? "cpuShutdownTemperatures" .!= mempty)- <*>- (o .:? "batteryThrottlingTemperatures" .!= mempty)- <*> (o .:? "model")- <*> (o .:? "batteryShutdownTemperatures" .!= mempty)- <*> (o .:? "skinThrottlingTemperatures" .!= mempty)- <*> (o .:? "gpuShutdownTemperatures" .!= mempty)- <*> (o .:? "gpuThrottlingTemperatures" .!= mempty)- <*> (o .:? "skinShutdownTemperatures" .!= mempty)- <*> (o .:? "serialNumber")- <*> (o .:? "deviceBasebandVersion")- <*> (o .:? "hardware"))--instance ToJSON HardwareInfo where- toJSON HardwareInfo'{..}- = object- (catMaybes- [("cpuThrottlingTemperatures" .=) <$>- _hiCPUThrottlingTemperatures,- ("manufacturer" .=) <$> _hiManufacturer,- ("brand" .=) <$> _hiBrand,- ("cpuShutdownTemperatures" .=) <$>- _hiCPUShutdownTemperatures,- ("batteryThrottlingTemperatures" .=) <$>- _hiBatteryThrottlingTemperatures,- ("model" .=) <$> _hiModel,- ("batteryShutdownTemperatures" .=) <$>- _hiBatteryShutdownTemperatures,- ("skinThrottlingTemperatures" .=) <$>- _hiSkinThrottlingTemperatures,- ("gpuShutdownTemperatures" .=) <$>- _hiGpuShutdownTemperatures,- ("gpuThrottlingTemperatures" .=) <$>- _hiGpuThrottlingTemperatures,- ("skinShutdownTemperatures" .=) <$>- _hiSkinShutdownTemperatures,- ("serialNumber" .=) <$> _hiSerialNumber,- ("deviceBasebandVersion" .=) <$>- _hiDeviceBasebandVersion,- ("hardware" .=) <$> _hiHardware])---- | A device owned by an enterprise. Unless otherwise noted, all fields are--- read-only and can\'t be modified by enterprises.devices.patch.------ /See:/ 'device' smart constructor.-data Device =- Device'- { _devMemoryInfo :: !(Maybe MemoryInfo)- , _devPolicyCompliant :: !(Maybe Bool)- , _devApplicationReports :: !(Maybe [ApplicationReport])- , _devPolicyName :: !(Maybe Text)- , _devState :: !(Maybe DeviceState)- , _devAppliedPolicyName :: !(Maybe Text)- , _devLastStatusReportTime :: !(Maybe DateTime')- , _devDeviceSettings :: !(Maybe DeviceSettings)- , _devEnrollmentTokenName :: !(Maybe Text)- , _devManagementMode :: !(Maybe DeviceManagementMode)- , _devHardwareInfo :: !(Maybe HardwareInfo)- , _devPowerManagementEvents :: !(Maybe [PowerManagementEvent])- , _devUserName :: !(Maybe Text)- , _devMemoryEvents :: !(Maybe [MemoryEvent])- , _devAPILevel :: !(Maybe (Textual Int32))- , _devUser :: !(Maybe User)- , _devDisabledReason :: !(Maybe UserFacingMessage)- , _devLastPolicyComplianceReportTime :: !(Maybe DateTime')- , _devEnrollmentTokenData :: !(Maybe Text)- , _devName :: !(Maybe Text)- , _devAppliedPolicyVersion :: !(Maybe (Textual Int64))- , _devHardwareStatusSamples :: !(Maybe [HardwareStatus])- , _devAppliedState :: !(Maybe DeviceAppliedState)- , _devPreviousDeviceNames :: !(Maybe [Text])- , _devLastPolicySyncTime :: !(Maybe DateTime')- , _devNetworkInfo :: !(Maybe NetworkInfo)- , _devNonComplianceDetails :: !(Maybe [NonComplianceDetail])- , _devSoftwareInfo :: !(Maybe SoftwareInfo)- , _devEnrollmentTime :: !(Maybe DateTime')- , _devDisplays :: !(Maybe [Display])- }- 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:------ * 'devMemoryInfo'------ * 'devPolicyCompliant'------ * 'devApplicationReports'------ * 'devPolicyName'------ * 'devState'------ * 'devAppliedPolicyName'------ * 'devLastStatusReportTime'------ * 'devDeviceSettings'------ * 'devEnrollmentTokenName'------ * 'devManagementMode'------ * 'devHardwareInfo'------ * 'devPowerManagementEvents'------ * 'devUserName'------ * 'devMemoryEvents'------ * 'devAPILevel'------ * 'devUser'------ * 'devDisabledReason'------ * 'devLastPolicyComplianceReportTime'------ * 'devEnrollmentTokenData'------ * 'devName'------ * 'devAppliedPolicyVersion'------ * 'devHardwareStatusSamples'------ * 'devAppliedState'------ * 'devPreviousDeviceNames'------ * 'devLastPolicySyncTime'------ * 'devNetworkInfo'------ * 'devNonComplianceDetails'------ * 'devSoftwareInfo'------ * 'devEnrollmentTime'------ * 'devDisplays'-device- :: Device-device =- Device'- { _devMemoryInfo = Nothing- , _devPolicyCompliant = Nothing- , _devApplicationReports = Nothing- , _devPolicyName = Nothing- , _devState = Nothing- , _devAppliedPolicyName = Nothing- , _devLastStatusReportTime = Nothing- , _devDeviceSettings = Nothing- , _devEnrollmentTokenName = Nothing- , _devManagementMode = Nothing- , _devHardwareInfo = Nothing- , _devPowerManagementEvents = Nothing- , _devUserName = Nothing- , _devMemoryEvents = Nothing- , _devAPILevel = Nothing- , _devUser = Nothing- , _devDisabledReason = Nothing- , _devLastPolicyComplianceReportTime = Nothing- , _devEnrollmentTokenData = Nothing- , _devName = Nothing- , _devAppliedPolicyVersion = Nothing- , _devHardwareStatusSamples = Nothing- , _devAppliedState = Nothing- , _devPreviousDeviceNames = Nothing- , _devLastPolicySyncTime = Nothing- , _devNetworkInfo = Nothing- , _devNonComplianceDetails = Nothing- , _devSoftwareInfo = Nothing- , _devEnrollmentTime = Nothing- , _devDisplays = Nothing- }----- | Memory information. This information is only available if--- memoryInfoEnabled is true in the device\'s policy.-devMemoryInfo :: Lens' Device (Maybe MemoryInfo)-devMemoryInfo- = lens _devMemoryInfo- (\ s a -> s{_devMemoryInfo = a})---- | Whether the device is compliant with its policy.-devPolicyCompliant :: Lens' Device (Maybe Bool)-devPolicyCompliant- = lens _devPolicyCompliant- (\ s a -> s{_devPolicyCompliant = a})---- | Reports for apps installed on the device. This information is only--- available when application_reports_enabled is true in the device\'s--- policy.-devApplicationReports :: Lens' Device [ApplicationReport]-devApplicationReports- = lens _devApplicationReports- (\ s a -> s{_devApplicationReports = a})- . _Default- . _Coerce---- | The name of the policy applied to the device, in the form--- enterprises\/{enterpriseId}\/policies\/{policyId}. If not specified, the--- policy_name for the device\'s user is applied. This field can be--- modified by a patch request. You can specify only the policyId when--- calling enterprises.devices.patch, as long as the policyId doesn’t--- contain any slashes. The rest of the policy name is inferred.-devPolicyName :: Lens' Device (Maybe Text)-devPolicyName- = lens _devPolicyName- (\ s a -> s{_devPolicyName = a})---- | The state to be applied to the device. This field can be modified by a--- patch request. Note that when calling enterprises.devices.patch, ACTIVE--- and DISABLED are the only allowable values. To enter the device into a--- DELETED state, call enterprises.devices.delete.-devState :: Lens' Device (Maybe DeviceState)-devState = lens _devState (\ s a -> s{_devState = a})---- | The name of the policy currently applied to the device.-devAppliedPolicyName :: Lens' Device (Maybe Text)-devAppliedPolicyName- = lens _devAppliedPolicyName- (\ s a -> s{_devAppliedPolicyName = a})---- | The last time the device sent a status report.-devLastStatusReportTime :: Lens' Device (Maybe UTCTime)-devLastStatusReportTime- = lens _devLastStatusReportTime- (\ s a -> s{_devLastStatusReportTime = a})- . mapping _DateTime---- | Device settings information. This information is only available if--- deviceSettingsEnabled is true in the device\'s policy.-devDeviceSettings :: Lens' Device (Maybe DeviceSettings)-devDeviceSettings- = lens _devDeviceSettings- (\ s a -> s{_devDeviceSettings = a})---- | If the device was enrolled with an enrollment token, this field contains--- the name of the token.-devEnrollmentTokenName :: Lens' Device (Maybe Text)-devEnrollmentTokenName- = lens _devEnrollmentTokenName- (\ s a -> s{_devEnrollmentTokenName = a})---- | The type of management mode Android Device Policy takes on the device.--- This influences which policy settings are supported.-devManagementMode :: Lens' Device (Maybe DeviceManagementMode)-devManagementMode- = lens _devManagementMode- (\ s a -> s{_devManagementMode = a})---- | Detailed information about the device hardware.-devHardwareInfo :: Lens' Device (Maybe HardwareInfo)-devHardwareInfo- = lens _devHardwareInfo- (\ s a -> s{_devHardwareInfo = a})---- | Power management events on the device in chronological order. This--- information is only available if powerManagementEventsEnabled is true in--- the device\'s policy.-devPowerManagementEvents :: Lens' Device [PowerManagementEvent]-devPowerManagementEvents- = lens _devPowerManagementEvents- (\ s a -> s{_devPowerManagementEvents = a})- . _Default- . _Coerce---- | The resource name of the user that owns this device in the form--- enterprises\/{enterpriseId}\/users\/{userId}.-devUserName :: Lens' Device (Maybe Text)-devUserName- = lens _devUserName (\ s a -> s{_devUserName = a})---- | Events related to memory and storage measurements in chronological--- order. This information is only available if memoryInfoEnabled is true--- in the device\'s policy.-devMemoryEvents :: Lens' Device [MemoryEvent]-devMemoryEvents- = lens _devMemoryEvents- (\ s a -> s{_devMemoryEvents = a})- . _Default- . _Coerce---- | The API level of the Android platform version running on the device.-devAPILevel :: Lens' Device (Maybe Int32)-devAPILevel- = lens _devAPILevel (\ s a -> s{_devAPILevel = a}) .- mapping _Coerce---- | The user who owns the device.-devUser :: Lens' Device (Maybe User)-devUser = lens _devUser (\ s a -> s{_devUser = a})---- | If the device state is DISABLED, an optional message that is displayed--- on the device indicating the reason the device is disabled. This field--- can be modified by a patch request.-devDisabledReason :: Lens' Device (Maybe UserFacingMessage)-devDisabledReason- = lens _devDisabledReason- (\ s a -> s{_devDisabledReason = a})---- | Deprecated.-devLastPolicyComplianceReportTime :: Lens' Device (Maybe UTCTime)-devLastPolicyComplianceReportTime- = lens _devLastPolicyComplianceReportTime- (\ s a -> s{_devLastPolicyComplianceReportTime = a})- . mapping _DateTime---- | If the device was enrolled with an enrollment token with additional data--- provided, this field contains that data.-devEnrollmentTokenData :: Lens' Device (Maybe Text)-devEnrollmentTokenData- = lens _devEnrollmentTokenData- (\ s a -> s{_devEnrollmentTokenData = a})---- | The name of the device in the form--- enterprises\/{enterpriseId}\/devices\/{deviceId}.-devName :: Lens' Device (Maybe Text)-devName = lens _devName (\ s a -> s{_devName = a})---- | The version of the policy currently applied to the device.-devAppliedPolicyVersion :: Lens' Device (Maybe Int64)-devAppliedPolicyVersion- = lens _devAppliedPolicyVersion- (\ s a -> s{_devAppliedPolicyVersion = a})- . mapping _Coerce---- | Hardware status samples in chronological order. This information is only--- available if hardwareStatusEnabled is true in the device\'s policy.-devHardwareStatusSamples :: Lens' Device [HardwareStatus]-devHardwareStatusSamples- = lens _devHardwareStatusSamples- (\ s a -> s{_devHardwareStatusSamples = a})- . _Default- . _Coerce---- | The state currently applied to the device.-devAppliedState :: Lens' Device (Maybe DeviceAppliedState)-devAppliedState- = lens _devAppliedState- (\ s a -> s{_devAppliedState = a})---- | If the same physical device has been enrolled multiple times, this field--- contains its previous device names. The serial number is used as the--- unique identifier to determine if the same physical device has enrolled--- previously. The names are in chronological order.-devPreviousDeviceNames :: Lens' Device [Text]-devPreviousDeviceNames- = lens _devPreviousDeviceNames- (\ s a -> s{_devPreviousDeviceNames = a})- . _Default- . _Coerce---- | The last time the device fetched its policy.-devLastPolicySyncTime :: Lens' Device (Maybe UTCTime)-devLastPolicySyncTime- = lens _devLastPolicySyncTime- (\ s a -> s{_devLastPolicySyncTime = a})- . mapping _DateTime---- | Device network information. This information is only available if--- networkInfoEnabled is true in the device\'s policy.-devNetworkInfo :: Lens' Device (Maybe NetworkInfo)-devNetworkInfo- = lens _devNetworkInfo- (\ s a -> s{_devNetworkInfo = a})---- | Details about policy settings that the device is not compliant with.-devNonComplianceDetails :: Lens' Device [NonComplianceDetail]-devNonComplianceDetails- = lens _devNonComplianceDetails- (\ s a -> s{_devNonComplianceDetails = a})- . _Default- . _Coerce---- | Detailed information about the device software. This information is only--- available if softwareInfoEnabled is true in the device\'s policy.-devSoftwareInfo :: Lens' Device (Maybe SoftwareInfo)-devSoftwareInfo- = lens _devSoftwareInfo- (\ s a -> s{_devSoftwareInfo = a})---- | The time of device enrollment.-devEnrollmentTime :: Lens' Device (Maybe UTCTime)-devEnrollmentTime- = lens _devEnrollmentTime- (\ s a -> s{_devEnrollmentTime = a})- . mapping _DateTime---- | Detailed information about displays on the device. This information is--- only available if displayInfoEnabled is true in the device\'s policy.-devDisplays :: Lens' Device [Display]-devDisplays- = lens _devDisplays (\ s a -> s{_devDisplays = a}) .- _Default- . _Coerce--instance FromJSON Device where- parseJSON- = withObject "Device"- (\ o ->- Device' <$>- (o .:? "memoryInfo") <*> (o .:? "policyCompliant")- <*> (o .:? "applicationReports" .!= mempty)- <*> (o .:? "policyName")- <*> (o .:? "state")- <*> (o .:? "appliedPolicyName")- <*> (o .:? "lastStatusReportTime")- <*> (o .:? "deviceSettings")- <*> (o .:? "enrollmentTokenName")- <*> (o .:? "managementMode")- <*> (o .:? "hardwareInfo")- <*> (o .:? "powerManagementEvents" .!= mempty)- <*> (o .:? "userName")- <*> (o .:? "memoryEvents" .!= mempty)- <*> (o .:? "apiLevel")- <*> (o .:? "user")- <*> (o .:? "disabledReason")- <*> (o .:? "lastPolicyComplianceReportTime")- <*> (o .:? "enrollmentTokenData")- <*> (o .:? "name")- <*> (o .:? "appliedPolicyVersion")- <*> (o .:? "hardwareStatusSamples" .!= mempty)- <*> (o .:? "appliedState")- <*> (o .:? "previousDeviceNames" .!= mempty)- <*> (o .:? "lastPolicySyncTime")- <*> (o .:? "networkInfo")- <*> (o .:? "nonComplianceDetails" .!= mempty)- <*> (o .:? "softwareInfo")- <*> (o .:? "enrollmentTime")- <*> (o .:? "displays" .!= mempty))--instance ToJSON Device where- toJSON Device'{..}- = object- (catMaybes- [("memoryInfo" .=) <$> _devMemoryInfo,- ("policyCompliant" .=) <$> _devPolicyCompliant,- ("applicationReports" .=) <$> _devApplicationReports,- ("policyName" .=) <$> _devPolicyName,- ("state" .=) <$> _devState,- ("appliedPolicyName" .=) <$> _devAppliedPolicyName,- ("lastStatusReportTime" .=) <$>- _devLastStatusReportTime,- ("deviceSettings" .=) <$> _devDeviceSettings,- ("enrollmentTokenName" .=) <$>- _devEnrollmentTokenName,- ("managementMode" .=) <$> _devManagementMode,- ("hardwareInfo" .=) <$> _devHardwareInfo,- ("powerManagementEvents" .=) <$>- _devPowerManagementEvents,- ("userName" .=) <$> _devUserName,- ("memoryEvents" .=) <$> _devMemoryEvents,- ("apiLevel" .=) <$> _devAPILevel,- ("user" .=) <$> _devUser,- ("disabledReason" .=) <$> _devDisabledReason,- ("lastPolicyComplianceReportTime" .=) <$>- _devLastPolicyComplianceReportTime,- ("enrollmentTokenData" .=) <$>- _devEnrollmentTokenData,- ("name" .=) <$> _devName,- ("appliedPolicyVersion" .=) <$>- _devAppliedPolicyVersion,- ("hardwareStatusSamples" .=) <$>- _devHardwareStatusSamples,- ("appliedState" .=) <$> _devAppliedState,- ("previousDeviceNames" .=) <$>- _devPreviousDeviceNames,- ("lastPolicySyncTime" .=) <$> _devLastPolicySyncTime,- ("networkInfo" .=) <$> _devNetworkInfo,- ("nonComplianceDetails" .=) <$>- _devNonComplianceDetails,- ("softwareInfo" .=) <$> _devSoftwareInfo,- ("enrollmentTime" .=) <$> _devEnrollmentTime,- ("displays" .=) <$> _devDisplays])------- /See:/ 'statusDetailsItem' smart constructor.-newtype StatusDetailsItem =- StatusDetailsItem'- { _sdiAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StatusDetailsItem' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sdiAddtional'-statusDetailsItem- :: HashMap Text JSONValue -- ^ 'sdiAddtional'- -> StatusDetailsItem-statusDetailsItem pSdiAddtional_ =- StatusDetailsItem' {_sdiAddtional = _Coerce # pSdiAddtional_}----- | Properties of the object. Contains field \'type with type URL.-sdiAddtional :: Lens' StatusDetailsItem (HashMap Text JSONValue)-sdiAddtional- = lens _sdiAddtional (\ s a -> s{_sdiAddtional = a})- . _Coerce--instance FromJSON StatusDetailsItem where- parseJSON- = withObject "StatusDetailsItem"- (\ o -> StatusDetailsItem' <$> (parseJSONObject o))--instance ToJSON StatusDetailsItem where- toJSON = toJSON . _sdiAddtional---- | An entry of a managed property.------ /See:/ 'managedPropertyEntry' smart constructor.-data ManagedPropertyEntry =- ManagedPropertyEntry'- { _mpeValue :: !(Maybe Text)- , _mpeName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedPropertyEntry' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mpeValue'------ * 'mpeName'-managedPropertyEntry- :: ManagedPropertyEntry-managedPropertyEntry =- ManagedPropertyEntry' {_mpeValue = Nothing, _mpeName = Nothing}----- | The machine-readable value of the entry, which should be used in the--- configuration. Not localized.-mpeValue :: Lens' ManagedPropertyEntry (Maybe Text)-mpeValue = lens _mpeValue (\ s a -> s{_mpeValue = a})---- | The human-readable name of the value. Localized.-mpeName :: Lens' ManagedPropertyEntry (Maybe Text)-mpeName = lens _mpeName (\ s a -> s{_mpeName = a})--instance FromJSON ManagedPropertyEntry where- parseJSON- = withObject "ManagedPropertyEntry"- (\ o ->- ManagedPropertyEntry' <$>- (o .:? "value") <*> (o .:? "name"))--instance ToJSON ManagedPropertyEntry where- toJSON ManagedPropertyEntry'{..}- = object- (catMaybes- [("value" .=) <$> _mpeValue,- ("name" .=) <$> _mpeName])---- | A rule for automatically choosing a private key and certificate to--- authenticate the device to a server.------ /See:/ 'choosePrivateKeyRule' smart constructor.-data ChoosePrivateKeyRule =- ChoosePrivateKeyRule'- { _cpkrPrivateKeyAlias :: !(Maybe Text)- , _cpkrURLPattern :: !(Maybe Text)- , _cpkrPackageNames :: !(Maybe [Text])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ChoosePrivateKeyRule' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'cpkrPrivateKeyAlias'------ * 'cpkrURLPattern'------ * 'cpkrPackageNames'-choosePrivateKeyRule- :: ChoosePrivateKeyRule-choosePrivateKeyRule =- ChoosePrivateKeyRule'- { _cpkrPrivateKeyAlias = Nothing- , _cpkrURLPattern = Nothing- , _cpkrPackageNames = Nothing- }----- | The alias of the private key to be used.-cpkrPrivateKeyAlias :: Lens' ChoosePrivateKeyRule (Maybe Text)-cpkrPrivateKeyAlias- = lens _cpkrPrivateKeyAlias- (\ s a -> s{_cpkrPrivateKeyAlias = a})---- | The URL pattern to match against the URL of the outgoing request. The--- pattern may contain asterisk (*) wildcards. Any URL is matched if--- unspecified.-cpkrURLPattern :: Lens' ChoosePrivateKeyRule (Maybe Text)-cpkrURLPattern- = lens _cpkrURLPattern- (\ s a -> s{_cpkrURLPattern = a})---- | The package names for which outgoing requests are subject to this rule.--- If no package names are specified, then the rule applies to all--- packages. For each package name listed, the rule applies to that package--- and all other packages that shared the same Android UID. The SHA256 hash--- of the signing key signatures of each package_name will be verified--- against those provided by Play-cpkrPackageNames :: Lens' ChoosePrivateKeyRule [Text]-cpkrPackageNames- = lens _cpkrPackageNames- (\ s a -> s{_cpkrPackageNames = a})- . _Default- . _Coerce--instance FromJSON ChoosePrivateKeyRule where- parseJSON- = withObject "ChoosePrivateKeyRule"- (\ o ->- ChoosePrivateKeyRule' <$>- (o .:? "privateKeyAlias") <*> (o .:? "urlPattern")- <*> (o .:? "packageNames" .!= mempty))--instance ToJSON ChoosePrivateKeyRule where- toJSON ChoosePrivateKeyRule'{..}- = object- (catMaybes- [("privateKeyAlias" .=) <$> _cpkrPrivateKeyAlias,- ("urlPattern" .=) <$> _cpkrURLPattern,- ("packageNames" .=) <$> _cpkrPackageNames])---- | A map containing pairs, where locale is a well-formed BCP 47 language--- (https:\/\/www.w3.org\/International\/articles\/language-tags\/) code,--- such as en-US, es-ES, or fr.------ /See:/ 'userFacingMessageLocalizedMessages' smart constructor.-newtype UserFacingMessageLocalizedMessages =- UserFacingMessageLocalizedMessages'- { _ufmlmAddtional :: HashMap Text Text- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UserFacingMessageLocalizedMessages' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ufmlmAddtional'-userFacingMessageLocalizedMessages- :: HashMap Text Text -- ^ 'ufmlmAddtional'- -> UserFacingMessageLocalizedMessages-userFacingMessageLocalizedMessages pUfmlmAddtional_ =- UserFacingMessageLocalizedMessages'- {_ufmlmAddtional = _Coerce # pUfmlmAddtional_}---ufmlmAddtional :: Lens' UserFacingMessageLocalizedMessages (HashMap Text Text)-ufmlmAddtional- = lens _ufmlmAddtional- (\ s a -> s{_ufmlmAddtional = a})- . _Coerce--instance FromJSON UserFacingMessageLocalizedMessages- where- parseJSON- = withObject "UserFacingMessageLocalizedMessages"- (\ o ->- UserFacingMessageLocalizedMessages' <$>- (parseJSONObject o))--instance ToJSON UserFacingMessageLocalizedMessages- where- toJSON = toJSON . _ufmlmAddtional---- | A user belonging to an enterprise.------ /See:/ 'user' smart constructor.-newtype User =- User'- { _uAccountIdentifier :: 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'-user- :: User-user = User' {_uAccountIdentifier = Nothing}----- | A unique identifier you create for this user, such as user342 or--- asset#44418. This field must be set when the user is created and can\'t--- be updated. This field must not contain personally identifiable--- information (PII). This identifier must be 1024 characters or less;--- otherwise, the update policy request will fail.-uAccountIdentifier :: Lens' User (Maybe Text)-uAccountIdentifier- = lens _uAccountIdentifier- (\ s a -> s{_uAccountIdentifier = a})--instance FromJSON User where- parseJSON- = withObject "User"- (\ o -> User' <$> (o .:? "accountIdentifier"))--instance ToJSON User where- toJSON User'{..}- = object- (catMaybes- [("accountIdentifier" .=) <$> _uAccountIdentifier])---- | Configuration for managing system updates------ /See:/ 'systemUpdate' smart constructor.-data SystemUpdate =- SystemUpdate'- { _suEndMinutes :: !(Maybe (Textual Int32))- , _suStartMinutes :: !(Maybe (Textual Int32))- , _suType :: !(Maybe SystemUpdateType)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SystemUpdate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'suEndMinutes'------ * 'suStartMinutes'------ * 'suType'-systemUpdate- :: SystemUpdate-systemUpdate =- SystemUpdate'- {_suEndMinutes = Nothing, _suStartMinutes = Nothing, _suType = Nothing}----- | If the type is WINDOWED, the end of the maintenance window, measured as--- the number of minutes after midnight in device\'s local time. This value--- must be between 0 and 1439, inclusive. If this value is less than--- start_minutes, then the maintenance window spans midnight. If the--- maintenance window specified is smaller than 30 minutes, the actual--- window is extended to 30 minutes beyond the start time.-suEndMinutes :: Lens' SystemUpdate (Maybe Int32)-suEndMinutes- = lens _suEndMinutes (\ s a -> s{_suEndMinutes = a})- . mapping _Coerce---- | If the type is WINDOWED, the start of the maintenance window, measured--- as the number of minutes after midnight in the device\'s local time.--- This value must be between 0 and 1439, inclusive.-suStartMinutes :: Lens' SystemUpdate (Maybe Int32)-suStartMinutes- = lens _suStartMinutes- (\ s a -> s{_suStartMinutes = a})- . mapping _Coerce---- | The type of system update to configure.-suType :: Lens' SystemUpdate (Maybe SystemUpdateType)-suType = lens _suType (\ s a -> s{_suType = a})--instance FromJSON SystemUpdate where- parseJSON- = withObject "SystemUpdate"- (\ o ->- SystemUpdate' <$>- (o .:? "endMinutes") <*> (o .:? "startMinutes") <*>- (o .:? "type"))--instance ToJSON SystemUpdate where- toJSON SystemUpdate'{..}- = object- (catMaybes- [("endMinutes" .=) <$> _suEndMinutes,- ("startMinutes" .=) <$> _suStartMinutes,- ("type" .=) <$> _suType])---- | Information reported about an installed app.------ /See:/ 'applicationReport' smart constructor.-data ApplicationReport =- ApplicationReport'- { _arVersionCode :: !(Maybe (Textual Int32))- , _arSigningKeyCertFingerprints :: !(Maybe [Text])- , _arState :: !(Maybe ApplicationReportState)- , _arVersionName :: !(Maybe Text)- , _arPackageName :: !(Maybe Text)- , _arPackageSha256Hash :: !(Maybe Text)- , _arKeyedAppStates :: !(Maybe [KeyedAppState])- , _arApplicationSource :: !(Maybe ApplicationReportApplicationSource)- , _arEvents :: !(Maybe [ApplicationEvent])- , _arDisplayName :: !(Maybe Text)- , _arInstallerPackageName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ApplicationReport' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'arVersionCode'------ * 'arSigningKeyCertFingerprints'------ * 'arState'------ * 'arVersionName'------ * 'arPackageName'------ * 'arPackageSha256Hash'------ * 'arKeyedAppStates'------ * 'arApplicationSource'------ * 'arEvents'------ * 'arDisplayName'------ * 'arInstallerPackageName'-applicationReport- :: ApplicationReport-applicationReport =- ApplicationReport'- { _arVersionCode = Nothing- , _arSigningKeyCertFingerprints = Nothing- , _arState = Nothing- , _arVersionName = Nothing- , _arPackageName = Nothing- , _arPackageSha256Hash = Nothing- , _arKeyedAppStates = Nothing- , _arApplicationSource = Nothing- , _arEvents = Nothing- , _arDisplayName = Nothing- , _arInstallerPackageName = Nothing- }----- | The app version code, which can be used to determine whether one version--- is more recent than another.-arVersionCode :: Lens' ApplicationReport (Maybe Int32)-arVersionCode- = lens _arVersionCode- (\ s a -> s{_arVersionCode = a})- . mapping _Coerce---- | The SHA-1 hash of each android.content.pm.Signature--- (https:\/\/developer.android.com\/reference\/android\/content\/pm\/Signature.html)--- associated with the app package. Each byte of each hash value is--- represented as a two-digit hexadecimal number.-arSigningKeyCertFingerprints :: Lens' ApplicationReport [Text]-arSigningKeyCertFingerprints- = lens _arSigningKeyCertFingerprints- (\ s a -> s{_arSigningKeyCertFingerprints = a})- . _Default- . _Coerce---- | Application state.-arState :: Lens' ApplicationReport (Maybe ApplicationReportState)-arState = lens _arState (\ s a -> s{_arState = a})---- | The app version as displayed to the user.-arVersionName :: Lens' ApplicationReport (Maybe Text)-arVersionName- = lens _arVersionName- (\ s a -> s{_arVersionName = a})---- | Package name of the app.-arPackageName :: Lens' ApplicationReport (Maybe Text)-arPackageName- = lens _arPackageName- (\ s a -> s{_arPackageName = a})---- | The SHA-256 hash of the app\'s APK file, which can be used to verify the--- app hasn\'t been modified. Each byte of the hash value is represented as--- a two-digit hexadecimal number.-arPackageSha256Hash :: Lens' ApplicationReport (Maybe Text)-arPackageSha256Hash- = lens _arPackageSha256Hash- (\ s a -> s{_arPackageSha256Hash = a})---- | List of keyed app states reported by the app.-arKeyedAppStates :: Lens' ApplicationReport [KeyedAppState]-arKeyedAppStates- = lens _arKeyedAppStates- (\ s a -> s{_arKeyedAppStates = a})- . _Default- . _Coerce---- | The source of the package.-arApplicationSource :: Lens' ApplicationReport (Maybe ApplicationReportApplicationSource)-arApplicationSource- = lens _arApplicationSource- (\ s a -> s{_arApplicationSource = a})---- | List of app events. The most recent 20 events are stored in the list.-arEvents :: Lens' ApplicationReport [ApplicationEvent]-arEvents- = lens _arEvents (\ s a -> s{_arEvents = a}) .- _Default- . _Coerce---- | The display name of the app.-arDisplayName :: Lens' ApplicationReport (Maybe Text)-arDisplayName- = lens _arDisplayName- (\ s a -> s{_arDisplayName = a})---- | The package name of the app that installed this app.-arInstallerPackageName :: Lens' ApplicationReport (Maybe Text)-arInstallerPackageName- = lens _arInstallerPackageName- (\ s a -> s{_arInstallerPackageName = a})--instance FromJSON ApplicationReport where- parseJSON- = withObject "ApplicationReport"- (\ o ->- ApplicationReport' <$>- (o .:? "versionCode") <*>- (o .:? "signingKeyCertFingerprints" .!= mempty)- <*> (o .:? "state")- <*> (o .:? "versionName")- <*> (o .:? "packageName")- <*> (o .:? "packageSha256Hash")- <*> (o .:? "keyedAppStates" .!= mempty)- <*> (o .:? "applicationSource")- <*> (o .:? "events" .!= mempty)- <*> (o .:? "displayName")- <*> (o .:? "installerPackageName"))--instance ToJSON ApplicationReport where- toJSON ApplicationReport'{..}- = object- (catMaybes- [("versionCode" .=) <$> _arVersionCode,- ("signingKeyCertFingerprints" .=) <$>- _arSigningKeyCertFingerprints,- ("state" .=) <$> _arState,- ("versionName" .=) <$> _arVersionName,- ("packageName" .=) <$> _arPackageName,- ("packageSha256Hash" .=) <$> _arPackageSha256Hash,- ("keyedAppStates" .=) <$> _arKeyedAppStates,- ("applicationSource" .=) <$> _arApplicationSource,- ("events" .=) <$> _arEvents,- ("displayName" .=) <$> _arDisplayName,- ("installerPackageName" .=) <$>- _arInstallerPackageName])---- | An enrollment token.------ /See:/ 'enrollmentToken' smart constructor.-data EnrollmentToken =- EnrollmentToken'- { _etPolicyName :: !(Maybe Text)- , _etValue :: !(Maybe Text)- , _etQrCode :: !(Maybe Text)- , _etAdditionalData :: !(Maybe Text)- , _etUser :: !(Maybe User)- , _etName :: !(Maybe Text)- , _etOneTimeOnly :: !(Maybe Bool)- , _etExpirationTimestamp :: !(Maybe DateTime')- , _etDuration :: !(Maybe GDuration)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnrollmentToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'etPolicyName'------ * 'etValue'------ * 'etQrCode'------ * 'etAdditionalData'------ * 'etUser'------ * 'etName'------ * 'etOneTimeOnly'------ * 'etExpirationTimestamp'------ * 'etDuration'-enrollmentToken- :: EnrollmentToken-enrollmentToken =- EnrollmentToken'- { _etPolicyName = Nothing- , _etValue = Nothing- , _etQrCode = Nothing- , _etAdditionalData = Nothing- , _etUser = Nothing- , _etName = Nothing- , _etOneTimeOnly = Nothing- , _etExpirationTimestamp = Nothing- , _etDuration = Nothing- }----- | The name of the policy initially applied to the enrolled device, in the--- form enterprises\/{enterpriseId}\/policies\/{policyId}. If not--- specified, the policy_name for the device’s user is applied. If--- user_name is also not specified,--- enterprises\/{enterpriseId}\/policies\/default is applied by default.--- When updating this field, you can specify only the policyId as long as--- the policyId doesn’t contain any slashes. The rest of the policy name--- will be inferred.-etPolicyName :: Lens' EnrollmentToken (Maybe Text)-etPolicyName- = lens _etPolicyName (\ s a -> s{_etPolicyName = a})---- | 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.-etValue :: Lens' EnrollmentToken (Maybe Text)-etValue = lens _etValue (\ s a -> s{_etValue = a})---- | A JSON string whose UTF-8 representation can be used to generate a QR--- code to enroll a device with this enrollment token. To enroll a device--- using NFC, the NFC record must contain a serialized java.util.Properties--- representation of the properties in the JSON.-etQrCode :: Lens' EnrollmentToken (Maybe Text)-etQrCode = lens _etQrCode (\ s a -> s{_etQrCode = a})---- | Optional, arbitrary data associated with the enrollment token. This--- could contain, for example, the ID of an org unit the device is assigned--- to after enrollment. After a device enrolls with the token, this data--- will be exposed in the enrollment_token_data field of the Device--- resource. The data must be 1024 characters or less; otherwise, the--- creation request will fail.-etAdditionalData :: Lens' EnrollmentToken (Maybe Text)-etAdditionalData- = lens _etAdditionalData- (\ s a -> s{_etAdditionalData = a})---- | The user associated with this enrollment token. If it\'s specified when--- the enrollment token is created and the user does not exist, the user--- will be created. This field must not contain personally identifiable--- information. Only the account_identifier field needs to be set.-etUser :: Lens' EnrollmentToken (Maybe User)-etUser = lens _etUser (\ s a -> s{_etUser = a})---- | The name of the enrollment token, which is generated by the server--- during creation, in the form--- enterprises\/{enterpriseId}\/enrollmentTokens\/{enrollmentTokenId}.-etName :: Lens' EnrollmentToken (Maybe Text)-etName = lens _etName (\ s a -> s{_etName = a})---- | Whether the enrollment token is for one time use only. If the flag is--- set to true, only one device can use it for registration.-etOneTimeOnly :: Lens' EnrollmentToken (Maybe Bool)-etOneTimeOnly- = lens _etOneTimeOnly- (\ s a -> s{_etOneTimeOnly = a})---- | The expiration time of the token. This is a read-only field generated by--- the server.-etExpirationTimestamp :: Lens' EnrollmentToken (Maybe UTCTime)-etExpirationTimestamp- = lens _etExpirationTimestamp- (\ s a -> s{_etExpirationTimestamp = a})- . mapping _DateTime---- | The length of time the enrollment token is valid, ranging from 1 minute--- to 30 days. If not specified, the default duration is 1 hour.-etDuration :: Lens' EnrollmentToken (Maybe Scientific)-etDuration- = lens _etDuration (\ s a -> s{_etDuration = a}) .- mapping _GDuration--instance FromJSON EnrollmentToken where- parseJSON- = withObject "EnrollmentToken"- (\ o ->- EnrollmentToken' <$>- (o .:? "policyName") <*> (o .:? "value") <*>- (o .:? "qrCode")- <*> (o .:? "additionalData")- <*> (o .:? "user")- <*> (o .:? "name")- <*> (o .:? "oneTimeOnly")- <*> (o .:? "expirationTimestamp")- <*> (o .:? "duration"))--instance ToJSON EnrollmentToken where- toJSON EnrollmentToken'{..}- = object- (catMaybes- [("policyName" .=) <$> _etPolicyName,- ("value" .=) <$> _etValue,- ("qrCode" .=) <$> _etQrCode,- ("additionalData" .=) <$> _etAdditionalData,- ("user" .=) <$> _etUser, ("name" .=) <$> _etName,- ("oneTimeOnly" .=) <$> _etOneTimeOnly,- ("expirationTimestamp" .=) <$>- _etExpirationTimestamp,- ("duration" .=) <$> _etDuration])---- | Managed configuration applied to the app. The format for the--- configuration is dictated by the ManagedProperty values supported by the--- app. Each field name in the managed configuration must match the key--- field of the ManagedProperty. The field value must be compatible with--- the type of the ManagedProperty:--- > +--------------+------------------+--- > | /type/ | /JSON value/ |--- > +--------------+------------------+--- > | BOOL | true or false |--- > +--------------+------------------+--- > | STRING | string |--- > +--------------+------------------+--- > | INTEGER | number |--- > +--------------+------------------+--- > | CHOICE | string |--- > +--------------+------------------+--- > | MULTISELECT | array of strings |--- > +--------------+------------------+--- > | HIDDEN | string |--- > +--------------+------------------+--- > | BUNDLE_ARRAY | array of objects |--- > +--------------+------------------+------ /See:/ 'applicationPolicyManagedConfiguration' smart constructor.-newtype ApplicationPolicyManagedConfiguration =- ApplicationPolicyManagedConfiguration'- { _apmcAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ApplicationPolicyManagedConfiguration' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'apmcAddtional'-applicationPolicyManagedConfiguration- :: HashMap Text JSONValue -- ^ 'apmcAddtional'- -> ApplicationPolicyManagedConfiguration-applicationPolicyManagedConfiguration pApmcAddtional_ =- ApplicationPolicyManagedConfiguration'- {_apmcAddtional = _Coerce # pApmcAddtional_}----- | Properties of the object.-apmcAddtional :: Lens' ApplicationPolicyManagedConfiguration (HashMap Text JSONValue)-apmcAddtional- = lens _apmcAddtional- (\ s a -> s{_apmcAddtional = a})- . _Coerce--instance FromJSON- ApplicationPolicyManagedConfiguration- where- parseJSON- = withObject "ApplicationPolicyManagedConfiguration"- (\ o ->- ApplicationPolicyManagedConfiguration' <$>- (parseJSONObject o))--instance ToJSON ApplicationPolicyManagedConfiguration- where- toJSON = toJSON . _apmcAddtional---- | Settings controlling the behavior of status reports.------ /See:/ 'statusReportingSettings' smart constructor.-data StatusReportingSettings =- StatusReportingSettings'- { _srsSoftwareInfoEnabled :: !(Maybe Bool)- , _srsHardwareStatusEnabled :: !(Maybe Bool)- , _srsPowerManagementEventsEnabled :: !(Maybe Bool)- , _srsDisplayInfoEnabled :: !(Maybe Bool)- , _srsApplicationReportsEnabled :: !(Maybe Bool)- , _srsMemoryInfoEnabled :: !(Maybe Bool)- , _srsNetworkInfoEnabled :: !(Maybe Bool)- , _srsDeviceSettingsEnabled :: !(Maybe Bool)- , _srsApplicationReportingSettings :: !(Maybe ApplicationReportingSettings)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'StatusReportingSettings' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'srsSoftwareInfoEnabled'------ * 'srsHardwareStatusEnabled'------ * 'srsPowerManagementEventsEnabled'------ * 'srsDisplayInfoEnabled'------ * 'srsApplicationReportsEnabled'------ * 'srsMemoryInfoEnabled'------ * 'srsNetworkInfoEnabled'------ * 'srsDeviceSettingsEnabled'------ * 'srsApplicationReportingSettings'-statusReportingSettings- :: StatusReportingSettings-statusReportingSettings =- StatusReportingSettings'- { _srsSoftwareInfoEnabled = Nothing- , _srsHardwareStatusEnabled = Nothing- , _srsPowerManagementEventsEnabled = Nothing- , _srsDisplayInfoEnabled = Nothing- , _srsApplicationReportsEnabled = Nothing- , _srsMemoryInfoEnabled = Nothing- , _srsNetworkInfoEnabled = Nothing- , _srsDeviceSettingsEnabled = Nothing- , _srsApplicationReportingSettings = Nothing- }----- | Whether software info reporting is enabled.-srsSoftwareInfoEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsSoftwareInfoEnabled- = lens _srsSoftwareInfoEnabled- (\ s a -> s{_srsSoftwareInfoEnabled = a})---- | Whether hardware status reporting is enabled.-srsHardwareStatusEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsHardwareStatusEnabled- = lens _srsHardwareStatusEnabled- (\ s a -> s{_srsHardwareStatusEnabled = a})---- | Whether power management event reporting is enabled.-srsPowerManagementEventsEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsPowerManagementEventsEnabled- = lens _srsPowerManagementEventsEnabled- (\ s a -> s{_srsPowerManagementEventsEnabled = a})---- | Whether displays reporting is enabled.-srsDisplayInfoEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsDisplayInfoEnabled- = lens _srsDisplayInfoEnabled- (\ s a -> s{_srsDisplayInfoEnabled = a})---- | Whether app reports are enabled.-srsApplicationReportsEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsApplicationReportsEnabled- = lens _srsApplicationReportsEnabled- (\ s a -> s{_srsApplicationReportsEnabled = a})---- | Whether memory reporting is enabled.-srsMemoryInfoEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsMemoryInfoEnabled- = lens _srsMemoryInfoEnabled- (\ s a -> s{_srsMemoryInfoEnabled = a})---- | Whether network info reporting is enabled.-srsNetworkInfoEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsNetworkInfoEnabled- = lens _srsNetworkInfoEnabled- (\ s a -> s{_srsNetworkInfoEnabled = a})---- | Whether device settings reporting is enabled.-srsDeviceSettingsEnabled :: Lens' StatusReportingSettings (Maybe Bool)-srsDeviceSettingsEnabled- = lens _srsDeviceSettingsEnabled- (\ s a -> s{_srsDeviceSettingsEnabled = a})---- | Application reporting settings. Only applicable if--- application_reports_enabled is true.-srsApplicationReportingSettings :: Lens' StatusReportingSettings (Maybe ApplicationReportingSettings)-srsApplicationReportingSettings- = lens _srsApplicationReportingSettings- (\ s a -> s{_srsApplicationReportingSettings = a})--instance FromJSON StatusReportingSettings where- parseJSON- = withObject "StatusReportingSettings"- (\ o ->- StatusReportingSettings' <$>- (o .:? "softwareInfoEnabled") <*>- (o .:? "hardwareStatusEnabled")- <*> (o .:? "powerManagementEventsEnabled")- <*> (o .:? "displayInfoEnabled")- <*> (o .:? "applicationReportsEnabled")- <*> (o .:? "memoryInfoEnabled")- <*> (o .:? "networkInfoEnabled")- <*> (o .:? "deviceSettingsEnabled")- <*> (o .:? "applicationReportingSettings"))--instance ToJSON StatusReportingSettings where- toJSON StatusReportingSettings'{..}- = object- (catMaybes- [("softwareInfoEnabled" .=) <$>- _srsSoftwareInfoEnabled,- ("hardwareStatusEnabled" .=) <$>- _srsHardwareStatusEnabled,- ("powerManagementEventsEnabled" .=) <$>- _srsPowerManagementEventsEnabled,- ("displayInfoEnabled" .=) <$> _srsDisplayInfoEnabled,- ("applicationReportsEnabled" .=) <$>- _srsApplicationReportsEnabled,- ("memoryInfoEnabled" .=) <$> _srsMemoryInfoEnabled,- ("networkInfoEnabled" .=) <$> _srsNetworkInfoEnabled,- ("deviceSettingsEnabled" .=) <$>- _srsDeviceSettingsEnabled,- ("applicationReportingSettings" .=) <$>- _srsApplicationReportingSettings])---- | An icon for a web app. Supported formats are: png, jpg and webp.------ /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])---- | Policy for an individual app.------ /See:/ 'applicationPolicy' smart constructor.-data ApplicationPolicy =- ApplicationPolicy'- { _apDelegatedScopes :: !(Maybe [Text])- , _apPackageName :: !(Maybe Text)- , _apManagedConfiguration :: !(Maybe ApplicationPolicyManagedConfiguration)- , _apDefaultPermissionPolicy :: !(Maybe ApplicationPolicyDefaultPermissionPolicy)- , _apDisabled :: !(Maybe Bool)- , _apLockTaskAllowed :: !(Maybe Bool)- , _apPermissionGrants :: !(Maybe [PermissionGrant])- , _apManagedConfigurationTemplate :: !(Maybe ManagedConfigurationTemplate)- , _apMinimumVersionCode :: !(Maybe (Textual Int32))- , _apInstallType :: !(Maybe ApplicationPolicyInstallType)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ApplicationPolicy' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'apDelegatedScopes'------ * 'apPackageName'------ * 'apManagedConfiguration'------ * 'apDefaultPermissionPolicy'------ * 'apDisabled'------ * 'apLockTaskAllowed'------ * 'apPermissionGrants'------ * 'apManagedConfigurationTemplate'------ * 'apMinimumVersionCode'------ * 'apInstallType'-applicationPolicy- :: ApplicationPolicy-applicationPolicy =- ApplicationPolicy'- { _apDelegatedScopes = Nothing- , _apPackageName = Nothing- , _apManagedConfiguration = Nothing- , _apDefaultPermissionPolicy = Nothing- , _apDisabled = Nothing- , _apLockTaskAllowed = Nothing- , _apPermissionGrants = Nothing- , _apManagedConfigurationTemplate = Nothing- , _apMinimumVersionCode = Nothing- , _apInstallType = Nothing- }----- | The scopes delegated to the app from Android Device Policy.-apDelegatedScopes :: Lens' ApplicationPolicy [Text]-apDelegatedScopes- = lens _apDelegatedScopes- (\ s a -> s{_apDelegatedScopes = a})- . _Default- . _Coerce---- | The package name of the app. For example, com.google.android.youtube for--- the YouTube app.-apPackageName :: Lens' ApplicationPolicy (Maybe Text)-apPackageName- = lens _apPackageName- (\ s a -> s{_apPackageName = a})---- | Managed configuration applied to the app. The format for the--- configuration is dictated by the ManagedProperty values supported by the--- app. Each field name in the managed configuration must match the key--- field of the ManagedProperty. The field value must be compatible with--- the type of the ManagedProperty:--- > +--------------+------------------+--- > | /type/ | /JSON value/ |--- > +--------------+------------------+--- > | BOOL | true or false |--- > +--------------+------------------+--- > | STRING | string |--- > +--------------+------------------+--- > | INTEGER | number |--- > +--------------+------------------+--- > | CHOICE | string |--- > +--------------+------------------+--- > | MULTISELECT | array of strings |--- > +--------------+------------------+--- > | HIDDEN | string |--- > +--------------+------------------+--- > | BUNDLE_ARRAY | array of objects |--- > +--------------+------------------+-apManagedConfiguration :: Lens' ApplicationPolicy (Maybe ApplicationPolicyManagedConfiguration)-apManagedConfiguration- = lens _apManagedConfiguration- (\ s a -> s{_apManagedConfiguration = a})---- | The default policy for all permissions requested by the app. If--- specified, this overrides the policy-level default_permission_policy--- which applies to all apps. It does not override the permission_grants--- which applies to all apps.-apDefaultPermissionPolicy :: Lens' ApplicationPolicy (Maybe ApplicationPolicyDefaultPermissionPolicy)-apDefaultPermissionPolicy- = lens _apDefaultPermissionPolicy- (\ s a -> s{_apDefaultPermissionPolicy = a})---- | Whether the app is disabled. When disabled, the app data is still--- preserved.-apDisabled :: Lens' ApplicationPolicy (Maybe Bool)-apDisabled- = lens _apDisabled (\ s a -> s{_apDisabled = a})---- | Whether the app is allowed to lock itself in full-screen mode.-apLockTaskAllowed :: Lens' ApplicationPolicy (Maybe Bool)-apLockTaskAllowed- = lens _apLockTaskAllowed- (\ s a -> s{_apLockTaskAllowed = a})---- | Explicit permission grants or denials for the app. These values override--- the default_permission_policy and permission_grants which apply to all--- apps.-apPermissionGrants :: Lens' ApplicationPolicy [PermissionGrant]-apPermissionGrants- = lens _apPermissionGrants- (\ s a -> s{_apPermissionGrants = a})- . _Default- . _Coerce---- | The managed configurations template for the app, saved from the managed--- configurations iframe. This field is ignored if managed_configuration is--- set.-apManagedConfigurationTemplate :: Lens' ApplicationPolicy (Maybe ManagedConfigurationTemplate)-apManagedConfigurationTemplate- = lens _apManagedConfigurationTemplate- (\ s a -> s{_apManagedConfigurationTemplate = a})---- | The minimum version of the app that runs on the device. If set, the--- device attempts to update the app to at least this version code. If the--- app is not up-to-date, the device will contain a NonComplianceDetail--- with non_compliance_reason set to APP_NOT_UPDATED. The app must already--- be published to Google Play with a version code greater than or equal to--- this value. At most 20 apps may specify a minimum version code per--- policy.-apMinimumVersionCode :: Lens' ApplicationPolicy (Maybe Int32)-apMinimumVersionCode- = lens _apMinimumVersionCode- (\ s a -> s{_apMinimumVersionCode = a})- . mapping _Coerce---- | The type of installation to perform.-apInstallType :: Lens' ApplicationPolicy (Maybe ApplicationPolicyInstallType)-apInstallType- = lens _apInstallType- (\ s a -> s{_apInstallType = a})--instance FromJSON ApplicationPolicy where- parseJSON- = withObject "ApplicationPolicy"- (\ o ->- ApplicationPolicy' <$>- (o .:? "delegatedScopes" .!= mempty) <*>- (o .:? "packageName")- <*> (o .:? "managedConfiguration")- <*> (o .:? "defaultPermissionPolicy")- <*> (o .:? "disabled")- <*> (o .:? "lockTaskAllowed")- <*> (o .:? "permissionGrants" .!= mempty)- <*> (o .:? "managedConfigurationTemplate")- <*> (o .:? "minimumVersionCode")- <*> (o .:? "installType"))--instance ToJSON ApplicationPolicy where- toJSON ApplicationPolicy'{..}- = object- (catMaybes- [("delegatedScopes" .=) <$> _apDelegatedScopes,- ("packageName" .=) <$> _apPackageName,- ("managedConfiguration" .=) <$>- _apManagedConfiguration,- ("defaultPermissionPolicy" .=) <$>- _apDefaultPermissionPolicy,- ("disabled" .=) <$> _apDisabled,- ("lockTaskAllowed" .=) <$> _apLockTaskAllowed,- ("permissionGrants" .=) <$> _apPermissionGrants,- ("managedConfigurationTemplate" .=) <$>- _apManagedConfigurationTemplate,- ("minimumVersionCode" .=) <$> _apMinimumVersionCode,- ("installType" .=) <$> _apInstallType])---- | Response to a request to list devices for a given enterprise.------ /See:/ 'listDevicesResponse' smart constructor.-data ListDevicesResponse =- ListDevicesResponse'- { _ldrNextPageToken :: !(Maybe Text)- , _ldrDevices :: !(Maybe [Device])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListDevicesResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ldrNextPageToken'------ * 'ldrDevices'-listDevicesResponse- :: ListDevicesResponse-listDevicesResponse =- ListDevicesResponse' {_ldrNextPageToken = Nothing, _ldrDevices = Nothing}----- | If there are more results, a token to retrieve next page of results.-ldrNextPageToken :: Lens' ListDevicesResponse (Maybe Text)-ldrNextPageToken- = lens _ldrNextPageToken- (\ s a -> s{_ldrNextPageToken = a})---- | The list of devices.-ldrDevices :: Lens' ListDevicesResponse [Device]-ldrDevices- = lens _ldrDevices (\ s a -> s{_ldrDevices = a}) .- _Default- . _Coerce--instance FromJSON ListDevicesResponse where- parseJSON- = withObject "ListDevicesResponse"- (\ o ->- ListDevicesResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "devices" .!= mempty))--instance ToJSON ListDevicesResponse where- toJSON ListDevicesResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _ldrNextPageToken,- ("devices" .=) <$> _ldrDevices])---- | The managed configurations template for the app, saved from the managed--- configurations iframe.------ /See:/ 'managedConfigurationTemplate' smart constructor.-data ManagedConfigurationTemplate =- ManagedConfigurationTemplate'- { _mctTemplateId :: !(Maybe Text)- , _mctConfigurationVariables :: !(Maybe ManagedConfigurationTemplateConfigurationVariables)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ManagedConfigurationTemplate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'mctTemplateId'------ * 'mctConfigurationVariables'-managedConfigurationTemplate- :: ManagedConfigurationTemplate-managedConfigurationTemplate =- ManagedConfigurationTemplate'- {_mctTemplateId = Nothing, _mctConfigurationVariables = Nothing}----- | The ID of the managed configurations template.-mctTemplateId :: Lens' ManagedConfigurationTemplate (Maybe Text)-mctTemplateId- = lens _mctTemplateId- (\ s a -> s{_mctTemplateId = a})---- | Optional, a map containing configuration variables defined for the--- configuration.-mctConfigurationVariables :: Lens' ManagedConfigurationTemplate (Maybe ManagedConfigurationTemplateConfigurationVariables)-mctConfigurationVariables- = lens _mctConfigurationVariables- (\ s a -> s{_mctConfigurationVariables = a})--instance FromJSON ManagedConfigurationTemplate where- parseJSON- = withObject "ManagedConfigurationTemplate"- (\ o ->- ManagedConfigurationTemplate' <$>- (o .:? "templateId") <*>- (o .:? "configurationVariables"))--instance ToJSON ManagedConfigurationTemplate where- toJSON ManagedConfigurationTemplate'{..}- = object- (catMaybes- [("templateId" .=) <$> _mctTemplateId,- ("configurationVariables" .=) <$>- _mctConfigurationVariables])---- | The configuration applied to an enterprise.------ /See:/ 'enterprise' smart constructor.-data Enterprise =- Enterprise'- { _eAppAutoApprovalEnabled :: !(Maybe Bool)- , _eEnabledNotificationTypes :: !(Maybe [Text])- , _eSigninDetails :: !(Maybe [SigninDetail])- , _eName :: !(Maybe Text)- , _ePubsubTopic :: !(Maybe Text)- , _eEnterpriseDisplayName :: !(Maybe Text)- , _eLogo :: !(Maybe ExternalData)- , _eTermsAndConditions :: !(Maybe [TermsAndConditions])- , _ePrimaryColor :: !(Maybe (Textual Int32))- }- 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:------ * 'eAppAutoApprovalEnabled'------ * 'eEnabledNotificationTypes'------ * 'eSigninDetails'------ * 'eName'------ * 'ePubsubTopic'------ * 'eEnterpriseDisplayName'------ * 'eLogo'------ * 'eTermsAndConditions'------ * 'ePrimaryColor'-enterprise- :: Enterprise-enterprise =- Enterprise'- { _eAppAutoApprovalEnabled = Nothing- , _eEnabledNotificationTypes = Nothing- , _eSigninDetails = Nothing- , _eName = Nothing- , _ePubsubTopic = Nothing- , _eEnterpriseDisplayName = Nothing- , _eLogo = Nothing- , _eTermsAndConditions = Nothing- , _ePrimaryColor = Nothing- }----- | Deprecated and unused.-eAppAutoApprovalEnabled :: Lens' Enterprise (Maybe Bool)-eAppAutoApprovalEnabled- = lens _eAppAutoApprovalEnabled- (\ s a -> s{_eAppAutoApprovalEnabled = a})---- | The types of Google Pub\/Sub notifications enabled for the enterprise.-eEnabledNotificationTypes :: Lens' Enterprise [Text]-eEnabledNotificationTypes- = lens _eEnabledNotificationTypes- (\ s a -> s{_eEnabledNotificationTypes = a})- . _Default- . _Coerce---- | Sign-in details of the enterprise. Maximum of 1 SigninDetail is--- supported.-eSigninDetails :: Lens' Enterprise [SigninDetail]-eSigninDetails- = lens _eSigninDetails- (\ s a -> s{_eSigninDetails = a})- . _Default- . _Coerce---- | The name of the enterprise which is generated by the server during--- creation, in the form enterprises\/{enterpriseId}.-eName :: Lens' Enterprise (Maybe Text)-eName = lens _eName (\ s a -> s{_eName = a})---- | The topic that Cloud Pub\/Sub notifications are published to, in the--- form projects\/{project}\/topics\/{topic}. This field is only required--- if Pub\/Sub notifications are enabled.-ePubsubTopic :: Lens' Enterprise (Maybe Text)-ePubsubTopic- = lens _ePubsubTopic (\ s a -> s{_ePubsubTopic = a})---- | The name of the enterprise displayed to users.-eEnterpriseDisplayName :: Lens' Enterprise (Maybe Text)-eEnterpriseDisplayName- = lens _eEnterpriseDisplayName- (\ s a -> s{_eEnterpriseDisplayName = a})---- | An image displayed as a logo during device provisioning. Supported types--- are: image\/bmp, image\/gif, image\/x-ico, image\/jpeg, image\/png,--- image\/webp, image\/vnd.wap.wbmp, image\/x-adobe-dng.-eLogo :: Lens' Enterprise (Maybe ExternalData)-eLogo = lens _eLogo (\ s a -> s{_eLogo = a})---- | Terms and conditions that must be accepted when provisioning a device--- for this enterprise. A page of terms is generated for each value in this--- list.-eTermsAndConditions :: Lens' Enterprise [TermsAndConditions]-eTermsAndConditions- = lens _eTermsAndConditions- (\ s a -> s{_eTermsAndConditions = a})- . _Default- . _Coerce---- | A color in RGB format that indicates the predominant color to display in--- the device management app UI. The color components are stored as--- follows: (red \<\< 16) | (green \<\< 8) | blue, where the value of each--- component is between 0 and 255, inclusive.-ePrimaryColor :: Lens' Enterprise (Maybe Int32)-ePrimaryColor- = lens _ePrimaryColor- (\ s a -> s{_ePrimaryColor = a})- . mapping _Coerce--instance FromJSON Enterprise where- parseJSON- = withObject "Enterprise"- (\ o ->- Enterprise' <$>- (o .:? "appAutoApprovalEnabled") <*>- (o .:? "enabledNotificationTypes" .!= mempty)- <*> (o .:? "signinDetails" .!= mempty)- <*> (o .:? "name")- <*> (o .:? "pubsubTopic")- <*> (o .:? "enterpriseDisplayName")- <*> (o .:? "logo")- <*> (o .:? "termsAndConditions" .!= mempty)- <*> (o .:? "primaryColor"))--instance ToJSON Enterprise where- toJSON Enterprise'{..}- = object- (catMaybes- [("appAutoApprovalEnabled" .=) <$>- _eAppAutoApprovalEnabled,- ("enabledNotificationTypes" .=) <$>- _eEnabledNotificationTypes,- ("signinDetails" .=) <$> _eSigninDetails,- ("name" .=) <$> _eName,- ("pubsubTopic" .=) <$> _ePubsubTopic,- ("enterpriseDisplayName" .=) <$>- _eEnterpriseDisplayName,- ("logo" .=) <$> _eLogo,- ("termsAndConditions" .=) <$> _eTermsAndConditions,- ("primaryColor" .=) <$> _ePrimaryColor])---- | An event related to memory and storage measurements.------ /See:/ 'memoryEvent' smart constructor.-data MemoryEvent =- MemoryEvent'- { _meByteCount :: !(Maybe (Textual Int64))- , _meEventType :: !(Maybe MemoryEventEventType)- , _meCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'MemoryEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'meByteCount'------ * 'meEventType'------ * 'meCreateTime'-memoryEvent- :: MemoryEvent-memoryEvent =- MemoryEvent'- {_meByteCount = Nothing, _meEventType = Nothing, _meCreateTime = Nothing}----- | The number of free bytes in the medium, or for--- EXTERNAL_STORAGE_DETECTED, the total capacity in bytes of the storage--- medium.-meByteCount :: Lens' MemoryEvent (Maybe Int64)-meByteCount- = lens _meByteCount (\ s a -> s{_meByteCount = a}) .- mapping _Coerce---- | Event type.-meEventType :: Lens' MemoryEvent (Maybe MemoryEventEventType)-meEventType- = lens _meEventType (\ s a -> s{_meEventType = a})---- | The creation time of the event.-meCreateTime :: Lens' MemoryEvent (Maybe UTCTime)-meCreateTime- = lens _meCreateTime (\ s a -> s{_meCreateTime = a})- . mapping _DateTime--instance FromJSON MemoryEvent where- parseJSON- = withObject "MemoryEvent"- (\ o ->- MemoryEvent' <$>- (o .:? "byteCount") <*> (o .:? "eventType") <*>- (o .:? "createTime"))--instance ToJSON MemoryEvent where- toJSON MemoryEvent'{..}- = object- (catMaybes- [("byteCount" .=) <$> _meByteCount,- ("eventType" .=) <$> _meEventType,- ("createTime" .=) <$> _meCreateTime])---- | Configuration for an Android permission and its grant state.------ /See:/ 'permissionGrant' smart constructor.-data PermissionGrant =- PermissionGrant'- { _pgPolicy :: !(Maybe PermissionGrantPolicy)- , _pgPermission :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PermissionGrant' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pgPolicy'------ * 'pgPermission'-permissionGrant- :: PermissionGrant-permissionGrant =- PermissionGrant' {_pgPolicy = Nothing, _pgPermission = Nothing}----- | The policy for granting the permission.-pgPolicy :: Lens' PermissionGrant (Maybe PermissionGrantPolicy)-pgPolicy = lens _pgPolicy (\ s a -> s{_pgPolicy = a})---- | The Android permission or group, e.g. android.permission.READ_CALENDAR--- or android.permission_group.CALENDAR.-pgPermission :: Lens' PermissionGrant (Maybe Text)-pgPermission- = lens _pgPermission (\ s a -> s{_pgPermission = a})--instance FromJSON PermissionGrant where- parseJSON- = withObject "PermissionGrant"- (\ o ->- PermissionGrant' <$>- (o .:? "policy") <*> (o .:? "permission"))--instance ToJSON PermissionGrant where- toJSON PermissionGrant'{..}- = object- (catMaybes- [("policy" .=) <$> _pgPolicy,- ("permission" .=) <$> _pgPermission])---- | A resource containing sign in details for an enterprise.------ /See:/ 'signinDetail' smart constructor.-data SigninDetail =- SigninDetail'- { _sdSigninURL :: !(Maybe Text)- , _sdQrCode :: !(Maybe Text)- , _sdSigninEnrollmentToken :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SigninDetail' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sdSigninURL'------ * 'sdQrCode'------ * 'sdSigninEnrollmentToken'-signinDetail- :: SigninDetail-signinDetail =- SigninDetail'- { _sdSigninURL = Nothing- , _sdQrCode = Nothing- , _sdSigninEnrollmentToken = Nothing- }----- | Sign-in URL for authentication when device is provisioned with a sign-in--- enrollment token. The sign-in endpoint should finish authentication flow--- with a URL in the form of--- https:\/\/enterprise.google.com\/android\/enroll?et= for a successful--- login, or https:\/\/enterprise.google.com\/android\/enroll\/invalid for--- a failed login.-sdSigninURL :: Lens' SigninDetail (Maybe Text)-sdSigninURL- = lens _sdSigninURL (\ s a -> s{_sdSigninURL = a})---- | A JSON string whose UTF-8 representation can be used to generate a QR--- code to enroll a device with this enrollment token. To enroll a device--- using NFC, the NFC record must contain a serialized java.util.Properties--- representation of the properties in the JSON. This is a read-only field--- generated by the server.-sdQrCode :: Lens' SigninDetail (Maybe Text)-sdQrCode = lens _sdQrCode (\ s a -> s{_sdQrCode = a})---- | An enterprise wide enrollment token used to trigger custom sign-in flow.--- This is a read-only field generated by the server.-sdSigninEnrollmentToken :: Lens' SigninDetail (Maybe Text)-sdSigninEnrollmentToken- = lens _sdSigninEnrollmentToken- (\ s a -> s{_sdSigninEnrollmentToken = a})--instance FromJSON SigninDetail where- parseJSON- = withObject "SigninDetail"- (\ o ->- SigninDetail' <$>- (o .:? "signinUrl") <*> (o .:? "qrCode") <*>- (o .:? "signinEnrollmentToken"))--instance ToJSON SigninDetail where- toJSON SigninDetail'{..}- = object- (catMaybes- [("signinUrl" .=) <$> _sdSigninURL,- ("qrCode" .=) <$> _sdQrCode,- ("signinEnrollmentToken" .=) <$>- _sdSigninEnrollmentToken])---- | An enterprise signup URL.------ /See:/ 'signupURL' smart constructor.-data SignupURL =- SignupURL'- { _suURL :: !(Maybe Text)- , _suName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SignupURL' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'suURL'------ * 'suName'-signupURL- :: SignupURL-signupURL = SignupURL' {_suURL = Nothing, _suName = Nothing}----- | A URL where an enterprise admin can register their enterprise. The page--- can\'t be rendered in an iframe.-suURL :: Lens' SignupURL (Maybe Text)-suURL = lens _suURL (\ s a -> s{_suURL = a})---- | The name of the resource. Use this value in the signupUrl field when--- calling enterprises.create to complete the enterprise signup flow.-suName :: Lens' SignupURL (Maybe Text)-suName = lens _suName (\ s a -> s{_suName = a})--instance FromJSON SignupURL where- parseJSON- = withObject "SignupURL"- (\ o ->- SignupURL' <$> (o .:? "url") <*> (o .:? "name"))--instance ToJSON SignupURL where- toJSON SignupURL'{..}- = object- (catMaybes- [("url" .=) <$> _suURL, ("name" .=) <$> _suName])---- | Device network info.------ /See:/ 'networkInfo' smart constructor.-data NetworkInfo =- NetworkInfo'- { _niNetworkOperatorName :: !(Maybe Text)- , _niMeid :: !(Maybe Text)- , _niImei :: !(Maybe Text)- , _niWifiMACAddress :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'NetworkInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'niNetworkOperatorName'------ * 'niMeid'------ * 'niImei'------ * 'niWifiMACAddress'-networkInfo- :: NetworkInfo-networkInfo =- NetworkInfo'- { _niNetworkOperatorName = Nothing- , _niMeid = Nothing- , _niImei = Nothing- , _niWifiMACAddress = Nothing- }----- | Alphabetic name of current registered operator. For example, Vodafone.-niNetworkOperatorName :: Lens' NetworkInfo (Maybe Text)-niNetworkOperatorName- = lens _niNetworkOperatorName- (\ s a -> s{_niNetworkOperatorName = a})---- | MEID number of the CDMA device. For example, A00000292788E1.-niMeid :: Lens' NetworkInfo (Maybe Text)-niMeid = lens _niMeid (\ s a -> s{_niMeid = a})---- | IMEI number of the GSM device. For example, A1000031212.-niImei :: Lens' NetworkInfo (Maybe Text)-niImei = lens _niImei (\ s a -> s{_niImei = a})---- | Wi-Fi MAC address of the device. For example, 7c:11:11:11:11:11.-niWifiMACAddress :: Lens' NetworkInfo (Maybe Text)-niWifiMACAddress- = lens _niWifiMACAddress- (\ s a -> s{_niWifiMACAddress = a})--instance FromJSON NetworkInfo where- parseJSON- = withObject "NetworkInfo"- (\ o ->- NetworkInfo' <$>- (o .:? "networkOperatorName") <*> (o .:? "meid") <*>- (o .:? "imei")- <*> (o .:? "wifiMacAddress"))--instance ToJSON NetworkInfo where- toJSON NetworkInfo'{..}- = object- (catMaybes- [("networkOperatorName" .=) <$>- _niNetworkOperatorName,- ("meid" .=) <$> _niMeid, ("imei" .=) <$> _niImei,- ("wifiMacAddress" .=) <$> _niWifiMACAddress])---- | A power management event.------ /See:/ 'powerManagementEvent' smart constructor.-data PowerManagementEvent =- PowerManagementEvent'- { _pmeBatteryLevel :: !(Maybe (Textual Double))- , _pmeEventType :: !(Maybe PowerManagementEventEventType)- , _pmeCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PowerManagementEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'pmeBatteryLevel'------ * 'pmeEventType'------ * 'pmeCreateTime'-powerManagementEvent- :: PowerManagementEvent-powerManagementEvent =- PowerManagementEvent'- { _pmeBatteryLevel = Nothing- , _pmeEventType = Nothing- , _pmeCreateTime = Nothing- }----- | For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.-pmeBatteryLevel :: Lens' PowerManagementEvent (Maybe Double)-pmeBatteryLevel- = lens _pmeBatteryLevel- (\ s a -> s{_pmeBatteryLevel = a})- . mapping _Coerce---- | Event type.-pmeEventType :: Lens' PowerManagementEvent (Maybe PowerManagementEventEventType)-pmeEventType- = lens _pmeEventType (\ s a -> s{_pmeEventType = a})---- | The creation time of the event.-pmeCreateTime :: Lens' PowerManagementEvent (Maybe UTCTime)-pmeCreateTime- = lens _pmeCreateTime- (\ s a -> s{_pmeCreateTime = a})- . mapping _DateTime--instance FromJSON PowerManagementEvent where- parseJSON- = withObject "PowerManagementEvent"- (\ o ->- PowerManagementEvent' <$>- (o .:? "batteryLevel") <*> (o .:? "eventType") <*>- (o .:? "createTime"))--instance ToJSON PowerManagementEvent where- toJSON PowerManagementEvent'{..}- = object- (catMaybes- [("batteryLevel" .=) <$> _pmeBatteryLevel,- ("eventType" .=) <$> _pmeEventType,- ("createTime" .=) <$> _pmeCreateTime])---- | A policy resources represents a group settings that govern the behavior--- of a managed device and the apps installed on it.------ /See:/ 'policy' smart constructor.-data Policy =- Policy'- { _pBluetoothConfigDisabled :: !(Maybe Bool)- , _pUnmuteMicrophoneDisabled :: !(Maybe Bool)- , _pMountPhysicalMediaDisabled :: !(Maybe Bool)- , _pFrpAdminEmails :: !(Maybe [Text])- , _pAppAutoUpdatePolicy :: !(Maybe PolicyAppAutoUpdatePolicy)- , _pEncryptionPolicy :: !(Maybe PolicyEncryptionPolicy)- , _pAndroidDevicePolicyTracks :: !(Maybe [Text])- , _pSafeBootDisabled :: !(Maybe Bool)- , _pAlwaysOnVPNPackage :: !(Maybe AlwaysOnVPNPackage)- , _pChoosePrivateKeyRules :: !(Maybe [ChoosePrivateKeyRule])- , _pCredentialsConfigDisabled :: !(Maybe Bool)- , _pRecommendedGlobalProxy :: !(Maybe ProxyInfo)- , _pKeyguardDisabled :: !(Maybe Bool)- , _pSkipFirstUseHintsEnabled :: !(Maybe Bool)- , _pAdjustVolumeDisabled :: !(Maybe Bool)- , _pDefaultPermissionPolicy :: !(Maybe PolicyDefaultPermissionPolicy)- , _pUninstallAppsDisabled :: !(Maybe Bool)- , _pSetUserIconDisabled :: !(Maybe Bool)- , _pPermittedInputMethods :: !(Maybe PackageNameList)- , _pScreenCaptureDisabled :: !(Maybe Bool)- , _pAddUserDisabled :: !(Maybe Bool)- , _pShareLocationDisabled :: !(Maybe Bool)- , _pAutoTimeRequired :: !(Maybe Bool)- , _pInstallAppsDisabled :: !(Maybe Bool)- , _pCreateWindowsDisabled :: !(Maybe Bool)- , _pNetworkResetDisabled :: !(Maybe Bool)- , _pBluetoothContactSharingDisabled :: !(Maybe Bool)- , _pPermissionGrants :: !(Maybe [PermissionGrant])- , _pShortSupportMessage :: !(Maybe UserFacingMessage)- , _pStayOnPluggedModes :: !(Maybe [Text])- , _pDataRoamingDisabled :: !(Maybe Bool)- , _pDebuggingFeaturesAllowed :: !(Maybe Bool)- , _pKioskCustomLauncherEnabled :: !(Maybe Bool)- , _pWifiConfigsLockdownEnabled :: !(Maybe Bool)- , _pUsbMassStorageEnabled :: !(Maybe Bool)- , _pNetworkEscapeHatchEnabled :: !(Maybe Bool)- , _pSystemUpdate :: !(Maybe SystemUpdate)- , _pInstallUnknownSourcesAllowed :: !(Maybe Bool)- , _pName :: !(Maybe Text)- , _pPrivateKeySelectionEnabled :: !(Maybe Bool)- , _pOutgoingCallsDisabled :: !(Maybe Bool)- , _pStatusReportingSettings :: !(Maybe StatusReportingSettings)- , _pRemoveUserDisabled :: !(Maybe Bool)- , _pMobileNetworksConfigDisabled :: !(Maybe Bool)- , _pVersion :: !(Maybe (Textual Int64))- , _pEnsureVerifyAppsEnabled :: !(Maybe Bool)- , _pSetWallpaperDisabled :: !(Maybe Bool)- , _pVPNConfigDisabled :: !(Maybe Bool)- , _pSetupActions :: !(Maybe [SetupAction])- , _pOpenNetworkConfiguration :: !(Maybe PolicyOpenNetworkConfiguration)- , _pModifyAccountsDisabled :: !(Maybe Bool)- , _pBlockApplicationsEnabled :: !(Maybe Bool)- , _pKeyguardDisabledFeatures :: !(Maybe [Text])- , _pFunDisabled :: !(Maybe Bool)- , _pSmsDisabled :: !(Maybe Bool)- , _pMaximumTimeToLock :: !(Maybe (Textual Int64))- , _pOutgoingBeamDisabled :: !(Maybe Bool)- , _pStatusBarDisabled :: !(Maybe Bool)- , _pCellBroadcastsConfigDisabled :: !(Maybe Bool)- , _pDeviceOwnerLockScreenInfo :: !(Maybe UserFacingMessage)- , _pPlayStoreMode :: !(Maybe PolicyPlayStoreMode)- , _pComplianceRules :: !(Maybe [ComplianceRule])- , _pTetheringConfigDisabled :: !(Maybe Bool)- , _pAccountTypesWithManagementDisabled :: !(Maybe [Text])- , _pWifiConfigDisabled :: !(Maybe Bool)- , _pPersistentPreferredActivities :: !(Maybe [PersistentPreferredActivity])- , _pPasswordRequirements :: !(Maybe PasswordRequirements)- , _pLongSupportMessage :: !(Maybe UserFacingMessage)- , _pLocationMode :: !(Maybe PolicyLocationMode)- , _pBluetoothDisabled :: !(Maybe Bool)- , _pUsbFileTransferDisabled :: !(Maybe Bool)- , _pCameraDisabled :: !(Maybe Bool)- , _pApplications :: !(Maybe [ApplicationPolicy])- , _pPasswordPolicies :: !(Maybe [PasswordRequirements])- , _pFactoryResetDisabled :: !(Maybe Bool)- }- 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:------ * 'pBluetoothConfigDisabled'------ * 'pUnmuteMicrophoneDisabled'------ * 'pMountPhysicalMediaDisabled'------ * 'pFrpAdminEmails'------ * 'pAppAutoUpdatePolicy'------ * 'pEncryptionPolicy'------ * 'pAndroidDevicePolicyTracks'------ * 'pSafeBootDisabled'------ * 'pAlwaysOnVPNPackage'------ * 'pChoosePrivateKeyRules'------ * 'pCredentialsConfigDisabled'------ * 'pRecommendedGlobalProxy'------ * 'pKeyguardDisabled'------ * 'pSkipFirstUseHintsEnabled'------ * 'pAdjustVolumeDisabled'------ * 'pDefaultPermissionPolicy'------ * 'pUninstallAppsDisabled'------ * 'pSetUserIconDisabled'------ * 'pPermittedInputMethods'------ * 'pScreenCaptureDisabled'------ * 'pAddUserDisabled'------ * 'pShareLocationDisabled'------ * 'pAutoTimeRequired'------ * 'pInstallAppsDisabled'------ * 'pCreateWindowsDisabled'------ * 'pNetworkResetDisabled'------ * 'pBluetoothContactSharingDisabled'------ * 'pPermissionGrants'------ * 'pShortSupportMessage'------ * 'pStayOnPluggedModes'------ * 'pDataRoamingDisabled'------ * 'pDebuggingFeaturesAllowed'------ * 'pKioskCustomLauncherEnabled'------ * 'pWifiConfigsLockdownEnabled'------ * 'pUsbMassStorageEnabled'------ * 'pNetworkEscapeHatchEnabled'------ * 'pSystemUpdate'------ * 'pInstallUnknownSourcesAllowed'------ * 'pName'------ * 'pPrivateKeySelectionEnabled'------ * 'pOutgoingCallsDisabled'------ * 'pStatusReportingSettings'------ * 'pRemoveUserDisabled'------ * 'pMobileNetworksConfigDisabled'------ * 'pVersion'------ * 'pEnsureVerifyAppsEnabled'------ * 'pSetWallpaperDisabled'------ * 'pVPNConfigDisabled'------ * 'pSetupActions'------ * 'pOpenNetworkConfiguration'------ * 'pModifyAccountsDisabled'------ * 'pBlockApplicationsEnabled'------ * 'pKeyguardDisabledFeatures'------ * 'pFunDisabled'------ * 'pSmsDisabled'------ * 'pMaximumTimeToLock'------ * 'pOutgoingBeamDisabled'------ * 'pStatusBarDisabled'------ * 'pCellBroadcastsConfigDisabled'------ * 'pDeviceOwnerLockScreenInfo'------ * 'pPlayStoreMode'------ * 'pComplianceRules'------ * 'pTetheringConfigDisabled'------ * 'pAccountTypesWithManagementDisabled'------ * 'pWifiConfigDisabled'------ * 'pPersistentPreferredActivities'------ * 'pPasswordRequirements'------ * 'pLongSupportMessage'------ * 'pLocationMode'------ * 'pBluetoothDisabled'------ * 'pUsbFileTransferDisabled'------ * 'pCameraDisabled'------ * 'pApplications'------ * 'pPasswordPolicies'------ * 'pFactoryResetDisabled'-policy- :: Policy-policy =- Policy'- { _pBluetoothConfigDisabled = Nothing- , _pUnmuteMicrophoneDisabled = Nothing- , _pMountPhysicalMediaDisabled = Nothing- , _pFrpAdminEmails = Nothing- , _pAppAutoUpdatePolicy = Nothing- , _pEncryptionPolicy = Nothing- , _pAndroidDevicePolicyTracks = Nothing- , _pSafeBootDisabled = Nothing- , _pAlwaysOnVPNPackage = Nothing- , _pChoosePrivateKeyRules = Nothing- , _pCredentialsConfigDisabled = Nothing- , _pRecommendedGlobalProxy = Nothing- , _pKeyguardDisabled = Nothing- , _pSkipFirstUseHintsEnabled = Nothing- , _pAdjustVolumeDisabled = Nothing- , _pDefaultPermissionPolicy = Nothing- , _pUninstallAppsDisabled = Nothing- , _pSetUserIconDisabled = Nothing- , _pPermittedInputMethods = Nothing- , _pScreenCaptureDisabled = Nothing- , _pAddUserDisabled = Nothing- , _pShareLocationDisabled = Nothing- , _pAutoTimeRequired = Nothing- , _pInstallAppsDisabled = Nothing- , _pCreateWindowsDisabled = Nothing- , _pNetworkResetDisabled = Nothing- , _pBluetoothContactSharingDisabled = Nothing- , _pPermissionGrants = Nothing- , _pShortSupportMessage = Nothing- , _pStayOnPluggedModes = Nothing- , _pDataRoamingDisabled = Nothing- , _pDebuggingFeaturesAllowed = Nothing- , _pKioskCustomLauncherEnabled = Nothing- , _pWifiConfigsLockdownEnabled = Nothing- , _pUsbMassStorageEnabled = Nothing- , _pNetworkEscapeHatchEnabled = Nothing- , _pSystemUpdate = Nothing- , _pInstallUnknownSourcesAllowed = Nothing- , _pName = Nothing- , _pPrivateKeySelectionEnabled = Nothing- , _pOutgoingCallsDisabled = Nothing- , _pStatusReportingSettings = Nothing- , _pRemoveUserDisabled = Nothing- , _pMobileNetworksConfigDisabled = Nothing- , _pVersion = Nothing- , _pEnsureVerifyAppsEnabled = Nothing- , _pSetWallpaperDisabled = Nothing- , _pVPNConfigDisabled = Nothing- , _pSetupActions = Nothing- , _pOpenNetworkConfiguration = Nothing- , _pModifyAccountsDisabled = Nothing- , _pBlockApplicationsEnabled = Nothing- , _pKeyguardDisabledFeatures = Nothing- , _pFunDisabled = Nothing- , _pSmsDisabled = Nothing- , _pMaximumTimeToLock = Nothing- , _pOutgoingBeamDisabled = Nothing- , _pStatusBarDisabled = Nothing- , _pCellBroadcastsConfigDisabled = Nothing- , _pDeviceOwnerLockScreenInfo = Nothing- , _pPlayStoreMode = Nothing- , _pComplianceRules = Nothing- , _pTetheringConfigDisabled = Nothing- , _pAccountTypesWithManagementDisabled = Nothing- , _pWifiConfigDisabled = Nothing- , _pPersistentPreferredActivities = Nothing- , _pPasswordRequirements = Nothing- , _pLongSupportMessage = Nothing- , _pLocationMode = Nothing- , _pBluetoothDisabled = Nothing- , _pUsbFileTransferDisabled = Nothing- , _pCameraDisabled = Nothing- , _pApplications = Nothing- , _pPasswordPolicies = Nothing- , _pFactoryResetDisabled = Nothing- }----- | Whether configuring bluetooth is disabled.-pBluetoothConfigDisabled :: Lens' Policy (Maybe Bool)-pBluetoothConfigDisabled- = lens _pBluetoothConfigDisabled- (\ s a -> s{_pBluetoothConfigDisabled = a})---- | Whether the microphone is muted and adjusting microphone volume is--- disabled.-pUnmuteMicrophoneDisabled :: Lens' Policy (Maybe Bool)-pUnmuteMicrophoneDisabled- = lens _pUnmuteMicrophoneDisabled- (\ s a -> s{_pUnmuteMicrophoneDisabled = a})---- | Whether the user mounting physical external media is disabled.-pMountPhysicalMediaDisabled :: Lens' Policy (Maybe Bool)-pMountPhysicalMediaDisabled- = lens _pMountPhysicalMediaDisabled- (\ s a -> s{_pMountPhysicalMediaDisabled = a})---- | Email addresses of device administrators for factory reset protection.--- When the device is factory reset, it will require one of these admins to--- log in with the Google account email and password to unlock the device.--- If no admins are specified, the device won\'t provide factory reset--- protection.-pFrpAdminEmails :: Lens' Policy [Text]-pFrpAdminEmails- = lens _pFrpAdminEmails- (\ s a -> s{_pFrpAdminEmails = a})- . _Default- . _Coerce---- | The app auto update policy, which controls when automatic app updates--- can be applied.-pAppAutoUpdatePolicy :: Lens' Policy (Maybe PolicyAppAutoUpdatePolicy)-pAppAutoUpdatePolicy- = lens _pAppAutoUpdatePolicy- (\ s a -> s{_pAppAutoUpdatePolicy = a})---- | Whether encryption is enabled-pEncryptionPolicy :: Lens' Policy (Maybe PolicyEncryptionPolicy)-pEncryptionPolicy- = lens _pEncryptionPolicy- (\ s a -> s{_pEncryptionPolicy = a})---- | The app tracks for Android Device Policy the device can access. The--- device receives the latest version among all accessible tracks. If no--- tracks are specified, then the device only uses the production track.-pAndroidDevicePolicyTracks :: Lens' Policy [Text]-pAndroidDevicePolicyTracks- = lens _pAndroidDevicePolicyTracks- (\ s a -> s{_pAndroidDevicePolicyTracks = a})- . _Default- . _Coerce---- | Whether rebooting the device into safe boot is disabled.-pSafeBootDisabled :: Lens' Policy (Maybe Bool)-pSafeBootDisabled- = lens _pSafeBootDisabled- (\ s a -> s{_pSafeBootDisabled = a})---- | Configuration for an always-on VPN connection. Use with--- vpn_config_disabled to prevent modification of this setting.-pAlwaysOnVPNPackage :: Lens' Policy (Maybe AlwaysOnVPNPackage)-pAlwaysOnVPNPackage- = lens _pAlwaysOnVPNPackage- (\ s a -> s{_pAlwaysOnVPNPackage = a})---- | Rules for automatically choosing a private key and certificate to--- authenticate the device to a server. The rules are ordered by increasing--- precedence, so if an outgoing request matches more than one rule, the--- last rule defines which private key to use.-pChoosePrivateKeyRules :: Lens' Policy [ChoosePrivateKeyRule]-pChoosePrivateKeyRules- = lens _pChoosePrivateKeyRules- (\ s a -> s{_pChoosePrivateKeyRules = a})- . _Default- . _Coerce---- | Whether configuring user credentials is disabled.-pCredentialsConfigDisabled :: Lens' Policy (Maybe Bool)-pCredentialsConfigDisabled- = lens _pCredentialsConfigDisabled- (\ s a -> s{_pCredentialsConfigDisabled = a})---- | The network-independent global HTTP proxy. Typically proxies should be--- configured per-network in open_network_configuration. However for--- unusual configurations like general internal filtering a global HTTP--- proxy may be useful. If the proxy is not accessible, network access may--- break. The global proxy is only a recommendation and some apps may--- ignore it.-pRecommendedGlobalProxy :: Lens' Policy (Maybe ProxyInfo)-pRecommendedGlobalProxy- = lens _pRecommendedGlobalProxy- (\ s a -> s{_pRecommendedGlobalProxy = a})---- | Whether the keyguard is disabled.-pKeyguardDisabled :: Lens' Policy (Maybe Bool)-pKeyguardDisabled- = lens _pKeyguardDisabled- (\ s a -> s{_pKeyguardDisabled = a})---- | Flag to skip hints on the first use. Enterprise admin can enable the--- system recommendation for apps to skip their user tutorial and other--- introductory hints on first start-up.-pSkipFirstUseHintsEnabled :: Lens' Policy (Maybe Bool)-pSkipFirstUseHintsEnabled- = lens _pSkipFirstUseHintsEnabled- (\ s a -> s{_pSkipFirstUseHintsEnabled = a})---- | Whether adjusting the master volume is disabled.-pAdjustVolumeDisabled :: Lens' Policy (Maybe Bool)-pAdjustVolumeDisabled- = lens _pAdjustVolumeDisabled- (\ s a -> s{_pAdjustVolumeDisabled = a})---- | The default permission policy for runtime permission requests.-pDefaultPermissionPolicy :: Lens' Policy (Maybe PolicyDefaultPermissionPolicy)-pDefaultPermissionPolicy- = lens _pDefaultPermissionPolicy- (\ s a -> s{_pDefaultPermissionPolicy = a})---- | Whether user uninstallation of applications is disabled.-pUninstallAppsDisabled :: Lens' Policy (Maybe Bool)-pUninstallAppsDisabled- = lens _pUninstallAppsDisabled- (\ s a -> s{_pUninstallAppsDisabled = a})---- | Whether changing the user icon is disabled.-pSetUserIconDisabled :: Lens' Policy (Maybe Bool)-pSetUserIconDisabled- = lens _pSetUserIconDisabled- (\ s a -> s{_pSetUserIconDisabled = a})---- | If present, only the input methods provided by packages in this list are--- permitted. If this field is present, but the list is empty, then only--- system input methods are permitted.-pPermittedInputMethods :: Lens' Policy (Maybe PackageNameList)-pPermittedInputMethods- = lens _pPermittedInputMethods- (\ s a -> s{_pPermittedInputMethods = a})---- | Whether screen capture is disabled.-pScreenCaptureDisabled :: Lens' Policy (Maybe Bool)-pScreenCaptureDisabled- = lens _pScreenCaptureDisabled- (\ s a -> s{_pScreenCaptureDisabled = a})---- | Whether adding new users and profiles is disabled.-pAddUserDisabled :: Lens' Policy (Maybe Bool)-pAddUserDisabled- = lens _pAddUserDisabled- (\ s a -> s{_pAddUserDisabled = a})---- | Whether location sharing is disabled.-pShareLocationDisabled :: Lens' Policy (Maybe Bool)-pShareLocationDisabled- = lens _pShareLocationDisabled- (\ s a -> s{_pShareLocationDisabled = a})---- | Whether auto time is required, which prevents the user from manually--- setting the date and time.-pAutoTimeRequired :: Lens' Policy (Maybe Bool)-pAutoTimeRequired- = lens _pAutoTimeRequired- (\ s a -> s{_pAutoTimeRequired = a})---- | Whether user installation of apps is disabled.-pInstallAppsDisabled :: Lens' Policy (Maybe Bool)-pInstallAppsDisabled- = lens _pInstallAppsDisabled- (\ s a -> s{_pInstallAppsDisabled = a})---- | Whether creating windows besides app windows is disabled.-pCreateWindowsDisabled :: Lens' Policy (Maybe Bool)-pCreateWindowsDisabled- = lens _pCreateWindowsDisabled- (\ s a -> s{_pCreateWindowsDisabled = a})---- | Whether resetting network settings is disabled.-pNetworkResetDisabled :: Lens' Policy (Maybe Bool)-pNetworkResetDisabled- = lens _pNetworkResetDisabled- (\ s a -> s{_pNetworkResetDisabled = a})---- | Whether bluetooth contact sharing is disabled.-pBluetoothContactSharingDisabled :: Lens' Policy (Maybe Bool)-pBluetoothContactSharingDisabled- = lens _pBluetoothContactSharingDisabled- (\ s a -> s{_pBluetoothContactSharingDisabled = a})---- | Explicit permission or group grants or denials for all apps. These--- values override the default_permission_policy.-pPermissionGrants :: Lens' Policy [PermissionGrant]-pPermissionGrants- = lens _pPermissionGrants- (\ s a -> s{_pPermissionGrants = a})- . _Default- . _Coerce---- | A message displayed to the user in the settings screen wherever--- functionality has been disabled by the admin.-pShortSupportMessage :: Lens' Policy (Maybe UserFacingMessage)-pShortSupportMessage- = lens _pShortSupportMessage- (\ s a -> s{_pShortSupportMessage = a})---- | The battery plugged in modes for which the device stays on. When using--- this setting, it is recommended to clear maximum_time_to_lock so that--- the device doesn\'t lock itself while it stays on.-pStayOnPluggedModes :: Lens' Policy [Text]-pStayOnPluggedModes- = lens _pStayOnPluggedModes- (\ s a -> s{_pStayOnPluggedModes = a})- . _Default- . _Coerce---- | Whether roaming data services are disabled.-pDataRoamingDisabled :: Lens' Policy (Maybe Bool)-pDataRoamingDisabled- = lens _pDataRoamingDisabled- (\ s a -> s{_pDataRoamingDisabled = a})---- | Whether the user is allowed to enable debugging features.-pDebuggingFeaturesAllowed :: Lens' Policy (Maybe Bool)-pDebuggingFeaturesAllowed- = lens _pDebuggingFeaturesAllowed- (\ s a -> s{_pDebuggingFeaturesAllowed = a})---- | Whether the kiosk custom launcher is enabled. This replaces the home--- screen with a launcher that locks down the device to the apps installed--- via the applications setting. The apps appear on a single page in--- alphabetical order. It is recommended to also use status_bar_disabled to--- block access to device settings.-pKioskCustomLauncherEnabled :: Lens' Policy (Maybe Bool)-pKioskCustomLauncherEnabled- = lens _pKioskCustomLauncherEnabled- (\ s a -> s{_pKioskCustomLauncherEnabled = a})---- | DEPRECATED - Use wifi_config_disabled.-pWifiConfigsLockdownEnabled :: Lens' Policy (Maybe Bool)-pWifiConfigsLockdownEnabled- = lens _pWifiConfigsLockdownEnabled- (\ s a -> s{_pWifiConfigsLockdownEnabled = a})---- | Whether USB storage is enabled. Deprecated.-pUsbMassStorageEnabled :: Lens' Policy (Maybe Bool)-pUsbMassStorageEnabled- = lens _pUsbMassStorageEnabled- (\ s a -> s{_pUsbMassStorageEnabled = a})---- | Whether the network escape hatch is enabled. If a network connection--- can\'t be made at boot time, the escape hatch prompts the user to--- temporarily connect to a network in order to refresh the device policy.--- After applying policy, the temporary network will be forgotten and the--- device will continue booting. This prevents being unable to connect to a--- network if there is no suitable network in the last policy and the--- device boots into an app in lock task mode, or the user is otherwise--- unable to reach device settings.-pNetworkEscapeHatchEnabled :: Lens' Policy (Maybe Bool)-pNetworkEscapeHatchEnabled- = lens _pNetworkEscapeHatchEnabled- (\ s a -> s{_pNetworkEscapeHatchEnabled = a})---- | The system update policy, which controls how OS updates are applied. If--- the update type is WINDOWED, the update window will automatically apply--- to Play app updates as well.-pSystemUpdate :: Lens' Policy (Maybe SystemUpdate)-pSystemUpdate- = lens _pSystemUpdate- (\ s a -> s{_pSystemUpdate = a})---- | Whether the user is allowed to enable the \"Unknown Sources\" setting,--- which allows installation of apps from unknown sources.-pInstallUnknownSourcesAllowed :: Lens' Policy (Maybe Bool)-pInstallUnknownSourcesAllowed- = lens _pInstallUnknownSourcesAllowed- (\ s a -> s{_pInstallUnknownSourcesAllowed = a})---- | The name of the policy in the form--- enterprises\/{enterpriseId}\/policies\/{policyId}.-pName :: Lens' Policy (Maybe Text)-pName = lens _pName (\ s a -> s{_pName = a})---- | Allows showing UI on a device for a user to choose a private key alias--- if there are no matching rules in ChoosePrivateKeyRules. For devices--- below Android P, setting this may leave enterprise keys vulnerable.-pPrivateKeySelectionEnabled :: Lens' Policy (Maybe Bool)-pPrivateKeySelectionEnabled- = lens _pPrivateKeySelectionEnabled- (\ s a -> s{_pPrivateKeySelectionEnabled = a})---- | Whether outgoing calls are disabled.-pOutgoingCallsDisabled :: Lens' Policy (Maybe Bool)-pOutgoingCallsDisabled- = lens _pOutgoingCallsDisabled- (\ s a -> s{_pOutgoingCallsDisabled = a})---- | Status reporting settings-pStatusReportingSettings :: Lens' Policy (Maybe StatusReportingSettings)-pStatusReportingSettings- = lens _pStatusReportingSettings- (\ s a -> s{_pStatusReportingSettings = a})---- | Whether removing other users is disabled.-pRemoveUserDisabled :: Lens' Policy (Maybe Bool)-pRemoveUserDisabled- = lens _pRemoveUserDisabled- (\ s a -> s{_pRemoveUserDisabled = a})---- | Whether configuring mobile networks is disabled.-pMobileNetworksConfigDisabled :: Lens' Policy (Maybe Bool)-pMobileNetworksConfigDisabled- = lens _pMobileNetworksConfigDisabled- (\ s a -> s{_pMobileNetworksConfigDisabled = a})---- | The version of the policy. This is a read-only field. The version is--- incremented each time the policy is updated.-pVersion :: Lens' Policy (Maybe Int64)-pVersion- = lens _pVersion (\ s a -> s{_pVersion = a}) .- mapping _Coerce---- | Whether app verification is force-enabled.-pEnsureVerifyAppsEnabled :: Lens' Policy (Maybe Bool)-pEnsureVerifyAppsEnabled- = lens _pEnsureVerifyAppsEnabled- (\ s a -> s{_pEnsureVerifyAppsEnabled = a})---- | Whether changing the wallpaper is disabled.-pSetWallpaperDisabled :: Lens' Policy (Maybe Bool)-pSetWallpaperDisabled- = lens _pSetWallpaperDisabled- (\ s a -> s{_pSetWallpaperDisabled = a})---- | Whether configuring VPN is disabled.-pVPNConfigDisabled :: Lens' Policy (Maybe Bool)-pVPNConfigDisabled- = lens _pVPNConfigDisabled- (\ s a -> s{_pVPNConfigDisabled = a})---- | Actions to take during the setup process.-pSetupActions :: Lens' Policy [SetupAction]-pSetupActions- = lens _pSetupActions- (\ s a -> s{_pSetupActions = a})- . _Default- . _Coerce---- | Network configuration for the device. See configure networks for more--- information.-pOpenNetworkConfiguration :: Lens' Policy (Maybe PolicyOpenNetworkConfiguration)-pOpenNetworkConfiguration- = lens _pOpenNetworkConfiguration- (\ s a -> s{_pOpenNetworkConfiguration = a})---- | Whether adding or removing accounts is disabled.-pModifyAccountsDisabled :: Lens' Policy (Maybe Bool)-pModifyAccountsDisabled- = lens _pModifyAccountsDisabled- (\ s a -> s{_pModifyAccountsDisabled = a})---- | Whether applications other than the ones configured in applications are--- blocked from being installed. When set, applications that were installed--- under a previous policy but no longer appear in the policy are--- automatically uninstalled.-pBlockApplicationsEnabled :: Lens' Policy (Maybe Bool)-pBlockApplicationsEnabled- = lens _pBlockApplicationsEnabled- (\ s a -> s{_pBlockApplicationsEnabled = a})---- | Disabled keyguard customizations, such as widgets.-pKeyguardDisabledFeatures :: Lens' Policy [Text]-pKeyguardDisabledFeatures- = lens _pKeyguardDisabledFeatures- (\ s a -> s{_pKeyguardDisabledFeatures = a})- . _Default- . _Coerce---- | Whether the user is allowed to have fun. Controls whether the Easter egg--- game in Settings is disabled.-pFunDisabled :: Lens' Policy (Maybe Bool)-pFunDisabled- = lens _pFunDisabled (\ s a -> s{_pFunDisabled = a})---- | Whether sending and receiving SMS messages is disabled.-pSmsDisabled :: Lens' Policy (Maybe Bool)-pSmsDisabled- = lens _pSmsDisabled (\ s a -> s{_pSmsDisabled = a})---- | Maximum time in milliseconds for user activity until the device locks. A--- value of 0 means there is no restriction.-pMaximumTimeToLock :: Lens' Policy (Maybe Int64)-pMaximumTimeToLock- = lens _pMaximumTimeToLock- (\ s a -> s{_pMaximumTimeToLock = a})- . mapping _Coerce---- | Whether using NFC to beam data from apps is disabled.-pOutgoingBeamDisabled :: Lens' Policy (Maybe Bool)-pOutgoingBeamDisabled- = lens _pOutgoingBeamDisabled- (\ s a -> s{_pOutgoingBeamDisabled = a})---- | Whether the status bar is disabled. This disables notifications, quick--- settings, and other screen overlays that allow escape from full-screen--- mode.-pStatusBarDisabled :: Lens' Policy (Maybe Bool)-pStatusBarDisabled- = lens _pStatusBarDisabled- (\ s a -> s{_pStatusBarDisabled = a})---- | Whether configuring cell broadcast is disabled.-pCellBroadcastsConfigDisabled :: Lens' Policy (Maybe Bool)-pCellBroadcastsConfigDisabled- = lens _pCellBroadcastsConfigDisabled- (\ s a -> s{_pCellBroadcastsConfigDisabled = a})---- | The device owner information to be shown on the lock screen.-pDeviceOwnerLockScreenInfo :: Lens' Policy (Maybe UserFacingMessage)-pDeviceOwnerLockScreenInfo- = lens _pDeviceOwnerLockScreenInfo- (\ s a -> s{_pDeviceOwnerLockScreenInfo = a})---- | This mode controls which apps are available to the user in the Play--- Store and the behavior on the device when apps are removed from the--- policy.-pPlayStoreMode :: Lens' Policy (Maybe PolicyPlayStoreMode)-pPlayStoreMode- = lens _pPlayStoreMode- (\ s a -> s{_pPlayStoreMode = a})---- | Rules declaring which mitigating actions to take when a device is not--- compliant with its policy. When the conditions for multiple rules are--- satisfied, all of the mitigating actions for the rules are taken. There--- is a maximum limit of 100 rules.-pComplianceRules :: Lens' Policy [ComplianceRule]-pComplianceRules- = lens _pComplianceRules- (\ s a -> s{_pComplianceRules = a})- . _Default- . _Coerce---- | Whether configuring tethering and portable hotspots is disabled.-pTetheringConfigDisabled :: Lens' Policy (Maybe Bool)-pTetheringConfigDisabled- = lens _pTetheringConfigDisabled- (\ s a -> s{_pTetheringConfigDisabled = a})---- | Account types that can\'t be managed by the user.-pAccountTypesWithManagementDisabled :: Lens' Policy [Text]-pAccountTypesWithManagementDisabled- = lens _pAccountTypesWithManagementDisabled- (\ s a ->- s{_pAccountTypesWithManagementDisabled = a})- . _Default- . _Coerce---- | Whether configuring Wi-Fi access points is disabled.-pWifiConfigDisabled :: Lens' Policy (Maybe Bool)-pWifiConfigDisabled- = lens _pWifiConfigDisabled- (\ s a -> s{_pWifiConfigDisabled = a})---- | Default intent handler activities.-pPersistentPreferredActivities :: Lens' Policy [PersistentPreferredActivity]-pPersistentPreferredActivities- = lens _pPersistentPreferredActivities- (\ s a -> s{_pPersistentPreferredActivities = a})- . _Default- . _Coerce---- | Password requirements. DEPRECATED - Use password_policies-pPasswordRequirements :: Lens' Policy (Maybe PasswordRequirements)-pPasswordRequirements- = lens _pPasswordRequirements- (\ s a -> s{_pPasswordRequirements = a})---- | A message displayed to the user in the device administators settings--- screen.-pLongSupportMessage :: Lens' Policy (Maybe UserFacingMessage)-pLongSupportMessage- = lens _pLongSupportMessage- (\ s a -> s{_pLongSupportMessage = a})---- | The degree of location detection enabled. The user may change the value--- unless the user is otherwise blocked from accessing device settings.-pLocationMode :: Lens' Policy (Maybe PolicyLocationMode)-pLocationMode- = lens _pLocationMode- (\ s a -> s{_pLocationMode = a})---- | Whether bluetooth is disabled. Prefer this setting over--- bluetooth_config_disabled because bluetooth_config_disabled can be--- bypassed by the user.-pBluetoothDisabled :: Lens' Policy (Maybe Bool)-pBluetoothDisabled- = lens _pBluetoothDisabled- (\ s a -> s{_pBluetoothDisabled = a})---- | Whether transferring files over USB is disabled.-pUsbFileTransferDisabled :: Lens' Policy (Maybe Bool)-pUsbFileTransferDisabled- = lens _pUsbFileTransferDisabled- (\ s a -> s{_pUsbFileTransferDisabled = a})---- | Whether all cameras on the device are disabled.-pCameraDisabled :: Lens' Policy (Maybe Bool)-pCameraDisabled- = lens _pCameraDisabled- (\ s a -> s{_pCameraDisabled = a})---- | Policy applied to apps.-pApplications :: Lens' Policy [ApplicationPolicy]-pApplications- = lens _pApplications- (\ s a -> s{_pApplications = a})- . _Default- . _Coerce---- | Password requirement policies. Different policies can be set for work--- profile or fully managed devices by setting the password_scope field in--- the policy.-pPasswordPolicies :: Lens' Policy [PasswordRequirements]-pPasswordPolicies- = lens _pPasswordPolicies- (\ s a -> s{_pPasswordPolicies = a})- . _Default- . _Coerce---- | Whether factory resetting from settings is disabled.-pFactoryResetDisabled :: Lens' Policy (Maybe Bool)-pFactoryResetDisabled- = lens _pFactoryResetDisabled- (\ s a -> s{_pFactoryResetDisabled = a})--instance FromJSON Policy where- parseJSON- = withObject "Policy"- (\ o ->- Policy' <$>- (o .:? "bluetoothConfigDisabled") <*>- (o .:? "unmuteMicrophoneDisabled")- <*> (o .:? "mountPhysicalMediaDisabled")- <*> (o .:? "frpAdminEmails" .!= mempty)- <*> (o .:? "appAutoUpdatePolicy")- <*> (o .:? "encryptionPolicy")- <*> (o .:? "androidDevicePolicyTracks" .!= mempty)- <*> (o .:? "safeBootDisabled")- <*> (o .:? "alwaysOnVpnPackage")- <*> (o .:? "choosePrivateKeyRules" .!= mempty)- <*> (o .:? "credentialsConfigDisabled")- <*> (o .:? "recommendedGlobalProxy")- <*> (o .:? "keyguardDisabled")- <*> (o .:? "skipFirstUseHintsEnabled")- <*> (o .:? "adjustVolumeDisabled")- <*> (o .:? "defaultPermissionPolicy")- <*> (o .:? "uninstallAppsDisabled")- <*> (o .:? "setUserIconDisabled")- <*> (o .:? "permittedInputMethods")- <*> (o .:? "screenCaptureDisabled")- <*> (o .:? "addUserDisabled")- <*> (o .:? "shareLocationDisabled")- <*> (o .:? "autoTimeRequired")- <*> (o .:? "installAppsDisabled")- <*> (o .:? "createWindowsDisabled")- <*> (o .:? "networkResetDisabled")- <*> (o .:? "bluetoothContactSharingDisabled")- <*> (o .:? "permissionGrants" .!= mempty)- <*> (o .:? "shortSupportMessage")- <*> (o .:? "stayOnPluggedModes" .!= mempty)- <*> (o .:? "dataRoamingDisabled")- <*> (o .:? "debuggingFeaturesAllowed")- <*> (o .:? "kioskCustomLauncherEnabled")- <*> (o .:? "wifiConfigsLockdownEnabled")- <*> (o .:? "usbMassStorageEnabled")- <*> (o .:? "networkEscapeHatchEnabled")- <*> (o .:? "systemUpdate")- <*> (o .:? "installUnknownSourcesAllowed")- <*> (o .:? "name")- <*> (o .:? "privateKeySelectionEnabled")- <*> (o .:? "outgoingCallsDisabled")- <*> (o .:? "statusReportingSettings")- <*> (o .:? "removeUserDisabled")- <*> (o .:? "mobileNetworksConfigDisabled")- <*> (o .:? "version")- <*> (o .:? "ensureVerifyAppsEnabled")- <*> (o .:? "setWallpaperDisabled")- <*> (o .:? "vpnConfigDisabled")- <*> (o .:? "setupActions" .!= mempty)- <*> (o .:? "openNetworkConfiguration")- <*> (o .:? "modifyAccountsDisabled")- <*> (o .:? "blockApplicationsEnabled")- <*> (o .:? "keyguardDisabledFeatures" .!= mempty)- <*> (o .:? "funDisabled")- <*> (o .:? "smsDisabled")- <*> (o .:? "maximumTimeToLock")- <*> (o .:? "outgoingBeamDisabled")- <*> (o .:? "statusBarDisabled")- <*> (o .:? "cellBroadcastsConfigDisabled")- <*> (o .:? "deviceOwnerLockScreenInfo")- <*> (o .:? "playStoreMode")- <*> (o .:? "complianceRules" .!= mempty)- <*> (o .:? "tetheringConfigDisabled")- <*>- (o .:? "accountTypesWithManagementDisabled" .!=- mempty)- <*> (o .:? "wifiConfigDisabled")- <*>- (o .:? "persistentPreferredActivities" .!= mempty)- <*> (o .:? "passwordRequirements")- <*> (o .:? "longSupportMessage")- <*> (o .:? "locationMode")- <*> (o .:? "bluetoothDisabled")- <*> (o .:? "usbFileTransferDisabled")- <*> (o .:? "cameraDisabled")- <*> (o .:? "applications" .!= mempty)- <*> (o .:? "passwordPolicies" .!= mempty)- <*> (o .:? "factoryResetDisabled"))--instance ToJSON Policy where- toJSON Policy'{..}- = object- (catMaybes- [("bluetoothConfigDisabled" .=) <$>- _pBluetoothConfigDisabled,- ("unmuteMicrophoneDisabled" .=) <$>- _pUnmuteMicrophoneDisabled,- ("mountPhysicalMediaDisabled" .=) <$>- _pMountPhysicalMediaDisabled,- ("frpAdminEmails" .=) <$> _pFrpAdminEmails,- ("appAutoUpdatePolicy" .=) <$> _pAppAutoUpdatePolicy,- ("encryptionPolicy" .=) <$> _pEncryptionPolicy,- ("androidDevicePolicyTracks" .=) <$>- _pAndroidDevicePolicyTracks,- ("safeBootDisabled" .=) <$> _pSafeBootDisabled,- ("alwaysOnVpnPackage" .=) <$> _pAlwaysOnVPNPackage,- ("choosePrivateKeyRules" .=) <$>- _pChoosePrivateKeyRules,- ("credentialsConfigDisabled" .=) <$>- _pCredentialsConfigDisabled,- ("recommendedGlobalProxy" .=) <$>- _pRecommendedGlobalProxy,- ("keyguardDisabled" .=) <$> _pKeyguardDisabled,- ("skipFirstUseHintsEnabled" .=) <$>- _pSkipFirstUseHintsEnabled,- ("adjustVolumeDisabled" .=) <$>- _pAdjustVolumeDisabled,- ("defaultPermissionPolicy" .=) <$>- _pDefaultPermissionPolicy,- ("uninstallAppsDisabled" .=) <$>- _pUninstallAppsDisabled,- ("setUserIconDisabled" .=) <$> _pSetUserIconDisabled,- ("permittedInputMethods" .=) <$>- _pPermittedInputMethods,- ("screenCaptureDisabled" .=) <$>- _pScreenCaptureDisabled,- ("addUserDisabled" .=) <$> _pAddUserDisabled,- ("shareLocationDisabled" .=) <$>- _pShareLocationDisabled,- ("autoTimeRequired" .=) <$> _pAutoTimeRequired,- ("installAppsDisabled" .=) <$> _pInstallAppsDisabled,- ("createWindowsDisabled" .=) <$>- _pCreateWindowsDisabled,- ("networkResetDisabled" .=) <$>- _pNetworkResetDisabled,- ("bluetoothContactSharingDisabled" .=) <$>- _pBluetoothContactSharingDisabled,- ("permissionGrants" .=) <$> _pPermissionGrants,- ("shortSupportMessage" .=) <$> _pShortSupportMessage,- ("stayOnPluggedModes" .=) <$> _pStayOnPluggedModes,- ("dataRoamingDisabled" .=) <$> _pDataRoamingDisabled,- ("debuggingFeaturesAllowed" .=) <$>- _pDebuggingFeaturesAllowed,- ("kioskCustomLauncherEnabled" .=) <$>- _pKioskCustomLauncherEnabled,- ("wifiConfigsLockdownEnabled" .=) <$>- _pWifiConfigsLockdownEnabled,- ("usbMassStorageEnabled" .=) <$>- _pUsbMassStorageEnabled,- ("networkEscapeHatchEnabled" .=) <$>- _pNetworkEscapeHatchEnabled,- ("systemUpdate" .=) <$> _pSystemUpdate,- ("installUnknownSourcesAllowed" .=) <$>- _pInstallUnknownSourcesAllowed,- ("name" .=) <$> _pName,- ("privateKeySelectionEnabled" .=) <$>- _pPrivateKeySelectionEnabled,- ("outgoingCallsDisabled" .=) <$>- _pOutgoingCallsDisabled,- ("statusReportingSettings" .=) <$>- _pStatusReportingSettings,- ("removeUserDisabled" .=) <$> _pRemoveUserDisabled,- ("mobileNetworksConfigDisabled" .=) <$>- _pMobileNetworksConfigDisabled,- ("version" .=) <$> _pVersion,- ("ensureVerifyAppsEnabled" .=) <$>- _pEnsureVerifyAppsEnabled,- ("setWallpaperDisabled" .=) <$>- _pSetWallpaperDisabled,- ("vpnConfigDisabled" .=) <$> _pVPNConfigDisabled,- ("setupActions" .=) <$> _pSetupActions,- ("openNetworkConfiguration" .=) <$>- _pOpenNetworkConfiguration,- ("modifyAccountsDisabled" .=) <$>- _pModifyAccountsDisabled,- ("blockApplicationsEnabled" .=) <$>- _pBlockApplicationsEnabled,- ("keyguardDisabledFeatures" .=) <$>- _pKeyguardDisabledFeatures,- ("funDisabled" .=) <$> _pFunDisabled,- ("smsDisabled" .=) <$> _pSmsDisabled,- ("maximumTimeToLock" .=) <$> _pMaximumTimeToLock,- ("outgoingBeamDisabled" .=) <$>- _pOutgoingBeamDisabled,- ("statusBarDisabled" .=) <$> _pStatusBarDisabled,- ("cellBroadcastsConfigDisabled" .=) <$>- _pCellBroadcastsConfigDisabled,- ("deviceOwnerLockScreenInfo" .=) <$>- _pDeviceOwnerLockScreenInfo,- ("playStoreMode" .=) <$> _pPlayStoreMode,- ("complianceRules" .=) <$> _pComplianceRules,- ("tetheringConfigDisabled" .=) <$>- _pTetheringConfigDisabled,- ("accountTypesWithManagementDisabled" .=) <$>- _pAccountTypesWithManagementDisabled,- ("wifiConfigDisabled" .=) <$> _pWifiConfigDisabled,- ("persistentPreferredActivities" .=) <$>- _pPersistentPreferredActivities,- ("passwordRequirements" .=) <$>- _pPasswordRequirements,- ("longSupportMessage" .=) <$> _pLongSupportMessage,- ("locationMode" .=) <$> _pLocationMode,- ("bluetoothDisabled" .=) <$> _pBluetoothDisabled,- ("usbFileTransferDisabled" .=) <$>- _pUsbFileTransferDisabled,- ("cameraDisabled" .=) <$> _pCameraDisabled,- ("applications" .=) <$> _pApplications,- ("passwordPolicies" .=) <$> _pPasswordPolicies,- ("factoryResetDisabled" .=) <$>- _pFactoryResetDisabled])---- | A compliance rule condition which is satisfied if there exists any--- matching NonComplianceDetail for the device. A NonComplianceDetail--- matches a NonComplianceDetailCondition if all the fields which are set--- within the NonComplianceDetailCondition match the corresponding--- NonComplianceDetail fields.------ /See:/ 'nonComplianceDetailCondition' smart constructor.-data NonComplianceDetailCondition =- NonComplianceDetailCondition'- { _ncdcPackageName :: !(Maybe Text)- , _ncdcNonComplianceReason :: !(Maybe NonComplianceDetailConditionNonComplianceReason)- , _ncdcSettingName :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'NonComplianceDetailCondition' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ncdcPackageName'------ * 'ncdcNonComplianceReason'------ * 'ncdcSettingName'-nonComplianceDetailCondition- :: NonComplianceDetailCondition-nonComplianceDetailCondition =- NonComplianceDetailCondition'- { _ncdcPackageName = Nothing- , _ncdcNonComplianceReason = Nothing- , _ncdcSettingName = Nothing- }----- | The package name of the app that\'s out of compliance. If not set, then--- this condition matches any package name.-ncdcPackageName :: Lens' NonComplianceDetailCondition (Maybe Text)-ncdcPackageName- = lens _ncdcPackageName- (\ s a -> s{_ncdcPackageName = a})---- | The reason the device is not in compliance with the setting. If not set,--- then this condition matches any reason.-ncdcNonComplianceReason :: Lens' NonComplianceDetailCondition (Maybe NonComplianceDetailConditionNonComplianceReason)-ncdcNonComplianceReason- = lens _ncdcNonComplianceReason- (\ s a -> s{_ncdcNonComplianceReason = a})---- | The name of the policy setting. This is the JSON field name of a--- top-level Policy field. If not set, then this condition matches any--- setting name.-ncdcSettingName :: Lens' NonComplianceDetailCondition (Maybe Text)-ncdcSettingName- = lens _ncdcSettingName- (\ s a -> s{_ncdcSettingName = a})--instance FromJSON NonComplianceDetailCondition where- parseJSON- = withObject "NonComplianceDetailCondition"- (\ o ->- NonComplianceDetailCondition' <$>- (o .:? "packageName") <*>- (o .:? "nonComplianceReason")- <*> (o .:? "settingName"))--instance ToJSON NonComplianceDetailCondition where- toJSON NonComplianceDetailCondition'{..}- = object- (catMaybes- [("packageName" .=) <$> _ncdcPackageName,- ("nonComplianceReason" .=) <$>- _ncdcNonComplianceReason,- ("settingName" .=) <$> _ncdcSettingName])---- | Keyed app state reported by the app.------ /See:/ 'keyedAppState' smart constructor.-data KeyedAppState =- KeyedAppState'- { _kasData :: !(Maybe Text)- , _kasSeverity :: !(Maybe KeyedAppStateSeverity)- , _kasKey :: !(Maybe Text)- , _kasMessage :: !(Maybe Text)- , _kasLastUpdateTime :: !(Maybe DateTime')- , _kasCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'KeyedAppState' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'kasData'------ * 'kasSeverity'------ * 'kasKey'------ * 'kasMessage'------ * 'kasLastUpdateTime'------ * 'kasCreateTime'-keyedAppState- :: KeyedAppState-keyedAppState =- KeyedAppState'- { _kasData = Nothing- , _kasSeverity = Nothing- , _kasKey = Nothing- , _kasMessage = Nothing- , _kasLastUpdateTime = Nothing- , _kasCreateTime = Nothing- }----- | Optionally, a machine-readable value to be read by the EMM. For example,--- setting values that the admin can choose to query against in the EMM--- console (e.g. “notify me if the battery_warning data \< 10”).-kasData :: Lens' KeyedAppState (Maybe Text)-kasData = lens _kasData (\ s a -> s{_kasData = a})---- | The severity of the app state.-kasSeverity :: Lens' KeyedAppState (Maybe KeyedAppStateSeverity)-kasSeverity- = lens _kasSeverity (\ s a -> s{_kasSeverity = a})---- | The key for the app state. Acts as a point of reference for what the app--- is providing state for. For example, when providing managed--- configuration feedback, this key could be the managed configuration key.-kasKey :: Lens' KeyedAppState (Maybe Text)-kasKey = lens _kasKey (\ s a -> s{_kasKey = a})---- | Optionally, a free-form message string to explain the app state. If the--- state was triggered by a particular value (e.g. a managed configuration--- value), it should be included in the message.-kasMessage :: Lens' KeyedAppState (Maybe Text)-kasMessage- = lens _kasMessage (\ s a -> s{_kasMessage = a})---- | The time the app state was most recently updated.-kasLastUpdateTime :: Lens' KeyedAppState (Maybe UTCTime)-kasLastUpdateTime- = lens _kasLastUpdateTime- (\ s a -> s{_kasLastUpdateTime = a})- . mapping _DateTime---- | The creation time of the app state on the device.-kasCreateTime :: Lens' KeyedAppState (Maybe UTCTime)-kasCreateTime- = lens _kasCreateTime- (\ s a -> s{_kasCreateTime = a})- . mapping _DateTime--instance FromJSON KeyedAppState where- parseJSON- = withObject "KeyedAppState"- (\ o ->- KeyedAppState' <$>- (o .:? "data") <*> (o .:? "severity") <*>- (o .:? "key")- <*> (o .:? "message")- <*> (o .:? "lastUpdateTime")- <*> (o .:? "createTime"))--instance ToJSON KeyedAppState where- toJSON KeyedAppState'{..}- = object- (catMaybes- [("data" .=) <$> _kasData,- ("severity" .=) <$> _kasSeverity,- ("key" .=) <$> _kasKey,- ("message" .=) <$> _kasMessage,- ("lastUpdateTime" .=) <$> _kasLastUpdateTime,- ("createTime" .=) <$> _kasCreateTime])---- | Service-specific metadata associated with the operation. It typically--- contains progress information and common metadata such as create time.--- Some services might not provide such metadata. Any method that returns a--- long-running operation should document the metadata type, if any.------ /See:/ 'operationMetadata' smart constructor.-newtype OperationMetadata =- OperationMetadata'- { _omAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationMetadata' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'omAddtional'-operationMetadata- :: HashMap Text JSONValue -- ^ 'omAddtional'- -> OperationMetadata-operationMetadata pOmAddtional_ =- OperationMetadata' {_omAddtional = _Coerce # pOmAddtional_}----- | Properties of the object. Contains field \'type with type URL.-omAddtional :: Lens' OperationMetadata (HashMap Text JSONValue)-omAddtional- = lens _omAddtional (\ s a -> s{_omAddtional = a}) .- _Coerce--instance FromJSON OperationMetadata where- parseJSON- = withObject "OperationMetadata"- (\ o -> OperationMetadata' <$> (parseJSONObject o))--instance ToJSON OperationMetadata where- toJSON = toJSON . _omAddtional---- | A web token used to access the managed Google Play iframe.------ /See:/ 'webToken' smart constructor.-data WebToken =- WebToken'- { _wtParentFrameURL :: !(Maybe Text)- , _wtValue :: !(Maybe Text)- , _wtName :: !(Maybe Text)- , _wtPermissions :: !(Maybe [Text])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'WebToken' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'wtParentFrameURL'------ * 'wtValue'------ * 'wtName'------ * 'wtPermissions'-webToken- :: WebToken-webToken =- WebToken'- { _wtParentFrameURL = Nothing- , _wtValue = Nothing- , _wtName = Nothing- , _wtPermissions = Nothing- }----- | The URL of the parent frame hosting the iframe with the embedded UI. To--- prevent XSS, the iframe may not be hosted at other URLs. The URL must--- use the https scheme.-wtParentFrameURL :: Lens' WebToken (Maybe Text)-wtParentFrameURL- = lens _wtParentFrameURL- (\ s a -> s{_wtParentFrameURL = a})---- | The token value which is used in the hosting page to generate the iframe--- with the embedded UI. This is a read-only field generated by the server.-wtValue :: Lens' WebToken (Maybe Text)-wtValue = lens _wtValue (\ s a -> s{_wtValue = a})---- | The name of the web token, which is generated by the server during--- creation in the form--- enterprises\/{enterpriseId}\/webTokens\/{webTokenId}.-wtName :: Lens' WebToken (Maybe Text)-wtName = lens _wtName (\ s a -> s{_wtName = a})---- | Permissions available to an admin in the embedded UI. An admin must have--- all of these permissions in order to view the UI.-wtPermissions :: Lens' WebToken [Text]-wtPermissions- = lens _wtPermissions- (\ s a -> s{_wtPermissions = a})- . _Default- . _Coerce--instance FromJSON WebToken where- parseJSON- = withObject "WebToken"- (\ o ->- WebToken' <$>- (o .:? "parentFrameUrl") <*> (o .:? "value") <*>- (o .:? "name")- <*> (o .:? "permissions" .!= mempty))--instance ToJSON WebToken where- toJSON WebToken'{..}- = object- (catMaybes- [("parentFrameUrl" .=) <$> _wtParentFrameURL,- ("value" .=) <$> _wtValue, ("name" .=) <$> _wtName,- ("permissions" .=) <$> _wtPermissions])---- | A rule declaring which mitigating actions to take when a device is not--- compliant with its policy. For every rule, there is always an implicit--- mitigating action to set policy_compliant to false for the Device--- resource, and display a message on the device indicating that the device--- is not compliant with its policy. Other mitigating actions may--- optionally be taken as well, depending on the field values in the rule.------ /See:/ 'complianceRule' smart constructor.-data ComplianceRule =- ComplianceRule'- { _crAPILevelCondition :: !(Maybe APILevelCondition)- , _crDisableApps :: !(Maybe Bool)- , _crPackageNamesToDisable :: !(Maybe [Text])- , _crNonComplianceDetailCondition :: !(Maybe NonComplianceDetailCondition)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ComplianceRule' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'crAPILevelCondition'------ * 'crDisableApps'------ * 'crPackageNamesToDisable'------ * 'crNonComplianceDetailCondition'-complianceRule- :: ComplianceRule-complianceRule =- ComplianceRule'- { _crAPILevelCondition = Nothing- , _crDisableApps = Nothing- , _crPackageNamesToDisable = Nothing- , _crNonComplianceDetailCondition = Nothing- }----- | A condition which is satisfied if the Android Framework API level on the--- device doesn\'t meet a minimum requirement.-crAPILevelCondition :: Lens' ComplianceRule (Maybe APILevelCondition)-crAPILevelCondition- = lens _crAPILevelCondition- (\ s a -> s{_crAPILevelCondition = a})---- | If set to true, the rule includes a mitigating action to disable apps so--- that the device is effectively disabled, but app data is preserved. If--- the device is running an app in locked task mode, the app will be closed--- and a UI showing the reason for non-compliance will be displayed.-crDisableApps :: Lens' ComplianceRule (Maybe Bool)-crDisableApps- = lens _crDisableApps- (\ s a -> s{_crDisableApps = a})---- | If set, the rule includes a mitigating action to disable apps specified--- in the list, but app data is preserved.-crPackageNamesToDisable :: Lens' ComplianceRule [Text]-crPackageNamesToDisable- = lens _crPackageNamesToDisable- (\ s a -> s{_crPackageNamesToDisable = a})- . _Default- . _Coerce---- | A condition which is satisfied if there exists any matching--- NonComplianceDetail for the device.-crNonComplianceDetailCondition :: Lens' ComplianceRule (Maybe NonComplianceDetailCondition)-crNonComplianceDetailCondition- = lens _crNonComplianceDetailCondition- (\ s a -> s{_crNonComplianceDetailCondition = a})--instance FromJSON ComplianceRule where- parseJSON- = withObject "ComplianceRule"- (\ o ->- ComplianceRule' <$>- (o .:? "apiLevelCondition") <*> (o .:? "disableApps")- <*> (o .:? "packageNamesToDisable" .!= mempty)- <*> (o .:? "nonComplianceDetailCondition"))--instance ToJSON ComplianceRule where- toJSON ComplianceRule'{..}- = object- (catMaybes- [("apiLevelCondition" .=) <$> _crAPILevelCondition,- ("disableApps" .=) <$> _crDisableApps,- ("packageNamesToDisable" .=) <$>- _crPackageNamesToDisable,- ("nonComplianceDetailCondition" .=) <$>- _crNonComplianceDetailCondition])---- | Response to a request to list web apps for a given enterprise.------ /See:/ 'listWebAppsResponse' smart constructor.-data ListWebAppsResponse =- ListWebAppsResponse'- { _lwarNextPageToken :: !(Maybe Text)- , _lwarWebApps :: !(Maybe [WebApp])- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ListWebAppsResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'lwarNextPageToken'------ * 'lwarWebApps'-listWebAppsResponse- :: ListWebAppsResponse-listWebAppsResponse =- ListWebAppsResponse' {_lwarNextPageToken = Nothing, _lwarWebApps = Nothing}----- | If there are more results, a token to retrieve next page of results.-lwarNextPageToken :: Lens' ListWebAppsResponse (Maybe Text)-lwarNextPageToken- = lens _lwarNextPageToken- (\ s a -> s{_lwarNextPageToken = a})---- | The list of web apps.-lwarWebApps :: Lens' ListWebAppsResponse [WebApp]-lwarWebApps- = lens _lwarWebApps (\ s a -> s{_lwarWebApps = a}) .- _Default- . _Coerce--instance FromJSON ListWebAppsResponse where- parseJSON- = withObject "ListWebAppsResponse"- (\ o ->- ListWebAppsResponse' <$>- (o .:? "nextPageToken") <*>- (o .:? "webApps" .!= mempty))--instance ToJSON ListWebAppsResponse where- toJSON ListWebAppsResponse'{..}- = object- (catMaybes- [("nextPageToken" .=) <$> _lwarNextPageToken,- ("webApps" .=) <$> _lwarWebApps])---- | Requirements for the password used to unlock a device.------ /See:/ 'passwordRequirements' smart constructor.-data PasswordRequirements =- PasswordRequirements'- { _prPasswordMinimumSymbols :: !(Maybe (Textual Int32))- , _prMaximumFailedPasswordsForWipe :: !(Maybe (Textual Int32))- , _prPasswordExpirationTimeout :: !(Maybe GDuration)- , _prPasswordMinimumNonLetter :: !(Maybe (Textual Int32))- , _prPasswordHistoryLength :: !(Maybe (Textual Int32))- , _prPasswordMinimumLetters :: !(Maybe (Textual Int32))- , _prPasswordMinimumUpperCase :: !(Maybe (Textual Int32))- , _prPasswordMinimumNumeric :: !(Maybe (Textual Int32))- , _prPasswordQuality :: !(Maybe PasswordRequirementsPasswordQuality)- , _prPasswordMinimumLength :: !(Maybe (Textual Int32))- , _prPasswordScope :: !(Maybe PasswordRequirementsPasswordScope)- , _prPasswordMinimumLowerCase :: !(Maybe (Textual Int32))- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'PasswordRequirements' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'prPasswordMinimumSymbols'------ * 'prMaximumFailedPasswordsForWipe'------ * 'prPasswordExpirationTimeout'------ * 'prPasswordMinimumNonLetter'------ * 'prPasswordHistoryLength'------ * 'prPasswordMinimumLetters'------ * 'prPasswordMinimumUpperCase'------ * 'prPasswordMinimumNumeric'------ * 'prPasswordQuality'------ * 'prPasswordMinimumLength'------ * 'prPasswordScope'------ * 'prPasswordMinimumLowerCase'-passwordRequirements- :: PasswordRequirements-passwordRequirements =- PasswordRequirements'- { _prPasswordMinimumSymbols = Nothing- , _prMaximumFailedPasswordsForWipe = Nothing- , _prPasswordExpirationTimeout = Nothing- , _prPasswordMinimumNonLetter = Nothing- , _prPasswordHistoryLength = Nothing- , _prPasswordMinimumLetters = Nothing- , _prPasswordMinimumUpperCase = Nothing- , _prPasswordMinimumNumeric = Nothing- , _prPasswordQuality = Nothing- , _prPasswordMinimumLength = Nothing- , _prPasswordScope = Nothing- , _prPasswordMinimumLowerCase = Nothing- }----- | Minimum number of symbols required in the password. Only enforced when--- password_quality is COMPLEX.-prPasswordMinimumSymbols :: Lens' PasswordRequirements (Maybe Int32)-prPasswordMinimumSymbols- = lens _prPasswordMinimumSymbols- (\ s a -> s{_prPasswordMinimumSymbols = a})- . mapping _Coerce---- | Number of incorrect device-unlock passwords that can be entered before a--- device is wiped. A value of 0 means there is no restriction.-prMaximumFailedPasswordsForWipe :: Lens' PasswordRequirements (Maybe Int32)-prMaximumFailedPasswordsForWipe- = lens _prMaximumFailedPasswordsForWipe- (\ s a -> s{_prMaximumFailedPasswordsForWipe = a})- . mapping _Coerce---- | Password expiration timeout.-prPasswordExpirationTimeout :: Lens' PasswordRequirements (Maybe Scientific)-prPasswordExpirationTimeout- = lens _prPasswordExpirationTimeout- (\ s a -> s{_prPasswordExpirationTimeout = a})- . mapping _GDuration---- | Minimum number of non-letter characters (numerical digits or symbols)--- required in the password. Only enforced when password_quality is--- COMPLEX.-prPasswordMinimumNonLetter :: Lens' PasswordRequirements (Maybe Int32)-prPasswordMinimumNonLetter- = lens _prPasswordMinimumNonLetter- (\ s a -> s{_prPasswordMinimumNonLetter = a})- . mapping _Coerce---- | The length of the password history. After setting this field, the user--- won\'t be able to enter a new password that is the same as any password--- in the history. A value of 0 means there is no restriction.-prPasswordHistoryLength :: Lens' PasswordRequirements (Maybe Int32)-prPasswordHistoryLength- = lens _prPasswordHistoryLength- (\ s a -> s{_prPasswordHistoryLength = a})- . mapping _Coerce---- | Minimum number of letters required in the password. Only enforced when--- password_quality is COMPLEX.-prPasswordMinimumLetters :: Lens' PasswordRequirements (Maybe Int32)-prPasswordMinimumLetters- = lens _prPasswordMinimumLetters- (\ s a -> s{_prPasswordMinimumLetters = a})- . mapping _Coerce---- | Minimum number of upper case letters required in the password. Only--- enforced when password_quality is COMPLEX.-prPasswordMinimumUpperCase :: Lens' PasswordRequirements (Maybe Int32)-prPasswordMinimumUpperCase- = lens _prPasswordMinimumUpperCase- (\ s a -> s{_prPasswordMinimumUpperCase = a})- . mapping _Coerce---- | Minimum number of numerical digits required in the password. Only--- enforced when password_quality is COMPLEX.-prPasswordMinimumNumeric :: Lens' PasswordRequirements (Maybe Int32)-prPasswordMinimumNumeric- = lens _prPasswordMinimumNumeric- (\ s a -> s{_prPasswordMinimumNumeric = a})- . mapping _Coerce---- | The required password quality.-prPasswordQuality :: Lens' PasswordRequirements (Maybe PasswordRequirementsPasswordQuality)-prPasswordQuality- = lens _prPasswordQuality- (\ s a -> s{_prPasswordQuality = a})---- | The minimum allowed password length. A value of 0 means there is no--- restriction. Only enforced when password_quality is NUMERIC,--- NUMERIC_COMPLEX, ALPHABETIC, ALPHANUMERIC, or COMPLEX.-prPasswordMinimumLength :: Lens' PasswordRequirements (Maybe Int32)-prPasswordMinimumLength- = lens _prPasswordMinimumLength- (\ s a -> s{_prPasswordMinimumLength = a})- . mapping _Coerce---- | The scope that the password requirement applies to.-prPasswordScope :: Lens' PasswordRequirements (Maybe PasswordRequirementsPasswordScope)-prPasswordScope- = lens _prPasswordScope- (\ s a -> s{_prPasswordScope = a})---- | Minimum number of lower case letters required in the password. Only--- enforced when password_quality is COMPLEX.-prPasswordMinimumLowerCase :: Lens' PasswordRequirements (Maybe Int32)-prPasswordMinimumLowerCase- = lens _prPasswordMinimumLowerCase- (\ s a -> s{_prPasswordMinimumLowerCase = a})- . mapping _Coerce--instance FromJSON PasswordRequirements where- parseJSON- = withObject "PasswordRequirements"- (\ o ->- PasswordRequirements' <$>- (o .:? "passwordMinimumSymbols") <*>- (o .:? "maximumFailedPasswordsForWipe")- <*> (o .:? "passwordExpirationTimeout")- <*> (o .:? "passwordMinimumNonLetter")- <*> (o .:? "passwordHistoryLength")- <*> (o .:? "passwordMinimumLetters")- <*> (o .:? "passwordMinimumUpperCase")- <*> (o .:? "passwordMinimumNumeric")- <*> (o .:? "passwordQuality")- <*> (o .:? "passwordMinimumLength")- <*> (o .:? "passwordScope")- <*> (o .:? "passwordMinimumLowerCase"))--instance ToJSON PasswordRequirements where- toJSON PasswordRequirements'{..}- = object- (catMaybes- [("passwordMinimumSymbols" .=) <$>- _prPasswordMinimumSymbols,- ("maximumFailedPasswordsForWipe" .=) <$>- _prMaximumFailedPasswordsForWipe,- ("passwordExpirationTimeout" .=) <$>- _prPasswordExpirationTimeout,- ("passwordMinimumNonLetter" .=) <$>- _prPasswordMinimumNonLetter,- ("passwordHistoryLength" .=) <$>- _prPasswordHistoryLength,- ("passwordMinimumLetters" .=) <$>- _prPasswordMinimumLetters,- ("passwordMinimumUpperCase" .=) <$>- _prPasswordMinimumUpperCase,- ("passwordMinimumNumeric" .=) <$>- _prPasswordMinimumNumeric,- ("passwordQuality" .=) <$> _prPasswordQuality,- ("passwordMinimumLength" .=) <$>- _prPasswordMinimumLength,- ("passwordScope" .=) <$> _prPasswordScope,- ("passwordMinimumLowerCase" .=) <$>- _prPasswordMinimumLowerCase])---- | Provides detail about non-compliance with a policy setting.------ /See:/ 'nonComplianceDetail' smart constructor.-data NonComplianceDetail =- NonComplianceDetail'- { _ncdFieldPath :: !(Maybe Text)- , _ncdPackageName :: !(Maybe Text)- , _ncdInstallationFailureReason :: !(Maybe NonComplianceDetailInstallationFailureReason)- , _ncdNonComplianceReason :: !(Maybe NonComplianceDetailNonComplianceReason)- , _ncdSettingName :: !(Maybe Text)- , _ncdCurrentValue :: !(Maybe JSONValue)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'NonComplianceDetail' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ncdFieldPath'------ * 'ncdPackageName'------ * 'ncdInstallationFailureReason'------ * 'ncdNonComplianceReason'------ * 'ncdSettingName'------ * 'ncdCurrentValue'-nonComplianceDetail- :: NonComplianceDetail-nonComplianceDetail =- NonComplianceDetail'- { _ncdFieldPath = Nothing- , _ncdPackageName = Nothing- , _ncdInstallationFailureReason = Nothing- , _ncdNonComplianceReason = Nothing- , _ncdSettingName = Nothing- , _ncdCurrentValue = Nothing- }----- | For settings with nested fields, if a particular nested field is out of--- compliance, this specifies the full path to the offending field. The--- path is formatted in the same way the policy JSON field would be--- referenced in JavaScript, that is: 1) For object-typed fields, the field--- name is followed by a dot then by a subfield name. 2) For array-typed--- fields, the field name is followed by the array index enclosed in--- brackets. For example, to indicate a problem with the url field in the--- externalData field in the 3rd application, the path would be--- applications[2].externalData.url-ncdFieldPath :: Lens' NonComplianceDetail (Maybe Text)-ncdFieldPath- = lens _ncdFieldPath (\ s a -> s{_ncdFieldPath = a})---- | The package name indicating which app is out of compliance, if--- applicable.-ncdPackageName :: Lens' NonComplianceDetail (Maybe Text)-ncdPackageName- = lens _ncdPackageName- (\ s a -> s{_ncdPackageName = a})---- | If package_name is set and the non-compliance reason is--- APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can\'t--- be installed or updated.-ncdInstallationFailureReason :: Lens' NonComplianceDetail (Maybe NonComplianceDetailInstallationFailureReason)-ncdInstallationFailureReason- = lens _ncdInstallationFailureReason- (\ s a -> s{_ncdInstallationFailureReason = a})---- | The reason the device is not in compliance with the setting.-ncdNonComplianceReason :: Lens' NonComplianceDetail (Maybe NonComplianceDetailNonComplianceReason)-ncdNonComplianceReason- = lens _ncdNonComplianceReason- (\ s a -> s{_ncdNonComplianceReason = a})---- | The name of the policy setting. This is the JSON field name of a--- top-level Policy field.-ncdSettingName :: Lens' NonComplianceDetail (Maybe Text)-ncdSettingName- = lens _ncdSettingName- (\ s a -> s{_ncdSettingName = a})---- | If the policy setting could not be applied, the current value of the--- setting on the device.-ncdCurrentValue :: Lens' NonComplianceDetail (Maybe JSONValue)-ncdCurrentValue- = lens _ncdCurrentValue- (\ s a -> s{_ncdCurrentValue = a})--instance FromJSON NonComplianceDetail where- parseJSON- = withObject "NonComplianceDetail"- (\ o ->- NonComplianceDetail' <$>- (o .:? "fieldPath") <*> (o .:? "packageName") <*>- (o .:? "installationFailureReason")- <*> (o .:? "nonComplianceReason")- <*> (o .:? "settingName")- <*> (o .:? "currentValue"))--instance ToJSON NonComplianceDetail where- toJSON NonComplianceDetail'{..}- = object- (catMaybes- [("fieldPath" .=) <$> _ncdFieldPath,- ("packageName" .=) <$> _ncdPackageName,- ("installationFailureReason" .=) <$>- _ncdInstallationFailureReason,- ("nonComplianceReason" .=) <$>- _ncdNonComplianceReason,- ("settingName" .=) <$> _ncdSettingName,- ("currentValue" .=) <$> _ncdCurrentValue])---- | An app-related event.------ /See:/ 'applicationEvent' smart constructor.-data ApplicationEvent =- ApplicationEvent'- { _aeEventType :: !(Maybe ApplicationEventEventType)- , _aeCreateTime :: !(Maybe DateTime')- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ApplicationEvent' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'aeEventType'------ * 'aeCreateTime'-applicationEvent- :: ApplicationEvent-applicationEvent =- ApplicationEvent' {_aeEventType = Nothing, _aeCreateTime = Nothing}----- | App event type.-aeEventType :: Lens' ApplicationEvent (Maybe ApplicationEventEventType)-aeEventType- = lens _aeEventType (\ s a -> s{_aeEventType = a})---- | The creation time of the event.-aeCreateTime :: Lens' ApplicationEvent (Maybe UTCTime)-aeCreateTime- = lens _aeCreateTime (\ s a -> s{_aeCreateTime = a})- . mapping _DateTime--instance FromJSON ApplicationEvent where- parseJSON- = withObject "ApplicationEvent"- (\ o ->- ApplicationEvent' <$>- (o .:? "eventType") <*> (o .:? "createTime"))--instance ToJSON ApplicationEvent where- toJSON ApplicationEvent'{..}- = object- (catMaybes- [("eventType" .=) <$> _aeEventType,- ("createTime" .=) <$> _aeCreateTime])---- | A terms and conditions page to be accepted during provisioning.------ /See:/ 'termsAndConditions' smart constructor.-data TermsAndConditions =- TermsAndConditions'- { _tacContent :: !(Maybe UserFacingMessage)- , _tacHeader :: !(Maybe UserFacingMessage)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'TermsAndConditions' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'tacContent'------ * 'tacHeader'-termsAndConditions- :: TermsAndConditions-termsAndConditions =- TermsAndConditions' {_tacContent = Nothing, _tacHeader = Nothing}----- | A well-formatted HTML string. It will be parsed on the client with--- android.text.Html#fromHtml.-tacContent :: Lens' TermsAndConditions (Maybe UserFacingMessage)-tacContent- = lens _tacContent (\ s a -> s{_tacContent = a})---- | A short header which appears above the HTML content.-tacHeader :: Lens' TermsAndConditions (Maybe UserFacingMessage)-tacHeader- = lens _tacHeader (\ s a -> s{_tacHeader = a})--instance FromJSON TermsAndConditions where- parseJSON- = withObject "TermsAndConditions"- (\ o ->- TermsAndConditions' <$>- (o .:? "content") <*> (o .:? "header"))--instance ToJSON TermsAndConditions where- toJSON TermsAndConditions'{..}- = object- (catMaybes- [("content" .=) <$> _tacContent,- ("header" .=) <$> _tacHeader])---- | The normal response of the operation in case of success. If the original--- method returns no data on success, such as Delete, the response is--- google.protobuf.Empty. If the original method is standard--- Get\/Create\/Update, the response should be the resource. For other--- methods, the response should have the type XxxResponse, where Xxx is the--- original method name. For example, if the original method name is--- TakeSnapshot(), the inferred response type is TakeSnapshotResponse.------ /See:/ 'operationResponse' smart constructor.-newtype OperationResponse =- OperationResponse'- { _orAddtional :: HashMap Text JSONValue- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'OperationResponse' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'orAddtional'-operationResponse- :: HashMap Text JSONValue -- ^ 'orAddtional'- -> OperationResponse-operationResponse pOrAddtional_ =- OperationResponse' {_orAddtional = _Coerce # pOrAddtional_}----- | Properties of the object. Contains field \'type with type URL.-orAddtional :: Lens' OperationResponse (HashMap Text JSONValue)-orAddtional- = lens _orAddtional (\ s a -> s{_orAddtional = a}) .- _Coerce--instance FromJSON OperationResponse where- parseJSON- = withObject "OperationResponse"- (\ o -> OperationResponse' <$> (parseJSONObject o))--instance ToJSON OperationResponse where- toJSON = toJSON . _orAddtional---- | Provides a user-facing message with locale info. The maximum message--- length is 4096 characters.------ /See:/ 'userFacingMessage' smart constructor.-data UserFacingMessage =- UserFacingMessage'- { _ufmLocalizedMessages :: !(Maybe UserFacingMessageLocalizedMessages)- , _ufmDefaultMessage :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'UserFacingMessage' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ufmLocalizedMessages'------ * 'ufmDefaultMessage'-userFacingMessage- :: UserFacingMessage-userFacingMessage =- UserFacingMessage'- {_ufmLocalizedMessages = Nothing, _ufmDefaultMessage = Nothing}----- | A map containing pairs, where locale is a well-formed BCP 47 language--- (https:\/\/www.w3.org\/International\/articles\/language-tags\/) code,--- such as en-US, es-ES, or fr.-ufmLocalizedMessages :: Lens' UserFacingMessage (Maybe UserFacingMessageLocalizedMessages)-ufmLocalizedMessages- = lens _ufmLocalizedMessages- (\ s a -> s{_ufmLocalizedMessages = a})---- | The default message displayed if no localized message is specified or--- the user\'s locale doesn\'t match with any of the localized messages. A--- default message must be provided if any localized messages are provided.-ufmDefaultMessage :: Lens' UserFacingMessage (Maybe Text)-ufmDefaultMessage- = lens _ufmDefaultMessage- (\ s a -> s{_ufmDefaultMessage = a})--instance FromJSON UserFacingMessage where- parseJSON- = withObject "UserFacingMessage"- (\ o ->- UserFacingMessage' <$>- (o .:? "localizedMessages") <*>- (o .:? "defaultMessage"))--instance ToJSON UserFacingMessage where- toJSON UserFacingMessage'{..}- = object- (catMaybes- [("localizedMessages" .=) <$> _ufmLocalizedMessages,- ("defaultMessage" .=) <$> _ufmDefaultMessage])---- | Information about device software.------ /See:/ 'softwareInfo' smart constructor.-data SoftwareInfo =- SoftwareInfo'- { _siSecurityPatchLevel :: !(Maybe Text)- , _siAndroidDevicePolicyVersionName :: !(Maybe Text)- , _siDeviceKernelVersion :: !(Maybe Text)- , _siAndroidDevicePolicyVersionCode :: !(Maybe (Textual Int32))- , _siDeviceBuildSignature :: !(Maybe Text)- , _siBootLoaderVersion :: !(Maybe Text)- , _siAndroidBuildTime :: !(Maybe DateTime')- , _siPrimaryLanguageCode :: !(Maybe Text)- , _siAndroidBuildNumber :: !(Maybe Text)- , _siAndroidVersion :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SoftwareInfo' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'siSecurityPatchLevel'------ * 'siAndroidDevicePolicyVersionName'------ * 'siDeviceKernelVersion'------ * 'siAndroidDevicePolicyVersionCode'------ * 'siDeviceBuildSignature'------ * 'siBootLoaderVersion'------ * 'siAndroidBuildTime'------ * 'siPrimaryLanguageCode'------ * 'siAndroidBuildNumber'------ * 'siAndroidVersion'-softwareInfo- :: SoftwareInfo-softwareInfo =- SoftwareInfo'- { _siSecurityPatchLevel = Nothing- , _siAndroidDevicePolicyVersionName = Nothing- , _siDeviceKernelVersion = Nothing- , _siAndroidDevicePolicyVersionCode = Nothing- , _siDeviceBuildSignature = Nothing- , _siBootLoaderVersion = Nothing- , _siAndroidBuildTime = Nothing- , _siPrimaryLanguageCode = Nothing- , _siAndroidBuildNumber = Nothing- , _siAndroidVersion = Nothing- }----- | Security patch level, e.g. 2016-05-01.-siSecurityPatchLevel :: Lens' SoftwareInfo (Maybe Text)-siSecurityPatchLevel- = lens _siSecurityPatchLevel- (\ s a -> s{_siSecurityPatchLevel = a})---- | The Android Device Policy app version as displayed to the user.-siAndroidDevicePolicyVersionName :: Lens' SoftwareInfo (Maybe Text)-siAndroidDevicePolicyVersionName- = lens _siAndroidDevicePolicyVersionName- (\ s a -> s{_siAndroidDevicePolicyVersionName = a})---- | Kernel version, for example, 2.6.32.9-g103d848.-siDeviceKernelVersion :: Lens' SoftwareInfo (Maybe Text)-siDeviceKernelVersion- = lens _siDeviceKernelVersion- (\ s a -> s{_siDeviceKernelVersion = a})---- | The Android Device Policy app version code.-siAndroidDevicePolicyVersionCode :: Lens' SoftwareInfo (Maybe Int32)-siAndroidDevicePolicyVersionCode- = lens _siAndroidDevicePolicyVersionCode- (\ s a -> s{_siAndroidDevicePolicyVersionCode = a})- . mapping _Coerce---- | SHA-256 hash of android.content.pm.Signature--- (https:\/\/developer.android.com\/reference\/android\/content\/pm\/Signature.html)--- associated with the system package, which can be used to verify that the--- system build hasn\'t been modified.-siDeviceBuildSignature :: Lens' SoftwareInfo (Maybe Text)-siDeviceBuildSignature- = lens _siDeviceBuildSignature- (\ s a -> s{_siDeviceBuildSignature = a})---- | The system bootloader version number, e.g. 0.6.7.-siBootLoaderVersion :: Lens' SoftwareInfo (Maybe Text)-siBootLoaderVersion- = lens _siBootLoaderVersion- (\ s a -> s{_siBootLoaderVersion = a})---- | Build time.-siAndroidBuildTime :: Lens' SoftwareInfo (Maybe UTCTime)-siAndroidBuildTime- = lens _siAndroidBuildTime- (\ s a -> s{_siAndroidBuildTime = a})- . mapping _DateTime---- | An IETF BCP 47 language code for the primary locale on the device.-siPrimaryLanguageCode :: Lens' SoftwareInfo (Maybe Text)-siPrimaryLanguageCode- = lens _siPrimaryLanguageCode- (\ s a -> s{_siPrimaryLanguageCode = a})---- | Android build ID string meant for displaying to the user. For example,--- shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys.-siAndroidBuildNumber :: Lens' SoftwareInfo (Maybe Text)-siAndroidBuildNumber- = lens _siAndroidBuildNumber- (\ s a -> s{_siAndroidBuildNumber = a})---- | The user-visible Android version string. For example, 6.0.1.-siAndroidVersion :: Lens' SoftwareInfo (Maybe Text)-siAndroidVersion- = lens _siAndroidVersion- (\ s a -> s{_siAndroidVersion = a})--instance FromJSON SoftwareInfo where- parseJSON- = withObject "SoftwareInfo"- (\ o ->- SoftwareInfo' <$>- (o .:? "securityPatchLevel") <*>- (o .:? "androidDevicePolicyVersionName")- <*> (o .:? "deviceKernelVersion")- <*> (o .:? "androidDevicePolicyVersionCode")- <*> (o .:? "deviceBuildSignature")- <*> (o .:? "bootloaderVersion")- <*> (o .:? "androidBuildTime")- <*> (o .:? "primaryLanguageCode")- <*> (o .:? "androidBuildNumber")- <*> (o .:? "androidVersion"))--instance ToJSON SoftwareInfo where- toJSON SoftwareInfo'{..}- = object- (catMaybes- [("securityPatchLevel" .=) <$> _siSecurityPatchLevel,- ("androidDevicePolicyVersionName" .=) <$>- _siAndroidDevicePolicyVersionName,- ("deviceKernelVersion" .=) <$>- _siDeviceKernelVersion,- ("androidDevicePolicyVersionCode" .=) <$>- _siAndroidDevicePolicyVersionCode,- ("deviceBuildSignature" .=) <$>- _siDeviceBuildSignature,- ("bootloaderVersion" .=) <$> _siBootLoaderVersion,- ("androidBuildTime" .=) <$> _siAndroidBuildTime,- ("primaryLanguageCode" .=) <$>- _siPrimaryLanguageCode,- ("androidBuildNumber" .=) <$> _siAndroidBuildNumber,- ("androidVersion" .=) <$> _siAndroidVersion])---- | Settings controlling the behavior of application reports.------ /See:/ 'applicationReportingSettings' smart constructor.-newtype ApplicationReportingSettings =- ApplicationReportingSettings'- { _arsIncludeRemovedApps :: Maybe Bool- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ApplicationReportingSettings' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'arsIncludeRemovedApps'-applicationReportingSettings- :: ApplicationReportingSettings-applicationReportingSettings =- ApplicationReportingSettings' {_arsIncludeRemovedApps = Nothing}----- | Whether removed apps are included in application reports.-arsIncludeRemovedApps :: Lens' ApplicationReportingSettings (Maybe Bool)-arsIncludeRemovedApps- = lens _arsIncludeRemovedApps- (\ s a -> s{_arsIncludeRemovedApps = a})--instance FromJSON ApplicationReportingSettings where- parseJSON- = withObject "ApplicationReportingSettings"- (\ o ->- ApplicationReportingSettings' <$>- (o .:? "includeRemovedApps"))--instance ToJSON ApplicationReportingSettings where- toJSON ApplicationReportingSettings'{..}- = object- (catMaybes- [("includeRemovedApps" .=) <$>- _arsIncludeRemovedApps])---- | A permission required by the app.------ /See:/ 'applicationPermission' smart constructor.-data ApplicationPermission =- ApplicationPermission'- { _apName :: !(Maybe Text)- , _apDescription :: !(Maybe Text)- , _apPermissionId :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'ApplicationPermission' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'apName'------ * 'apDescription'------ * 'apPermissionId'-applicationPermission- :: ApplicationPermission-applicationPermission =- ApplicationPermission'- {_apName = Nothing, _apDescription = Nothing, _apPermissionId = Nothing}----- | The name of the permission. Localized.-apName :: Lens' ApplicationPermission (Maybe Text)-apName = lens _apName (\ s a -> s{_apName = a})---- | A longer description of the permission, providing more detail on what it--- affects. Localized.-apDescription :: Lens' ApplicationPermission (Maybe Text)-apDescription- = lens _apDescription- (\ s a -> s{_apDescription = a})---- | An opaque string uniquely identifying the permission. Not localized.-apPermissionId :: Lens' ApplicationPermission (Maybe Text)-apPermissionId- = lens _apPermissionId- (\ s a -> s{_apPermissionId = a})--instance FromJSON ApplicationPermission where- parseJSON- = withObject "ApplicationPermission"- (\ o ->- ApplicationPermission' <$>- (o .:? "name") <*> (o .:? "description") <*>- (o .:? "permissionId"))--instance ToJSON ApplicationPermission where- toJSON ApplicationPermission'{..}- = object- (catMaybes- [("name" .=) <$> _apName,- ("description" .=) <$> _apDescription,- ("permissionId" .=) <$> _apPermissionId])---- | An action executed during setup.------ /See:/ 'setupAction' smart constructor.-data SetupAction =- SetupAction'- { _saLaunchApp :: !(Maybe LaunchAppAction)- , _saTitle :: !(Maybe UserFacingMessage)- , _saDescription :: !(Maybe UserFacingMessage)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SetupAction' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'saLaunchApp'------ * 'saTitle'------ * 'saDescription'-setupAction- :: SetupAction-setupAction =- SetupAction'- {_saLaunchApp = Nothing, _saTitle = Nothing, _saDescription = Nothing}----- | An action to launch an app.-saLaunchApp :: Lens' SetupAction (Maybe LaunchAppAction)-saLaunchApp- = lens _saLaunchApp (\ s a -> s{_saLaunchApp = a})---- | Title of this action.-saTitle :: Lens' SetupAction (Maybe UserFacingMessage)-saTitle = lens _saTitle (\ s a -> s{_saTitle = a})---- | Description of this action.-saDescription :: Lens' SetupAction (Maybe UserFacingMessage)-saDescription- = lens _saDescription- (\ s a -> s{_saDescription = a})--instance FromJSON SetupAction where- parseJSON- = withObject "SetupAction"- (\ o ->- SetupAction' <$>- (o .:? "launchApp") <*> (o .:? "title") <*>- (o .:? "description"))--instance ToJSON SetupAction where- toJSON SetupAction'{..}- = object- (catMaybes- [("launchApp" .=) <$> _saLaunchApp,- ("title" .=) <$> _saTitle,- ("description" .=) <$> _saDescription])---- | A web app.------ /See:/ 'webApp' smart constructor.-data WebApp =- WebApp'- { _waVersionCode :: !(Maybe (Textual Int64))- , _waIcons :: !(Maybe [WebAppIcon])- , _waStartURL :: !(Maybe Text)- , _waDisplayMode :: !(Maybe WebAppDisplayMode)- , _waName :: !(Maybe Text)- , _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:------ * 'waVersionCode'------ * 'waIcons'------ * 'waStartURL'------ * 'waDisplayMode'------ * 'waName'------ * 'waTitle'-webApp- :: WebApp-webApp =- WebApp'- { _waVersionCode = Nothing- , _waIcons = Nothing- , _waStartURL = Nothing- , _waDisplayMode = Nothing- , _waName = Nothing- , _waTitle = Nothing- }----- | 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 for the web app. Must have at least one element.-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.-waDisplayMode :: Lens' WebApp (Maybe WebAppDisplayMode)-waDisplayMode- = lens _waDisplayMode- (\ s a -> s{_waDisplayMode = a})---- | The name of the web app, which is generated by the server during--- creation in the form--- enterprises\/{enterpriseId}\/webApps\/{packageName}.-waName :: Lens' WebApp (Maybe Text)-waName = lens _waName (\ s a -> s{_waName = 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 .:? "versionCode") <*> (o .:? "icons" .!= mempty)- <*> (o .:? "startUrl")- <*> (o .:? "displayMode")- <*> (o .:? "name")- <*> (o .:? "title"))--instance ToJSON WebApp where- toJSON WebApp'{..}- = object- (catMaybes- [("versionCode" .=) <$> _waVersionCode,- ("icons" .=) <$> _waIcons,- ("startUrl" .=) <$> _waStartURL,- ("displayMode" .=) <$> _waDisplayMode,- ("name" .=) <$> _waName, ("title" .=) <$> _waTitle])
− gen/Network/Google/AndroidManagement/Types/Sum.hs
@@ -1,1478 +0,0 @@-{-# LANGUAGE DeriveDataTypeable #-}-{-# LANGUAGE DeriveGeneric #-}-{-# LANGUAGE LambdaCase #-}-{-# LANGUAGE NoImplicitPrelude #-}-{-# LANGUAGE OverloadedStrings #-}--{-# OPTIONS_GHC -fno-warn-unused-imports #-}---- |--- Module : Network.Google.AndroidManagement.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.AndroidManagement.Types.Sum where--import Network.Google.Prelude hiding (Bytes)---- | Event type.-data PowerManagementEventEventType- = PowerManagementEventTypeUnspecified- -- ^ @POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED@- -- Unspecified. No events have this type.- | BatteryLevelCollected- -- ^ @BATTERY_LEVEL_COLLECTED@- -- Battery level was measured.- | PowerConnected- -- ^ @POWER_CONNECTED@- -- The device started charging.- | PowerDisconnected- -- ^ @POWER_DISCONNECTED@- -- The device stopped charging.- | BatteryLow- -- ^ @BATTERY_LOW@- -- The device entered low-power mode.- | BatteryOkay- -- ^ @BATTERY_OKAY@- -- The device exited low-power mode.- | BootCompleted- -- ^ @BOOT_COMPLETED@- -- The device booted.- | Shutdown- -- ^ @SHUTDOWN@- -- The device shut down.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PowerManagementEventEventType--instance FromHttpApiData PowerManagementEventEventType where- parseQueryParam = \case- "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED" -> Right PowerManagementEventTypeUnspecified- "BATTERY_LEVEL_COLLECTED" -> Right BatteryLevelCollected- "POWER_CONNECTED" -> Right PowerConnected- "POWER_DISCONNECTED" -> Right PowerDisconnected- "BATTERY_LOW" -> Right BatteryLow- "BATTERY_OKAY" -> Right BatteryOkay- "BOOT_COMPLETED" -> Right BootCompleted- "SHUTDOWN" -> Right Shutdown- x -> Left ("Unable to parse PowerManagementEventEventType from: " <> x)--instance ToHttpApiData PowerManagementEventEventType where- toQueryParam = \case- PowerManagementEventTypeUnspecified -> "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED"- BatteryLevelCollected -> "BATTERY_LEVEL_COLLECTED"- PowerConnected -> "POWER_CONNECTED"- PowerDisconnected -> "POWER_DISCONNECTED"- BatteryLow -> "BATTERY_LOW"- BatteryOkay -> "BATTERY_OKAY"- BootCompleted -> "BOOT_COMPLETED"- Shutdown -> "SHUTDOWN"--instance FromJSON PowerManagementEventEventType where- parseJSON = parseJSONText "PowerManagementEventEventType"--instance ToJSON PowerManagementEventEventType where- toJSON = toJSONText---- | The type of system update to configure.-data SystemUpdateType- = SystemUpdateTypeUnspecified- -- ^ @SYSTEM_UPDATE_TYPE_UNSPECIFIED@- -- Follow the default update behavior for the device, which typically- -- requires the user to accept system updates.- | Automatic- -- ^ @AUTOMATIC@- -- Install automatically as soon as an update is available.- | Windowed- -- ^ @WINDOWED@- -- Install automatically within a daily maintenance window. This also- -- configures Play apps to be updated within the window. This is strongly- -- recommended for kiosk devices because this is the only way apps- -- persistently pinned to the foreground can be updated by Play.- | Postpone- -- ^ @POSTPONE@- -- Postpone automatic install up to a maximum of 30 days.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable SystemUpdateType--instance FromHttpApiData SystemUpdateType where- parseQueryParam = \case- "SYSTEM_UPDATE_TYPE_UNSPECIFIED" -> Right SystemUpdateTypeUnspecified- "AUTOMATIC" -> Right Automatic- "WINDOWED" -> Right Windowed- "POSTPONE" -> Right Postpone- x -> Left ("Unable to parse SystemUpdateType from: " <> x)--instance ToHttpApiData SystemUpdateType where- toQueryParam = \case- SystemUpdateTypeUnspecified -> "SYSTEM_UPDATE_TYPE_UNSPECIFIED"- Automatic -> "AUTOMATIC"- Windowed -> "WINDOWED"- Postpone -> "POSTPONE"--instance FromJSON SystemUpdateType where- parseJSON = parseJSONText "SystemUpdateType"--instance ToJSON SystemUpdateType where- toJSON = toJSONText---- | The state to be applied to the device. This field can be modified by a--- patch request. Note that when calling enterprises.devices.patch, ACTIVE--- and DISABLED are the only allowable values. To enter the device into a--- DELETED state, call enterprises.devices.delete.-data DeviceState- = DeviceStateUnspecified- -- ^ @DEVICE_STATE_UNSPECIFIED@- -- This value is disallowed.- | Active- -- ^ @ACTIVE@- -- The device is active.- | Disabled- -- ^ @DISABLED@- -- The device is disabled.- | Deleted- -- ^ @DELETED@- -- The device was deleted. This state will never be returned by an API- -- call, but is used in the final status report published to Cloud Pub\/Sub- -- when the device acknowledges the deletion.- | Provisioning- -- ^ @PROVISIONING@- -- The device is being provisioned. Newly enrolled devices are in this- -- state until they have a policy applied.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable DeviceState--instance FromHttpApiData DeviceState where- parseQueryParam = \case- "DEVICE_STATE_UNSPECIFIED" -> Right DeviceStateUnspecified- "ACTIVE" -> Right Active- "DISABLED" -> Right Disabled- "DELETED" -> Right Deleted- "PROVISIONING" -> Right Provisioning- x -> Left ("Unable to parse DeviceState from: " <> x)--instance ToHttpApiData DeviceState where- toQueryParam = \case- DeviceStateUnspecified -> "DEVICE_STATE_UNSPECIFIED"- Active -> "ACTIVE"- Disabled -> "DISABLED"- Deleted -> "DELETED"- Provisioning -> "PROVISIONING"--instance FromJSON DeviceState where- parseJSON = parseJSONText "DeviceState"--instance ToJSON DeviceState where- toJSON = toJSONText---- | If the command failed, an error code explaining the failure. This is not--- set when the command is cancelled by the caller.-data CommandErrorCode- = CommandErrorCodeUnspecified- -- ^ @COMMAND_ERROR_CODE_UNSPECIFIED@- -- There was no error.- | Unknown- -- ^ @UNKNOWN@- -- An unknown error occurred.- | APILevel- -- ^ @API_LEVEL@- -- The API level of the device does not support this command.- | ManagementMode- -- ^ @MANAGEMENT_MODE@- -- The management mode (profile owner, device owner, etc.) does not support- -- the command.- | InvalidValue- -- ^ @INVALID_VALUE@- -- The command has an invalid parameter value.- | Unsupported- -- ^ @UNSUPPORTED@- -- The device doesn\'t support the command. Updating Android Device Policy- -- to the latest version may resolve the issue.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CommandErrorCode--instance FromHttpApiData CommandErrorCode where- parseQueryParam = \case- "COMMAND_ERROR_CODE_UNSPECIFIED" -> Right CommandErrorCodeUnspecified- "UNKNOWN" -> Right Unknown- "API_LEVEL" -> Right APILevel- "MANAGEMENT_MODE" -> Right ManagementMode- "INVALID_VALUE" -> Right InvalidValue- "UNSUPPORTED" -> Right Unsupported- x -> Left ("Unable to parse CommandErrorCode from: " <> x)--instance ToHttpApiData CommandErrorCode where- toQueryParam = \case- CommandErrorCodeUnspecified -> "COMMAND_ERROR_CODE_UNSPECIFIED"- Unknown -> "UNKNOWN"- APILevel -> "API_LEVEL"- ManagementMode -> "MANAGEMENT_MODE"- InvalidValue -> "INVALID_VALUE"- Unsupported -> "UNSUPPORTED"--instance FromJSON CommandErrorCode where- parseJSON = parseJSONText "CommandErrorCode"--instance ToJSON CommandErrorCode where- toJSON = toJSONText---- | The policy for granting the permission.-data PermissionGrantPolicy- = PermissionPolicyUnspecified- -- ^ @PERMISSION_POLICY_UNSPECIFIED@- -- Policy not specified. If no policy is specified for a permission at any- -- level, then the PROMPT behavior is used by default.- | Prompt- -- ^ @PROMPT@- -- Prompt the user to grant a permission.- | Grant- -- ^ @GRANT@- -- Automatically grant a permission.- | Deny- -- ^ @DENY@- -- Automatically deny a permission.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PermissionGrantPolicy--instance FromHttpApiData PermissionGrantPolicy where- parseQueryParam = \case- "PERMISSION_POLICY_UNSPECIFIED" -> Right PermissionPolicyUnspecified- "PROMPT" -> Right Prompt- "GRANT" -> Right Grant- "DENY" -> Right Deny- x -> Left ("Unable to parse PermissionGrantPolicy from: " <> x)--instance ToHttpApiData PermissionGrantPolicy where- toQueryParam = \case- PermissionPolicyUnspecified -> "PERMISSION_POLICY_UNSPECIFIED"- Prompt -> "PROMPT"- Grant -> "GRANT"- Deny -> "DENY"--instance FromJSON PermissionGrantPolicy where- parseJSON = parseJSONText "PermissionGrantPolicy"--instance ToJSON PermissionGrantPolicy where- toJSON = toJSONText---- | State of the display.-data DisplayState- = DisplayStateUnspecified- -- ^ @DISPLAY_STATE_UNSPECIFIED@- -- This value is disallowed.- | Off- -- ^ @OFF@- -- Display is off.- | ON- -- ^ @ON@- -- Display is on.- | Doze- -- ^ @DOZE@- -- Display is dozing in a low power state- | Suspended- -- ^ @SUSPENDED@- -- Display is dozing in a suspended low power state.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable DisplayState--instance FromHttpApiData DisplayState where- parseQueryParam = \case- "DISPLAY_STATE_UNSPECIFIED" -> Right DisplayStateUnspecified- "OFF" -> Right Off- "ON" -> Right ON- "DOZE" -> Right Doze- "SUSPENDED" -> Right Suspended- x -> Left ("Unable to parse DisplayState from: " <> x)--instance ToHttpApiData DisplayState where- toQueryParam = \case- DisplayStateUnspecified -> "DISPLAY_STATE_UNSPECIFIED"- Off -> "OFF"- ON -> "ON"- Doze -> "DOZE"- Suspended -> "SUSPENDED"--instance FromJSON DisplayState where- parseJSON = parseJSONText "DisplayState"--instance ToJSON DisplayState where- toJSON = toJSONText---- | This mode controls which apps are available to the user in the Play--- Store and the behavior on the device when apps are removed from the--- policy.-data PolicyPlayStoreMode- = PlayStoreModeUnspecified- -- ^ @PLAY_STORE_MODE_UNSPECIFIED@- -- Unspecified. Defaults to WHITELIST.- | WhiteList- -- ^ @WHITELIST@- -- Only apps that are in the policy are available and any app not in the- -- policy will be automatically uninstalled from the device.- | BlackList- -- ^ @BLACKLIST@- -- All apps are available and any app that should not be on the device- -- should be explicitly marked as \'BLOCKED\' in the applications policy.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PolicyPlayStoreMode--instance FromHttpApiData PolicyPlayStoreMode where- parseQueryParam = \case- "PLAY_STORE_MODE_UNSPECIFIED" -> Right PlayStoreModeUnspecified- "WHITELIST" -> Right WhiteList- "BLACKLIST" -> Right BlackList- x -> Left ("Unable to parse PolicyPlayStoreMode from: " <> x)--instance ToHttpApiData PolicyPlayStoreMode where- toQueryParam = \case- PlayStoreModeUnspecified -> "PLAY_STORE_MODE_UNSPECIFIED"- WhiteList -> "WHITELIST"- BlackList -> "BLACKLIST"--instance FromJSON PolicyPlayStoreMode where- parseJSON = parseJSONText "PolicyPlayStoreMode"--instance ToJSON PolicyPlayStoreMode where- toJSON = toJSONText---- | The type of management mode Android Device Policy takes on the device.--- This influences which policy settings are supported.-data DeviceManagementMode- = ManagementModeUnspecified- -- ^ @MANAGEMENT_MODE_UNSPECIFIED@- -- This value is disallowed.- | DeviceOwner- -- ^ @DEVICE_OWNER@- -- Device owner. Android Device Policy has full control over the device.- | ProFileOwner- -- ^ @PROFILE_OWNER@- -- Profile owner. Android Device Policy has control over a managed profile- -- on the device.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable DeviceManagementMode--instance FromHttpApiData DeviceManagementMode where- parseQueryParam = \case- "MANAGEMENT_MODE_UNSPECIFIED" -> Right ManagementModeUnspecified- "DEVICE_OWNER" -> Right DeviceOwner- "PROFILE_OWNER" -> Right ProFileOwner- x -> Left ("Unable to parse DeviceManagementMode from: " <> x)--instance ToHttpApiData DeviceManagementMode where- toQueryParam = \case- ManagementModeUnspecified -> "MANAGEMENT_MODE_UNSPECIFIED"- DeviceOwner -> "DEVICE_OWNER"- ProFileOwner -> "PROFILE_OWNER"--instance FromJSON DeviceManagementMode where- parseJSON = parseJSONText "DeviceManagementMode"--instance ToJSON DeviceManagementMode where- toJSON = toJSONText---- | The display mode of the web app.-data WebAppDisplayMode- = DisplayModeUnspecified- -- ^ @DISPLAY_MODE_UNSPECIFIED@- -- Not used.- | MinimalUi- -- ^ @MINIMAL_UI@- -- Opens the web app with a minimal set of browser UI elements for- -- controlling navigation and viewing the page URL.- | Standalone- -- ^ @STANDALONE@- -- 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.- | FullScreen- -- ^ @FULL_SCREEN@- -- 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.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable WebAppDisplayMode--instance FromHttpApiData WebAppDisplayMode where- parseQueryParam = \case- "DISPLAY_MODE_UNSPECIFIED" -> Right DisplayModeUnspecified- "MINIMAL_UI" -> Right MinimalUi- "STANDALONE" -> Right Standalone- "FULL_SCREEN" -> Right FullScreen- x -> Left ("Unable to parse WebAppDisplayMode from: " <> x)--instance ToHttpApiData WebAppDisplayMode where- toQueryParam = \case- DisplayModeUnspecified -> "DISPLAY_MODE_UNSPECIFIED"- MinimalUi -> "MINIMAL_UI"- Standalone -> "STANDALONE"- FullScreen -> "FULL_SCREEN"--instance FromJSON WebAppDisplayMode where- parseJSON = parseJSONText "WebAppDisplayMode"--instance ToJSON WebAppDisplayMode where- toJSON = toJSONText---- | The source of the package.-data ApplicationReportApplicationSource- = ApplicationSourceUnspecified- -- ^ @APPLICATION_SOURCE_UNSPECIFIED@- -- The app was sideloaded from an unspecified source.- | SystemAppFactoryVersion- -- ^ @SYSTEM_APP_FACTORY_VERSION@- -- This is a system app from the device\'s factory image.- | SystemAppUpdatedVersion- -- ^ @SYSTEM_APP_UPDATED_VERSION@- -- This is an updated system app.- | InstalledFromPlayStore- -- ^ @INSTALLED_FROM_PLAY_STORE@- -- The app was installed from the Google Play Store.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ApplicationReportApplicationSource--instance FromHttpApiData ApplicationReportApplicationSource where- parseQueryParam = \case- "APPLICATION_SOURCE_UNSPECIFIED" -> Right ApplicationSourceUnspecified- "SYSTEM_APP_FACTORY_VERSION" -> Right SystemAppFactoryVersion- "SYSTEM_APP_UPDATED_VERSION" -> Right SystemAppUpdatedVersion- "INSTALLED_FROM_PLAY_STORE" -> Right InstalledFromPlayStore- x -> Left ("Unable to parse ApplicationReportApplicationSource from: " <> x)--instance ToHttpApiData ApplicationReportApplicationSource where- toQueryParam = \case- ApplicationSourceUnspecified -> "APPLICATION_SOURCE_UNSPECIFIED"- SystemAppFactoryVersion -> "SYSTEM_APP_FACTORY_VERSION"- SystemAppUpdatedVersion -> "SYSTEM_APP_UPDATED_VERSION"- InstalledFromPlayStore -> "INSTALLED_FROM_PLAY_STORE"--instance FromJSON ApplicationReportApplicationSource where- parseJSON = parseJSONText "ApplicationReportApplicationSource"--instance ToJSON ApplicationReportApplicationSource where- toJSON = toJSONText---- | The type of installation to perform.-data ApplicationPolicyInstallType- = InstallTypeUnspecified- -- ^ @INSTALL_TYPE_UNSPECIFIED@- -- Unspecified. Defaults to AVAILABLE.- | Preinstalled- -- ^ @PREINSTALLED@- -- The app is automatically installed and can be removed by the user.- | ForceInstalled- -- ^ @FORCE_INSTALLED@- -- The app is automatically installed and can\'t be removed by the user.- | Blocked- -- ^ @BLOCKED@- -- The app is blocked and can\'t be installed. If the app was installed- -- under a previous policy, it will be uninstalled.- | Available- -- ^ @AVAILABLE@- -- The app is available to install.- | RequiredForSetup- -- ^ @REQUIRED_FOR_SETUP@- -- The app is automatically installed and can\'t be removed by the user and- -- will prevent setup from completion until installation is complete.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ApplicationPolicyInstallType--instance FromHttpApiData ApplicationPolicyInstallType where- parseQueryParam = \case- "INSTALL_TYPE_UNSPECIFIED" -> Right InstallTypeUnspecified- "PREINSTALLED" -> Right Preinstalled- "FORCE_INSTALLED" -> Right ForceInstalled- "BLOCKED" -> Right Blocked- "AVAILABLE" -> Right Available- "REQUIRED_FOR_SETUP" -> Right RequiredForSetup- x -> Left ("Unable to parse ApplicationPolicyInstallType from: " <> x)--instance ToHttpApiData ApplicationPolicyInstallType where- toQueryParam = \case- InstallTypeUnspecified -> "INSTALL_TYPE_UNSPECIFIED"- Preinstalled -> "PREINSTALLED"- ForceInstalled -> "FORCE_INSTALLED"- Blocked -> "BLOCKED"- Available -> "AVAILABLE"- RequiredForSetup -> "REQUIRED_FOR_SETUP"--instance FromJSON ApplicationPolicyInstallType where- parseJSON = parseJSONText "ApplicationPolicyInstallType"--instance ToJSON ApplicationPolicyInstallType where- toJSON = toJSONText---- | If package_name is set and the non-compliance reason is--- APP_NOT_INSTALLED or APP_NOT_UPDATED, the detailed reason the app can\'t--- be installed or updated.-data NonComplianceDetailInstallationFailureReason- = InstallationFailureReasonUnspecified- -- ^ @INSTALLATION_FAILURE_REASON_UNSPECIFIED@- -- This value is disallowed.- | InstallationFailureReasonUnknown- -- ^ @INSTALLATION_FAILURE_REASON_UNKNOWN@- -- An unknown condition is preventing the app from being installed. Some- -- potential reasons are that the device doesn\'t have enough storage, the- -- device network connection is unreliable, or the installation is taking- -- longer than expected. The installation will be retried automatically.- | InProgress- -- ^ @IN_PROGRESS@- -- The installation is still in progress.- | NotFound- -- ^ @NOT_FOUND@- -- The app was not found in Play.- | NotCompatibleWithDevice- -- ^ @NOT_COMPATIBLE_WITH_DEVICE@- -- The app is incompatible with the device.- | NotApproved- -- ^ @NOT_APPROVED@- -- The app has not been approved by the admin.- | PermissionsNotAccepted- -- ^ @PERMISSIONS_NOT_ACCEPTED@- -- The app has new permissions that have not been accepted by the admin.- | NotAvailableInCountry- -- ^ @NOT_AVAILABLE_IN_COUNTRY@- -- The app is not available in the user\'s country.- | NoLicensesRemaining- -- ^ @NO_LICENSES_REMAINING@- -- There are no licenses available to assign to the user.- | NotEnrolled- -- ^ @NOT_ENROLLED@- -- The enterprise is no longer enrolled with managed Play or the admin has- -- not accepted the latest managed Play terms of service.- | UserInvalid- -- ^ @USER_INVALID@- -- The user is no longer valid. The user may have been deleted or disabled.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable NonComplianceDetailInstallationFailureReason--instance FromHttpApiData NonComplianceDetailInstallationFailureReason where- parseQueryParam = \case- "INSTALLATION_FAILURE_REASON_UNSPECIFIED" -> Right InstallationFailureReasonUnspecified- "INSTALLATION_FAILURE_REASON_UNKNOWN" -> Right InstallationFailureReasonUnknown- "IN_PROGRESS" -> Right InProgress- "NOT_FOUND" -> Right NotFound- "NOT_COMPATIBLE_WITH_DEVICE" -> Right NotCompatibleWithDevice- "NOT_APPROVED" -> Right NotApproved- "PERMISSIONS_NOT_ACCEPTED" -> Right PermissionsNotAccepted- "NOT_AVAILABLE_IN_COUNTRY" -> Right NotAvailableInCountry- "NO_LICENSES_REMAINING" -> Right NoLicensesRemaining- "NOT_ENROLLED" -> Right NotEnrolled- "USER_INVALID" -> Right UserInvalid- x -> Left ("Unable to parse NonComplianceDetailInstallationFailureReason from: " <> x)--instance ToHttpApiData NonComplianceDetailInstallationFailureReason where- toQueryParam = \case- InstallationFailureReasonUnspecified -> "INSTALLATION_FAILURE_REASON_UNSPECIFIED"- InstallationFailureReasonUnknown -> "INSTALLATION_FAILURE_REASON_UNKNOWN"- InProgress -> "IN_PROGRESS"- NotFound -> "NOT_FOUND"- NotCompatibleWithDevice -> "NOT_COMPATIBLE_WITH_DEVICE"- NotApproved -> "NOT_APPROVED"- PermissionsNotAccepted -> "PERMISSIONS_NOT_ACCEPTED"- NotAvailableInCountry -> "NOT_AVAILABLE_IN_COUNTRY"- NoLicensesRemaining -> "NO_LICENSES_REMAINING"- NotEnrolled -> "NOT_ENROLLED"- UserInvalid -> "USER_INVALID"--instance FromJSON NonComplianceDetailInstallationFailureReason where- parseJSON = parseJSONText "NonComplianceDetailInstallationFailureReason"--instance ToJSON NonComplianceDetailInstallationFailureReason where- toJSON = toJSONText---- | The scope that the password requirement applies to.-data PasswordRequirementsPasswordScope- = ScopeUnspecified- -- ^ @SCOPE_UNSPECIFIED@- -- The scope is unspecified. The password requirements are applied to the- -- work profile for work profile devices and the whole device for fully- -- managed or dedicated devices.- | ScopeDevice- -- ^ @SCOPE_DEVICE@- -- The password requirements are only applied to the device.- | ScopeProFile- -- ^ @SCOPE_PROFILE@- -- The password requirements are only applied to the work profile.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PasswordRequirementsPasswordScope--instance FromHttpApiData PasswordRequirementsPasswordScope where- parseQueryParam = \case- "SCOPE_UNSPECIFIED" -> Right ScopeUnspecified- "SCOPE_DEVICE" -> Right ScopeDevice- "SCOPE_PROFILE" -> Right ScopeProFile- x -> Left ("Unable to parse PasswordRequirementsPasswordScope from: " <> x)--instance ToHttpApiData PasswordRequirementsPasswordScope where- toQueryParam = \case- ScopeUnspecified -> "SCOPE_UNSPECIFIED"- ScopeDevice -> "SCOPE_DEVICE"- ScopeProFile -> "SCOPE_PROFILE"--instance FromJSON PasswordRequirementsPasswordScope where- parseJSON = parseJSONText "PasswordRequirementsPasswordScope"--instance ToJSON PasswordRequirementsPasswordScope where- toJSON = toJSONText---- | Encryption status from DevicePolicyManager.-data DeviceSettingsEncryptionStatus- = DSESEncryptionStatusUnspecified- -- ^ @ENCRYPTION_STATUS_UNSPECIFIED@- -- Unspecified. No device should have this type.- | DSESUnsupported- -- ^ @UNSUPPORTED@- -- Encryption is not supported by the device.- | DSESInactive- -- ^ @INACTIVE@- -- Encryption is supported by the device, but is not currently active.- | DSESActivating- -- ^ @ACTIVATING@- -- Encryption is not currently active, but is currently being activated.- | DSESActive- -- ^ @ACTIVE@- -- Encryption is active.- | DSESActiveDefaultKey- -- ^ @ACTIVE_DEFAULT_KEY@- -- Encryption is active, but an encryption key is not set by the user.- | DSESActivePerUser- -- ^ @ACTIVE_PER_USER@- -- Encryption is active, and the encryption key is tied to the user- -- profile.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable DeviceSettingsEncryptionStatus--instance FromHttpApiData DeviceSettingsEncryptionStatus where- parseQueryParam = \case- "ENCRYPTION_STATUS_UNSPECIFIED" -> Right DSESEncryptionStatusUnspecified- "UNSUPPORTED" -> Right DSESUnsupported- "INACTIVE" -> Right DSESInactive- "ACTIVATING" -> Right DSESActivating- "ACTIVE" -> Right DSESActive- "ACTIVE_DEFAULT_KEY" -> Right DSESActiveDefaultKey- "ACTIVE_PER_USER" -> Right DSESActivePerUser- x -> Left ("Unable to parse DeviceSettingsEncryptionStatus from: " <> x)--instance ToHttpApiData DeviceSettingsEncryptionStatus where- toQueryParam = \case- DSESEncryptionStatusUnspecified -> "ENCRYPTION_STATUS_UNSPECIFIED"- DSESUnsupported -> "UNSUPPORTED"- DSESInactive -> "INACTIVE"- DSESActivating -> "ACTIVATING"- DSESActive -> "ACTIVE"- DSESActiveDefaultKey -> "ACTIVE_DEFAULT_KEY"- DSESActivePerUser -> "ACTIVE_PER_USER"--instance FromJSON DeviceSettingsEncryptionStatus where- parseJSON = parseJSONText "DeviceSettingsEncryptionStatus"--instance ToJSON DeviceSettingsEncryptionStatus where- toJSON = toJSONText---- | The degree of location detection enabled. The user may change the value--- unless the user is otherwise blocked from accessing device settings.-data PolicyLocationMode- = PLMLocationModeUnspecified- -- ^ @LOCATION_MODE_UNSPECIFIED@- -- The current device value is not modified.- | PLMHighAccuracy- -- ^ @HIGH_ACCURACY@- -- All location detection methods are enabled, including GPS, networks, and- -- other sensors.- | PLMSensorsOnly- -- ^ @SENSORS_ONLY@- -- Only GPS and other sensors are enabled.- | PLMBatterySaving- -- ^ @BATTERY_SAVING@- -- Only the network location provider is enabled.- | PLMOff- -- ^ @OFF@- -- Location detection is disabled.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PolicyLocationMode--instance FromHttpApiData PolicyLocationMode where- parseQueryParam = \case- "LOCATION_MODE_UNSPECIFIED" -> Right PLMLocationModeUnspecified- "HIGH_ACCURACY" -> Right PLMHighAccuracy- "SENSORS_ONLY" -> Right PLMSensorsOnly- "BATTERY_SAVING" -> Right PLMBatterySaving- "OFF" -> Right PLMOff- x -> Left ("Unable to parse PolicyLocationMode from: " <> x)--instance ToHttpApiData PolicyLocationMode where- toQueryParam = \case- PLMLocationModeUnspecified -> "LOCATION_MODE_UNSPECIFIED"- PLMHighAccuracy -> "HIGH_ACCURACY"- PLMSensorsOnly -> "SENSORS_ONLY"- PLMBatterySaving -> "BATTERY_SAVING"- PLMOff -> "OFF"--instance FromJSON PolicyLocationMode where- parseJSON = parseJSONText "PolicyLocationMode"--instance ToJSON PolicyLocationMode where- toJSON = toJSONText---- | The app auto update policy, which controls when automatic app updates--- can be applied.-data PolicyAppAutoUpdatePolicy- = AppAutoUpdatePolicyUnspecified- -- ^ @APP_AUTO_UPDATE_POLICY_UNSPECIFIED@- -- The auto-update policy is not set. Equivalent to CHOICE_TO_THE_USER.- | ChoiceToTheUser- -- ^ @CHOICE_TO_THE_USER@- -- The user can control auto-updates.- | Never- -- ^ @NEVER@- -- Apps are never auto-updated.- | WifiOnly- -- ^ @WIFI_ONLY@- -- Apps are auto-updated over Wi-Fi only.- | Always- -- ^ @ALWAYS@- -- Apps are auto-updated at any time. Data charges may apply.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PolicyAppAutoUpdatePolicy--instance FromHttpApiData PolicyAppAutoUpdatePolicy where- parseQueryParam = \case- "APP_AUTO_UPDATE_POLICY_UNSPECIFIED" -> Right AppAutoUpdatePolicyUnspecified- "CHOICE_TO_THE_USER" -> Right ChoiceToTheUser- "NEVER" -> Right Never- "WIFI_ONLY" -> Right WifiOnly- "ALWAYS" -> Right Always- x -> Left ("Unable to parse PolicyAppAutoUpdatePolicy from: " <> x)--instance ToHttpApiData PolicyAppAutoUpdatePolicy where- toQueryParam = \case- AppAutoUpdatePolicyUnspecified -> "APP_AUTO_UPDATE_POLICY_UNSPECIFIED"- ChoiceToTheUser -> "CHOICE_TO_THE_USER"- Never -> "NEVER"- WifiOnly -> "WIFI_ONLY"- Always -> "ALWAYS"--instance FromJSON PolicyAppAutoUpdatePolicy where- parseJSON = parseJSONText "PolicyAppAutoUpdatePolicy"--instance ToJSON PolicyAppAutoUpdatePolicy where- toJSON = toJSONText---- | Whether encryption is enabled-data PolicyEncryptionPolicy- = EncryptionPolicyUnspecified- -- ^ @ENCRYPTION_POLICY_UNSPECIFIED@- -- This value is ignored, i.e. no encryption required- | EnabledWithoutPassword- -- ^ @ENABLED_WITHOUT_PASSWORD@- -- Encryption required but no password required to boot- | EnabledWithPassword- -- ^ @ENABLED_WITH_PASSWORD@- -- Encryption required with password required to boot- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PolicyEncryptionPolicy--instance FromHttpApiData PolicyEncryptionPolicy where- parseQueryParam = \case- "ENCRYPTION_POLICY_UNSPECIFIED" -> Right EncryptionPolicyUnspecified- "ENABLED_WITHOUT_PASSWORD" -> Right EnabledWithoutPassword- "ENABLED_WITH_PASSWORD" -> Right EnabledWithPassword- x -> Left ("Unable to parse PolicyEncryptionPolicy from: " <> x)--instance ToHttpApiData PolicyEncryptionPolicy where- toQueryParam = \case- EncryptionPolicyUnspecified -> "ENCRYPTION_POLICY_UNSPECIFIED"- EnabledWithoutPassword -> "ENABLED_WITHOUT_PASSWORD"- EnabledWithPassword -> "ENABLED_WITH_PASSWORD"--instance FromJSON PolicyEncryptionPolicy where- parseJSON = parseJSONText "PolicyEncryptionPolicy"--instance ToJSON PolicyEncryptionPolicy where- toJSON = toJSONText---- | The type of the command.-data CommandType- = CommandTypeUnspecified- -- ^ @COMMAND_TYPE_UNSPECIFIED@- -- This value is disallowed.- | Lock- -- ^ @LOCK@- -- Lock the device, as if the lock screen timeout had expired.- | ResetPassword- -- ^ @RESET_PASSWORD@- -- Reset the user\'s password.- | Reboot- -- ^ @REBOOT@- -- Reboot the device. Only supported on API level 24+.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable CommandType--instance FromHttpApiData CommandType where- parseQueryParam = \case- "COMMAND_TYPE_UNSPECIFIED" -> Right CommandTypeUnspecified- "LOCK" -> Right Lock- "RESET_PASSWORD" -> Right ResetPassword- "REBOOT" -> Right Reboot- x -> Left ("Unable to parse CommandType from: " <> x)--instance ToHttpApiData CommandType where- toQueryParam = \case- CommandTypeUnspecified -> "COMMAND_TYPE_UNSPECIFIED"- Lock -> "LOCK"- ResetPassword -> "RESET_PASSWORD"- Reboot -> "REBOOT"--instance FromJSON CommandType where- parseJSON = parseJSONText "CommandType"--instance ToJSON CommandType where- toJSON = toJSONText---- | The default policy for all permissions requested by the app. If--- specified, this overrides the policy-level default_permission_policy--- which applies to all apps. It does not override the permission_grants--- which applies to all apps.-data ApplicationPolicyDefaultPermissionPolicy- = APDPPPermissionPolicyUnspecified- -- ^ @PERMISSION_POLICY_UNSPECIFIED@- -- Policy not specified. If no policy is specified for a permission at any- -- level, then the PROMPT behavior is used by default.- | APDPPPrompt- -- ^ @PROMPT@- -- Prompt the user to grant a permission.- | APDPPGrant- -- ^ @GRANT@- -- Automatically grant a permission.- | APDPPDeny- -- ^ @DENY@- -- Automatically deny a permission.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ApplicationPolicyDefaultPermissionPolicy--instance FromHttpApiData ApplicationPolicyDefaultPermissionPolicy where- parseQueryParam = \case- "PERMISSION_POLICY_UNSPECIFIED" -> Right APDPPPermissionPolicyUnspecified- "PROMPT" -> Right APDPPPrompt- "GRANT" -> Right APDPPGrant- "DENY" -> Right APDPPDeny- x -> Left ("Unable to parse ApplicationPolicyDefaultPermissionPolicy from: " <> x)--instance ToHttpApiData ApplicationPolicyDefaultPermissionPolicy where- toQueryParam = \case- APDPPPermissionPolicyUnspecified -> "PERMISSION_POLICY_UNSPECIFIED"- APDPPPrompt -> "PROMPT"- APDPPGrant -> "GRANT"- APDPPDeny -> "DENY"--instance FromJSON ApplicationPolicyDefaultPermissionPolicy where- parseJSON = parseJSONText "ApplicationPolicyDefaultPermissionPolicy"--instance ToJSON ApplicationPolicyDefaultPermissionPolicy where- toJSON = toJSONText---- | V1 error format.-data Xgafv- = X1- -- ^ @1@- -- v1 error format- | X2- -- ^ @2@- -- v2 error format- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable Xgafv--instance FromHttpApiData Xgafv where- parseQueryParam = \case- "1" -> Right X1- "2" -> Right X2- x -> Left ("Unable to parse Xgafv from: " <> x)--instance ToHttpApiData Xgafv where- toQueryParam = \case- X1 -> "1"- X2 -> "2"--instance FromJSON Xgafv where- parseJSON = parseJSONText "Xgafv"--instance ToJSON Xgafv where- toJSON = toJSONText---- | The type of the property.-data ManagedPropertyType- = ManagedPropertyTypeUnspecified- -- ^ @MANAGED_PROPERTY_TYPE_UNSPECIFIED@- -- Not used.- | Bool- -- ^ @BOOL@- -- A property of boolean type.- | String- -- ^ @STRING@- -- A property of string type.- | Integer- -- ^ @INTEGER@- -- A property of integer type.- | Choice- -- ^ @CHOICE@- -- A choice of one item from a set.- | Multiselect- -- ^ @MULTISELECT@- -- A choice of multiple items from a set.- | Hidden- -- ^ @HIDDEN@- -- A hidden restriction of string type (the default value can be used to- -- pass along information that can\'t be modified, such as a version code).- | BundleArray- -- ^ @BUNDLE_ARRAY@- -- An array of property bundles.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ManagedPropertyType--instance FromHttpApiData ManagedPropertyType where- parseQueryParam = \case- "MANAGED_PROPERTY_TYPE_UNSPECIFIED" -> Right ManagedPropertyTypeUnspecified- "BOOL" -> Right Bool- "STRING" -> Right String- "INTEGER" -> Right Integer- "CHOICE" -> Right Choice- "MULTISELECT" -> Right Multiselect- "HIDDEN" -> Right Hidden- "BUNDLE_ARRAY" -> Right BundleArray- x -> Left ("Unable to parse ManagedPropertyType from: " <> x)--instance ToHttpApiData ManagedPropertyType where- toQueryParam = \case- ManagedPropertyTypeUnspecified -> "MANAGED_PROPERTY_TYPE_UNSPECIFIED"- Bool -> "BOOL"- String -> "STRING"- Integer -> "INTEGER"- Choice -> "CHOICE"- Multiselect -> "MULTISELECT"- Hidden -> "HIDDEN"- BundleArray -> "BUNDLE_ARRAY"--instance FromJSON ManagedPropertyType where- parseJSON = parseJSONText "ManagedPropertyType"--instance ToJSON ManagedPropertyType where- toJSON = toJSONText---- | The state currently applied to the device.-data DeviceAppliedState- = DASDeviceStateUnspecified- -- ^ @DEVICE_STATE_UNSPECIFIED@- -- This value is disallowed.- | DASActive- -- ^ @ACTIVE@- -- The device is active.- | DASDisabled- -- ^ @DISABLED@- -- The device is disabled.- | DASDeleted- -- ^ @DELETED@- -- The device was deleted. This state will never be returned by an API- -- call, but is used in the final status report published to Cloud Pub\/Sub- -- when the device acknowledges the deletion.- | DASProvisioning- -- ^ @PROVISIONING@- -- The device is being provisioned. Newly enrolled devices are in this- -- state until they have a policy applied.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable DeviceAppliedState--instance FromHttpApiData DeviceAppliedState where- parseQueryParam = \case- "DEVICE_STATE_UNSPECIFIED" -> Right DASDeviceStateUnspecified- "ACTIVE" -> Right DASActive- "DISABLED" -> Right DASDisabled- "DELETED" -> Right DASDeleted- "PROVISIONING" -> Right DASProvisioning- x -> Left ("Unable to parse DeviceAppliedState from: " <> x)--instance ToHttpApiData DeviceAppliedState where- toQueryParam = \case- DASDeviceStateUnspecified -> "DEVICE_STATE_UNSPECIFIED"- DASActive -> "ACTIVE"- DASDisabled -> "DISABLED"- DASDeleted -> "DELETED"- DASProvisioning -> "PROVISIONING"--instance FromJSON DeviceAppliedState where- parseJSON = parseJSONText "DeviceAppliedState"--instance ToJSON DeviceAppliedState where- toJSON = toJSONText---- | App event type.-data ApplicationEventEventType- = ApplicationEventTypeUnspecified- -- ^ @APPLICATION_EVENT_TYPE_UNSPECIFIED@- -- This value is disallowed.- | Installed- -- ^ @INSTALLED@- -- The app was installed.- | Changed- -- ^ @CHANGED@- -- The app was changed, for example, a component was enabled or disabled.- | DataCleared- -- ^ @DATA_CLEARED@- -- The app data was cleared.- | Removed- -- ^ @REMOVED@- -- The app was removed.- | Replaced- -- ^ @REPLACED@- -- A new version of the app has been installed, replacing the old version.- | Restarted- -- ^ @RESTARTED@- -- The app was restarted.- | Pinned- -- ^ @PINNED@- -- The app was pinned to the foreground.- | Unpinned- -- ^ @UNPINNED@- -- The app was unpinned.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ApplicationEventEventType--instance FromHttpApiData ApplicationEventEventType where- parseQueryParam = \case- "APPLICATION_EVENT_TYPE_UNSPECIFIED" -> Right ApplicationEventTypeUnspecified- "INSTALLED" -> Right Installed- "CHANGED" -> Right Changed- "DATA_CLEARED" -> Right DataCleared- "REMOVED" -> Right Removed- "REPLACED" -> Right Replaced- "RESTARTED" -> Right Restarted- "PINNED" -> Right Pinned- "UNPINNED" -> Right Unpinned- x -> Left ("Unable to parse ApplicationEventEventType from: " <> x)--instance ToHttpApiData ApplicationEventEventType where- toQueryParam = \case- ApplicationEventTypeUnspecified -> "APPLICATION_EVENT_TYPE_UNSPECIFIED"- Installed -> "INSTALLED"- Changed -> "CHANGED"- DataCleared -> "DATA_CLEARED"- Removed -> "REMOVED"- Replaced -> "REPLACED"- Restarted -> "RESTARTED"- Pinned -> "PINNED"- Unpinned -> "UNPINNED"--instance FromJSON ApplicationEventEventType where- parseJSON = parseJSONText "ApplicationEventEventType"--instance ToJSON ApplicationEventEventType where- toJSON = toJSONText---- | The reason the device is not in compliance with the setting.-data NonComplianceDetailNonComplianceReason- = NCDNCRNonComplianceReasonUnspecified- -- ^ @NON_COMPLIANCE_REASON_UNSPECIFIED@- -- This value is disallowed.- | NCDNCRAPILevel- -- ^ @API_LEVEL@- -- The setting is not supported in the API level of the Android version- -- running on the device.- | NCDNCRManagementMode- -- ^ @MANAGEMENT_MODE@- -- The management mode (profile owner, device owner, etc.) doesn\'t support- -- the setting.- | NCDNCRUserAction- -- ^ @USER_ACTION@- -- The user has not taken required action to comply with the setting.- | NCDNCRInvalidValue- -- ^ @INVALID_VALUE@- -- The setting has an invalid value.- | NCDNCRAppNotInstalled- -- ^ @APP_NOT_INSTALLED@- -- The app required to implement the policy is not installed.- | NCDNCRUnsupported- -- ^ @UNSUPPORTED@- -- The policy is not supported by the version of Android Device Policy on- -- the device.- | NCDNCRAppInstalled- -- ^ @APP_INSTALLED@- -- A blocked app is installed.- | NCDNCRPending- -- ^ @PENDING@- -- The setting hasn\'t been applied at the time of the report, but is- -- expected to be applied shortly.- | NCDNCRAppIncompatible- -- ^ @APP_INCOMPATIBLE@- -- The setting can\'t be applied to the app because the app doesn\'t- -- support it, for example because its target SDK version is not high- -- enough.- | NCDNCRAppNotUpdated- -- ^ @APP_NOT_UPDATED@- -- The app is installed, but it hasn\'t been updated to the minimum version- -- code specified by policy.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable NonComplianceDetailNonComplianceReason--instance FromHttpApiData NonComplianceDetailNonComplianceReason where- parseQueryParam = \case- "NON_COMPLIANCE_REASON_UNSPECIFIED" -> Right NCDNCRNonComplianceReasonUnspecified- "API_LEVEL" -> Right NCDNCRAPILevel- "MANAGEMENT_MODE" -> Right NCDNCRManagementMode- "USER_ACTION" -> Right NCDNCRUserAction- "INVALID_VALUE" -> Right NCDNCRInvalidValue- "APP_NOT_INSTALLED" -> Right NCDNCRAppNotInstalled- "UNSUPPORTED" -> Right NCDNCRUnsupported- "APP_INSTALLED" -> Right NCDNCRAppInstalled- "PENDING" -> Right NCDNCRPending- "APP_INCOMPATIBLE" -> Right NCDNCRAppIncompatible- "APP_NOT_UPDATED" -> Right NCDNCRAppNotUpdated- x -> Left ("Unable to parse NonComplianceDetailNonComplianceReason from: " <> x)--instance ToHttpApiData NonComplianceDetailNonComplianceReason where- toQueryParam = \case- NCDNCRNonComplianceReasonUnspecified -> "NON_COMPLIANCE_REASON_UNSPECIFIED"- NCDNCRAPILevel -> "API_LEVEL"- NCDNCRManagementMode -> "MANAGEMENT_MODE"- NCDNCRUserAction -> "USER_ACTION"- NCDNCRInvalidValue -> "INVALID_VALUE"- NCDNCRAppNotInstalled -> "APP_NOT_INSTALLED"- NCDNCRUnsupported -> "UNSUPPORTED"- NCDNCRAppInstalled -> "APP_INSTALLED"- NCDNCRPending -> "PENDING"- NCDNCRAppIncompatible -> "APP_INCOMPATIBLE"- NCDNCRAppNotUpdated -> "APP_NOT_UPDATED"--instance FromJSON NonComplianceDetailNonComplianceReason where- parseJSON = parseJSONText "NonComplianceDetailNonComplianceReason"--instance ToJSON NonComplianceDetailNonComplianceReason where- toJSON = toJSONText---- | The default permission policy for runtime permission requests.-data PolicyDefaultPermissionPolicy- = PDPPPermissionPolicyUnspecified- -- ^ @PERMISSION_POLICY_UNSPECIFIED@- -- Policy not specified. If no policy is specified for a permission at any- -- level, then the PROMPT behavior is used by default.- | PDPPPrompt- -- ^ @PROMPT@- -- Prompt the user to grant a permission.- | PDPPGrant- -- ^ @GRANT@- -- Automatically grant a permission.- | PDPPDeny- -- ^ @DENY@- -- Automatically deny a permission.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PolicyDefaultPermissionPolicy--instance FromHttpApiData PolicyDefaultPermissionPolicy where- parseQueryParam = \case- "PERMISSION_POLICY_UNSPECIFIED" -> Right PDPPPermissionPolicyUnspecified- "PROMPT" -> Right PDPPPrompt- "GRANT" -> Right PDPPGrant- "DENY" -> Right PDPPDeny- x -> Left ("Unable to parse PolicyDefaultPermissionPolicy from: " <> x)--instance ToHttpApiData PolicyDefaultPermissionPolicy where- toQueryParam = \case- PDPPPermissionPolicyUnspecified -> "PERMISSION_POLICY_UNSPECIFIED"- PDPPPrompt -> "PROMPT"- PDPPGrant -> "GRANT"- PDPPDeny -> "DENY"--instance FromJSON PolicyDefaultPermissionPolicy where- parseJSON = parseJSONText "PolicyDefaultPermissionPolicy"--instance ToJSON PolicyDefaultPermissionPolicy where- toJSON = toJSONText---- | The severity of the app state.-data KeyedAppStateSeverity- = SeverityUnspecified- -- ^ @SEVERITY_UNSPECIFIED@- -- Unspecified severity level.- | Info- -- ^ @INFO@- -- Information severity level.- | Error'- -- ^ @ERROR@- -- Error severity level. This should only be set for genuine error- -- conditions that a management organization needs to take action to fix.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable KeyedAppStateSeverity--instance FromHttpApiData KeyedAppStateSeverity where- parseQueryParam = \case- "SEVERITY_UNSPECIFIED" -> Right SeverityUnspecified- "INFO" -> Right Info- "ERROR" -> Right Error'- x -> Left ("Unable to parse KeyedAppStateSeverity from: " <> x)--instance ToHttpApiData KeyedAppStateSeverity where- toQueryParam = \case- SeverityUnspecified -> "SEVERITY_UNSPECIFIED"- Info -> "INFO"- Error' -> "ERROR"--instance FromJSON KeyedAppStateSeverity where- parseJSON = parseJSONText "KeyedAppStateSeverity"--instance ToJSON KeyedAppStateSeverity where- toJSON = toJSONText---- | Application state.-data ApplicationReportState- = ARSInstalled- -- ^ @INSTALLED@- -- App is installed on the device- | ARSRemoved- -- ^ @REMOVED@- -- App was removed from the device- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable ApplicationReportState--instance FromHttpApiData ApplicationReportState where- parseQueryParam = \case- "INSTALLED" -> Right ARSInstalled- "REMOVED" -> Right ARSRemoved- x -> Left ("Unable to parse ApplicationReportState from: " <> x)--instance ToHttpApiData ApplicationReportState where- toQueryParam = \case- ARSInstalled -> "INSTALLED"- ARSRemoved -> "REMOVED"--instance FromJSON ApplicationReportState where- parseJSON = parseJSONText "ApplicationReportState"--instance ToJSON ApplicationReportState where- toJSON = toJSONText---- | The reason the device is not in compliance with the setting. If not set,--- then this condition matches any reason.-data NonComplianceDetailConditionNonComplianceReason- = NCDCNCRNonComplianceReasonUnspecified- -- ^ @NON_COMPLIANCE_REASON_UNSPECIFIED@- -- This value is disallowed.- | NCDCNCRAPILevel- -- ^ @API_LEVEL@- -- The setting is not supported in the API level of the Android version- -- running on the device.- | NCDCNCRManagementMode- -- ^ @MANAGEMENT_MODE@- -- The management mode (profile owner, device owner, etc.) doesn\'t support- -- the setting.- | NCDCNCRUserAction- -- ^ @USER_ACTION@- -- The user has not taken required action to comply with the setting.- | NCDCNCRInvalidValue- -- ^ @INVALID_VALUE@- -- The setting has an invalid value.- | NCDCNCRAppNotInstalled- -- ^ @APP_NOT_INSTALLED@- -- The app required to implement the policy is not installed.- | NCDCNCRUnsupported- -- ^ @UNSUPPORTED@- -- The policy is not supported by the version of Android Device Policy on- -- the device.- | NCDCNCRAppInstalled- -- ^ @APP_INSTALLED@- -- A blocked app is installed.- | NCDCNCRPending- -- ^ @PENDING@- -- The setting hasn\'t been applied at the time of the report, but is- -- expected to be applied shortly.- | NCDCNCRAppIncompatible- -- ^ @APP_INCOMPATIBLE@- -- The setting can\'t be applied to the app because the app doesn\'t- -- support it, for example because its target SDK version is not high- -- enough.- | NCDCNCRAppNotUpdated- -- ^ @APP_NOT_UPDATED@- -- The app is installed, but it hasn\'t been updated to the minimum version- -- code specified by policy.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable NonComplianceDetailConditionNonComplianceReason--instance FromHttpApiData NonComplianceDetailConditionNonComplianceReason where- parseQueryParam = \case- "NON_COMPLIANCE_REASON_UNSPECIFIED" -> Right NCDCNCRNonComplianceReasonUnspecified- "API_LEVEL" -> Right NCDCNCRAPILevel- "MANAGEMENT_MODE" -> Right NCDCNCRManagementMode- "USER_ACTION" -> Right NCDCNCRUserAction- "INVALID_VALUE" -> Right NCDCNCRInvalidValue- "APP_NOT_INSTALLED" -> Right NCDCNCRAppNotInstalled- "UNSUPPORTED" -> Right NCDCNCRUnsupported- "APP_INSTALLED" -> Right NCDCNCRAppInstalled- "PENDING" -> Right NCDCNCRPending- "APP_INCOMPATIBLE" -> Right NCDCNCRAppIncompatible- "APP_NOT_UPDATED" -> Right NCDCNCRAppNotUpdated- x -> Left ("Unable to parse NonComplianceDetailConditionNonComplianceReason from: " <> x)--instance ToHttpApiData NonComplianceDetailConditionNonComplianceReason where- toQueryParam = \case- NCDCNCRNonComplianceReasonUnspecified -> "NON_COMPLIANCE_REASON_UNSPECIFIED"- NCDCNCRAPILevel -> "API_LEVEL"- NCDCNCRManagementMode -> "MANAGEMENT_MODE"- NCDCNCRUserAction -> "USER_ACTION"- NCDCNCRInvalidValue -> "INVALID_VALUE"- NCDCNCRAppNotInstalled -> "APP_NOT_INSTALLED"- NCDCNCRUnsupported -> "UNSUPPORTED"- NCDCNCRAppInstalled -> "APP_INSTALLED"- NCDCNCRPending -> "PENDING"- NCDCNCRAppIncompatible -> "APP_INCOMPATIBLE"- NCDCNCRAppNotUpdated -> "APP_NOT_UPDATED"--instance FromJSON NonComplianceDetailConditionNonComplianceReason where- parseJSON = parseJSONText "NonComplianceDetailConditionNonComplianceReason"--instance ToJSON NonComplianceDetailConditionNonComplianceReason where- toJSON = toJSONText---- | Event type.-data MemoryEventEventType- = MemoryEventTypeUnspecified- -- ^ @MEMORY_EVENT_TYPE_UNSPECIFIED@- -- Unspecified. No events have this type.- | RamMeasured- -- ^ @RAM_MEASURED@- -- Free space in RAM was measured.- | InternalStorageMeasured- -- ^ @INTERNAL_STORAGE_MEASURED@- -- Free space in internal storage was measured.- | ExternalStorageDetected- -- ^ @EXTERNAL_STORAGE_DETECTED@- -- A new external storage medium was detected. The reported byte count is- -- the total capacity of the storage medium.- | ExternalStorageRemoved- -- ^ @EXTERNAL_STORAGE_REMOVED@- -- An external storage medium was removed. The reported byte count is zero.- | ExternalStorageMeasured- -- ^ @EXTERNAL_STORAGE_MEASURED@- -- Free space in an external storage medium was measured.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable MemoryEventEventType--instance FromHttpApiData MemoryEventEventType where- parseQueryParam = \case- "MEMORY_EVENT_TYPE_UNSPECIFIED" -> Right MemoryEventTypeUnspecified- "RAM_MEASURED" -> Right RamMeasured- "INTERNAL_STORAGE_MEASURED" -> Right InternalStorageMeasured- "EXTERNAL_STORAGE_DETECTED" -> Right ExternalStorageDetected- "EXTERNAL_STORAGE_REMOVED" -> Right ExternalStorageRemoved- "EXTERNAL_STORAGE_MEASURED" -> Right ExternalStorageMeasured- x -> Left ("Unable to parse MemoryEventEventType from: " <> x)--instance ToHttpApiData MemoryEventEventType where- toQueryParam = \case- MemoryEventTypeUnspecified -> "MEMORY_EVENT_TYPE_UNSPECIFIED"- RamMeasured -> "RAM_MEASURED"- InternalStorageMeasured -> "INTERNAL_STORAGE_MEASURED"- ExternalStorageDetected -> "EXTERNAL_STORAGE_DETECTED"- ExternalStorageRemoved -> "EXTERNAL_STORAGE_REMOVED"- ExternalStorageMeasured -> "EXTERNAL_STORAGE_MEASURED"--instance FromJSON MemoryEventEventType where- parseJSON = parseJSONText "MemoryEventEventType"--instance ToJSON MemoryEventEventType where- toJSON = toJSONText---- | The required password quality.-data PasswordRequirementsPasswordQuality- = PasswordQualityUnspecified- -- ^ @PASSWORD_QUALITY_UNSPECIFIED@- -- There are no password requirements.- | BiometricWeak- -- ^ @BIOMETRIC_WEAK@- -- The device must be secured with a low-security biometric recognition- -- technology, at minimum. This includes technologies that can recognize- -- the identity of an individual that are roughly equivalent to a 3-digit- -- PIN (false detection is less than 1 in 1,000).- | Something- -- ^ @SOMETHING@- -- A password is required, but there are no restrictions on what the- -- password must contain.- | Numeric- -- ^ @NUMERIC@- -- The password must contain numeric characters.- | NumericComplex- -- ^ @NUMERIC_COMPLEX@- -- The password must contain numeric characters with no repeating (4444) or- -- ordered (1234, 4321, 2468) sequences.- | Alphabetic- -- ^ @ALPHABETIC@- -- The password must contain alphabetic (or symbol) characters.- | Alphanumeric- -- ^ @ALPHANUMERIC@- -- The password must contain both numeric and alphabetic (or symbol)- -- characters.- | Complex- -- ^ @COMPLEX@- -- The password must contain at least a letter, a numerical digit and a- -- special symbol. Other password constraints, for example,- -- password_minimum_letters are enforced.- deriving (Eq, Ord, Enum, Read, Show, Data, Typeable, Generic)--instance Hashable PasswordRequirementsPasswordQuality--instance FromHttpApiData PasswordRequirementsPasswordQuality where- parseQueryParam = \case- "PASSWORD_QUALITY_UNSPECIFIED" -> Right PasswordQualityUnspecified- "BIOMETRIC_WEAK" -> Right BiometricWeak- "SOMETHING" -> Right Something- "NUMERIC" -> Right Numeric- "NUMERIC_COMPLEX" -> Right NumericComplex- "ALPHABETIC" -> Right Alphabetic- "ALPHANUMERIC" -> Right Alphanumeric- "COMPLEX" -> Right Complex- x -> Left ("Unable to parse PasswordRequirementsPasswordQuality from: " <> x)--instance ToHttpApiData PasswordRequirementsPasswordQuality where- toQueryParam = \case- PasswordQualityUnspecified -> "PASSWORD_QUALITY_UNSPECIFIED"- BiometricWeak -> "BIOMETRIC_WEAK"- Something -> "SOMETHING"- Numeric -> "NUMERIC"- NumericComplex -> "NUMERIC_COMPLEX"- Alphabetic -> "ALPHABETIC"- Alphanumeric -> "ALPHANUMERIC"- Complex -> "COMPLEX"--instance FromJSON PasswordRequirementsPasswordQuality where- parseJSON = parseJSONText "PasswordRequirementsPasswordQuality"--instance ToJSON PasswordRequirementsPasswordQuality where- toJSON = toJSONText
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Applications/Get.hs
@@ -1,165 +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.AndroidManagement.Enterprises.Applications.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 info about an application.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.applications.get@.-module Network.Google.Resource.AndroidManagement.Enterprises.Applications.Get- (- -- * REST Resource- EnterprisesApplicationsGetResource-- -- * Creating a Request- , enterprisesApplicationsGet- , EnterprisesApplicationsGet-- -- * Request Lenses- , eagXgafv- , eagLanguageCode- , eagUploadProtocol- , eagAccessToken- , eagUploadType- , eagName- , eagCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.applications.get@ method which the--- 'EnterprisesApplicationsGet' request conforms to.-type EnterprisesApplicationsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "languageCode" Text :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Application---- | Gets info about an application.------ /See:/ 'enterprisesApplicationsGet' smart constructor.-data EnterprisesApplicationsGet =- EnterprisesApplicationsGet'- { _eagXgafv :: !(Maybe Xgafv)- , _eagLanguageCode :: !(Maybe Text)- , _eagUploadProtocol :: !(Maybe Text)- , _eagAccessToken :: !(Maybe Text)- , _eagUploadType :: !(Maybe Text)- , _eagName :: !Text- , _eagCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesApplicationsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eagXgafv'------ * 'eagLanguageCode'------ * 'eagUploadProtocol'------ * 'eagAccessToken'------ * 'eagUploadType'------ * 'eagName'------ * 'eagCallback'-enterprisesApplicationsGet- :: Text -- ^ 'eagName'- -> EnterprisesApplicationsGet-enterprisesApplicationsGet pEagName_ =- EnterprisesApplicationsGet'- { _eagXgafv = Nothing- , _eagLanguageCode = Nothing- , _eagUploadProtocol = Nothing- , _eagAccessToken = Nothing- , _eagUploadType = Nothing- , _eagName = pEagName_- , _eagCallback = Nothing- }----- | V1 error format.-eagXgafv :: Lens' EnterprisesApplicationsGet (Maybe Xgafv)-eagXgafv = lens _eagXgafv (\ s a -> s{_eagXgafv = a})---- | The preferred language for localized application info, as a BCP47 tag--- (e.g. \"en-US\", \"de\"). If not specified the default language of the--- application will be used.-eagLanguageCode :: Lens' EnterprisesApplicationsGet (Maybe Text)-eagLanguageCode- = lens _eagLanguageCode- (\ s a -> s{_eagLanguageCode = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-eagUploadProtocol :: Lens' EnterprisesApplicationsGet (Maybe Text)-eagUploadProtocol- = lens _eagUploadProtocol- (\ s a -> s{_eagUploadProtocol = a})---- | OAuth access token.-eagAccessToken :: Lens' EnterprisesApplicationsGet (Maybe Text)-eagAccessToken- = lens _eagAccessToken- (\ s a -> s{_eagAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-eagUploadType :: Lens' EnterprisesApplicationsGet (Maybe Text)-eagUploadType- = lens _eagUploadType- (\ s a -> s{_eagUploadType = a})---- | The name of the application in the form--- enterprises\/{enterpriseId}\/applications\/{package_name}.-eagName :: Lens' EnterprisesApplicationsGet Text-eagName = lens _eagName (\ s a -> s{_eagName = a})---- | JSONP-eagCallback :: Lens' EnterprisesApplicationsGet (Maybe Text)-eagCallback- = lens _eagCallback (\ s a -> s{_eagCallback = a})--instance GoogleRequest EnterprisesApplicationsGet- where- type Rs EnterprisesApplicationsGet = Application- type Scopes EnterprisesApplicationsGet =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesApplicationsGet'{..}- = go _eagName _eagXgafv _eagLanguageCode- _eagUploadProtocol- _eagAccessToken- _eagUploadType- _eagCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesApplicationsGetResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Create.hs
@@ -1,190 +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.AndroidManagement.Enterprises.Create--- 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 an enterprise. This is the last step in the enterprise signup--- flow.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.create@.-module Network.Google.Resource.AndroidManagement.Enterprises.Create- (- -- * REST Resource- EnterprisesCreateResource-- -- * Creating a Request- , enterprisesCreate- , EnterprisesCreate-- -- * Request Lenses- , ecXgafv- , ecSignupURLName- , ecUploadProtocol- , ecAccessToken- , ecUploadType- , ecPayload- , ecProjectId- , ecEnterpriseToken- , ecCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.create@ method which the--- 'EnterprisesCreate' request conforms to.-type EnterprisesCreateResource =- "v1" :>- "enterprises" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "signupUrlName" Text :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "projectId" Text :>- QueryParam "enterpriseToken" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Enterprise :> Post '[JSON] Enterprise---- | Creates an enterprise. This is the last step in the enterprise signup--- flow.------ /See:/ 'enterprisesCreate' smart constructor.-data EnterprisesCreate =- EnterprisesCreate'- { _ecXgafv :: !(Maybe Xgafv)- , _ecSignupURLName :: !(Maybe Text)- , _ecUploadProtocol :: !(Maybe Text)- , _ecAccessToken :: !(Maybe Text)- , _ecUploadType :: !(Maybe Text)- , _ecPayload :: !Enterprise- , _ecProjectId :: !(Maybe Text)- , _ecEnterpriseToken :: !(Maybe Text)- , _ecCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ecXgafv'------ * 'ecSignupURLName'------ * 'ecUploadProtocol'------ * 'ecAccessToken'------ * 'ecUploadType'------ * 'ecPayload'------ * 'ecProjectId'------ * 'ecEnterpriseToken'------ * 'ecCallback'-enterprisesCreate- :: Enterprise -- ^ 'ecPayload'- -> EnterprisesCreate-enterprisesCreate pEcPayload_ =- EnterprisesCreate'- { _ecXgafv = Nothing- , _ecSignupURLName = Nothing- , _ecUploadProtocol = Nothing- , _ecAccessToken = Nothing- , _ecUploadType = Nothing- , _ecPayload = pEcPayload_- , _ecProjectId = Nothing- , _ecEnterpriseToken = Nothing- , _ecCallback = Nothing- }----- | V1 error format.-ecXgafv :: Lens' EnterprisesCreate (Maybe Xgafv)-ecXgafv = lens _ecXgafv (\ s a -> s{_ecXgafv = a})---- | The name of the SignupUrl used to sign up for the enterprise.-ecSignupURLName :: Lens' EnterprisesCreate (Maybe Text)-ecSignupURLName- = lens _ecSignupURLName- (\ s a -> s{_ecSignupURLName = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ecUploadProtocol :: Lens' EnterprisesCreate (Maybe Text)-ecUploadProtocol- = lens _ecUploadProtocol- (\ s a -> s{_ecUploadProtocol = a})---- | OAuth access token.-ecAccessToken :: Lens' EnterprisesCreate (Maybe Text)-ecAccessToken- = lens _ecAccessToken- (\ s a -> s{_ecAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ecUploadType :: Lens' EnterprisesCreate (Maybe Text)-ecUploadType- = lens _ecUploadType (\ s a -> s{_ecUploadType = a})---- | Multipart request metadata.-ecPayload :: Lens' EnterprisesCreate Enterprise-ecPayload- = lens _ecPayload (\ s a -> s{_ecPayload = a})---- | The ID of the Google Cloud Platform project which will own the--- enterprise.-ecProjectId :: Lens' EnterprisesCreate (Maybe Text)-ecProjectId- = lens _ecProjectId (\ s a -> s{_ecProjectId = a})---- | The enterprise token appended to the callback URL.-ecEnterpriseToken :: Lens' EnterprisesCreate (Maybe Text)-ecEnterpriseToken- = lens _ecEnterpriseToken- (\ s a -> s{_ecEnterpriseToken = a})---- | JSONP-ecCallback :: Lens' EnterprisesCreate (Maybe Text)-ecCallback- = lens _ecCallback (\ s a -> s{_ecCallback = a})--instance GoogleRequest EnterprisesCreate where- type Rs EnterprisesCreate = Enterprise- type Scopes EnterprisesCreate =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesCreate'{..}- = go _ecXgafv _ecSignupURLName _ecUploadProtocol- _ecAccessToken- _ecUploadType- _ecProjectId- _ecEnterpriseToken- _ecCallback- (Just AltJSON)- _ecPayload- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesCreateResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Delete.hs
@@ -1,165 +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.AndroidManagement.Enterprises.Devices.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 device. This operation wipes the device.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.delete@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Delete- (- -- * REST Resource- EnterprisesDevicesDeleteResource-- -- * Creating a Request- , enterprisesDevicesDelete- , EnterprisesDevicesDelete-- -- * Request Lenses- , eddXgafv- , eddWipeDataFlags- , eddUploadProtocol- , eddAccessToken- , eddUploadType- , eddName- , eddCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.delete@ method which the--- 'EnterprisesDevicesDelete' request conforms to.-type EnterprisesDevicesDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParams "wipeDataFlags" Text :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes a device. This operation wipes the device.------ /See:/ 'enterprisesDevicesDelete' smart constructor.-data EnterprisesDevicesDelete =- EnterprisesDevicesDelete'- { _eddXgafv :: !(Maybe Xgafv)- , _eddWipeDataFlags :: !(Maybe [Text])- , _eddUploadProtocol :: !(Maybe Text)- , _eddAccessToken :: !(Maybe Text)- , _eddUploadType :: !(Maybe Text)- , _eddName :: !Text- , _eddCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eddXgafv'------ * 'eddWipeDataFlags'------ * 'eddUploadProtocol'------ * 'eddAccessToken'------ * 'eddUploadType'------ * 'eddName'------ * 'eddCallback'-enterprisesDevicesDelete- :: Text -- ^ 'eddName'- -> EnterprisesDevicesDelete-enterprisesDevicesDelete pEddName_ =- EnterprisesDevicesDelete'- { _eddXgafv = Nothing- , _eddWipeDataFlags = Nothing- , _eddUploadProtocol = Nothing- , _eddAccessToken = Nothing- , _eddUploadType = Nothing- , _eddName = pEddName_- , _eddCallback = Nothing- }----- | V1 error format.-eddXgafv :: Lens' EnterprisesDevicesDelete (Maybe Xgafv)-eddXgafv = lens _eddXgafv (\ s a -> s{_eddXgafv = a})---- | Optional flags that control the device wiping behavior.-eddWipeDataFlags :: Lens' EnterprisesDevicesDelete [Text]-eddWipeDataFlags- = lens _eddWipeDataFlags- (\ s a -> s{_eddWipeDataFlags = a})- . _Default- . _Coerce---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-eddUploadProtocol :: Lens' EnterprisesDevicesDelete (Maybe Text)-eddUploadProtocol- = lens _eddUploadProtocol- (\ s a -> s{_eddUploadProtocol = a})---- | OAuth access token.-eddAccessToken :: Lens' EnterprisesDevicesDelete (Maybe Text)-eddAccessToken- = lens _eddAccessToken- (\ s a -> s{_eddAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-eddUploadType :: Lens' EnterprisesDevicesDelete (Maybe Text)-eddUploadType- = lens _eddUploadType- (\ s a -> s{_eddUploadType = a})---- | The name of the device in the form--- enterprises\/{enterpriseId}\/devices\/{deviceId}.-eddName :: Lens' EnterprisesDevicesDelete Text-eddName = lens _eddName (\ s a -> s{_eddName = a})---- | JSONP-eddCallback :: Lens' EnterprisesDevicesDelete (Maybe Text)-eddCallback- = lens _eddCallback (\ s a -> s{_eddCallback = a})--instance GoogleRequest EnterprisesDevicesDelete where- type Rs EnterprisesDevicesDelete = Empty- type Scopes EnterprisesDevicesDelete =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesDelete'{..}- = go _eddName _eddXgafv- (_eddWipeDataFlags ^. _Default)- _eddUploadProtocol- _eddAccessToken- _eddUploadType- _eddCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesDevicesDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Get.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.AndroidManagement.Enterprises.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)------ Gets a device.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.get@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Get- (- -- * REST Resource- EnterprisesDevicesGetResource-- -- * Creating a Request- , enterprisesDevicesGet- , EnterprisesDevicesGet-- -- * Request Lenses- , edgXgafv- , edgUploadProtocol- , edgAccessToken- , edgUploadType- , edgName- , edgCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.get@ method which the--- 'EnterprisesDevicesGet' request conforms to.-type EnterprisesDevicesGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Device---- | Gets a device.------ /See:/ 'enterprisesDevicesGet' smart constructor.-data EnterprisesDevicesGet =- EnterprisesDevicesGet'- { _edgXgafv :: !(Maybe Xgafv)- , _edgUploadProtocol :: !(Maybe Text)- , _edgAccessToken :: !(Maybe Text)- , _edgUploadType :: !(Maybe Text)- , _edgName :: !Text- , _edgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edgXgafv'------ * 'edgUploadProtocol'------ * 'edgAccessToken'------ * 'edgUploadType'------ * 'edgName'------ * 'edgCallback'-enterprisesDevicesGet- :: Text -- ^ 'edgName'- -> EnterprisesDevicesGet-enterprisesDevicesGet pEdgName_ =- EnterprisesDevicesGet'- { _edgXgafv = Nothing- , _edgUploadProtocol = Nothing- , _edgAccessToken = Nothing- , _edgUploadType = Nothing- , _edgName = pEdgName_- , _edgCallback = Nothing- }----- | V1 error format.-edgXgafv :: Lens' EnterprisesDevicesGet (Maybe Xgafv)-edgXgafv = lens _edgXgafv (\ s a -> s{_edgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edgUploadProtocol :: Lens' EnterprisesDevicesGet (Maybe Text)-edgUploadProtocol- = lens _edgUploadProtocol- (\ s a -> s{_edgUploadProtocol = a})---- | OAuth access token.-edgAccessToken :: Lens' EnterprisesDevicesGet (Maybe Text)-edgAccessToken- = lens _edgAccessToken- (\ s a -> s{_edgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edgUploadType :: Lens' EnterprisesDevicesGet (Maybe Text)-edgUploadType- = lens _edgUploadType- (\ s a -> s{_edgUploadType = a})---- | The name of the device in the form--- enterprises\/{enterpriseId}\/devices\/{deviceId}.-edgName :: Lens' EnterprisesDevicesGet Text-edgName = lens _edgName (\ s a -> s{_edgName = a})---- | JSONP-edgCallback :: Lens' EnterprisesDevicesGet (Maybe Text)-edgCallback- = lens _edgCallback (\ s a -> s{_edgCallback = a})--instance GoogleRequest EnterprisesDevicesGet where- type Rs EnterprisesDevicesGet = Device- type Scopes EnterprisesDevicesGet =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesGet'{..}- = go _edgName _edgXgafv _edgUploadProtocol- _edgAccessToken- _edgUploadType- _edgCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesDevicesGetResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/IssueCommand.hs
@@ -1,169 +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.AndroidManagement.Enterprises.Devices.IssueCommand--- 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)------ Issues a command to a device. The Operation resource returned contains a--- Command in its metadata field. Use the get operation method to get the--- status of the command.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.issueCommand@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.IssueCommand- (- -- * REST Resource- EnterprisesDevicesIssueCommandResource-- -- * Creating a Request- , enterprisesDevicesIssueCommand- , EnterprisesDevicesIssueCommand-- -- * Request Lenses- , edicXgafv- , edicUploadProtocol- , edicAccessToken- , edicUploadType- , edicPayload- , edicName- , edicCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.issueCommand@ method which the--- 'EnterprisesDevicesIssueCommand' request conforms to.-type EnterprisesDevicesIssueCommandResource =- "v1" :>- CaptureMode "name" "issueCommand" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Command :> Post '[JSON] Operation---- | Issues a command to a device. The Operation resource returned contains a--- Command in its metadata field. Use the get operation method to get the--- status of the command.------ /See:/ 'enterprisesDevicesIssueCommand' smart constructor.-data EnterprisesDevicesIssueCommand =- EnterprisesDevicesIssueCommand'- { _edicXgafv :: !(Maybe Xgafv)- , _edicUploadProtocol :: !(Maybe Text)- , _edicAccessToken :: !(Maybe Text)- , _edicUploadType :: !(Maybe Text)- , _edicPayload :: !Command- , _edicName :: !Text- , _edicCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesIssueCommand' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edicXgafv'------ * 'edicUploadProtocol'------ * 'edicAccessToken'------ * 'edicUploadType'------ * 'edicPayload'------ * 'edicName'------ * 'edicCallback'-enterprisesDevicesIssueCommand- :: Command -- ^ 'edicPayload'- -> Text -- ^ 'edicName'- -> EnterprisesDevicesIssueCommand-enterprisesDevicesIssueCommand pEdicPayload_ pEdicName_ =- EnterprisesDevicesIssueCommand'- { _edicXgafv = Nothing- , _edicUploadProtocol = Nothing- , _edicAccessToken = Nothing- , _edicUploadType = Nothing- , _edicPayload = pEdicPayload_- , _edicName = pEdicName_- , _edicCallback = Nothing- }----- | V1 error format.-edicXgafv :: Lens' EnterprisesDevicesIssueCommand (Maybe Xgafv)-edicXgafv- = lens _edicXgafv (\ s a -> s{_edicXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edicUploadProtocol :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)-edicUploadProtocol- = lens _edicUploadProtocol- (\ s a -> s{_edicUploadProtocol = a})---- | OAuth access token.-edicAccessToken :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)-edicAccessToken- = lens _edicAccessToken- (\ s a -> s{_edicAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edicUploadType :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)-edicUploadType- = lens _edicUploadType- (\ s a -> s{_edicUploadType = a})---- | Multipart request metadata.-edicPayload :: Lens' EnterprisesDevicesIssueCommand Command-edicPayload- = lens _edicPayload (\ s a -> s{_edicPayload = a})---- | The name of the device in the form--- enterprises\/{enterpriseId}\/devices\/{deviceId}.-edicName :: Lens' EnterprisesDevicesIssueCommand Text-edicName = lens _edicName (\ s a -> s{_edicName = a})---- | JSONP-edicCallback :: Lens' EnterprisesDevicesIssueCommand (Maybe Text)-edicCallback- = lens _edicCallback (\ s a -> s{_edicCallback = a})--instance GoogleRequest EnterprisesDevicesIssueCommand- where- type Rs EnterprisesDevicesIssueCommand = Operation- type Scopes EnterprisesDevicesIssueCommand =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesIssueCommand'{..}- = go _edicName _edicXgafv _edicUploadProtocol- _edicAccessToken- _edicUploadType- _edicCallback- (Just AltJSON)- _edicPayload- androidManagementService- where go- = buildClient- (Proxy ::- Proxy EnterprisesDevicesIssueCommandResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/List.hs
@@ -1,177 +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.AndroidManagement.Enterprises.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)------ Lists devices for a given enterprise.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.list@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.List- (- -- * REST Resource- EnterprisesDevicesListResource-- -- * Creating a Request- , enterprisesDevicesList- , EnterprisesDevicesList-- -- * Request Lenses- , edlParent- , edlXgafv- , edlUploadProtocol- , edlAccessToken- , edlUploadType- , edlPageToken- , edlPageSize- , edlCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.list@ method which the--- 'EnterprisesDevicesList' request conforms to.-type EnterprisesDevicesListResource =- "v1" :>- Capture "parent" Text :>- "devices" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListDevicesResponse---- | Lists devices for a given enterprise.------ /See:/ 'enterprisesDevicesList' smart constructor.-data EnterprisesDevicesList =- EnterprisesDevicesList'- { _edlParent :: !Text- , _edlXgafv :: !(Maybe Xgafv)- , _edlUploadProtocol :: !(Maybe Text)- , _edlAccessToken :: !(Maybe Text)- , _edlUploadType :: !(Maybe Text)- , _edlPageToken :: !(Maybe Text)- , _edlPageSize :: !(Maybe (Textual Int32))- , _edlCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edlParent'------ * 'edlXgafv'------ * 'edlUploadProtocol'------ * 'edlAccessToken'------ * 'edlUploadType'------ * 'edlPageToken'------ * 'edlPageSize'------ * 'edlCallback'-enterprisesDevicesList- :: Text -- ^ 'edlParent'- -> EnterprisesDevicesList-enterprisesDevicesList pEdlParent_ =- EnterprisesDevicesList'- { _edlParent = pEdlParent_- , _edlXgafv = Nothing- , _edlUploadProtocol = Nothing- , _edlAccessToken = Nothing- , _edlUploadType = Nothing- , _edlPageToken = Nothing- , _edlPageSize = Nothing- , _edlCallback = Nothing- }----- | The name of the enterprise in the form enterprises\/{enterpriseId}.-edlParent :: Lens' EnterprisesDevicesList Text-edlParent- = lens _edlParent (\ s a -> s{_edlParent = a})---- | V1 error format.-edlXgafv :: Lens' EnterprisesDevicesList (Maybe Xgafv)-edlXgafv = lens _edlXgafv (\ s a -> s{_edlXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edlUploadProtocol :: Lens' EnterprisesDevicesList (Maybe Text)-edlUploadProtocol- = lens _edlUploadProtocol- (\ s a -> s{_edlUploadProtocol = a})---- | OAuth access token.-edlAccessToken :: Lens' EnterprisesDevicesList (Maybe Text)-edlAccessToken- = lens _edlAccessToken- (\ s a -> s{_edlAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edlUploadType :: Lens' EnterprisesDevicesList (Maybe Text)-edlUploadType- = lens _edlUploadType- (\ s a -> s{_edlUploadType = a})---- | A token identifying a page of results returned by the server.-edlPageToken :: Lens' EnterprisesDevicesList (Maybe Text)-edlPageToken- = lens _edlPageToken (\ s a -> s{_edlPageToken = a})---- | The requested page size. The actual page size may be fixed to a min or--- max value.-edlPageSize :: Lens' EnterprisesDevicesList (Maybe Int32)-edlPageSize- = lens _edlPageSize (\ s a -> s{_edlPageSize = a}) .- mapping _Coerce---- | JSONP-edlCallback :: Lens' EnterprisesDevicesList (Maybe Text)-edlCallback- = lens _edlCallback (\ s a -> s{_edlCallback = a})--instance GoogleRequest EnterprisesDevicesList where- type Rs EnterprisesDevicesList = ListDevicesResponse- type Scopes EnterprisesDevicesList =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesList'{..}- = go _edlParent _edlXgafv _edlUploadProtocol- _edlAccessToken- _edlUploadType- _edlPageToken- _edlPageSize- _edlCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesDevicesListResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/Cancel.hs
@@ -1,168 +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.AndroidManagement.Enterprises.Devices.Operations.Cancel--- 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)------ Starts asynchronous cancellation on a long-running operation. The server--- makes a best effort to cancel the operation, but success is not--- guaranteed. If the server doesn\'t support this method, it returns--- google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation--- or other methods to check whether the cancellation succeeded or whether--- the operation completed despite cancellation. On successful--- cancellation, the operation is not deleted; instead, it becomes an--- operation with an Operation.error value with a google.rpc.Status.code of--- 1, corresponding to Code.CANCELLED.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.operations.cancel@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel- (- -- * REST Resource- EnterprisesDevicesOperationsCancelResource-- -- * Creating a Request- , enterprisesDevicesOperationsCancel- , EnterprisesDevicesOperationsCancel-- -- * Request Lenses- , edocXgafv- , edocUploadProtocol- , edocAccessToken- , edocUploadType- , edocName- , edocCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.operations.cancel@ method which the--- 'EnterprisesDevicesOperationsCancel' request conforms to.-type EnterprisesDevicesOperationsCancelResource =- "v1" :>- CaptureMode "name" "cancel" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Post '[JSON] Empty---- | Starts asynchronous cancellation on a long-running operation. The server--- makes a best effort to cancel the operation, but success is not--- guaranteed. If the server doesn\'t support this method, it returns--- google.rpc.Code.UNIMPLEMENTED. Clients can use Operations.GetOperation--- or other methods to check whether the cancellation succeeded or whether--- the operation completed despite cancellation. On successful--- cancellation, the operation is not deleted; instead, it becomes an--- operation with an Operation.error value with a google.rpc.Status.code of--- 1, corresponding to Code.CANCELLED.------ /See:/ 'enterprisesDevicesOperationsCancel' smart constructor.-data EnterprisesDevicesOperationsCancel =- EnterprisesDevicesOperationsCancel'- { _edocXgafv :: !(Maybe Xgafv)- , _edocUploadProtocol :: !(Maybe Text)- , _edocAccessToken :: !(Maybe Text)- , _edocUploadType :: !(Maybe Text)- , _edocName :: !Text- , _edocCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesOperationsCancel' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edocXgafv'------ * 'edocUploadProtocol'------ * 'edocAccessToken'------ * 'edocUploadType'------ * 'edocName'------ * 'edocCallback'-enterprisesDevicesOperationsCancel- :: Text -- ^ 'edocName'- -> EnterprisesDevicesOperationsCancel-enterprisesDevicesOperationsCancel pEdocName_ =- EnterprisesDevicesOperationsCancel'- { _edocXgafv = Nothing- , _edocUploadProtocol = Nothing- , _edocAccessToken = Nothing- , _edocUploadType = Nothing- , _edocName = pEdocName_- , _edocCallback = Nothing- }----- | V1 error format.-edocXgafv :: Lens' EnterprisesDevicesOperationsCancel (Maybe Xgafv)-edocXgafv- = lens _edocXgafv (\ s a -> s{_edocXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edocUploadProtocol :: Lens' EnterprisesDevicesOperationsCancel (Maybe Text)-edocUploadProtocol- = lens _edocUploadProtocol- (\ s a -> s{_edocUploadProtocol = a})---- | OAuth access token.-edocAccessToken :: Lens' EnterprisesDevicesOperationsCancel (Maybe Text)-edocAccessToken- = lens _edocAccessToken- (\ s a -> s{_edocAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edocUploadType :: Lens' EnterprisesDevicesOperationsCancel (Maybe Text)-edocUploadType- = lens _edocUploadType- (\ s a -> s{_edocUploadType = a})---- | The name of the operation resource to be cancelled.-edocName :: Lens' EnterprisesDevicesOperationsCancel Text-edocName = lens _edocName (\ s a -> s{_edocName = a})---- | JSONP-edocCallback :: Lens' EnterprisesDevicesOperationsCancel (Maybe Text)-edocCallback- = lens _edocCallback (\ s a -> s{_edocCallback = a})--instance GoogleRequest- EnterprisesDevicesOperationsCancel- where- type Rs EnterprisesDevicesOperationsCancel = Empty- type Scopes EnterprisesDevicesOperationsCancel =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesOperationsCancel'{..}- = go _edocName _edocXgafv _edocUploadProtocol- _edocAccessToken- _edocUploadType- _edocCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy ::- Proxy EnterprisesDevicesOperationsCancelResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/Delete.hs
@@ -1,158 +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.AndroidManagement.Enterprises.Devices.Operations.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 long-running operation. This method indicates that the client--- is no longer interested in the operation result. It does not cancel the--- operation. If the server doesn\'t support this method, it returns--- google.rpc.Code.UNIMPLEMENTED.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.operations.delete@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Delete- (- -- * REST Resource- EnterprisesDevicesOperationsDeleteResource-- -- * Creating a Request- , enterprisesDevicesOperationsDelete- , EnterprisesDevicesOperationsDelete-- -- * Request Lenses- , edodXgafv- , edodUploadProtocol- , edodAccessToken- , edodUploadType- , edodName- , edodCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.operations.delete@ method which the--- 'EnterprisesDevicesOperationsDelete' request conforms to.-type EnterprisesDevicesOperationsDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes a long-running operation. This method indicates that the client--- is no longer interested in the operation result. It does not cancel the--- operation. If the server doesn\'t support this method, it returns--- google.rpc.Code.UNIMPLEMENTED.------ /See:/ 'enterprisesDevicesOperationsDelete' smart constructor.-data EnterprisesDevicesOperationsDelete =- EnterprisesDevicesOperationsDelete'- { _edodXgafv :: !(Maybe Xgafv)- , _edodUploadProtocol :: !(Maybe Text)- , _edodAccessToken :: !(Maybe Text)- , _edodUploadType :: !(Maybe Text)- , _edodName :: !Text- , _edodCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesOperationsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edodXgafv'------ * 'edodUploadProtocol'------ * 'edodAccessToken'------ * 'edodUploadType'------ * 'edodName'------ * 'edodCallback'-enterprisesDevicesOperationsDelete- :: Text -- ^ 'edodName'- -> EnterprisesDevicesOperationsDelete-enterprisesDevicesOperationsDelete pEdodName_ =- EnterprisesDevicesOperationsDelete'- { _edodXgafv = Nothing- , _edodUploadProtocol = Nothing- , _edodAccessToken = Nothing- , _edodUploadType = Nothing- , _edodName = pEdodName_- , _edodCallback = Nothing- }----- | V1 error format.-edodXgafv :: Lens' EnterprisesDevicesOperationsDelete (Maybe Xgafv)-edodXgafv- = lens _edodXgafv (\ s a -> s{_edodXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edodUploadProtocol :: Lens' EnterprisesDevicesOperationsDelete (Maybe Text)-edodUploadProtocol- = lens _edodUploadProtocol- (\ s a -> s{_edodUploadProtocol = a})---- | OAuth access token.-edodAccessToken :: Lens' EnterprisesDevicesOperationsDelete (Maybe Text)-edodAccessToken- = lens _edodAccessToken- (\ s a -> s{_edodAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edodUploadType :: Lens' EnterprisesDevicesOperationsDelete (Maybe Text)-edodUploadType- = lens _edodUploadType- (\ s a -> s{_edodUploadType = a})---- | The name of the operation resource to be deleted.-edodName :: Lens' EnterprisesDevicesOperationsDelete Text-edodName = lens _edodName (\ s a -> s{_edodName = a})---- | JSONP-edodCallback :: Lens' EnterprisesDevicesOperationsDelete (Maybe Text)-edodCallback- = lens _edodCallback (\ s a -> s{_edodCallback = a})--instance GoogleRequest- EnterprisesDevicesOperationsDelete- where- type Rs EnterprisesDevicesOperationsDelete = Empty- type Scopes EnterprisesDevicesOperationsDelete =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesOperationsDelete'{..}- = go _edodName _edodXgafv _edodUploadProtocol- _edodAccessToken- _edodUploadType- _edodCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy ::- Proxy EnterprisesDevicesOperationsDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/Get.hs
@@ -1,156 +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.AndroidManagement.Enterprises.Devices.Operations.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 the latest state of a long-running operation. Clients can use this--- method to poll the operation result at intervals as recommended by the--- API service.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.operations.get@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Get- (- -- * REST Resource- EnterprisesDevicesOperationsGetResource-- -- * Creating a Request- , enterprisesDevicesOperationsGet- , EnterprisesDevicesOperationsGet-- -- * Request Lenses- , edogXgafv- , edogUploadProtocol- , edogAccessToken- , edogUploadType- , edogName- , edogCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.operations.get@ method which the--- 'EnterprisesDevicesOperationsGet' request conforms to.-type EnterprisesDevicesOperationsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Operation---- | Gets the latest state of a long-running operation. Clients can use this--- method to poll the operation result at intervals as recommended by the--- API service.------ /See:/ 'enterprisesDevicesOperationsGet' smart constructor.-data EnterprisesDevicesOperationsGet =- EnterprisesDevicesOperationsGet'- { _edogXgafv :: !(Maybe Xgafv)- , _edogUploadProtocol :: !(Maybe Text)- , _edogAccessToken :: !(Maybe Text)- , _edogUploadType :: !(Maybe Text)- , _edogName :: !Text- , _edogCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesOperationsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edogXgafv'------ * 'edogUploadProtocol'------ * 'edogAccessToken'------ * 'edogUploadType'------ * 'edogName'------ * 'edogCallback'-enterprisesDevicesOperationsGet- :: Text -- ^ 'edogName'- -> EnterprisesDevicesOperationsGet-enterprisesDevicesOperationsGet pEdogName_ =- EnterprisesDevicesOperationsGet'- { _edogXgafv = Nothing- , _edogUploadProtocol = Nothing- , _edogAccessToken = Nothing- , _edogUploadType = Nothing- , _edogName = pEdogName_- , _edogCallback = Nothing- }----- | V1 error format.-edogXgafv :: Lens' EnterprisesDevicesOperationsGet (Maybe Xgafv)-edogXgafv- = lens _edogXgafv (\ s a -> s{_edogXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edogUploadProtocol :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)-edogUploadProtocol- = lens _edogUploadProtocol- (\ s a -> s{_edogUploadProtocol = a})---- | OAuth access token.-edogAccessToken :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)-edogAccessToken- = lens _edogAccessToken- (\ s a -> s{_edogAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edogUploadType :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)-edogUploadType- = lens _edogUploadType- (\ s a -> s{_edogUploadType = a})---- | The name of the operation resource.-edogName :: Lens' EnterprisesDevicesOperationsGet Text-edogName = lens _edogName (\ s a -> s{_edogName = a})---- | JSONP-edogCallback :: Lens' EnterprisesDevicesOperationsGet (Maybe Text)-edogCallback- = lens _edogCallback (\ s a -> s{_edogCallback = a})--instance GoogleRequest- EnterprisesDevicesOperationsGet- where- type Rs EnterprisesDevicesOperationsGet = Operation- type Scopes EnterprisesDevicesOperationsGet =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesOperationsGet'{..}- = go _edogName _edogXgafv _edogUploadProtocol- _edogAccessToken- _edogUploadType- _edogCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy ::- Proxy EnterprisesDevicesOperationsGetResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Operations/List.hs
@@ -1,208 +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.AndroidManagement.Enterprises.Devices.Operations.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 operations that match the specified filter in the request. If the--- server doesn\'t support this method, it returns UNIMPLEMENTED.NOTE: the--- name binding allows API services to override the binding to use--- different resource name schemes, such as users\/*\/operations. To--- override the binding, API services can add a binding such as--- \"\/v1\/{name=users\/*}\/operations\" to their service configuration.--- For backwards compatibility, the default name includes the operations--- collection id, however overriding users must ensure the name binding is--- the parent resource, without the operations collection id.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.operations.list@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.List- (- -- * REST Resource- EnterprisesDevicesOperationsListResource-- -- * Creating a Request- , enterprisesDevicesOperationsList- , EnterprisesDevicesOperationsList-- -- * Request Lenses- , edolXgafv- , edolUploadProtocol- , edolAccessToken- , edolUploadType- , edolName- , edolFilter- , edolPageToken- , edolPageSize- , edolCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.operations.list@ method which the--- 'EnterprisesDevicesOperationsList' request conforms to.-type EnterprisesDevicesOperationsListResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "filter" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListOperationsResponse---- | Lists operations that match the specified filter in the request. If the--- server doesn\'t support this method, it returns UNIMPLEMENTED.NOTE: the--- name binding allows API services to override the binding to use--- different resource name schemes, such as users\/*\/operations. To--- override the binding, API services can add a binding such as--- \"\/v1\/{name=users\/*}\/operations\" to their service configuration.--- For backwards compatibility, the default name includes the operations--- collection id, however overriding users must ensure the name binding is--- the parent resource, without the operations collection id.------ /See:/ 'enterprisesDevicesOperationsList' smart constructor.-data EnterprisesDevicesOperationsList =- EnterprisesDevicesOperationsList'- { _edolXgafv :: !(Maybe Xgafv)- , _edolUploadProtocol :: !(Maybe Text)- , _edolAccessToken :: !(Maybe Text)- , _edolUploadType :: !(Maybe Text)- , _edolName :: !Text- , _edolFilter :: !(Maybe Text)- , _edolPageToken :: !(Maybe Text)- , _edolPageSize :: !(Maybe (Textual Int32))- , _edolCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesOperationsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edolXgafv'------ * 'edolUploadProtocol'------ * 'edolAccessToken'------ * 'edolUploadType'------ * 'edolName'------ * 'edolFilter'------ * 'edolPageToken'------ * 'edolPageSize'------ * 'edolCallback'-enterprisesDevicesOperationsList- :: Text -- ^ 'edolName'- -> EnterprisesDevicesOperationsList-enterprisesDevicesOperationsList pEdolName_ =- EnterprisesDevicesOperationsList'- { _edolXgafv = Nothing- , _edolUploadProtocol = Nothing- , _edolAccessToken = Nothing- , _edolUploadType = Nothing- , _edolName = pEdolName_- , _edolFilter = Nothing- , _edolPageToken = Nothing- , _edolPageSize = Nothing- , _edolCallback = Nothing- }----- | V1 error format.-edolXgafv :: Lens' EnterprisesDevicesOperationsList (Maybe Xgafv)-edolXgafv- = lens _edolXgafv (\ s a -> s{_edolXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edolUploadProtocol :: Lens' EnterprisesDevicesOperationsList (Maybe Text)-edolUploadProtocol- = lens _edolUploadProtocol- (\ s a -> s{_edolUploadProtocol = a})---- | OAuth access token.-edolAccessToken :: Lens' EnterprisesDevicesOperationsList (Maybe Text)-edolAccessToken- = lens _edolAccessToken- (\ s a -> s{_edolAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edolUploadType :: Lens' EnterprisesDevicesOperationsList (Maybe Text)-edolUploadType- = lens _edolUploadType- (\ s a -> s{_edolUploadType = a})---- | The name of the operation\'s parent resource.-edolName :: Lens' EnterprisesDevicesOperationsList Text-edolName = lens _edolName (\ s a -> s{_edolName = a})---- | The standard list filter.-edolFilter :: Lens' EnterprisesDevicesOperationsList (Maybe Text)-edolFilter- = lens _edolFilter (\ s a -> s{_edolFilter = a})---- | The standard list page token.-edolPageToken :: Lens' EnterprisesDevicesOperationsList (Maybe Text)-edolPageToken- = lens _edolPageToken- (\ s a -> s{_edolPageToken = a})---- | The standard list page size.-edolPageSize :: Lens' EnterprisesDevicesOperationsList (Maybe Int32)-edolPageSize- = lens _edolPageSize (\ s a -> s{_edolPageSize = a})- . mapping _Coerce---- | JSONP-edolCallback :: Lens' EnterprisesDevicesOperationsList (Maybe Text)-edolCallback- = lens _edolCallback (\ s a -> s{_edolCallback = a})--instance GoogleRequest- EnterprisesDevicesOperationsList- where- type Rs EnterprisesDevicesOperationsList =- ListOperationsResponse- type Scopes EnterprisesDevicesOperationsList =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesOperationsList'{..}- = go _edolName _edolXgafv _edolUploadProtocol- _edolAccessToken- _edolUploadType- _edolFilter- _edolPageToken- _edolPageSize- _edolCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy ::- Proxy EnterprisesDevicesOperationsListResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Devices/Patch.hs
@@ -1,176 +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.AndroidManagement.Enterprises.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 a device.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.devices.patch@.-module Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch- (- -- * REST Resource- EnterprisesDevicesPatchResource-- -- * Creating a Request- , enterprisesDevicesPatch- , EnterprisesDevicesPatch-- -- * Request Lenses- , edpXgafv- , edpUploadProtocol- , edpUpdateMask- , edpAccessToken- , edpUploadType- , edpPayload- , edpName- , edpCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.devices.patch@ method which the--- 'EnterprisesDevicesPatch' request conforms to.-type EnterprisesDevicesPatchResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "updateMask" GFieldMask :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Device :> Patch '[JSON] Device---- | Updates a device.------ /See:/ 'enterprisesDevicesPatch' smart constructor.-data EnterprisesDevicesPatch =- EnterprisesDevicesPatch'- { _edpXgafv :: !(Maybe Xgafv)- , _edpUploadProtocol :: !(Maybe Text)- , _edpUpdateMask :: !(Maybe GFieldMask)- , _edpAccessToken :: !(Maybe Text)- , _edpUploadType :: !(Maybe Text)- , _edpPayload :: !Device- , _edpName :: !Text- , _edpCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesDevicesPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'edpXgafv'------ * 'edpUploadProtocol'------ * 'edpUpdateMask'------ * 'edpAccessToken'------ * 'edpUploadType'------ * 'edpPayload'------ * 'edpName'------ * 'edpCallback'-enterprisesDevicesPatch- :: Device -- ^ 'edpPayload'- -> Text -- ^ 'edpName'- -> EnterprisesDevicesPatch-enterprisesDevicesPatch pEdpPayload_ pEdpName_ =- EnterprisesDevicesPatch'- { _edpXgafv = Nothing- , _edpUploadProtocol = Nothing- , _edpUpdateMask = Nothing- , _edpAccessToken = Nothing- , _edpUploadType = Nothing- , _edpPayload = pEdpPayload_- , _edpName = pEdpName_- , _edpCallback = Nothing- }----- | V1 error format.-edpXgafv :: Lens' EnterprisesDevicesPatch (Maybe Xgafv)-edpXgafv = lens _edpXgafv (\ s a -> s{_edpXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-edpUploadProtocol :: Lens' EnterprisesDevicesPatch (Maybe Text)-edpUploadProtocol- = lens _edpUploadProtocol- (\ s a -> s{_edpUploadProtocol = a})---- | The field mask indicating the fields to update. If not set, all--- modifiable fields will be modified.-edpUpdateMask :: Lens' EnterprisesDevicesPatch (Maybe GFieldMask)-edpUpdateMask- = lens _edpUpdateMask- (\ s a -> s{_edpUpdateMask = a})---- | OAuth access token.-edpAccessToken :: Lens' EnterprisesDevicesPatch (Maybe Text)-edpAccessToken- = lens _edpAccessToken- (\ s a -> s{_edpAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-edpUploadType :: Lens' EnterprisesDevicesPatch (Maybe Text)-edpUploadType- = lens _edpUploadType- (\ s a -> s{_edpUploadType = a})---- | Multipart request metadata.-edpPayload :: Lens' EnterprisesDevicesPatch Device-edpPayload- = lens _edpPayload (\ s a -> s{_edpPayload = a})---- | The name of the device in the form--- enterprises\/{enterpriseId}\/devices\/{deviceId}.-edpName :: Lens' EnterprisesDevicesPatch Text-edpName = lens _edpName (\ s a -> s{_edpName = a})---- | JSONP-edpCallback :: Lens' EnterprisesDevicesPatch (Maybe Text)-edpCallback- = lens _edpCallback (\ s a -> s{_edpCallback = a})--instance GoogleRequest EnterprisesDevicesPatch where- type Rs EnterprisesDevicesPatch = Device- type Scopes EnterprisesDevicesPatch =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesDevicesPatch'{..}- = go _edpName _edpXgafv _edpUploadProtocol- _edpUpdateMask- _edpAccessToken- _edpUploadType- _edpCallback- (Just AltJSON)- _edpPayload- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesDevicesPatchResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/EnrollmentTokens/Create.hs
@@ -1,169 +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.AndroidManagement.Enterprises.EnrollmentTokens.Create--- 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 an enrollment token for a given enterprise.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.enrollmentTokens.create@.-module Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create- (- -- * REST Resource- EnterprisesEnrollmentTokensCreateResource-- -- * Creating a Request- , enterprisesEnrollmentTokensCreate- , EnterprisesEnrollmentTokensCreate-- -- * Request Lenses- , eetcParent- , eetcXgafv- , eetcUploadProtocol- , eetcAccessToken- , eetcUploadType- , eetcPayload- , eetcCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.enrollmentTokens.create@ method which the--- 'EnterprisesEnrollmentTokensCreate' request conforms to.-type EnterprisesEnrollmentTokensCreateResource =- "v1" :>- Capture "parent" Text :>- "enrollmentTokens" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] EnrollmentToken :>- Post '[JSON] EnrollmentToken---- | Creates an enrollment token for a given enterprise.------ /See:/ 'enterprisesEnrollmentTokensCreate' smart constructor.-data EnterprisesEnrollmentTokensCreate =- EnterprisesEnrollmentTokensCreate'- { _eetcParent :: !Text- , _eetcXgafv :: !(Maybe Xgafv)- , _eetcUploadProtocol :: !(Maybe Text)- , _eetcAccessToken :: !(Maybe Text)- , _eetcUploadType :: !(Maybe Text)- , _eetcPayload :: !EnrollmentToken- , _eetcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesEnrollmentTokensCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eetcParent'------ * 'eetcXgafv'------ * 'eetcUploadProtocol'------ * 'eetcAccessToken'------ * 'eetcUploadType'------ * 'eetcPayload'------ * 'eetcCallback'-enterprisesEnrollmentTokensCreate- :: Text -- ^ 'eetcParent'- -> EnrollmentToken -- ^ 'eetcPayload'- -> EnterprisesEnrollmentTokensCreate-enterprisesEnrollmentTokensCreate pEetcParent_ pEetcPayload_ =- EnterprisesEnrollmentTokensCreate'- { _eetcParent = pEetcParent_- , _eetcXgafv = Nothing- , _eetcUploadProtocol = Nothing- , _eetcAccessToken = Nothing- , _eetcUploadType = Nothing- , _eetcPayload = pEetcPayload_- , _eetcCallback = Nothing- }----- | The name of the enterprise in the form enterprises\/{enterpriseId}.-eetcParent :: Lens' EnterprisesEnrollmentTokensCreate Text-eetcParent- = lens _eetcParent (\ s a -> s{_eetcParent = a})---- | V1 error format.-eetcXgafv :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Xgafv)-eetcXgafv- = lens _eetcXgafv (\ s a -> s{_eetcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-eetcUploadProtocol :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)-eetcUploadProtocol- = lens _eetcUploadProtocol- (\ s a -> s{_eetcUploadProtocol = a})---- | OAuth access token.-eetcAccessToken :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)-eetcAccessToken- = lens _eetcAccessToken- (\ s a -> s{_eetcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-eetcUploadType :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)-eetcUploadType- = lens _eetcUploadType- (\ s a -> s{_eetcUploadType = a})---- | Multipart request metadata.-eetcPayload :: Lens' EnterprisesEnrollmentTokensCreate EnrollmentToken-eetcPayload- = lens _eetcPayload (\ s a -> s{_eetcPayload = a})---- | JSONP-eetcCallback :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)-eetcCallback- = lens _eetcCallback (\ s a -> s{_eetcCallback = a})--instance GoogleRequest- EnterprisesEnrollmentTokensCreate- where- type Rs EnterprisesEnrollmentTokensCreate =- EnrollmentToken- type Scopes EnterprisesEnrollmentTokensCreate =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesEnrollmentTokensCreate'{..}- = go _eetcParent _eetcXgafv _eetcUploadProtocol- _eetcAccessToken- _eetcUploadType- _eetcCallback- (Just AltJSON)- _eetcPayload- androidManagementService- where go- = buildClient- (Proxy ::- Proxy EnterprisesEnrollmentTokensCreateResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/EnrollmentTokens/Delete.hs
@@ -1,155 +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.AndroidManagement.Enterprises.EnrollmentTokens.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 enrollment token. This operation invalidates the token,--- preventing its future use.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.enrollmentTokens.delete@.-module Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Delete- (- -- * REST Resource- EnterprisesEnrollmentTokensDeleteResource-- -- * Creating a Request- , enterprisesEnrollmentTokensDelete- , EnterprisesEnrollmentTokensDelete-- -- * Request Lenses- , eetdXgafv- , eetdUploadProtocol- , eetdAccessToken- , eetdUploadType- , eetdName- , eetdCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.enrollmentTokens.delete@ method which the--- 'EnterprisesEnrollmentTokensDelete' request conforms to.-type EnterprisesEnrollmentTokensDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes an enrollment token. This operation invalidates the token,--- preventing its future use.------ /See:/ 'enterprisesEnrollmentTokensDelete' smart constructor.-data EnterprisesEnrollmentTokensDelete =- EnterprisesEnrollmentTokensDelete'- { _eetdXgafv :: !(Maybe Xgafv)- , _eetdUploadProtocol :: !(Maybe Text)- , _eetdAccessToken :: !(Maybe Text)- , _eetdUploadType :: !(Maybe Text)- , _eetdName :: !Text- , _eetdCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesEnrollmentTokensDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eetdXgafv'------ * 'eetdUploadProtocol'------ * 'eetdAccessToken'------ * 'eetdUploadType'------ * 'eetdName'------ * 'eetdCallback'-enterprisesEnrollmentTokensDelete- :: Text -- ^ 'eetdName'- -> EnterprisesEnrollmentTokensDelete-enterprisesEnrollmentTokensDelete pEetdName_ =- EnterprisesEnrollmentTokensDelete'- { _eetdXgafv = Nothing- , _eetdUploadProtocol = Nothing- , _eetdAccessToken = Nothing- , _eetdUploadType = Nothing- , _eetdName = pEetdName_- , _eetdCallback = Nothing- }----- | V1 error format.-eetdXgafv :: Lens' EnterprisesEnrollmentTokensDelete (Maybe Xgafv)-eetdXgafv- = lens _eetdXgafv (\ s a -> s{_eetdXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-eetdUploadProtocol :: Lens' EnterprisesEnrollmentTokensDelete (Maybe Text)-eetdUploadProtocol- = lens _eetdUploadProtocol- (\ s a -> s{_eetdUploadProtocol = a})---- | OAuth access token.-eetdAccessToken :: Lens' EnterprisesEnrollmentTokensDelete (Maybe Text)-eetdAccessToken- = lens _eetdAccessToken- (\ s a -> s{_eetdAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-eetdUploadType :: Lens' EnterprisesEnrollmentTokensDelete (Maybe Text)-eetdUploadType- = lens _eetdUploadType- (\ s a -> s{_eetdUploadType = a})---- | The name of the enrollment token in the form--- enterprises\/{enterpriseId}\/enrollmentTokens\/{enrollmentTokenId}.-eetdName :: Lens' EnterprisesEnrollmentTokensDelete Text-eetdName = lens _eetdName (\ s a -> s{_eetdName = a})---- | JSONP-eetdCallback :: Lens' EnterprisesEnrollmentTokensDelete (Maybe Text)-eetdCallback- = lens _eetdCallback (\ s a -> s{_eetdCallback = a})--instance GoogleRequest- EnterprisesEnrollmentTokensDelete- where- type Rs EnterprisesEnrollmentTokensDelete = Empty- type Scopes EnterprisesEnrollmentTokensDelete =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesEnrollmentTokensDelete'{..}- = go _eetdName _eetdXgafv _eetdUploadProtocol- _eetdAccessToken- _eetdUploadType- _eetdCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy ::- Proxy EnterprisesEnrollmentTokensDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Get.hs
@@ -1,146 +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.AndroidManagement.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)------ Gets an enterprise.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.get@.-module Network.Google.Resource.AndroidManagement.Enterprises.Get- (- -- * REST Resource- EnterprisesGetResource-- -- * Creating a Request- , enterprisesGet- , EnterprisesGet-- -- * Request Lenses- , egXgafv- , egUploadProtocol- , egAccessToken- , egUploadType- , egName- , egCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.get@ method which the--- 'EnterprisesGet' request conforms to.-type EnterprisesGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Enterprise---- | Gets an enterprise.------ /See:/ 'enterprisesGet' smart constructor.-data EnterprisesGet =- EnterprisesGet'- { _egXgafv :: !(Maybe Xgafv)- , _egUploadProtocol :: !(Maybe Text)- , _egAccessToken :: !(Maybe Text)- , _egUploadType :: !(Maybe Text)- , _egName :: !Text- , _egCallback :: !(Maybe 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:------ * 'egXgafv'------ * 'egUploadProtocol'------ * 'egAccessToken'------ * 'egUploadType'------ * 'egName'------ * 'egCallback'-enterprisesGet- :: Text -- ^ 'egName'- -> EnterprisesGet-enterprisesGet pEgName_ =- EnterprisesGet'- { _egXgafv = Nothing- , _egUploadProtocol = Nothing- , _egAccessToken = Nothing- , _egUploadType = Nothing- , _egName = pEgName_- , _egCallback = Nothing- }----- | V1 error format.-egXgafv :: Lens' EnterprisesGet (Maybe Xgafv)-egXgafv = lens _egXgafv (\ s a -> s{_egXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-egUploadProtocol :: Lens' EnterprisesGet (Maybe Text)-egUploadProtocol- = lens _egUploadProtocol- (\ s a -> s{_egUploadProtocol = a})---- | OAuth access token.-egAccessToken :: Lens' EnterprisesGet (Maybe Text)-egAccessToken- = lens _egAccessToken- (\ s a -> s{_egAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-egUploadType :: Lens' EnterprisesGet (Maybe Text)-egUploadType- = lens _egUploadType (\ s a -> s{_egUploadType = a})---- | The name of the enterprise in the form enterprises\/{enterpriseId}.-egName :: Lens' EnterprisesGet Text-egName = lens _egName (\ s a -> s{_egName = a})---- | JSONP-egCallback :: Lens' EnterprisesGet (Maybe Text)-egCallback- = lens _egCallback (\ s a -> s{_egCallback = a})--instance GoogleRequest EnterprisesGet where- type Rs EnterprisesGet = Enterprise- type Scopes EnterprisesGet =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesGet'{..}- = go _egName _egXgafv _egUploadProtocol- _egAccessToken- _egUploadType- _egCallback- (Just AltJSON)- androidManagementService- where go- = buildClient (Proxy :: Proxy EnterprisesGetResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Patch.hs
@@ -1,173 +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.AndroidManagement.Enterprises.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 enterprise.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.patch@.-module Network.Google.Resource.AndroidManagement.Enterprises.Patch- (- -- * REST Resource- EnterprisesPatchResource-- -- * Creating a Request- , enterprisesPatch- , EnterprisesPatch-- -- * Request Lenses- , epXgafv- , epUploadProtocol- , epUpdateMask- , epAccessToken- , epUploadType- , epPayload- , epName- , epCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.patch@ method which the--- 'EnterprisesPatch' request conforms to.-type EnterprisesPatchResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "updateMask" GFieldMask :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Enterprise :>- Patch '[JSON] Enterprise---- | Updates an enterprise.------ /See:/ 'enterprisesPatch' smart constructor.-data EnterprisesPatch =- EnterprisesPatch'- { _epXgafv :: !(Maybe Xgafv)- , _epUploadProtocol :: !(Maybe Text)- , _epUpdateMask :: !(Maybe GFieldMask)- , _epAccessToken :: !(Maybe Text)- , _epUploadType :: !(Maybe Text)- , _epPayload :: !Enterprise- , _epName :: !Text- , _epCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'epXgafv'------ * 'epUploadProtocol'------ * 'epUpdateMask'------ * 'epAccessToken'------ * 'epUploadType'------ * 'epPayload'------ * 'epName'------ * 'epCallback'-enterprisesPatch- :: Enterprise -- ^ 'epPayload'- -> Text -- ^ 'epName'- -> EnterprisesPatch-enterprisesPatch pEpPayload_ pEpName_ =- EnterprisesPatch'- { _epXgafv = Nothing- , _epUploadProtocol = Nothing- , _epUpdateMask = Nothing- , _epAccessToken = Nothing- , _epUploadType = Nothing- , _epPayload = pEpPayload_- , _epName = pEpName_- , _epCallback = Nothing- }----- | V1 error format.-epXgafv :: Lens' EnterprisesPatch (Maybe Xgafv)-epXgafv = lens _epXgafv (\ s a -> s{_epXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-epUploadProtocol :: Lens' EnterprisesPatch (Maybe Text)-epUploadProtocol- = lens _epUploadProtocol- (\ s a -> s{_epUploadProtocol = a})---- | The field mask indicating the fields to update. If not set, all--- modifiable fields will be modified.-epUpdateMask :: Lens' EnterprisesPatch (Maybe GFieldMask)-epUpdateMask- = lens _epUpdateMask (\ s a -> s{_epUpdateMask = a})---- | OAuth access token.-epAccessToken :: Lens' EnterprisesPatch (Maybe Text)-epAccessToken- = lens _epAccessToken- (\ s a -> s{_epAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-epUploadType :: Lens' EnterprisesPatch (Maybe Text)-epUploadType- = lens _epUploadType (\ s a -> s{_epUploadType = a})---- | Multipart request metadata.-epPayload :: Lens' EnterprisesPatch Enterprise-epPayload- = lens _epPayload (\ s a -> s{_epPayload = a})---- | The name of the enterprise in the form enterprises\/{enterpriseId}.-epName :: Lens' EnterprisesPatch Text-epName = lens _epName (\ s a -> s{_epName = a})---- | JSONP-epCallback :: Lens' EnterprisesPatch (Maybe Text)-epCallback- = lens _epCallback (\ s a -> s{_epCallback = a})--instance GoogleRequest EnterprisesPatch where- type Rs EnterprisesPatch = Enterprise- type Scopes EnterprisesPatch =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesPatch'{..}- = go _epName _epXgafv _epUploadProtocol _epUpdateMask- _epAccessToken- _epUploadType- _epCallback- (Just AltJSON)- _epPayload- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesPatchResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/Delete.hs
@@ -1,152 +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.AndroidManagement.Enterprises.Policies.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 policy. This operation is only permitted if no devices are--- currently referencing the policy.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.delete@.-module Network.Google.Resource.AndroidManagement.Enterprises.Policies.Delete- (- -- * REST Resource- EnterprisesPoliciesDeleteResource-- -- * Creating a Request- , enterprisesPoliciesDelete- , EnterprisesPoliciesDelete-- -- * Request Lenses- , epdXgafv- , epdUploadProtocol- , epdAccessToken- , epdUploadType- , epdName- , epdCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.policies.delete@ method which the--- 'EnterprisesPoliciesDelete' request conforms to.-type EnterprisesPoliciesDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes a policy. This operation is only permitted if no devices are--- currently referencing the policy.------ /See:/ 'enterprisesPoliciesDelete' smart constructor.-data EnterprisesPoliciesDelete =- EnterprisesPoliciesDelete'- { _epdXgafv :: !(Maybe Xgafv)- , _epdUploadProtocol :: !(Maybe Text)- , _epdAccessToken :: !(Maybe Text)- , _epdUploadType :: !(Maybe Text)- , _epdName :: !Text- , _epdCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesPoliciesDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'epdXgafv'------ * 'epdUploadProtocol'------ * 'epdAccessToken'------ * 'epdUploadType'------ * 'epdName'------ * 'epdCallback'-enterprisesPoliciesDelete- :: Text -- ^ 'epdName'- -> EnterprisesPoliciesDelete-enterprisesPoliciesDelete pEpdName_ =- EnterprisesPoliciesDelete'- { _epdXgafv = Nothing- , _epdUploadProtocol = Nothing- , _epdAccessToken = Nothing- , _epdUploadType = Nothing- , _epdName = pEpdName_- , _epdCallback = Nothing- }----- | V1 error format.-epdXgafv :: Lens' EnterprisesPoliciesDelete (Maybe Xgafv)-epdXgafv = lens _epdXgafv (\ s a -> s{_epdXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-epdUploadProtocol :: Lens' EnterprisesPoliciesDelete (Maybe Text)-epdUploadProtocol- = lens _epdUploadProtocol- (\ s a -> s{_epdUploadProtocol = a})---- | OAuth access token.-epdAccessToken :: Lens' EnterprisesPoliciesDelete (Maybe Text)-epdAccessToken- = lens _epdAccessToken- (\ s a -> s{_epdAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-epdUploadType :: Lens' EnterprisesPoliciesDelete (Maybe Text)-epdUploadType- = lens _epdUploadType- (\ s a -> s{_epdUploadType = a})---- | The name of the policy in the form--- enterprises\/{enterpriseId}\/policies\/{policyId}.-epdName :: Lens' EnterprisesPoliciesDelete Text-epdName = lens _epdName (\ s a -> s{_epdName = a})---- | JSONP-epdCallback :: Lens' EnterprisesPoliciesDelete (Maybe Text)-epdCallback- = lens _epdCallback (\ s a -> s{_epdCallback = a})--instance GoogleRequest EnterprisesPoliciesDelete- where- type Rs EnterprisesPoliciesDelete = Empty- type Scopes EnterprisesPoliciesDelete =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesPoliciesDelete'{..}- = go _epdName _epdXgafv _epdUploadProtocol- _epdAccessToken- _epdUploadType- _epdCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesPoliciesDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/Get.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.AndroidManagement.Enterprises.Policies.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 a policy.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.get@.-module Network.Google.Resource.AndroidManagement.Enterprises.Policies.Get- (- -- * REST Resource- EnterprisesPoliciesGetResource-- -- * Creating a Request- , enterprisesPoliciesGet- , EnterprisesPoliciesGet-- -- * Request Lenses- , epgXgafv- , epgUploadProtocol- , epgAccessToken- , epgUploadType- , epgName- , epgCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.policies.get@ method which the--- 'EnterprisesPoliciesGet' request conforms to.-type EnterprisesPoliciesGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] Policy---- | Gets a policy.------ /See:/ 'enterprisesPoliciesGet' smart constructor.-data EnterprisesPoliciesGet =- EnterprisesPoliciesGet'- { _epgXgafv :: !(Maybe Xgafv)- , _epgUploadProtocol :: !(Maybe Text)- , _epgAccessToken :: !(Maybe Text)- , _epgUploadType :: !(Maybe Text)- , _epgName :: !Text- , _epgCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesPoliciesGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'epgXgafv'------ * 'epgUploadProtocol'------ * 'epgAccessToken'------ * 'epgUploadType'------ * 'epgName'------ * 'epgCallback'-enterprisesPoliciesGet- :: Text -- ^ 'epgName'- -> EnterprisesPoliciesGet-enterprisesPoliciesGet pEpgName_ =- EnterprisesPoliciesGet'- { _epgXgafv = Nothing- , _epgUploadProtocol = Nothing- , _epgAccessToken = Nothing- , _epgUploadType = Nothing- , _epgName = pEpgName_- , _epgCallback = Nothing- }----- | V1 error format.-epgXgafv :: Lens' EnterprisesPoliciesGet (Maybe Xgafv)-epgXgafv = lens _epgXgafv (\ s a -> s{_epgXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-epgUploadProtocol :: Lens' EnterprisesPoliciesGet (Maybe Text)-epgUploadProtocol- = lens _epgUploadProtocol- (\ s a -> s{_epgUploadProtocol = a})---- | OAuth access token.-epgAccessToken :: Lens' EnterprisesPoliciesGet (Maybe Text)-epgAccessToken- = lens _epgAccessToken- (\ s a -> s{_epgAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-epgUploadType :: Lens' EnterprisesPoliciesGet (Maybe Text)-epgUploadType- = lens _epgUploadType- (\ s a -> s{_epgUploadType = a})---- | The name of the policy in the form--- enterprises\/{enterpriseId}\/policies\/{policyId}.-epgName :: Lens' EnterprisesPoliciesGet Text-epgName = lens _epgName (\ s a -> s{_epgName = a})---- | JSONP-epgCallback :: Lens' EnterprisesPoliciesGet (Maybe Text)-epgCallback- = lens _epgCallback (\ s a -> s{_epgCallback = a})--instance GoogleRequest EnterprisesPoliciesGet where- type Rs EnterprisesPoliciesGet = Policy- type Scopes EnterprisesPoliciesGet =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesPoliciesGet'{..}- = go _epgName _epgXgafv _epgUploadProtocol- _epgAccessToken- _epgUploadType- _epgCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesPoliciesGetResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/List.hs
@@ -1,178 +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.AndroidManagement.Enterprises.Policies.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 policies for a given enterprise.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.list@.-module Network.Google.Resource.AndroidManagement.Enterprises.Policies.List- (- -- * REST Resource- EnterprisesPoliciesListResource-- -- * Creating a Request- , enterprisesPoliciesList- , EnterprisesPoliciesList-- -- * Request Lenses- , eplParent- , eplXgafv- , eplUploadProtocol- , eplAccessToken- , eplUploadType- , eplPageToken- , eplPageSize- , eplCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.policies.list@ method which the--- 'EnterprisesPoliciesList' request conforms to.-type EnterprisesPoliciesListResource =- "v1" :>- Capture "parent" Text :>- "policies" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListPoliciesResponse---- | Lists policies for a given enterprise.------ /See:/ 'enterprisesPoliciesList' smart constructor.-data EnterprisesPoliciesList =- EnterprisesPoliciesList'- { _eplParent :: !Text- , _eplXgafv :: !(Maybe Xgafv)- , _eplUploadProtocol :: !(Maybe Text)- , _eplAccessToken :: !(Maybe Text)- , _eplUploadType :: !(Maybe Text)- , _eplPageToken :: !(Maybe Text)- , _eplPageSize :: !(Maybe (Textual Int32))- , _eplCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesPoliciesList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eplParent'------ * 'eplXgafv'------ * 'eplUploadProtocol'------ * 'eplAccessToken'------ * 'eplUploadType'------ * 'eplPageToken'------ * 'eplPageSize'------ * 'eplCallback'-enterprisesPoliciesList- :: Text -- ^ 'eplParent'- -> EnterprisesPoliciesList-enterprisesPoliciesList pEplParent_ =- EnterprisesPoliciesList'- { _eplParent = pEplParent_- , _eplXgafv = Nothing- , _eplUploadProtocol = Nothing- , _eplAccessToken = Nothing- , _eplUploadType = Nothing- , _eplPageToken = Nothing- , _eplPageSize = Nothing- , _eplCallback = Nothing- }----- | The name of the enterprise in the form enterprises\/{enterpriseId}.-eplParent :: Lens' EnterprisesPoliciesList Text-eplParent- = lens _eplParent (\ s a -> s{_eplParent = a})---- | V1 error format.-eplXgafv :: Lens' EnterprisesPoliciesList (Maybe Xgafv)-eplXgafv = lens _eplXgafv (\ s a -> s{_eplXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-eplUploadProtocol :: Lens' EnterprisesPoliciesList (Maybe Text)-eplUploadProtocol- = lens _eplUploadProtocol- (\ s a -> s{_eplUploadProtocol = a})---- | OAuth access token.-eplAccessToken :: Lens' EnterprisesPoliciesList (Maybe Text)-eplAccessToken- = lens _eplAccessToken- (\ s a -> s{_eplAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-eplUploadType :: Lens' EnterprisesPoliciesList (Maybe Text)-eplUploadType- = lens _eplUploadType- (\ s a -> s{_eplUploadType = a})---- | A token identifying a page of results returned by the server.-eplPageToken :: Lens' EnterprisesPoliciesList (Maybe Text)-eplPageToken- = lens _eplPageToken (\ s a -> s{_eplPageToken = a})---- | The requested page size. The actual page size may be fixed to a min or--- max value.-eplPageSize :: Lens' EnterprisesPoliciesList (Maybe Int32)-eplPageSize- = lens _eplPageSize (\ s a -> s{_eplPageSize = a}) .- mapping _Coerce---- | JSONP-eplCallback :: Lens' EnterprisesPoliciesList (Maybe Text)-eplCallback- = lens _eplCallback (\ s a -> s{_eplCallback = a})--instance GoogleRequest EnterprisesPoliciesList where- type Rs EnterprisesPoliciesList =- ListPoliciesResponse- type Scopes EnterprisesPoliciesList =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesPoliciesList'{..}- = go _eplParent _eplXgafv _eplUploadProtocol- _eplAccessToken- _eplUploadType- _eplPageToken- _eplPageSize- _eplCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesPoliciesListResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/Policies/Patch.hs
@@ -1,176 +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.AndroidManagement.Enterprises.Policies.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 or creates a policy.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.policies.patch@.-module Network.Google.Resource.AndroidManagement.Enterprises.Policies.Patch- (- -- * REST Resource- EnterprisesPoliciesPatchResource-- -- * Creating a Request- , enterprisesPoliciesPatch- , EnterprisesPoliciesPatch-- -- * Request Lenses- , eppXgafv- , eppUploadProtocol- , eppUpdateMask- , eppAccessToken- , eppUploadType- , eppPayload- , eppName- , eppCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.policies.patch@ method which the--- 'EnterprisesPoliciesPatch' request conforms to.-type EnterprisesPoliciesPatchResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "updateMask" GFieldMask :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] Policy :> Patch '[JSON] Policy---- | Updates or creates a policy.------ /See:/ 'enterprisesPoliciesPatch' smart constructor.-data EnterprisesPoliciesPatch =- EnterprisesPoliciesPatch'- { _eppXgafv :: !(Maybe Xgafv)- , _eppUploadProtocol :: !(Maybe Text)- , _eppUpdateMask :: !(Maybe GFieldMask)- , _eppAccessToken :: !(Maybe Text)- , _eppUploadType :: !(Maybe Text)- , _eppPayload :: !Policy- , _eppName :: !Text- , _eppCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesPoliciesPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'eppXgafv'------ * 'eppUploadProtocol'------ * 'eppUpdateMask'------ * 'eppAccessToken'------ * 'eppUploadType'------ * 'eppPayload'------ * 'eppName'------ * 'eppCallback'-enterprisesPoliciesPatch- :: Policy -- ^ 'eppPayload'- -> Text -- ^ 'eppName'- -> EnterprisesPoliciesPatch-enterprisesPoliciesPatch pEppPayload_ pEppName_ =- EnterprisesPoliciesPatch'- { _eppXgafv = Nothing- , _eppUploadProtocol = Nothing- , _eppUpdateMask = Nothing- , _eppAccessToken = Nothing- , _eppUploadType = Nothing- , _eppPayload = pEppPayload_- , _eppName = pEppName_- , _eppCallback = Nothing- }----- | V1 error format.-eppXgafv :: Lens' EnterprisesPoliciesPatch (Maybe Xgafv)-eppXgafv = lens _eppXgafv (\ s a -> s{_eppXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-eppUploadProtocol :: Lens' EnterprisesPoliciesPatch (Maybe Text)-eppUploadProtocol- = lens _eppUploadProtocol- (\ s a -> s{_eppUploadProtocol = a})---- | The field mask indicating the fields to update. If not set, all--- modifiable fields will be modified.-eppUpdateMask :: Lens' EnterprisesPoliciesPatch (Maybe GFieldMask)-eppUpdateMask- = lens _eppUpdateMask- (\ s a -> s{_eppUpdateMask = a})---- | OAuth access token.-eppAccessToken :: Lens' EnterprisesPoliciesPatch (Maybe Text)-eppAccessToken- = lens _eppAccessToken- (\ s a -> s{_eppAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-eppUploadType :: Lens' EnterprisesPoliciesPatch (Maybe Text)-eppUploadType- = lens _eppUploadType- (\ s a -> s{_eppUploadType = a})---- | Multipart request metadata.-eppPayload :: Lens' EnterprisesPoliciesPatch Policy-eppPayload- = lens _eppPayload (\ s a -> s{_eppPayload = a})---- | The name of the policy in the form--- enterprises\/{enterpriseId}\/policies\/{policyId}.-eppName :: Lens' EnterprisesPoliciesPatch Text-eppName = lens _eppName (\ s a -> s{_eppName = a})---- | JSONP-eppCallback :: Lens' EnterprisesPoliciesPatch (Maybe Text)-eppCallback- = lens _eppCallback (\ s a -> s{_eppCallback = a})--instance GoogleRequest EnterprisesPoliciesPatch where- type Rs EnterprisesPoliciesPatch = Policy- type Scopes EnterprisesPoliciesPatch =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesPoliciesPatch'{..}- = go _eppName _eppXgafv _eppUploadProtocol- _eppUpdateMask- _eppAccessToken- _eppUploadType- _eppCallback- (Just AltJSON)- _eppPayload- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesPoliciesPatchResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Create.hs
@@ -1,164 +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.AndroidManagement.Enterprises.WebApps.Create--- 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 web app.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.create@.-module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Create- (- -- * REST Resource- EnterprisesWebAppsCreateResource-- -- * Creating a Request- , enterprisesWebAppsCreate- , EnterprisesWebAppsCreate-- -- * Request Lenses- , ewacParent- , ewacXgafv- , ewacUploadProtocol- , ewacAccessToken- , ewacUploadType- , ewacPayload- , ewacCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.webApps.create@ method which the--- 'EnterprisesWebAppsCreate' request conforms to.-type EnterprisesWebAppsCreateResource =- "v1" :>- Capture "parent" Text :>- "webApps" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] WebApp :> Post '[JSON] WebApp---- | Creates a web app.------ /See:/ 'enterprisesWebAppsCreate' smart constructor.-data EnterprisesWebAppsCreate =- EnterprisesWebAppsCreate'- { _ewacParent :: !Text- , _ewacXgafv :: !(Maybe Xgafv)- , _ewacUploadProtocol :: !(Maybe Text)- , _ewacAccessToken :: !(Maybe Text)- , _ewacUploadType :: !(Maybe Text)- , _ewacPayload :: !WebApp- , _ewacCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesWebAppsCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ewacParent'------ * 'ewacXgafv'------ * 'ewacUploadProtocol'------ * 'ewacAccessToken'------ * 'ewacUploadType'------ * 'ewacPayload'------ * 'ewacCallback'-enterprisesWebAppsCreate- :: Text -- ^ 'ewacParent'- -> WebApp -- ^ 'ewacPayload'- -> EnterprisesWebAppsCreate-enterprisesWebAppsCreate pEwacParent_ pEwacPayload_ =- EnterprisesWebAppsCreate'- { _ewacParent = pEwacParent_- , _ewacXgafv = Nothing- , _ewacUploadProtocol = Nothing- , _ewacAccessToken = Nothing- , _ewacUploadType = Nothing- , _ewacPayload = pEwacPayload_- , _ewacCallback = Nothing- }----- | The name of the enterprise in the form enterprises\/{enterpriseId}.-ewacParent :: Lens' EnterprisesWebAppsCreate Text-ewacParent- = lens _ewacParent (\ s a -> s{_ewacParent = a})---- | V1 error format.-ewacXgafv :: Lens' EnterprisesWebAppsCreate (Maybe Xgafv)-ewacXgafv- = lens _ewacXgafv (\ s a -> s{_ewacXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ewacUploadProtocol :: Lens' EnterprisesWebAppsCreate (Maybe Text)-ewacUploadProtocol- = lens _ewacUploadProtocol- (\ s a -> s{_ewacUploadProtocol = a})---- | OAuth access token.-ewacAccessToken :: Lens' EnterprisesWebAppsCreate (Maybe Text)-ewacAccessToken- = lens _ewacAccessToken- (\ s a -> s{_ewacAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ewacUploadType :: Lens' EnterprisesWebAppsCreate (Maybe Text)-ewacUploadType- = lens _ewacUploadType- (\ s a -> s{_ewacUploadType = a})---- | Multipart request metadata.-ewacPayload :: Lens' EnterprisesWebAppsCreate WebApp-ewacPayload- = lens _ewacPayload (\ s a -> s{_ewacPayload = a})---- | JSONP-ewacCallback :: Lens' EnterprisesWebAppsCreate (Maybe Text)-ewacCallback- = lens _ewacCallback (\ s a -> s{_ewacCallback = a})--instance GoogleRequest EnterprisesWebAppsCreate where- type Rs EnterprisesWebAppsCreate = WebApp- type Scopes EnterprisesWebAppsCreate =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesWebAppsCreate'{..}- = go _ewacParent _ewacXgafv _ewacUploadProtocol- _ewacAccessToken- _ewacUploadType- _ewacCallback- (Just AltJSON)- _ewacPayload- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesWebAppsCreateResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Delete.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.AndroidManagement.Enterprises.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 a web app.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.delete@.-module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Delete- (- -- * REST Resource- EnterprisesWebAppsDeleteResource-- -- * Creating a Request- , enterprisesWebAppsDelete- , EnterprisesWebAppsDelete-- -- * Request Lenses- , ewadXgafv- , ewadUploadProtocol- , ewadAccessToken- , ewadUploadType- , ewadName- , ewadCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.webApps.delete@ method which the--- 'EnterprisesWebAppsDelete' request conforms to.-type EnterprisesWebAppsDeleteResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Delete '[JSON] Empty---- | Deletes a web app.------ /See:/ 'enterprisesWebAppsDelete' smart constructor.-data EnterprisesWebAppsDelete =- EnterprisesWebAppsDelete'- { _ewadXgafv :: !(Maybe Xgafv)- , _ewadUploadProtocol :: !(Maybe Text)- , _ewadAccessToken :: !(Maybe Text)- , _ewadUploadType :: !(Maybe Text)- , _ewadName :: !Text- , _ewadCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesWebAppsDelete' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ewadXgafv'------ * 'ewadUploadProtocol'------ * 'ewadAccessToken'------ * 'ewadUploadType'------ * 'ewadName'------ * 'ewadCallback'-enterprisesWebAppsDelete- :: Text -- ^ 'ewadName'- -> EnterprisesWebAppsDelete-enterprisesWebAppsDelete pEwadName_ =- EnterprisesWebAppsDelete'- { _ewadXgafv = Nothing- , _ewadUploadProtocol = Nothing- , _ewadAccessToken = Nothing- , _ewadUploadType = Nothing- , _ewadName = pEwadName_- , _ewadCallback = Nothing- }----- | V1 error format.-ewadXgafv :: Lens' EnterprisesWebAppsDelete (Maybe Xgafv)-ewadXgafv- = lens _ewadXgafv (\ s a -> s{_ewadXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ewadUploadProtocol :: Lens' EnterprisesWebAppsDelete (Maybe Text)-ewadUploadProtocol- = lens _ewadUploadProtocol- (\ s a -> s{_ewadUploadProtocol = a})---- | OAuth access token.-ewadAccessToken :: Lens' EnterprisesWebAppsDelete (Maybe Text)-ewadAccessToken- = lens _ewadAccessToken- (\ s a -> s{_ewadAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ewadUploadType :: Lens' EnterprisesWebAppsDelete (Maybe Text)-ewadUploadType- = lens _ewadUploadType- (\ s a -> s{_ewadUploadType = a})---- | The name of the web app in the form--- enterprises\/{enterpriseId}\/webApps\/{packageName}.-ewadName :: Lens' EnterprisesWebAppsDelete Text-ewadName = lens _ewadName (\ s a -> s{_ewadName = a})---- | JSONP-ewadCallback :: Lens' EnterprisesWebAppsDelete (Maybe Text)-ewadCallback- = lens _ewadCallback (\ s a -> s{_ewadCallback = a})--instance GoogleRequest EnterprisesWebAppsDelete where- type Rs EnterprisesWebAppsDelete = Empty- type Scopes EnterprisesWebAppsDelete =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesWebAppsDelete'{..}- = go _ewadName _ewadXgafv _ewadUploadProtocol- _ewadAccessToken- _ewadUploadType- _ewadCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesWebAppsDeleteResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Get.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.AndroidManagement.Enterprises.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 a web app.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.get@.-module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Get- (- -- * REST Resource- EnterprisesWebAppsGetResource-- -- * Creating a Request- , enterprisesWebAppsGet- , EnterprisesWebAppsGet-- -- * Request Lenses- , ewagXgafv- , ewagUploadProtocol- , ewagAccessToken- , ewagUploadType- , ewagName- , ewagCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.webApps.get@ method which the--- 'EnterprisesWebAppsGet' request conforms to.-type EnterprisesWebAppsGetResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Get '[JSON] WebApp---- | Gets a web app.------ /See:/ 'enterprisesWebAppsGet' smart constructor.-data EnterprisesWebAppsGet =- EnterprisesWebAppsGet'- { _ewagXgafv :: !(Maybe Xgafv)- , _ewagUploadProtocol :: !(Maybe Text)- , _ewagAccessToken :: !(Maybe Text)- , _ewagUploadType :: !(Maybe Text)- , _ewagName :: !Text- , _ewagCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesWebAppsGet' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ewagXgafv'------ * 'ewagUploadProtocol'------ * 'ewagAccessToken'------ * 'ewagUploadType'------ * 'ewagName'------ * 'ewagCallback'-enterprisesWebAppsGet- :: Text -- ^ 'ewagName'- -> EnterprisesWebAppsGet-enterprisesWebAppsGet pEwagName_ =- EnterprisesWebAppsGet'- { _ewagXgafv = Nothing- , _ewagUploadProtocol = Nothing- , _ewagAccessToken = Nothing- , _ewagUploadType = Nothing- , _ewagName = pEwagName_- , _ewagCallback = Nothing- }----- | V1 error format.-ewagXgafv :: Lens' EnterprisesWebAppsGet (Maybe Xgafv)-ewagXgafv- = lens _ewagXgafv (\ s a -> s{_ewagXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ewagUploadProtocol :: Lens' EnterprisesWebAppsGet (Maybe Text)-ewagUploadProtocol- = lens _ewagUploadProtocol- (\ s a -> s{_ewagUploadProtocol = a})---- | OAuth access token.-ewagAccessToken :: Lens' EnterprisesWebAppsGet (Maybe Text)-ewagAccessToken- = lens _ewagAccessToken- (\ s a -> s{_ewagAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ewagUploadType :: Lens' EnterprisesWebAppsGet (Maybe Text)-ewagUploadType- = lens _ewagUploadType- (\ s a -> s{_ewagUploadType = a})---- | The name of the web app in the form--- enterprises\/{enterpriseId}\/webApp\/{packageName}.-ewagName :: Lens' EnterprisesWebAppsGet Text-ewagName = lens _ewagName (\ s a -> s{_ewagName = a})---- | JSONP-ewagCallback :: Lens' EnterprisesWebAppsGet (Maybe Text)-ewagCallback- = lens _ewagCallback (\ s a -> s{_ewagCallback = a})--instance GoogleRequest EnterprisesWebAppsGet where- type Rs EnterprisesWebAppsGet = WebApp- type Scopes EnterprisesWebAppsGet =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesWebAppsGet'{..}- = go _ewagName _ewagXgafv _ewagUploadProtocol- _ewagAccessToken- _ewagUploadType- _ewagCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesWebAppsGetResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/List.hs
@@ -1,179 +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.AndroidManagement.Enterprises.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)------ Lists web apps for a given enterprise.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.list@.-module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.List- (- -- * REST Resource- EnterprisesWebAppsListResource-- -- * Creating a Request- , enterprisesWebAppsList- , EnterprisesWebAppsList-- -- * Request Lenses- , ewalParent- , ewalXgafv- , ewalUploadProtocol- , ewalAccessToken- , ewalUploadType- , ewalPageToken- , ewalPageSize- , ewalCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.webApps.list@ method which the--- 'EnterprisesWebAppsList' request conforms to.-type EnterprisesWebAppsListResource =- "v1" :>- Capture "parent" Text :>- "webApps" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "pageToken" Text :>- QueryParam "pageSize" (Textual Int32) :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- Get '[JSON] ListWebAppsResponse---- | Lists web apps for a given enterprise.------ /See:/ 'enterprisesWebAppsList' smart constructor.-data EnterprisesWebAppsList =- EnterprisesWebAppsList'- { _ewalParent :: !Text- , _ewalXgafv :: !(Maybe Xgafv)- , _ewalUploadProtocol :: !(Maybe Text)- , _ewalAccessToken :: !(Maybe Text)- , _ewalUploadType :: !(Maybe Text)- , _ewalPageToken :: !(Maybe Text)- , _ewalPageSize :: !(Maybe (Textual Int32))- , _ewalCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesWebAppsList' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ewalParent'------ * 'ewalXgafv'------ * 'ewalUploadProtocol'------ * 'ewalAccessToken'------ * 'ewalUploadType'------ * 'ewalPageToken'------ * 'ewalPageSize'------ * 'ewalCallback'-enterprisesWebAppsList- :: Text -- ^ 'ewalParent'- -> EnterprisesWebAppsList-enterprisesWebAppsList pEwalParent_ =- EnterprisesWebAppsList'- { _ewalParent = pEwalParent_- , _ewalXgafv = Nothing- , _ewalUploadProtocol = Nothing- , _ewalAccessToken = Nothing- , _ewalUploadType = Nothing- , _ewalPageToken = Nothing- , _ewalPageSize = Nothing- , _ewalCallback = Nothing- }----- | The name of the enterprise in the form enterprises\/{enterpriseId}.-ewalParent :: Lens' EnterprisesWebAppsList Text-ewalParent- = lens _ewalParent (\ s a -> s{_ewalParent = a})---- | V1 error format.-ewalXgafv :: Lens' EnterprisesWebAppsList (Maybe Xgafv)-ewalXgafv- = lens _ewalXgafv (\ s a -> s{_ewalXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ewalUploadProtocol :: Lens' EnterprisesWebAppsList (Maybe Text)-ewalUploadProtocol- = lens _ewalUploadProtocol- (\ s a -> s{_ewalUploadProtocol = a})---- | OAuth access token.-ewalAccessToken :: Lens' EnterprisesWebAppsList (Maybe Text)-ewalAccessToken- = lens _ewalAccessToken- (\ s a -> s{_ewalAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ewalUploadType :: Lens' EnterprisesWebAppsList (Maybe Text)-ewalUploadType- = lens _ewalUploadType- (\ s a -> s{_ewalUploadType = a})---- | A token identifying a page of results returned by the server.-ewalPageToken :: Lens' EnterprisesWebAppsList (Maybe Text)-ewalPageToken- = lens _ewalPageToken- (\ s a -> s{_ewalPageToken = a})---- | The requested page size. The actual page size may be fixed to a min or--- max value.-ewalPageSize :: Lens' EnterprisesWebAppsList (Maybe Int32)-ewalPageSize- = lens _ewalPageSize (\ s a -> s{_ewalPageSize = a})- . mapping _Coerce---- | JSONP-ewalCallback :: Lens' EnterprisesWebAppsList (Maybe Text)-ewalCallback- = lens _ewalCallback (\ s a -> s{_ewalCallback = a})--instance GoogleRequest EnterprisesWebAppsList where- type Rs EnterprisesWebAppsList = ListWebAppsResponse- type Scopes EnterprisesWebAppsList =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesWebAppsList'{..}- = go _ewalParent _ewalXgafv _ewalUploadProtocol- _ewalAccessToken- _ewalUploadType- _ewalPageToken- _ewalPageSize- _ewalCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesWebAppsListResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/WebApps/Patch.hs
@@ -1,177 +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.AndroidManagement.Enterprises.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 a web app.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webApps.patch@.-module Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Patch- (- -- * REST Resource- EnterprisesWebAppsPatchResource-- -- * Creating a Request- , enterprisesWebAppsPatch- , EnterprisesWebAppsPatch-- -- * Request Lenses- , ewapXgafv- , ewapUploadProtocol- , ewapUpdateMask- , ewapAccessToken- , ewapUploadType- , ewapPayload- , ewapName- , ewapCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.webApps.patch@ method which the--- 'EnterprisesWebAppsPatch' request conforms to.-type EnterprisesWebAppsPatchResource =- "v1" :>- Capture "name" Text :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "updateMask" GFieldMask :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] WebApp :> Patch '[JSON] WebApp---- | Updates a web app.------ /See:/ 'enterprisesWebAppsPatch' smart constructor.-data EnterprisesWebAppsPatch =- EnterprisesWebAppsPatch'- { _ewapXgafv :: !(Maybe Xgafv)- , _ewapUploadProtocol :: !(Maybe Text)- , _ewapUpdateMask :: !(Maybe GFieldMask)- , _ewapAccessToken :: !(Maybe Text)- , _ewapUploadType :: !(Maybe Text)- , _ewapPayload :: !WebApp- , _ewapName :: !Text- , _ewapCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesWebAppsPatch' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ewapXgafv'------ * 'ewapUploadProtocol'------ * 'ewapUpdateMask'------ * 'ewapAccessToken'------ * 'ewapUploadType'------ * 'ewapPayload'------ * 'ewapName'------ * 'ewapCallback'-enterprisesWebAppsPatch- :: WebApp -- ^ 'ewapPayload'- -> Text -- ^ 'ewapName'- -> EnterprisesWebAppsPatch-enterprisesWebAppsPatch pEwapPayload_ pEwapName_ =- EnterprisesWebAppsPatch'- { _ewapXgafv = Nothing- , _ewapUploadProtocol = Nothing- , _ewapUpdateMask = Nothing- , _ewapAccessToken = Nothing- , _ewapUploadType = Nothing- , _ewapPayload = pEwapPayload_- , _ewapName = pEwapName_- , _ewapCallback = Nothing- }----- | V1 error format.-ewapXgafv :: Lens' EnterprisesWebAppsPatch (Maybe Xgafv)-ewapXgafv- = lens _ewapXgafv (\ s a -> s{_ewapXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ewapUploadProtocol :: Lens' EnterprisesWebAppsPatch (Maybe Text)-ewapUploadProtocol- = lens _ewapUploadProtocol- (\ s a -> s{_ewapUploadProtocol = a})---- | The field mask indicating the fields to update. If not set, all--- modifiable fields will be modified.-ewapUpdateMask :: Lens' EnterprisesWebAppsPatch (Maybe GFieldMask)-ewapUpdateMask- = lens _ewapUpdateMask- (\ s a -> s{_ewapUpdateMask = a})---- | OAuth access token.-ewapAccessToken :: Lens' EnterprisesWebAppsPatch (Maybe Text)-ewapAccessToken- = lens _ewapAccessToken- (\ s a -> s{_ewapAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ewapUploadType :: Lens' EnterprisesWebAppsPatch (Maybe Text)-ewapUploadType- = lens _ewapUploadType- (\ s a -> s{_ewapUploadType = a})---- | Multipart request metadata.-ewapPayload :: Lens' EnterprisesWebAppsPatch WebApp-ewapPayload- = lens _ewapPayload (\ s a -> s{_ewapPayload = a})---- | The name of the web app in the form--- enterprises\/{enterpriseId}\/webApps\/{packageName}.-ewapName :: Lens' EnterprisesWebAppsPatch Text-ewapName = lens _ewapName (\ s a -> s{_ewapName = a})---- | JSONP-ewapCallback :: Lens' EnterprisesWebAppsPatch (Maybe Text)-ewapCallback- = lens _ewapCallback (\ s a -> s{_ewapCallback = a})--instance GoogleRequest EnterprisesWebAppsPatch where- type Rs EnterprisesWebAppsPatch = WebApp- type Scopes EnterprisesWebAppsPatch =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesWebAppsPatch'{..}- = go _ewapName _ewapXgafv _ewapUploadProtocol- _ewapUpdateMask- _ewapAccessToken- _ewapUploadType- _ewapCallback- (Just AltJSON)- _ewapPayload- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesWebAppsPatchResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/Enterprises/WebTokens/Create.hs
@@ -1,167 +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.AndroidManagement.Enterprises.WebTokens.Create--- 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 web token to access an embeddable managed Google Play web UI--- for a given enterprise.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.enterprises.webTokens.create@.-module Network.Google.Resource.AndroidManagement.Enterprises.WebTokens.Create- (- -- * REST Resource- EnterprisesWebTokensCreateResource-- -- * Creating a Request- , enterprisesWebTokensCreate- , EnterprisesWebTokensCreate-- -- * Request Lenses- , ewtcParent- , ewtcXgafv- , ewtcUploadProtocol- , ewtcAccessToken- , ewtcUploadType- , ewtcPayload- , ewtcCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.enterprises.webTokens.create@ method which the--- 'EnterprisesWebTokensCreate' request conforms to.-type EnterprisesWebTokensCreateResource =- "v1" :>- Capture "parent" Text :>- "webTokens" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :>- ReqBody '[JSON] WebToken :> Post '[JSON] WebToken---- | Creates a web token to access an embeddable managed Google Play web UI--- for a given enterprise.------ /See:/ 'enterprisesWebTokensCreate' smart constructor.-data EnterprisesWebTokensCreate =- EnterprisesWebTokensCreate'- { _ewtcParent :: !Text- , _ewtcXgafv :: !(Maybe Xgafv)- , _ewtcUploadProtocol :: !(Maybe Text)- , _ewtcAccessToken :: !(Maybe Text)- , _ewtcUploadType :: !(Maybe Text)- , _ewtcPayload :: !WebToken- , _ewtcCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'EnterprisesWebTokensCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'ewtcParent'------ * 'ewtcXgafv'------ * 'ewtcUploadProtocol'------ * 'ewtcAccessToken'------ * 'ewtcUploadType'------ * 'ewtcPayload'------ * 'ewtcCallback'-enterprisesWebTokensCreate- :: Text -- ^ 'ewtcParent'- -> WebToken -- ^ 'ewtcPayload'- -> EnterprisesWebTokensCreate-enterprisesWebTokensCreate pEwtcParent_ pEwtcPayload_ =- EnterprisesWebTokensCreate'- { _ewtcParent = pEwtcParent_- , _ewtcXgafv = Nothing- , _ewtcUploadProtocol = Nothing- , _ewtcAccessToken = Nothing- , _ewtcUploadType = Nothing- , _ewtcPayload = pEwtcPayload_- , _ewtcCallback = Nothing- }----- | The name of the enterprise in the form enterprises\/{enterpriseId}.-ewtcParent :: Lens' EnterprisesWebTokensCreate Text-ewtcParent- = lens _ewtcParent (\ s a -> s{_ewtcParent = a})---- | V1 error format.-ewtcXgafv :: Lens' EnterprisesWebTokensCreate (Maybe Xgafv)-ewtcXgafv- = lens _ewtcXgafv (\ s a -> s{_ewtcXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-ewtcUploadProtocol :: Lens' EnterprisesWebTokensCreate (Maybe Text)-ewtcUploadProtocol- = lens _ewtcUploadProtocol- (\ s a -> s{_ewtcUploadProtocol = a})---- | OAuth access token.-ewtcAccessToken :: Lens' EnterprisesWebTokensCreate (Maybe Text)-ewtcAccessToken- = lens _ewtcAccessToken- (\ s a -> s{_ewtcAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-ewtcUploadType :: Lens' EnterprisesWebTokensCreate (Maybe Text)-ewtcUploadType- = lens _ewtcUploadType- (\ s a -> s{_ewtcUploadType = a})---- | Multipart request metadata.-ewtcPayload :: Lens' EnterprisesWebTokensCreate WebToken-ewtcPayload- = lens _ewtcPayload (\ s a -> s{_ewtcPayload = a})---- | JSONP-ewtcCallback :: Lens' EnterprisesWebTokensCreate (Maybe Text)-ewtcCallback- = lens _ewtcCallback (\ s a -> s{_ewtcCallback = a})--instance GoogleRequest EnterprisesWebTokensCreate- where- type Rs EnterprisesWebTokensCreate = WebToken- type Scopes EnterprisesWebTokensCreate =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient EnterprisesWebTokensCreate'{..}- = go _ewtcParent _ewtcXgafv _ewtcUploadProtocol- _ewtcAccessToken- _ewtcUploadType- _ewtcCallback- (Just AltJSON)- _ewtcPayload- androidManagementService- where go- = buildClient- (Proxy :: Proxy EnterprisesWebTokensCreateResource)- mempty
− gen/Network/Google/Resource/AndroidManagement/SignupURLs/Create.hs
@@ -1,168 +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.AndroidManagement.SignupURLs.Create--- 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 an enterprise signup URL.------ /See:/ <https://developers.google.com/android/management Android Management API Reference> for @androidmanagement.signupUrls.create@.-module Network.Google.Resource.AndroidManagement.SignupURLs.Create- (- -- * REST Resource- SignupURLsCreateResource-- -- * Creating a Request- , signupURLsCreate- , SignupURLsCreate-- -- * Request Lenses- , sucXgafv- , sucUploadProtocol- , sucCallbackURL- , sucAccessToken- , sucUploadType- , sucProjectId- , sucCallback- ) where--import Network.Google.AndroidManagement.Types-import Network.Google.Prelude---- | A resource alias for @androidmanagement.signupUrls.create@ method which the--- 'SignupURLsCreate' request conforms to.-type SignupURLsCreateResource =- "v1" :>- "signupUrls" :>- QueryParam "$.xgafv" Xgafv :>- QueryParam "upload_protocol" Text :>- QueryParam "callbackUrl" Text :>- QueryParam "access_token" Text :>- QueryParam "uploadType" Text :>- QueryParam "projectId" Text :>- QueryParam "callback" Text :>- QueryParam "alt" AltJSON :> Post '[JSON] SignupURL---- | Creates an enterprise signup URL.------ /See:/ 'signupURLsCreate' smart constructor.-data SignupURLsCreate =- SignupURLsCreate'- { _sucXgafv :: !(Maybe Xgafv)- , _sucUploadProtocol :: !(Maybe Text)- , _sucCallbackURL :: !(Maybe Text)- , _sucAccessToken :: !(Maybe Text)- , _sucUploadType :: !(Maybe Text)- , _sucProjectId :: !(Maybe Text)- , _sucCallback :: !(Maybe Text)- }- deriving (Eq, Show, Data, Typeable, Generic)----- | Creates a value of 'SignupURLsCreate' with the minimum fields required to make a request.------ Use one of the following lenses to modify other fields as desired:------ * 'sucXgafv'------ * 'sucUploadProtocol'------ * 'sucCallbackURL'------ * 'sucAccessToken'------ * 'sucUploadType'------ * 'sucProjectId'------ * 'sucCallback'-signupURLsCreate- :: SignupURLsCreate-signupURLsCreate =- SignupURLsCreate'- { _sucXgafv = Nothing- , _sucUploadProtocol = Nothing- , _sucCallbackURL = Nothing- , _sucAccessToken = Nothing- , _sucUploadType = Nothing- , _sucProjectId = Nothing- , _sucCallback = Nothing- }----- | V1 error format.-sucXgafv :: Lens' SignupURLsCreate (Maybe Xgafv)-sucXgafv = lens _sucXgafv (\ s a -> s{_sucXgafv = a})---- | Upload protocol for media (e.g. \"raw\", \"multipart\").-sucUploadProtocol :: Lens' SignupURLsCreate (Maybe Text)-sucUploadProtocol- = lens _sucUploadProtocol- (\ s a -> s{_sucUploadProtocol = a})---- | The callback URL that the admin will be redirected to after successfully--- creating an enterprise. Before redirecting there the system will add a--- query parameter to this URL named enterpriseToken which will contain an--- opaque token to be used for the create enterprise request. The URL will--- be parsed then reformatted in order to add the enterpriseToken--- parameter, so there may be some minor formatting changes.-sucCallbackURL :: Lens' SignupURLsCreate (Maybe Text)-sucCallbackURL- = lens _sucCallbackURL- (\ s a -> s{_sucCallbackURL = a})---- | OAuth access token.-sucAccessToken :: Lens' SignupURLsCreate (Maybe Text)-sucAccessToken- = lens _sucAccessToken- (\ s a -> s{_sucAccessToken = a})---- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").-sucUploadType :: Lens' SignupURLsCreate (Maybe Text)-sucUploadType- = lens _sucUploadType- (\ s a -> s{_sucUploadType = a})---- | The ID of the Google Cloud Platform project which will own the--- enterprise.-sucProjectId :: Lens' SignupURLsCreate (Maybe Text)-sucProjectId- = lens _sucProjectId (\ s a -> s{_sucProjectId = a})---- | JSONP-sucCallback :: Lens' SignupURLsCreate (Maybe Text)-sucCallback- = lens _sucCallback (\ s a -> s{_sucCallback = a})--instance GoogleRequest SignupURLsCreate where- type Rs SignupURLsCreate = SignupURL- type Scopes SignupURLsCreate =- '["https://www.googleapis.com/auth/androidmanagement"]- requestClient SignupURLsCreate'{..}- = go _sucXgafv _sucUploadProtocol _sucCallbackURL- _sucAccessToken- _sucUploadType- _sucProjectId- _sucCallback- (Just AltJSON)- androidManagementService- where go- = buildClient- (Proxy :: Proxy SignupURLsCreateResource)- mempty
gogol-androidmanagement.cabal view
@@ -1,72 +1,94 @@-name: gogol-androidmanagement-version: 0.5.0-synopsis: Google Android Management 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-androidmanagement+version: 1.0.0+synopsis: Google Android Management 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:- The Android Management API provides remote enterprise management of- Android devices and apps.- .- /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.+ The Android Management API provides remote enterprise management of Android devices and apps.+ .+ /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-androidmanagement +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.AndroidManagement- , Network.Google.AndroidManagement.Types- , Network.Google.Resource.AndroidManagement.Enterprises.Applications.Get- , Network.Google.Resource.AndroidManagement.Enterprises.Create- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.Delete- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.Get- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.IssueCommand- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.List- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Cancel- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Delete- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.Get- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.Operations.List- , Network.Google.Resource.AndroidManagement.Enterprises.Devices.Patch- , Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Create- , Network.Google.Resource.AndroidManagement.Enterprises.EnrollmentTokens.Delete- , Network.Google.Resource.AndroidManagement.Enterprises.Get- , Network.Google.Resource.AndroidManagement.Enterprises.Patch- , Network.Google.Resource.AndroidManagement.Enterprises.Policies.Delete- , Network.Google.Resource.AndroidManagement.Enterprises.Policies.Get- , Network.Google.Resource.AndroidManagement.Enterprises.Policies.List- , Network.Google.Resource.AndroidManagement.Enterprises.Policies.Patch- , Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Create- , Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Delete- , Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Get- , Network.Google.Resource.AndroidManagement.Enterprises.WebApps.List- , Network.Google.Resource.AndroidManagement.Enterprises.WebApps.Patch- , Network.Google.Resource.AndroidManagement.Enterprises.WebTokens.Create- , Network.Google.Resource.AndroidManagement.SignupURLs.Create+ exposed-modules:+ Gogol.AndroidManagement+ Gogol.AndroidManagement.Enterprises.Applications.Get+ Gogol.AndroidManagement.Enterprises.Create+ Gogol.AndroidManagement.Enterprises.Delete+ Gogol.AndroidManagement.Enterprises.Devices.Delete+ Gogol.AndroidManagement.Enterprises.Devices.Get+ Gogol.AndroidManagement.Enterprises.Devices.IssueCommand+ Gogol.AndroidManagement.Enterprises.Devices.List+ Gogol.AndroidManagement.Enterprises.Devices.Operations.Cancel+ Gogol.AndroidManagement.Enterprises.Devices.Operations.Get+ Gogol.AndroidManagement.Enterprises.Devices.Operations.List+ Gogol.AndroidManagement.Enterprises.Devices.Patch+ Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Create+ Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Delete+ Gogol.AndroidManagement.Enterprises.EnrollmentTokens.Get+ Gogol.AndroidManagement.Enterprises.EnrollmentTokens.List+ Gogol.AndroidManagement.Enterprises.GenerateEnterpriseUpgradeUrl+ Gogol.AndroidManagement.Enterprises.Get+ Gogol.AndroidManagement.Enterprises.List+ Gogol.AndroidManagement.Enterprises.MigrationTokens.Create+ Gogol.AndroidManagement.Enterprises.MigrationTokens.Get+ Gogol.AndroidManagement.Enterprises.MigrationTokens.List+ Gogol.AndroidManagement.Enterprises.Patch+ Gogol.AndroidManagement.Enterprises.Policies.Delete+ Gogol.AndroidManagement.Enterprises.Policies.Get+ Gogol.AndroidManagement.Enterprises.Policies.List+ Gogol.AndroidManagement.Enterprises.Policies.Patch+ Gogol.AndroidManagement.Enterprises.WebApps.Create+ Gogol.AndroidManagement.Enterprises.WebApps.Delete+ Gogol.AndroidManagement.Enterprises.WebApps.Get+ Gogol.AndroidManagement.Enterprises.WebApps.List+ Gogol.AndroidManagement.Enterprises.WebApps.Patch+ Gogol.AndroidManagement.Enterprises.WebTokens.Create+ Gogol.AndroidManagement.ProvisioningInfo.Get+ Gogol.AndroidManagement.SignupUrls.Create+ Gogol.AndroidManagement.Types - other-modules:- Network.Google.AndroidManagement.Types.Product- , Network.Google.AndroidManagement.Types.Sum+ other-modules:+ Gogol.AndroidManagement.Internal.Product+ Gogol.AndroidManagement.Internal.Sum - build-depends:- gogol-core == 0.5.0.*- , base >= 4.7 && < 5+ build-depends: gogol-core ^>=1.0.0