| 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.Patch
Description
Updates the device policy. This method supports patch semantics.
See: Google Play EMM API Reference for androidenterprise.devices.patch.
Synopsis
- type DevicesPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> (QueryParam "updateMask" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Patch '[JSON] Device))))))))))
- devicesPatch :: Text -> Device -> Text -> Text -> DevicesPatch
- data DevicesPatch
- dpUpdateMask :: Lens' DevicesPatch (Maybe Text)
- dpEnterpriseId :: Lens' DevicesPatch Text
- dpPayload :: Lens' DevicesPatch Device
- dpUserId :: Lens' DevicesPatch Text
- dpDeviceId :: Lens' DevicesPatch Text
REST Resource
type DevicesPatchResource = "androidenterprise" :> ("v1" :> ("enterprises" :> (Capture "enterpriseId" Text :> ("users" :> (Capture "userId" Text :> ("devices" :> (Capture "deviceId" Text :> (QueryParam "updateMask" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Patch '[JSON] Device)))))))))) Source #
A resource alias for androidenterprise.devices.patch method which the
DevicesPatch request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Device | |
| -> Text | |
| -> Text | |
| -> DevicesPatch |
Creates a value of DevicesPatch with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DevicesPatch Source #
Updates the device policy. This method supports patch semantics.
See: devicesPatch smart constructor.
Instances
Request Lenses
dpUpdateMask :: Lens' DevicesPatch (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=,,...
dpEnterpriseId :: Lens' DevicesPatch Text Source #
The ID of the enterprise.
dpDeviceId :: Lens' DevicesPatch Text Source #
The ID of the device.