-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathPublishRuleModel.cs
More file actions
36 lines (35 loc) · 1.42 KB
/
PublishRuleModel.cs
File metadata and controls
36 lines (35 loc) · 1.42 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
using System.Collections.Generic;
using Newtonsoft.Json;
namespace Contentstack.Management.Core.Models
{
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class PublishRuleModel
{
[JsonProperty(propertyName: "workflow")]
public string WorkflowUid { get; set; }
[JsonProperty(propertyName: "actions")]
public List<string> Actions { get; set; }
[JsonProperty(propertyName: "branches")]
public List<string> Branches { get; set; }
[JsonProperty(propertyName: "content_types")]
public List<string> ContentTypes { get; set; }
[JsonProperty(propertyName: "locales")]
public List<string> Locales { get; set; }
[JsonProperty(propertyName: "environment")]
public string Environment { get; set; }
[JsonProperty(propertyName: "approvers")]
public Approvals Approvers { get; set; }
[JsonProperty(propertyName: "workflow_stage")]
public string WorkflowStageUid { get; set; }
[JsonProperty(propertyName: "disable_approver_publishing")]
public bool DisableApproval { get; set; } = false;
}
[JsonObject(ItemNullValueHandling = NullValueHandling.Ignore)]
public class Approvals
{
[JsonProperty(propertyName: "users")]
public List<string> Users { get; set; }
[JsonProperty(propertyName: "roles")]
public List<string> Roles { get; set; }
}
}