-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathEnvironmentModel.cs
More file actions
32 lines (29 loc) · 961 Bytes
/
EnvironmentModel.cs
File metadata and controls
32 lines (29 loc) · 961 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Contentstack.Management.Core.Models
{
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class EnvironmentModel
{
[JsonProperty(propertyName: "name")]
public string Name { get; set; }
[JsonProperty(propertyName: "servers")]
public List<Server> Servers { get; set; }
[JsonProperty(propertyName: "urls")]
public List<LocalesUrl> Urls { get; set; }
[JsonProperty(propertyName: "deploy_content")]
public bool DeployContent { get; set; } = true;
}
public class Server
{
[JsonProperty(propertyName: "name")]
public string Name { get; set; }
}
public class LocalesUrl
{
[JsonProperty(propertyName: "url")]
public string Url { get; set; }
[JsonProperty(propertyName: "locale")]
public string Locale { get; set; }
}
}