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. After removing a device, a customer must contact their reseller to register the device into zero-touch enrollment again.
See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.customers.devices.unclaim
.
Synopsis
- type CustomersDevicesUnclaimResource = "v1" :> (Capture "parent" Text :> ("devices:unclaim" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomerUnclaimDeviceRequest :> Post '[JSON] Empty)))))))))
- customersDevicesUnclaim :: Text -> CustomerUnclaimDeviceRequest -> CustomersDevicesUnclaim
- data CustomersDevicesUnclaim
- cduParent :: Lens' CustomersDevicesUnclaim Text
- cduXgafv :: Lens' CustomersDevicesUnclaim (Maybe Xgafv)
- cduUploadProtocol :: Lens' CustomersDevicesUnclaim (Maybe Text)
- cduAccessToken :: Lens' CustomersDevicesUnclaim (Maybe Text)
- cduUploadType :: Lens' CustomersDevicesUnclaim (Maybe Text)
- cduPayload :: Lens' CustomersDevicesUnclaim CustomerUnclaimDeviceRequest
- cduCallback :: Lens' CustomersDevicesUnclaim (Maybe Text)
REST Resource
type CustomersDevicesUnclaimResource = "v1" :> (Capture "parent" Text :> ("devices:unclaim" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomerUnclaimDeviceRequest :> Post '[JSON] Empty))))))))) Source #
A resource alias for androiddeviceprovisioning.customers.devices.unclaim
method which the
CustomersDevicesUnclaim
request conforms to.
Creating a Request
customersDevicesUnclaim Source #
Creates a value of CustomersDevicesUnclaim
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CustomersDevicesUnclaim Source #
Unclaims a device from a customer and removes it from zero-touch enrollment. After removing a device, a customer must contact their reseller to register the device into zero-touch enrollment again.
See: customersDevicesUnclaim
smart constructor.
Instances
Request Lenses
cduParent :: Lens' CustomersDevicesUnclaim Text Source #
Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`.
cduUploadProtocol :: Lens' CustomersDevicesUnclaim (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cduAccessToken :: Lens' CustomersDevicesUnclaim (Maybe Text) Source #
OAuth access token.
cduUploadType :: Lens' CustomersDevicesUnclaim (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cduPayload :: Lens' CustomersDevicesUnclaim CustomerUnclaimDeviceRequest Source #
Multipart request metadata.
cduCallback :: Lens' CustomersDevicesUnclaim (Maybe Text) Source #
JSONP