Refactor code structure for improved readability and maintainability
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
public class AddDeploymentDto
|
||||
{
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
public Guid TargetId { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
public string JsonData { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Add
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Add
|
||||
{
|
||||
public class AddDeploymentRequestDto
|
||||
{
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
public ICollection<Guid> VirtualMachineIds { get; set; } = new List<Guid>();
|
||||
public ICollection<Guid> TargetIds { get; set; } = new List<Guid>();
|
||||
public string JsonData { get; set; } = "{}";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Add
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Add
|
||||
{
|
||||
public class QueueJobStepApprovalDto
|
||||
{
|
||||
@@ -6,3 +6,4 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Add
|
||||
public string? ApprovedBy { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,9 +11,10 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Edit
|
||||
public string jsonData { get; set; }
|
||||
|
||||
[Column(Order = 1)]
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
public Guid TargetId { get; set; }
|
||||
[Column(Order = 1)]
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.VirtualMachine.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Target.Get;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
{
|
||||
public class GetDeploymentDetailsDto : BaseDetailsDto
|
||||
{
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
public Guid TargetId { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string JSONData { get; set; }
|
||||
|
||||
public GetVirtualMachineDetailsDto VirtualMachine { get; set; }
|
||||
public GetTargetDetailsDto Target { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,9 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
public class GetDeploymentDto : BaseDto
|
||||
{
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
public Guid TargetId { get; set; }
|
||||
public string Status { get; set; }
|
||||
public string JSONData { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
{
|
||||
public class GetQueueJobDetailsDto : BaseDetailsDto
|
||||
{
|
||||
@@ -16,3 +16,4 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
public ICollection<GetQueueJobStepDto> Steps { get; set; } = new List<GetQueueJobStepDto>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
{
|
||||
public class GetQueueJobDto : BaseDto
|
||||
{
|
||||
@@ -14,3 +14,4 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
public int FailedTargetCount { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
{
|
||||
public class GetQueueJobStepDto : BaseDto
|
||||
{
|
||||
@@ -13,3 +13,4 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
public string? ApprovalComment { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
{
|
||||
public class GetQueueJobTargetDto : BaseDto
|
||||
{
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
public Guid TargetId { get; set; }
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
public Guid TemplateId { get; set; }
|
||||
public string Status { get; set; } = string.Empty;
|
||||
@@ -10,3 +10,4 @@ namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
public string? ErrorMessage { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user