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 |
Sets 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.setState
.
- type DevicesSetStateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("state" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DeviceState :> Put '[JSON] DeviceState))))))))))
- devicesSetState :: Text -> DeviceState -> Text -> Text -> DevicesSetState
- data DevicesSetState
- dssEnterpriseId :: Lens' DevicesSetState Text
- dssPayload :: Lens' DevicesSetState DeviceState
- dssUserId :: Lens' DevicesSetState Text
- dssDeviceId :: Lens' DevicesSetState Text
REST Resource
type DevicesSetStateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> ("state" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DeviceState :> Put '[JSON] DeviceState)))))))))) Source #
A resource alias for androidenterprise.devices.setState
method which the
DevicesSetState
request conforms to.
Creating a Request
Creates a value of DevicesSetState
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DevicesSetState Source #
Sets 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: devicesSetState
smart constructor.
Request Lenses
dssEnterpriseId :: Lens' DevicesSetState Text Source #
The ID of the enterprise.
dssPayload :: Lens' DevicesSetState DeviceState Source #
Multipart request metadata.
dssDeviceId :: Lens' DevicesSetState Text Source #
The ID of the device.