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) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
See: Google Play EMM API Reference for androidenterprise.devices.getState
.
Synopsis
- type DevicesGetStateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("state" :> (QueryParam "alt" AltJSON :> Get '[JSON] DeviceState)))))))))
- devicesGetState :: Text -> Text -> Text -> DevicesGetState
- data DevicesGetState
- dgsEnterpriseId :: Lens' DevicesGetState Text
- dgsUserId :: Lens' DevicesGetState Text
- dgsDeviceId :: Lens' DevicesGetState Text
REST Resource
type DevicesGetStateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("state" :> (QueryParam "alt" AltJSON :> Get '[JSON] DeviceState))))))))) Source #
A resource alias for androidenterprise.devices.getState
method which the
DevicesGetState
request conforms to.
Creating a Request
Creates a value of DevicesGetState
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DevicesGetState Source #
Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
See: devicesGetState
smart constructor.
Instances
Request Lenses
dgsEnterpriseId :: Lens' DevicesGetState Text Source #
The ID of the enterprise.
dgsDeviceId :: Lens' DevicesGetState Text Source #
The ID of the device.