-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathRepositoryRuleset.cs
48 lines (35 loc) · 1.5 KB
/
RepositoryRuleset.cs
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
namespace Octokit.Webhooks.Models.RepositoryRulesetEvent;
[PublicAPI]
public sealed record RepositoryRuleset
{
[JsonPropertyName("id")]
public long Id { get; init; }
[JsonPropertyName("name")]
public string? Name { get; init; }
[JsonPropertyName("target")]
[JsonConverter(typeof(StringEnumConverter<Target>))]
public StringEnum<Target>? Target { get; init; }
[JsonPropertyName("source_type")]
[JsonConverter(typeof(StringEnumConverter<SourceType>))]
public StringEnum<SourceType>? SourceType { get; init; }
[JsonPropertyName("source")]
public string? Source { get; init; }
[JsonPropertyName("enforcement")]
[JsonConverter(typeof(StringEnumConverter<Enforcement>))]
public StringEnum<Enforcement>? Enforcement { get; init; }
[JsonPropertyName("bypass_actors")]
public IReadOnlyCollection<BypassActor>? BypassActors { get; init; }
[JsonPropertyName("current_user_can_bypass")]
[JsonConverter(typeof(StringEnumConverter<CurrentUserCanBypass>))]
public StringEnum<CurrentUserCanBypass>? CurrentUserCanBypass { get; init; }
[JsonPropertyName("node_id")]
public string? NodeId { get; init; }
[JsonPropertyName("conditions")]
public Conditions? Conditions { get; init; }
[JsonPropertyName("rules")]
public IReadOnlyCollection<Rule>? Rules { get; init; }
[JsonPropertyName("created_at")]
public string? CreatedAt { get; init; }
[JsonPropertyName("updated_at")]
public string? UpdatedAt { get; init; }
}