PluginToolInput<TArgs>
Record in Oadm.Sdk.Plugins · Oadm.Sdk.dll
The arguments of a call of a tool of PluginPageTools<TOwner>.
public sealed record PluginToolInput<TArgs>(TArgs Args, PluginToolDevices Devices, PluginToolPage Page)Parameters
Args: The arguments, read and checked against their validation attributes.Devices: The devices of a tool withPluginTool.DeviceFilter(none for another tool). Look each id up with the caller.Page: The page of a tool withPluginTool.Paged(the first page for another tool).
Properties
Section titled “Properties”TArgs Args { get; init; }The arguments, read and checked against their validation attributes.
Devices
Section titled “Devices”PluginToolDevices Devices { get; init; }The devices of a tool with PluginTool.DeviceFilter (none for another tool). Look each id up with the caller.
bool IsRun { get; init; }True in the run of a change (its check runs again before the run’s code); false in a preview, a check of a secret and a read.
PluginToolPage Page { get; init; }The page of a tool with PluginTool.Paged (the first page for another tool).
Secrets
Section titled “Secrets”IReadOnlyDictionary<string, string> Secrets { get; init; }The secrets the person entered (PluginTool.Secrets, PluginToolPlan.SecretsNeeded): none in a preview and a read, all of them in the run, the one being checked when the host asks the check whether an entered value fits (refuse it with a field error at secrets.<name>). Never write one into an answer, a log line or an audit detail.
Methods
Section titled “Methods”Secret
Section titled “Secret”string? Secret(string name)The secret name; null when this call has none (a preview).