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 |
Unclaims a device from a customer and removes it from zero-touch enrollment.
See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.partners.devices.unclaim
.
Synopsis
- type PartnersDevicesUnclaimResource = "v1" :> ("partners" :> (Capture "partnerId" (Textual Int64) :> ("devices:unclaim" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UnclaimDeviceRequest :> Post '[JSON] Empty))))))))))
- partnersDevicesUnclaim :: Int64 -> UnclaimDeviceRequest -> PartnersDevicesUnclaim
- data PartnersDevicesUnclaim
- pduXgafv :: Lens' PartnersDevicesUnclaim (Maybe Xgafv)
- pduUploadProtocol :: Lens' PartnersDevicesUnclaim (Maybe Text)
- pduAccessToken :: Lens' PartnersDevicesUnclaim (Maybe Text)
- pduPartnerId :: Lens' PartnersDevicesUnclaim Int64
- pduUploadType :: Lens' PartnersDevicesUnclaim (Maybe Text)
- pduPayload :: Lens' PartnersDevicesUnclaim UnclaimDeviceRequest
- pduCallback :: Lens' PartnersDevicesUnclaim (Maybe Text)
REST Resource
type PartnersDevicesUnclaimResource = "v1" :> ("partners" :> (Capture "partnerId" (Textual Int64) :> ("devices:unclaim" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UnclaimDeviceRequest :> Post '[JSON] Empty)))))))))) Source #
A resource alias for androiddeviceprovisioning.partners.devices.unclaim
method which the
PartnersDevicesUnclaim
request conforms to.
Creating a Request
partnersDevicesUnclaim Source #
Creates a value of PartnersDevicesUnclaim
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PartnersDevicesUnclaim Source #
Unclaims a device from a customer and removes it from zero-touch enrollment.
See: partnersDevicesUnclaim
smart constructor.
Instances
Request Lenses
pduUploadProtocol :: Lens' PartnersDevicesUnclaim (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pduAccessToken :: Lens' PartnersDevicesUnclaim (Maybe Text) Source #
OAuth access token.
pduPartnerId :: Lens' PartnersDevicesUnclaim Int64 Source #
Required. The ID of the reseller partner.
pduUploadType :: Lens' PartnersDevicesUnclaim (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pduPayload :: Lens' PartnersDevicesUnclaim UnclaimDeviceRequest Source #
Multipart request metadata.
pduCallback :: Lens' PartnersDevicesUnclaim (Maybe Text) Source #
JSONP