// Copyright (C) 2025, The Duplicati Team
// https://duplicati.com, hello@duplicati.com
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// to deal in the Software without restriction, including without limitation
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
// and/or sell copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
using Duplicati.Server.Serialization.Interface;
namespace Duplicati.WebserverCore.Dto;
public sealed record SystemInfoDto
{
///
/// Gets or sets the API version.
///
public required int APIVersion { get; init; }
///
/// Gets or sets the password placeholder.
///
public required string PasswordPlaceholder { get; init; }
///
/// Gets or sets the server version.
///
public required string? ServerVersion { get; init; }
///
/// Gets or sets the server version name.
///
public required string ServerVersionName { get; init; }
///
/// Gets or sets the server version type.
///
public required string? ServerVersionType { get; init; }
///
/// The default URL to present for remote control registration
///
public required string RemoteControlRegistrationUrl { get; init; }
///
/// Gets or sets the started by.
///
public required string StartedBy { get; init; }
///
/// Gets or sets the default update channel.
///
public required string DefaultUpdateChannel { get; init; }
///
/// Gets or sets the default usage report level.
///
public required string DefaultUsageReportLevel { get; init; }
///
/// Gets or sets the server time.
///
public required DateTime ServerTime { get; init; }
///
/// Gets or sets the server time zone.
///
public required string ServerTimeZone { get; init; }
///
/// Gets or sets the OS type.
///
public required string OSType { get; init; }
///
/// Gets or sets the OS version.
///
public required string OSVersion { get; init; }
///
/// Gets or sets the directory separator.
///
public required char DirectorySeparator { get; init; }
///
/// Gets or sets the path separator.
///
public required char PathSeparator { get; init; }
///
/// Gets or sets a value indicating whether the filesystem is case sensitive.
///
public required bool CaseSensitiveFilesystem { get; init; }
///
/// Gets or sets the machine name.
///
public required string MachineName { get; init; }
///
/// Gets or sets the package type ID.
///
public required string PackageTypeId { get; init; }
///
/// Gets or sets the user name.
///
public required string UserName { get; init; }
///
/// Gets or sets the new line character.
///
public required string NewLine { get; init; }
///
/// Gets or sets the CLR version.
///
public required string CLRVersion { get; init; }
///
/// Gets or sets the options.
///
public required IEnumerable Options { get; init; }
///
/// Gets or sets the compression modules.
///
public required IEnumerable CompressionModules { get; init; }
///
/// Gets or sets the encryption modules.
///
public required IEnumerable EncryptionModules { get; init; }
///
/// Gets or sets the backend modules.
///
public required IEnumerable BackendModules { get; init; }
///
/// Gets or sets the generic modules.
///
public required IEnumerable GenericModules { get; init; }
///
/// Gets or sets the web modules.
///
public required IEnumerable WebModules { get; init; }
///
/// Gets or sets the connection modules.
///
public required IEnumerable ConnectionModules { get; init; }
///
/// Gets or sets the server modules.
///
public required IEnumerable