29 lines
952 B
C#
29 lines
952 B
C#
using Microsoft.Identity.Client;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text.Json.Serialization;
|
|
|
|
namespace Microsoft.SelfService.Portal.Core.API.Models
|
|
{
|
|
public class TemplateModel : BaseModel
|
|
{
|
|
[Column(Order = 1)]
|
|
public string Name { get; set; }
|
|
[Column(Order = 2)]
|
|
[RegularExpression("On Premise|Hybrid|Cloud")]
|
|
public bool CloudTemplate { get; set; }
|
|
[Column(Order = 3)]
|
|
public string Version { get; set; }
|
|
[Column(Order = 4)]
|
|
public string Description { get; set; }
|
|
[Column(Order = 5)]
|
|
public string JSONData { get; set; }
|
|
|
|
public TemplateCategoryModel TemplateCategory { get; set; }
|
|
|
|
public ICollection<DeploymentGroupModel> DeploymentGroups { get; set; }
|
|
public ICollection<TemplateOptionModel> TemplateOptions { get; set; }
|
|
}
|
|
|
|
}
|