TaskPlan
Record in Oadm.Sdk.Tasks · Oadm.Sdk.dll
What a run of a payload would do on the chosen devices (SDK 0.13.0, ITaskPlugin.PlanAsync): every device once, to run or skipped with a reason, and the warnings of the dialog (a change that can make devices unreachable).
public sealed record TaskPlan(IReadOnlyList<TaskPlanDevice> Devices)Parameters
Devices: Every device of the request, in its order.
Properties
Section titled “Properties”Details
Section titled “Details”IReadOnlyList<string> Details { get; init; }What the run does, in plain lines (“P3265-V, AXIS OS 12.11.77, aarch64 (4 devices): app_aarch64.eap”); empty without.
Devices
Section titled “Devices”IReadOnlyList<TaskPlanDevice> Devices { get; init; }Every device of the request, in its order.
Errors
Section titled “Errors”IReadOnlyList<PayloadError> Errors { get; init; }Problems the plan found in the payload with the uploads (an unreadable file, a choice only the user can make), each at its JSON field like ITaskPlugin.ValidatePayload: the preview then answers only these. Empty without.
IReadOnlyList<TaskPlanFile> Files { get; init; }The uploaded files the run would use, each with its name and SHA-256 from the upload store; empty without.
Warnings
Section titled “Warnings”IReadOnlyList<string> Warnings { get; init; }The dialog’s warnings for this run, in plain words; empty without.
Methods
Section titled “Methods”ByCanRun
Section titled “ByCanRun”static TaskPlan ByCanRun(ITaskPlugin plugin, IReadOnlyList<IDeviceInfo> devices)The plan of ITaskPlugin.CanRun: a device it cannot run on is skipped with ITaskPlugin.NotSupportedReason (or TaskSupportReasons.Default).