Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data Device = Device' {
- brand :: Maybe DeviceBrand
- createdTime :: Maybe POSIX
- currentSoftware :: Maybe Text
- description :: Maybe Text
- deviceAggregatedStatus :: Maybe DeviceAggregatedStatus
- deviceId :: Maybe Text
- lastUpdatedTime :: Maybe POSIX
- latestDeviceJob :: Maybe LatestDeviceJob
- leaseExpirationTime :: Maybe POSIX
- name :: Maybe Text
- provisioningStatus :: Maybe DeviceStatus
- tags :: Maybe (HashMap Text Text)
- type' :: Maybe DeviceType
- newDevice :: Device
- device_brand :: Lens' Device (Maybe DeviceBrand)
- device_createdTime :: Lens' Device (Maybe UTCTime)
- device_currentSoftware :: Lens' Device (Maybe Text)
- device_description :: Lens' Device (Maybe Text)
- device_deviceAggregatedStatus :: Lens' Device (Maybe DeviceAggregatedStatus)
- device_deviceId :: Lens' Device (Maybe Text)
- device_lastUpdatedTime :: Lens' Device (Maybe UTCTime)
- device_latestDeviceJob :: Lens' Device (Maybe LatestDeviceJob)
- device_leaseExpirationTime :: Lens' Device (Maybe UTCTime)
- device_name :: Lens' Device (Maybe Text)
- device_provisioningStatus :: Lens' Device (Maybe DeviceStatus)
- device_tags :: Lens' Device (Maybe (HashMap Text Text))
- device_type :: Lens' Device (Maybe DeviceType)
Documentation
A device.
See: newDevice
smart constructor.
Device' | |
|
Instances
Create a value of Device
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:brand:Device'
, device_brand
- The device's maker.
$sel:createdTime:Device'
, device_createdTime
- When the device was created.
$sel:currentSoftware:Device'
, device_currentSoftware
- A device's current software.
$sel:description:Device'
, device_description
- A description for the device.
$sel:deviceAggregatedStatus:Device'
, device_deviceAggregatedStatus
- A device's aggregated status. Including the device's connection
status, provisioning status, and lease status.
$sel:deviceId:Device'
, device_deviceId
- The device's ID.
$sel:lastUpdatedTime:Device'
, device_lastUpdatedTime
- When the device was updated.
$sel:latestDeviceJob:Device'
, device_latestDeviceJob
- A device's latest job. Includes the target image version, and the
update job status.
$sel:leaseExpirationTime:Device'
, device_leaseExpirationTime
- The device's lease expiration time.
$sel:name:Device'
, device_name
- The device's name.
$sel:provisioningStatus:Device'
, device_provisioningStatus
- The device's provisioning status.
$sel:tags:Device'
, device_tags
- The device's tags.
$sel:type':Device'
, device_type
- The device's type.
device_brand :: Lens' Device (Maybe DeviceBrand) Source #
The device's maker.
device_deviceAggregatedStatus :: Lens' Device (Maybe DeviceAggregatedStatus) Source #
A device's aggregated status. Including the device's connection status, provisioning status, and lease status.
device_latestDeviceJob :: Lens' Device (Maybe LatestDeviceJob) Source #
A device's latest job. Includes the target image version, and the update job status.
device_leaseExpirationTime :: Lens' Device (Maybe UTCTime) Source #
The device's lease expiration time.
device_provisioningStatus :: Lens' Device (Maybe DeviceStatus) Source #
The device's provisioning status.
device_type :: Lens' Device (Maybe DeviceType) Source #
The device's type.