initial commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto
|
||||
{
|
||||
public class AddEnvironmentDomainDto
|
||||
{
|
||||
public Guid EnvironmentId { get; set; }
|
||||
public Guid DomainId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Extensions.Dataannotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto
|
||||
{
|
||||
public class BaseDetailsDto : BaseDto
|
||||
{
|
||||
[Column(Order = 50)]
|
||||
[DefaultValueSql("GETDATE()")]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||||
public DateTime Modified { get; set; } = DateTime.Now;
|
||||
|
||||
[Column(Order = 51)]
|
||||
[DefaultValue("CCIS-P01S01-CM\\ASA_SSP_Admin")]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
|
||||
public string ModifiedBy { get; set; } = new HttpContextAccessor().HttpContext.User.Identity.Name;
|
||||
|
||||
[Column(Order = 52)]
|
||||
[DefaultValueSql("GETDATE()")]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public DateTime Created { get; set; } = DateTime.Now;
|
||||
|
||||
[Column(Order = 53)]
|
||||
[DefaultValue("CCIS-P01S01-CM\\ASA_SSP_Admin")]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
public string CreatedBy { get; set; } = new HttpContextAccessor().HttpContext.User.Identity.Name;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Extensions.Dataannotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto
|
||||
{
|
||||
public class BaseDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
[DefaultValueSql("NEWID()")]
|
||||
//[DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public Guid Id { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Add
|
||||
{
|
||||
public class AddDeploymentDto
|
||||
{
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
|
||||
public string Status { get; set; }
|
||||
public string JsonData { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Edit
|
||||
{
|
||||
public class EditDeploymentDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Status { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string jsonData { get; set; }
|
||||
|
||||
[Column(Order = 1)]
|
||||
public Guid VirtualMachineId { get; set; }
|
||||
[Column(Order = 1)]
|
||||
public Guid DeploymentGroupId { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.DeploymentGroup.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.VirtualMachine.Get;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
{
|
||||
public class GetDeploymentDetailsDto : BaseDetailsDto
|
||||
{
|
||||
public string Status { get; set; }
|
||||
public string JSONData { get; set; }
|
||||
|
||||
public GetVirtualMachineDetailsDto VirtualMachine { get; set; }
|
||||
|
||||
public GetDeploymentGroupDetailsDto DeploymentGroup { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get
|
||||
{
|
||||
public class GetDeploymentDto : BaseDto
|
||||
{
|
||||
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentGroup.Add
|
||||
{
|
||||
public class AddDeploymentGroupDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid TemplateId { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string Status { get; set; }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentGroup.Edit
|
||||
{
|
||||
public class EditDeploymentGroupDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public Guid TemplateId { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Deployment.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Template.Get;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentGroup.Get
|
||||
{
|
||||
public class GetDeploymentGroupDetailsDto : BaseDto
|
||||
{
|
||||
public string Status { get; set; }
|
||||
|
||||
public GetTemplateDetailsDto Template { get; set; }
|
||||
|
||||
public ICollection <GetDeploymentDetailsDto> Deployments { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.DeploymentGroup.Get
|
||||
{
|
||||
public class GetDeploymentGroupDto
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
public string Status { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Domain.Add
|
||||
{
|
||||
public class AddDomainDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string FQDN { get; set; }
|
||||
[Column(Order = 3)]
|
||||
public string NetBIOS { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Domain.Edit
|
||||
{
|
||||
public class EditDomainDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string FQDN { get; set; }
|
||||
[Column(Order = 3)]
|
||||
public string NetBIOS { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get
|
||||
{
|
||||
public class GetDomainDetailsDto : BaseDetailsDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string FQDN { get; set; }
|
||||
[Column(Order = 3)]
|
||||
public string NetBIOS { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get
|
||||
{
|
||||
public class GetDomainDto : BaseDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string FQDN { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string NetBIOS { get; set; }
|
||||
[Column(Order = 3)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Environment.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get
|
||||
{
|
||||
public class GetDomainEnvironmentDetailsDto
|
||||
{
|
||||
public GetEnvironmentDetailsDto Environment { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get
|
||||
{
|
||||
public class GetDomainEnvironmentDto : BaseDetailsDto
|
||||
{
|
||||
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string FQDN { get; set; }
|
||||
[Column(Order = 3)]
|
||||
public string NetBIOS { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public ICollection<GetDomainEnvironmentDetailsDto> EnvironmentDomains { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.VirtualMachine.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get
|
||||
{
|
||||
public class GetDomainVirtualMachineDetailsDto : BaseDetailsDto
|
||||
{
|
||||
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string FQDN { get; set; }
|
||||
[Column(Order = 3)]
|
||||
public string NetBIOS { get; set; }
|
||||
|
||||
[Column(Order = 4)]
|
||||
public ICollection<GetVirtualMachineDto> VirtualMachines { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Environment.Add
|
||||
{
|
||||
public class AddEnvironmentDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Environment.Edit
|
||||
{
|
||||
public class EditEnvironmentDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Environment.Get
|
||||
{
|
||||
public class GetEnvironmentDetailsDto : BaseDetailsDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Environment.Get
|
||||
{
|
||||
public class GetEnvironmentDomainDetailsDto : BaseDetailsDto
|
||||
{
|
||||
|
||||
[Column(Order = 1)]
|
||||
public ICollection<GetEnvironmentDetailsDto> Environment { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Environment.Get
|
||||
{
|
||||
public class GetEnvironmentDomainDto : BaseDetailsDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public ICollection<GetEnvironmentDomainDetailsDto> EnvironmentDomains { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Environment.Get
|
||||
{
|
||||
public class GetEnvironmentDto : BaseDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Runbook.Add
|
||||
{
|
||||
public class AddRunbookDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Runbook.Get
|
||||
{
|
||||
public class GetRunbookDetailsDto : BaseDetailsDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string Decription { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Runbook.Get
|
||||
{
|
||||
public class GetRunbookDto : BaseDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Column(Order = 2)]
|
||||
public string Decription { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.Get
|
||||
{
|
||||
public class GetServiceDetailsDto : BaseDetailsDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
[Column(Order = 2)]
|
||||
public string Type { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Service.Get
|
||||
{
|
||||
public class GetServiceDto : BaseDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Template.Get
|
||||
{
|
||||
public class GetTemplateDetailsDto : BaseDetailsDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string CloudTemplate { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string JSONData { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.Template.Get
|
||||
{
|
||||
public class GetTemplateDto : BaseDto
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Microsoft.SelfService.Portal.Core.API.Dto.Domain.Get;
|
||||
using Microsoft.SelfService.Portal.Core.API.Models;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.VirtualMachine.Get
|
||||
{
|
||||
public class GetVirtualMachineDetailsDto : BaseDetailsDto
|
||||
{
|
||||
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
public GetDomainDto Domain { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Microsoft.SelfService.Portal.Core.API.Dto.VirtualMachine.Get
|
||||
{
|
||||
public class GetVirtualMachineDto : BaseDto
|
||||
{
|
||||
[Column(Order = 1)]
|
||||
public string Name { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user