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 batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read Long‑running batch operations.
See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.partners.devices.claimAsync
.
Synopsis
- type PartnersDevicesClaimAsyncResource = "v1" :> ("partners" :> (Capture "partnerId" (Textual Int64) :> ("devices:claimAsync" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClaimDevicesRequest :> Post '[JSON] Operation))))))))))
- partnersDevicesClaimAsync :: Int64 -> ClaimDevicesRequest -> PartnersDevicesClaimAsync
- data PartnersDevicesClaimAsync
- pdcaXgafv :: Lens' PartnersDevicesClaimAsync (Maybe Xgafv)
- pdcaUploadProtocol :: Lens' PartnersDevicesClaimAsync (Maybe Text)
- pdcaAccessToken :: Lens' PartnersDevicesClaimAsync (Maybe Text)
- pdcaPartnerId :: Lens' PartnersDevicesClaimAsync Int64
- pdcaUploadType :: Lens' PartnersDevicesClaimAsync (Maybe Text)
- pdcaPayload :: Lens' PartnersDevicesClaimAsync ClaimDevicesRequest
- pdcaCallback :: Lens' PartnersDevicesClaimAsync (Maybe Text)
REST Resource
type PartnersDevicesClaimAsyncResource = "v1" :> ("partners" :> (Capture "partnerId" (Textual Int64) :> ("devices:claimAsync" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ClaimDevicesRequest :> Post '[JSON] Operation)))))))))) Source #
A resource alias for androiddeviceprovisioning.partners.devices.claimAsync
method which the
PartnersDevicesClaimAsync
request conforms to.
Creating a Request
partnersDevicesClaimAsync Source #
Creates a value of PartnersDevicesClaimAsync
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PartnersDevicesClaimAsync Source #
Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read Long‑running batch operations.
See: partnersDevicesClaimAsync
smart constructor.
Instances
Request Lenses
pdcaUploadProtocol :: Lens' PartnersDevicesClaimAsync (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdcaAccessToken :: Lens' PartnersDevicesClaimAsync (Maybe Text) Source #
OAuth access token.
pdcaPartnerId :: Lens' PartnersDevicesClaimAsync Int64 Source #
Required. The ID of the reseller partner.
pdcaUploadType :: Lens' PartnersDevicesClaimAsync (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdcaPayload :: Lens' PartnersDevicesClaimAsync ClaimDevicesRequest Source #
Multipart request metadata.
pdcaCallback :: Lens' PartnersDevicesClaimAsync (Maybe Text) Source #
JSONP