up
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
Policy Lint & Smoke / policy-lint (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
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
Policy Lint & Smoke / policy-lint (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
This commit is contained in:
37
src/Cli/StellaOps.Cli/Services/Models/TenantModels.cs
Normal file
37
src/Cli/StellaOps.Cli/Services/Models/TenantModels.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace StellaOps.Cli.Services.Models;
|
||||
|
||||
/// <summary>
|
||||
/// Response from GET /console/tenants endpoint.
|
||||
/// </summary>
|
||||
internal sealed record TenantListResponse(
|
||||
[property: JsonPropertyName("tenants")] IReadOnlyList<TenantInfo> Tenants);
|
||||
|
||||
/// <summary>
|
||||
/// Tenant metadata as returned by the Authority service.
|
||||
/// </summary>
|
||||
internal sealed record TenantInfo(
|
||||
[property: JsonPropertyName("id")] string Id,
|
||||
[property: JsonPropertyName("displayName")] string DisplayName,
|
||||
[property: JsonPropertyName("status")] string Status,
|
||||
[property: JsonPropertyName("isolationMode")] string IsolationMode,
|
||||
[property: JsonPropertyName("defaultRoles")] IReadOnlyList<string> DefaultRoles,
|
||||
[property: JsonPropertyName("projects")] IReadOnlyList<string> Projects);
|
||||
|
||||
/// <summary>
|
||||
/// Persistent tenant profile stored at ~/.stellaops/profile.json.
|
||||
/// </summary>
|
||||
internal sealed record TenantProfile
|
||||
{
|
||||
[JsonPropertyName("activeTenant")]
|
||||
public string? ActiveTenant { get; init; }
|
||||
|
||||
[JsonPropertyName("activeTenantDisplayName")]
|
||||
public string? ActiveTenantDisplayName { get; init; }
|
||||
|
||||
[JsonPropertyName("lastUpdated")]
|
||||
public DateTimeOffset? LastUpdated { get; init; }
|
||||
}
|
||||
Reference in New Issue
Block a user