Refactor code structure for improved readability and maintainability

This commit is contained in:
Torsten Brendgen
2026-07-07 23:27:57 +02:00
parent 96a3e98109
commit bbe521b38d
1632 changed files with 27313 additions and 54917 deletions
@@ -0,0 +1,12 @@
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Add
{
public class AddDeploymentParameterValueDto
{
public Guid? DeploymentTemplateSelectionId { get; set; }
public string Name { get; set; } = string.Empty;
public string ValueJson { get; set; } = "{}";
public bool IsSecretReference { get; set; }
public bool IsOverride { get; set; } = true;
}
}
@@ -0,0 +1,11 @@
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Add
{
public class AddDeploymentTargetAssignmentDto
{
public Guid TargetId { get; set; }
public string RoleKey { get; set; } = "Node";
public int SortOrder { get; set; }
public string NodeDataJson { get; set; } = "{}";
}
}
@@ -0,0 +1,11 @@
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Add
{
public class AddDeploymentTemplateSelectionDto
{
public Guid TemplateVersionId { get; set; }
public string TemplateRole { get; set; } = "Service";
public int SortOrder { get; set; }
public string? Alias { get; set; }
}
}
@@ -0,0 +1,11 @@
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Get
{
public class GetDeploymentCompositionDto
{
public Guid DeploymentBatchId { get; set; }
public ICollection<GetDeploymentTemplateSelectionDto> TemplateSelections { get; set; } = new List<GetDeploymentTemplateSelectionDto>();
public ICollection<GetDeploymentParameterValueDto> ParameterValues { get; set; } = new List<GetDeploymentParameterValueDto>();
public ICollection<GetDeploymentTargetAssignmentDto> TargetAssignments { get; set; } = new List<GetDeploymentTargetAssignmentDto>();
}
}
@@ -0,0 +1,13 @@
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Get
{
public class GetDeploymentParameterValueDto : BaseDto
{
public Guid DeploymentGroupId { get; set; }
public Guid? DeploymentTemplateSelectionId { get; set; }
public string Name { get; set; } = string.Empty;
public string ValueJson { get; set; } = "{}";
public bool IsSecretReference { get; set; }
public bool IsOverride { get; set; }
}
}
@@ -0,0 +1,15 @@
using Microsoft.SelfService.Portal.Core.API.Dto.Target.Get;
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Get
{
public class GetDeploymentTargetAssignmentDto : BaseDto
{
public Guid DeploymentGroupId { get; set; }
public Guid TargetId { get; set; }
public string RoleKey { get; set; } = string.Empty;
public int SortOrder { get; set; }
public string NodeDataJson { get; set; } = "{}";
public GetTargetDto? Target { get; set; }
}
}
@@ -0,0 +1,15 @@
using Microsoft.SelfService.Portal.Core.API.Dto.TemplateVersion.Get;
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Get
{
public class GetDeploymentTemplateSelectionDto : BaseDto
{
public Guid DeploymentGroupId { get; set; }
public Guid TemplateVersionId { get; set; }
public string TemplateRole { get; set; } = string.Empty;
public int SortOrder { get; set; }
public string? Alias { get; set; }
public GetTemplateVersionDto? TemplateVersion { get; set; }
}
}