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
28 lines
903 B
C#
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; }
|
|
}
|