Some checks failed
Build and Publish Docker Image / build-and-push (push) Has been cancelled
- Implemented CreateInstanceView for creating new instances. - Added HostsView for managing SSH hosts with CRUD operations. - Created InstancesView for displaying and managing instances. - Developed LogsView for viewing operation logs. - Introduced SecretsView for managing secrets associated with hosts. - Established SettingsView for configuring application settings. - Created MainWindow as the main application window with navigation. - Added app manifest and configuration files for logging and settings.
37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace OTSSignsOrchestrator.Models.DTOs;
|
|
|
|
public class CreateInstanceDto
|
|
{
|
|
/// <summary>Full display name of the customer (stored as YAML comment).</summary>
|
|
[Required, MaxLength(100)]
|
|
public string CustomerName { get; set; } = string.Empty;
|
|
|
|
/// <summary>3-letter uppercase abbreviation used as prefix in all stack resource names.</summary>
|
|
[Required, StringLength(3, MinimumLength = 3, ErrorMessage = "Abbreviation must be exactly 3 letters.")]
|
|
[RegularExpression("^[a-zA-Z]{3}$", ErrorMessage = "Abbreviation must be 3 letters (a-z, A-Z).")]
|
|
public string CustomerAbbrev { get; set; } = string.Empty;
|
|
|
|
// TemplateRepoUrl and TemplateRepoPat are sourced from app settings (Settings page) and
|
|
// optionally overridden here per-instance.
|
|
[MaxLength(500)]
|
|
public string? TemplateRepoUrl { get; set; }
|
|
|
|
[MaxLength(500)]
|
|
public string? TemplateRepoPat { get; set; }
|
|
|
|
/// <summary>Override the theme host path from settings (e.g. /cms/ots-theme).</summary>
|
|
[MaxLength(500)]
|
|
public string? ThemeHostPath { get; set; }
|
|
|
|
/// <summary>Comma-separated placement constraints.</summary>
|
|
public List<string>? Constraints { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? XiboUsername { get; set; }
|
|
|
|
[MaxLength(200)]
|
|
public string? XiboPassword { get; set; }
|
|
}
|