Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentBatch.Add
|
||||
{
|
||||
public class AddDeploymentBatchDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public Guid? DeploymentRuleId { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
[Column(Order = 4)]
|
||||
public ICollection<Guid>? TargetIds { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentBatch.Edit
|
||||
{
|
||||
public class EditDeploymentBatchDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public Guid? DeploymentRuleId { get; set; }
|
||||
|
||||
[Column(Order = 3)]
|
||||
public string Status { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.DeploymentComposition.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Template.Get;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentBatch.Get
|
||||
{
|
||||
public class GetDeploymentBatchDetailsDto : BaseDto
|
||||
{
|
||||
public Guid? DeploymentRuleId { get; set; }
|
||||
|
||||
public string Status { get; set; } = string.Empty;
|
||||
|
||||
public GetTemplateDetailsDto Template { get; set; } = null!;
|
||||
|
||||
public ICollection<GetDeploymentDetailsDto> Deployments { get; set; } = new List<GetDeploymentDetailsDto>();
|
||||
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,12 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentBatch.Get
|
||||
{
|
||||
public class GetDeploymentBatchDto : BaseDetailsDto
|
||||
{
|
||||
public Guid TemplateId { get; set; }
|
||||
|
||||
public Guid? DeploymentRuleId { get; set; }
|
||||
|
||||
public string Status { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user