-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathReleaseModel.cs
More file actions
57 lines (43 loc) · 1.64 KB
/
ReleaseModel.cs
File metadata and controls
57 lines (43 loc) · 1.64 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Contentstack.Management.Core.Models
{
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class ReleaseModel
{
[JsonProperty(propertyName: "name")]
public string Name { get; set; }
[JsonProperty(propertyName: "description")]
public string Description { get; set; }
[JsonProperty(propertyName: "locked")]
public bool Locked { get; set; }
[JsonProperty(propertyName: "archived")]
public bool Archived { get; set; }
}
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class DeployModel
{
[JsonProperty(propertyName: "environments")]
public List<string> Environments { get; set; }
[JsonProperty(propertyName: "locales")]
public List<string> Locales { get; set; }
[JsonProperty(propertyName: "scheduledAt")]
public string ScheduledAt { get; set; }
[JsonProperty(propertyName: "action")]
public string Action { get; set; }
}
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class ReleaseItemModel
{
[JsonProperty(propertyName: "uid")]
public string Uid { get; set; }
[JsonProperty(propertyName: "version")]
public int Version { get; set; }
[JsonProperty(propertyName: "locale")]
public string Locale { get; set; }
[JsonProperty(propertyName: "content_type_uid")]
public string ContentTypeUID { get; set; }
[JsonProperty(propertyName: "action")]
public string Action { get; set; }
}
}