Some checks failed
api-governance / spectral-lint (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
oas-ci / oas-validate (push) Has been cancelled
SDK Publish & Sign / sdk-publish (push) Has been cancelled
Policy Lint & Smoke / policy-lint (push) Has been cancelled
Policy Simulation / policy-simulate (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
18 lines
784 B
C#
18 lines
784 B
C#
using System.Collections.Immutable;
|
|
using System.Text.Json.Serialization;
|
|
using StellaOps.Policy.Engine.Services;
|
|
|
|
namespace StellaOps.Policy.Engine.Domain;
|
|
|
|
public sealed record PolicyBundleRequest(
|
|
[property: JsonPropertyName("dsl")] PolicyDslPayload Dsl,
|
|
[property: JsonPropertyName("signingKeyId")] string? SigningKeyId);
|
|
|
|
public sealed record PolicyBundleResponse(
|
|
[property: JsonPropertyName("success")] bool Success,
|
|
[property: JsonPropertyName("digest")] string? Digest,
|
|
[property: JsonPropertyName("signature")] string? Signature,
|
|
[property: JsonPropertyName("sizeBytes")] int SizeBytes,
|
|
[property: JsonPropertyName("createdAt")] DateTimeOffset? CreatedAt,
|
|
[property: JsonPropertyName("diagnostics")] ImmutableArray<PolicyIssue> Diagnostics);
|