ActionSettings
Static class in Oadm.Sdk.Actions · Oadm.Sdk.dll
The host’s checks of declarative action settings (ActionField), shared by the server (before a rule is saved) and the rule dialog (errors below the fields): required values, number ranges, choices, lengths.
public static class ActionSettingsMethods
Section titled “Methods”static Dictionary<string, string> Check(IReadOnlyList<ActionField> fields, JsonObject settings, bool statefulRule, IReadOnlyCollection<string>? storedSecrets = null)Errors per field key of the visible fields. storedSecrets: password fields that have a value on the server (an empty field keeps it, so it counts as filled).
Defaults
Section titled “Defaults”static JsonObject Defaults(IReadOnlyList<ActionField> fields)A new action’s settings: every field’s ActionField.Default.
IsVisible
Section titled “IsVisible”static bool IsVisible(ActionField field, JsonObject settings, bool statefulRule)Whether field is shown with these settings (ActionField.VisibleWhenKey, off-edge fields only on stateful rules).
static IReadOnlyList<KeyValuePair<string, string>> Pairs(JsonElement value)The rows of a ActionFieldType.KeyValues value (a JSON array of {“name”, “value”}), without empty names.
static string? Text(JsonObject settings, string key)A setting as text: strings as they are, numbers and booleans in invariant JSON form, null when missing.
Fields
Section titled “Fields”MaxPairs
Section titled “MaxPairs”const int MaxPairs = 50Most rows of a ActionFieldType.KeyValues setting.