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 |
Network.Google.Resource.AndroidEnterprise.Devices.SetState
Description
Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
See: 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)))))))))) #
A resource alias for androidenterprise.devices.setState
method which the
DevicesSetState
request conforms to.
Creating a Request
Arguments
:: Text | |
-> DeviceState | |
-> Text | |
-> Text | |
-> DevicesSetState |
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 #
Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
See: devicesSetState
smart constructor.
Instances
Request Lenses
dssEnterpriseId :: Lens' DevicesSetState Text #
The ID of the enterprise.
dssPayload :: Lens' DevicesSetState DeviceState #
Multipart request metadata.
dssUserId :: Lens' DevicesSetState Text #
The ID of the user.
dssDeviceId :: Lens' DevicesSetState Text #
The ID of the device.