Files
git.stella-ops.org/src/Scanner/StellaOps.Scanner.WebService/Contracts/LinksetSummaryContracts.cs
StellaOps Bot 37cba83708
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Concelier Attestation Tests / attestation-tests (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
up
2025-12-03 00:10:19 +02:00

28 lines
903 B
C#

using System.Collections.Generic;
using System.Text.Json.Serialization;
namespace StellaOps.Scanner.WebService.Contracts;
public sealed record LinksetSummaryRequestDto
{
[JsonPropertyName("advisoryIds")]
public IReadOnlyList<string> AdvisoryIds { get; init; } = Array.Empty<string>();
[JsonPropertyName("imageDigest")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? ImageDigest { get; init; }
[JsonPropertyName("includePolicyOverlay")]
public bool IncludePolicyOverlay { get; init; }
}
public sealed record LinksetSummaryResponseDto
{
[JsonPropertyName("linksets")]
public IReadOnlyList<LinksetSummaryDto> Linksets { get; init; } = Array.Empty<LinksetSummaryDto>();
[JsonPropertyName("policy")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public RuntimePolicyImageResponseDto? Policy { get; init; }
}