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 |
Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.
See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.partners.devices.claim
.
Synopsis
- type PartnersDevicesClaimResource = "v1" :> ("partners" :> (Capture "partnerId" (Textual Int64) :> ("devices:claim" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClaimDeviceRequest :> Post '[JSON] ClaimDeviceResponse))))))))))
- partnersDevicesClaim :: Int64 -> ClaimDeviceRequest -> PartnersDevicesClaim
- data PartnersDevicesClaim
- pdcXgafv :: Lens' PartnersDevicesClaim (Maybe Xgafv)
- pdcUploadProtocol :: Lens' PartnersDevicesClaim (Maybe Text)
- pdcAccessToken :: Lens' PartnersDevicesClaim (Maybe Text)
- pdcPartnerId :: Lens' PartnersDevicesClaim Int64
- pdcUploadType :: Lens' PartnersDevicesClaim (Maybe Text)
- pdcPayload :: Lens' PartnersDevicesClaim ClaimDeviceRequest
- pdcCallback :: Lens' PartnersDevicesClaim (Maybe Text)
REST Resource
type PartnersDevicesClaimResource = "v1" :> ("partners" :> (Capture "partnerId" (Textual Int64) :> ("devices:claim" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClaimDeviceRequest :> Post '[JSON] ClaimDeviceResponse)))))))))) Source #
A resource alias for androiddeviceprovisioning.partners.devices.claim
method which the
PartnersDevicesClaim
request conforms to.
Creating a Request
Creates a value of PartnersDevicesClaim
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PartnersDevicesClaim Source #
Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.
See: partnersDevicesClaim
smart constructor.
Instances
Request Lenses
pdcUploadProtocol :: Lens' PartnersDevicesClaim (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdcAccessToken :: Lens' PartnersDevicesClaim (Maybe Text) Source #
OAuth access token.
pdcPartnerId :: Lens' PartnersDevicesClaim Int64 Source #
Required. The ID of the reseller partner.
pdcUploadType :: Lens' PartnersDevicesClaim (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdcPayload :: Lens' PartnersDevicesClaim ClaimDeviceRequest Source #
Multipart request metadata.
pdcCallback :: Lens' PartnersDevicesClaim (Maybe Text) Source #
JSONP