2025-01-13 18:51:26 +00:00
|
|
|
// ReSharper disable InconsistentNaming
|
2025-01-29 06:28:43 +00:00
|
|
|
|
|
|
|
using AIStudio.Tools.ERIClient.DataModel;
|
|
|
|
|
2025-01-13 18:51:26 +00:00
|
|
|
namespace AIStudio.Settings.DataModel;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// An external data source, accessed via an ERI server, cf. https://github.com/MindWorkAI/ERI.
|
|
|
|
/// </summary>
|
|
|
|
public readonly record struct DataSourceERI_V1 : IERIDataSource
|
|
|
|
{
|
|
|
|
public DataSourceERI_V1()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public uint Num { get; init; }
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public string Id { get; init; } = Guid.Empty.ToString();
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public string Name { get; init; } = string.Empty;
|
|
|
|
|
|
|
|
/// <inheritdoc />
|
|
|
|
public DataSourceType Type { get; init; } = DataSourceType.NONE;
|
|
|
|
|
2025-01-29 06:29:25 +00:00
|
|
|
/// <inheritdoc />
|
2025-01-13 18:51:26 +00:00
|
|
|
public string Hostname { get; init; } = string.Empty;
|
|
|
|
|
2025-01-29 06:29:25 +00:00
|
|
|
/// <inheritdoc />
|
2025-01-13 18:51:26 +00:00
|
|
|
public int Port { get; init; }
|
|
|
|
|
2025-01-29 06:29:25 +00:00
|
|
|
/// <inheritdoc />
|
2025-01-13 18:51:26 +00:00
|
|
|
public AuthMethod AuthMethod { get; init; } = AuthMethod.NONE;
|
|
|
|
|
2025-01-29 06:29:25 +00:00
|
|
|
/// <inheritdoc />
|
2025-01-13 18:51:26 +00:00
|
|
|
public string Username { get; init; } = string.Empty;
|
|
|
|
}
|