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 is enabled or disabled for access by the user to Google services. 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.
See: Google Play EMM API Reference for androidenterprise.devices.getState
.
- 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 is enabled or disabled for access by the user to Google services. 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.
See: devicesGetState
smart constructor.
Request Lenses
dgsEnterpriseId :: Lens' DevicesGetState Text Source #
The ID of the enterprise.
dgsDeviceId :: Lens' DevicesGetState Text Source #
The ID of the device.