76 lines
2.2 KiB
C#
76 lines
2.2 KiB
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace xApi.Models
|
|
{
|
|
public class AzureConnectionDataDto
|
|
{
|
|
[JsonPropertyName("instanceId")]
|
|
public string? InstanceId { get; set; }
|
|
|
|
[JsonPropertyName("deploymentId")]
|
|
public string? DeploymentId { get; set; }
|
|
|
|
[JsonPropertyName("deploymentType")]
|
|
public string? DeploymentType { get; set; }
|
|
|
|
[JsonPropertyName("authorizedUser")]
|
|
public AzureUserDetailsDto? AuthorizedUser { get; set; }
|
|
|
|
[JsonPropertyName("authenticatedUser")]
|
|
public AzureUserDetailsDto? AuthenticatedUser { get; set; }
|
|
|
|
[JsonPropertyName("locationServiceData")]
|
|
public AzureLocationServiceDto? LocationServiceData { get; set; }
|
|
}
|
|
|
|
public class AzurePropertyValueDto
|
|
{
|
|
[JsonPropertyName("$type")]
|
|
public string? Type { get; set; }
|
|
|
|
[JsonPropertyName("$value")]
|
|
public string? Value { get; set; }
|
|
}
|
|
|
|
public class AzureUserDetailsDto
|
|
{
|
|
[JsonPropertyName("id")]
|
|
public string? Id { get; set; }
|
|
|
|
[JsonPropertyName("isActive")]
|
|
public bool IsActive { get; set; }
|
|
|
|
[JsonPropertyName("metaTypeId")]
|
|
public int MetaTypeId { get; set; }
|
|
|
|
[JsonPropertyName("descriptor")]
|
|
public string? Descriptor { get; set; }
|
|
|
|
[JsonPropertyName("resourceVersion")]
|
|
public int ResourceVersion { get; set; }
|
|
|
|
[JsonPropertyName("subjectDescriptor")]
|
|
public string? SubjectDescriptor { get; set; }
|
|
|
|
[JsonPropertyName("providerDisplayName")]
|
|
public string? ProviderDisplayName { get; set; }
|
|
|
|
[JsonPropertyName("properties")]
|
|
public Dictionary<string, AzurePropertyValueDto>? Properties { get; set; }
|
|
}
|
|
|
|
public class AzureLocationServiceDto
|
|
{
|
|
[JsonPropertyName("lastChangeId")]
|
|
public int LastChangeId { get; set; }
|
|
|
|
[JsonPropertyName("lastChangeId64")]
|
|
public long LastChangeId64 { get; set; }
|
|
|
|
[JsonPropertyName("clientCacheTimeToLive")]
|
|
public int ClientCacheTimeToLive { get; set; }
|
|
|
|
[JsonPropertyName("defaultAccessMappingMoniker")]
|
|
public string? DefaultAccessMappingMoniker { get; set; }
|
|
}
|
|
} |