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 a device.
See: Android Management API Reference for androidmanagement.enterprises.devices.patch
.
Synopsis
- type EnterprisesDevicesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Patch '[JSON] Device)))))))))
- enterprisesDevicesPatch :: Device -> Text -> EnterprisesDevicesPatch
- data EnterprisesDevicesPatch
- edpXgafv :: Lens' EnterprisesDevicesPatch (Maybe Xgafv)
- edpUploadProtocol :: Lens' EnterprisesDevicesPatch (Maybe Text)
- edpUpdateMask :: Lens' EnterprisesDevicesPatch (Maybe GFieldMask)
- edpAccessToken :: Lens' EnterprisesDevicesPatch (Maybe Text)
- edpUploadType :: Lens' EnterprisesDevicesPatch (Maybe Text)
- edpPayload :: Lens' EnterprisesDevicesPatch Device
- edpName :: Lens' EnterprisesDevicesPatch Text
- edpCallback :: Lens' EnterprisesDevicesPatch (Maybe Text)
REST Resource
type EnterprisesDevicesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Device :> Patch '[JSON] Device))))))))) Source #
A resource alias for androidmanagement.enterprises.devices.patch
method which the
EnterprisesDevicesPatch
request conforms to.
Creating a Request
enterprisesDevicesPatch Source #
Creates a value of EnterprisesDevicesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnterprisesDevicesPatch Source #
Updates a device.
See: enterprisesDevicesPatch
smart constructor.
Instances
Request Lenses
edpUploadProtocol :: Lens' EnterprisesDevicesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
edpUpdateMask :: Lens' EnterprisesDevicesPatch (Maybe GFieldMask) Source #
The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
edpAccessToken :: Lens' EnterprisesDevicesPatch (Maybe Text) Source #
OAuth access token.
edpUploadType :: Lens' EnterprisesDevicesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
edpPayload :: Lens' EnterprisesDevicesPatch Device Source #
Multipart request metadata.
edpName :: Lens' EnterprisesDevicesPatch Text Source #
The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}.
edpCallback :: Lens' EnterprisesDevicesPatch (Maybe Text) Source #
JSONP