2025-02-11 23:12:06 +00:00
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.Text.Json.Nodes;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Elsa.Connections.Models;
|
|
|
|
|
|
|
|
|
|
|
|
public class ConnectionInputModel
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The Name of the Connection
|
|
|
|
|
|
/// </summary>
|
2025-02-23 13:07:32 +00:00
|
|
|
|
[Required] public string Name { get; set; } = null!;
|
2025-02-11 23:12:06 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The Description of the Connection
|
|
|
|
|
|
/// </summary>
|
2025-02-23 13:07:32 +00:00
|
|
|
|
public string? Description { get; set; }
|
|
|
|
|
|
|
2025-02-11 23:12:06 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The Configuration of the Connection in a Json Format
|
|
|
|
|
|
/// </summary>
|
2025-02-23 13:07:32 +00:00
|
|
|
|
public JsonObject ConnectionConfiguration { get; set; } = new();
|
2025-02-11 23:12:06 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The Connection Type Name
|
|
|
|
|
|
/// </summary>
|
2025-02-23 13:07:32 +00:00
|
|
|
|
[Required] public string ConnectionType { get; set; } = null!;
|
|
|
|
|
|
}
|