// 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 ServerModules { get; init; } /// /// Gets or sets the secret provider modules. /// public required IEnumerable SecretProviderModules { get; init; } /// /// Gets or sets a value indicating whether alternate update URLs are being used. /// public required bool UsingAlternateUpdateURLs { get; init; } /// /// Gets or sets the log levels. /// public required string[] LogLevels { get; init; } /// /// Gets or sets the special folders. /// public required IEnumerable SpecialFolders { get; init; } /// /// Gets or sets the browser locale. /// public required LocaleDto BrowserLocale { get; init; } /// /// Gets or sets the supported locales. /// public required IEnumerable SupportedLocales { get; init; } /// /// Gets or sets a value indicating whether the browser locale is supported. /// public required bool BrowserLocaleSupported { get; init; } /// /// The timezones available on the system /// public required IEnumerable TimeZones { get; init; } /// /// Represents a timezone. /// public class TimeZoneDto { /// /// Gets or sets the ID. /// public required string ID { get; init; } /// /// Gets or sets the display name. /// public required string DisplayName { get; init; } /// /// Gets or sets the base UTC offset. /// public required string CurrentUTCOffset { get; init; } } /// /// Represents a special folder. /// public class SpecialFolderDto { /// /// Gets or sets the ID. /// public required string ID { get; init; } /// /// Gets or sets the path. /// public required string Path { get; init; } } /// /// Represents a locale. /// public class LocaleDto { /// /// Gets or sets the code. /// public required string Code { get; init; } /// /// Gets or sets the English name. /// public required string EnglishName { get; init; } /// /// Gets or sets the display name. /// public required string DisplayName { get; init; } } }