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 |
Updates the device policy
See: Google Play EMM API Reference for androidenterprise.devices.update
.
Synopsis
- type DevicesUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> (QueryParam "updateMask" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Put '[JSON] Device))))))))))
- devicesUpdate :: Text -> Device -> Text -> Text -> DevicesUpdate
- data DevicesUpdate
- duUpdateMask :: Lens' DevicesUpdate (Maybe Text)
- duEnterpriseId :: Lens' DevicesUpdate Text
- duPayload :: Lens' DevicesUpdate Device
- duUserId :: Lens' DevicesUpdate Text
- duDeviceId :: Lens' DevicesUpdate Text
REST Resource
type DevicesUpdateResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> (QueryParam "updateMask" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Put '[JSON] Device)))))))))) Source #
A resource alias for androidenterprise.devices.update
method which the
DevicesUpdate
request conforms to.
Creating a Request
Creates a value of DevicesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DevicesUpdate Source #
Updates the device policy
See: devicesUpdate
smart constructor.
Instances
Request Lenses
duUpdateMask :: Lens' DevicesUpdate (Maybe Text) Source #
Mask that identifies which fields to update. If not set, all modifiable fields will be modified. When set in a query parameter, this field should be specified as updateMask=,,...
duEnterpriseId :: Lens' DevicesUpdate Text Source #
The ID of the enterprise.
duDeviceId :: Lens' DevicesUpdate Text Source #
The ID of the device.