200b84f49a
* Add Instances base (#6) * Use Uri for checks in GetAccounts function (#8) * Add integration and perf tests to sln (#9) * Remove perf tests (#10) * remove perf tests * do all unit tests * Code coverage (#11) * code coverage * enable codecov for GA * Update README.md * Update coverage and dependencies (#12) * Update coverage and dependencies * fmt * add codecov config * merge DUI3/Alpha into sdk (#13) * merge DUI3/Alpha into sdk * formatting * Merge Objects dui3/alpha -> dev (#14) * merge DUI3/Alpha into sdk * formatting * Objects changes * Objects tests * Unit test project * update codecov to be less intrusive (#15) * update codecov to be less intrusive * fix codecov yaml * add coverage exclusion * Merge sharp `dui3/alpha` -> sdk `main` (#16) * Merge * csharpier format * Fixed polysharp issues * Integration Tests * Fixes * Some nullability fixes (#17) * add coverage exclusion * fix some tests and fix nullability errors --------- Co-authored-by: Oğuzhan Koral <45078678+oguzhankoral@users.noreply.github.com> Co-authored-by: Jedd Morgan <45512892+JR-Morgan@users.noreply.github.com>
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
#nullable disable
|
|
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Speckle.Core.Api.GraphQL.Models;
|
|
|
|
[ClassInterface(ClassInterfaceType.AutoDual)]
|
|
[ComVisible(true)]
|
|
public sealed class ServerInfo
|
|
{
|
|
public string name { get; init; }
|
|
public string company { get; init; }
|
|
public string version { get; init; }
|
|
public string adminContact { get; init; }
|
|
public string description { get; init; }
|
|
|
|
/// <remarks>
|
|
/// This field is not returned from the GQL API,
|
|
/// it should be populated after construction from the response headers.
|
|
/// see <see cref="Speckle.Core.Credentials.AccountManager"/>
|
|
/// </remarks>
|
|
public bool frontend2 { get; set; }
|
|
|
|
/// <remarks>
|
|
/// This field is not returned from the GQL API,
|
|
/// it should be populated after construction.
|
|
/// see <see cref="Speckle.Core.Credentials.AccountManager"/>
|
|
/// </remarks>
|
|
public string url { get; set; }
|
|
|
|
public ServerMigration migration { get; init; }
|
|
}
|
|
|
|
public sealed class ServerMigration
|
|
{
|
|
/// <summary>
|
|
/// New URI where this server is now deployed
|
|
/// </summary>
|
|
public Uri movedTo { get; set; }
|
|
|
|
/// <summary>
|
|
/// Previous URI where this server used to be deployed
|
|
/// </summary>
|
|
public Uri movedFrom { get; set; }
|
|
}
|