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 |
Creates a job to run on one or more devices. A job can update a device's software or reboot it.
Synopsis
- data CreateJobForDevices = CreateJobForDevices' {}
- newCreateJobForDevices :: NonEmpty Text -> JobType -> CreateJobForDevices
- createJobForDevices_deviceJobConfig :: Lens' CreateJobForDevices (Maybe DeviceJobConfig)
- createJobForDevices_deviceIds :: Lens' CreateJobForDevices (NonEmpty Text)
- createJobForDevices_jobType :: Lens' CreateJobForDevices JobType
- data CreateJobForDevicesResponse = CreateJobForDevicesResponse' {
- httpStatus :: Int
- jobs :: [Job]
- newCreateJobForDevicesResponse :: Int -> CreateJobForDevicesResponse
- createJobForDevicesResponse_httpStatus :: Lens' CreateJobForDevicesResponse Int
- createJobForDevicesResponse_jobs :: Lens' CreateJobForDevicesResponse [Job]
Creating a Request
data CreateJobForDevices Source #
See: newCreateJobForDevices
smart constructor.
CreateJobForDevices' | |
|
Instances
newCreateJobForDevices Source #
:: NonEmpty Text | |
-> JobType | |
-> CreateJobForDevices |
Create a value of CreateJobForDevices
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:deviceJobConfig:CreateJobForDevices'
, createJobForDevices_deviceJobConfig
- Configuration settings for a software update job.
$sel:deviceIds:CreateJobForDevices'
, createJobForDevices_deviceIds
- IDs of target devices.
CreateJobForDevices
, createJobForDevices_jobType
- The type of job to run.
Request Lenses
createJobForDevices_deviceJobConfig :: Lens' CreateJobForDevices (Maybe DeviceJobConfig) Source #
Configuration settings for a software update job.
createJobForDevices_deviceIds :: Lens' CreateJobForDevices (NonEmpty Text) Source #
IDs of target devices.
createJobForDevices_jobType :: Lens' CreateJobForDevices JobType Source #
The type of job to run.
Destructuring the Response
data CreateJobForDevicesResponse Source #
See: newCreateJobForDevicesResponse
smart constructor.
CreateJobForDevicesResponse' | |
|
Instances
newCreateJobForDevicesResponse Source #
Create a value of CreateJobForDevicesResponse
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:httpStatus:CreateJobForDevicesResponse'
, createJobForDevicesResponse_httpStatus
- The response's http status code.
$sel:jobs:CreateJobForDevicesResponse'
, createJobForDevicesResponse_jobs
- A list of jobs.
Response Lenses
createJobForDevicesResponse_httpStatus :: Lens' CreateJobForDevicesResponse Int Source #
The response's http status code.
createJobForDevicesResponse_jobs :: Lens' CreateJobForDevicesResponse [Job] Source #
A list of jobs.