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 |
Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.
See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.customers.devices.applyConfiguration
.
Synopsis
- type CustomersDevicesApplyConfigurationResource = "v1" :> (Capture "parent" Text :> ("devices:applyConfiguration" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomerApplyConfigurationRequest :> Post '[JSON] Empty)))))))))
- customersDevicesApplyConfiguration :: Text -> CustomerApplyConfigurationRequest -> CustomersDevicesApplyConfiguration
- data CustomersDevicesApplyConfiguration
- cdacParent :: Lens' CustomersDevicesApplyConfiguration Text
- cdacXgafv :: Lens' CustomersDevicesApplyConfiguration (Maybe Xgafv)
- cdacUploadProtocol :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
- cdacAccessToken :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
- cdacUploadType :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
- cdacPayload :: Lens' CustomersDevicesApplyConfiguration CustomerApplyConfigurationRequest
- cdacCallback :: Lens' CustomersDevicesApplyConfiguration (Maybe Text)
REST Resource
type CustomersDevicesApplyConfigurationResource = "v1" :> (Capture "parent" Text :> ("devices:applyConfiguration" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CustomerApplyConfigurationRequest :> Post '[JSON] Empty))))))))) Source #
A resource alias for androiddeviceprovisioning.customers.devices.applyConfiguration
method which the
CustomersDevicesApplyConfiguration
request conforms to.
Creating a Request
customersDevicesApplyConfiguration Source #
Creates a value of CustomersDevicesApplyConfiguration
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CustomersDevicesApplyConfiguration Source #
Applies a Configuration to the device to register the device for zero-touch enrollment. After applying a configuration to a device, the device automatically provisions itself on first boot, or next factory reset.
See: customersDevicesApplyConfiguration
smart constructor.
Instances
Request Lenses
cdacParent :: Lens' CustomersDevicesApplyConfiguration Text Source #
Required. The customer managing the device. An API resource name in the format `customers/[CUSTOMER_ID]`.
cdacUploadProtocol :: Lens' CustomersDevicesApplyConfiguration (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
cdacAccessToken :: Lens' CustomersDevicesApplyConfiguration (Maybe Text) Source #
OAuth access token.
cdacUploadType :: Lens' CustomersDevicesApplyConfiguration (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
cdacPayload :: Lens' CustomersDevicesApplyConfiguration CustomerApplyConfigurationRequest Source #
Multipart request metadata.