Table of Contents

Class MigrationBatchResponse

Namespace
Honua.Sdk.Admin.Models
Assembly
Honua.Sdk.Admin.dll

Response for batch start and batch status polling (POST /api/v1/admin/import/migrations, GET .../{batchId}).

public sealed record MigrationBatchResponse : IEquatable<MigrationBatchResponse>
Inheritance
MigrationBatchResponse
Implements
Inherited Members

Properties

ApplyRelationships

Whether relationship-apply was requested.

[JsonPropertyName("applyRelationships")]
public bool ApplyRelationships { get; init; }

Property Value

bool

BatchId

Stable batch id.

[JsonPropertyName("batchId")]
public required string BatchId { get; init; }

Property Value

string

CancelledChildren

Number of cancelled children.

[JsonPropertyName("cancelledChildren")]
public int CancelledChildren { get; init; }

Property Value

int

Children

Per-child progress, ordered by execution ordinal.

[JsonPropertyName("children")]
public IReadOnlyList<MigrationBatchChildResponse> Children { get; init; }

Property Value

IReadOnlyList<MigrationBatchChildResponse>

CompletedAt

UTC completion instant, null while running.

[JsonPropertyName("completedAt")]
public DateTimeOffset? CompletedAt { get; init; }

Property Value

DateTimeOffset?

ConstructAccounting

Pre-apply accounting of every construct discovered on the source against this batch's selection. Present from the moment the batch starts; its differences fold into FidelityVerdict when the batch finishes.

[JsonPropertyName("constructAccounting")]
public MigrationConstructAccountingReport? ConstructAccounting { get; init; }

Property Value

MigrationConstructAccountingReport

FailedChildren

Number of failed children.

[JsonPropertyName("failedChildren")]
public int FailedChildren { get; init; }

Property Value

int

FidelityDifferences

Per-resource differences that produced FidelityVerdict, ordered by code then subject. Empty when the server omits the field.

[JsonPropertyName("fidelityDifferences")]
public IReadOnlyList<MigrationFidelityDifference> FidelityDifferences { get; init; }

Property Value

IReadOnlyList<MigrationFidelityDifference>

FidelityVerdict

Service-level migration fidelity verdict, such as full-fidelity, unverified, or incomplete. Null while the batch is running. Kept as a string so the server can add verdicts. Status says whether the batch finished; this says whether the migrated service is proven equivalent to the source.

[JsonPropertyName("fidelityVerdict")]
public string? FidelityVerdict { get; init; }

Property Value

string

RelationshipsApplied

Whether relationship-apply has run.

[JsonPropertyName("relationshipsApplied")]
public bool RelationshipsApplied { get; init; }

Property Value

bool

SourceDisplayName

Operator-visible source display name.

[JsonPropertyName("sourceDisplayName")]
public string? SourceDisplayName { get; init; }

Property Value

string

SourceKind

Source kind.

[JsonPropertyName("sourceKind")]
public required string SourceKind { get; init; }

Property Value

string

SourceUrl

Redacted source URL.

[SuppressMessage("Design", "CA1056:URI-like properties should not be strings", Justification = "The migration run JSON contract represents source URLs as strings.")]
[JsonPropertyName("sourceUrl")]
public string SourceUrl { get; init; }

Property Value

string

StartedAt

UTC start instant.

[JsonPropertyName("startedAt")]
public DateTimeOffset StartedAt { get; init; }

Property Value

DateTimeOffset

Status

Rolled-up batch status: running, succeeded, failed, cancelled, needs-review.

[JsonPropertyName("status")]
public required string Status { get; init; }

Property Value

string

StatusNote

Operator-visible note.

[JsonPropertyName("statusNote")]
public string? StatusNote { get; init; }

Property Value

string

SucceededChildren

Number of succeeded children.

[JsonPropertyName("succeededChildren")]
public int SucceededChildren { get; init; }

Property Value

int

TotalChildren

Total child layer imports in the footprint.

[JsonPropertyName("totalChildren")]
public int TotalChildren { get; init; }

Property Value

int