-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix detailed PipelineSchedule model deserialization
- Loading branch information
1 parent
57c85d4
commit ce4b5e2
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,38 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace NGitLab.Models; | ||
|
||
public class PipelineSchedule | ||
{ | ||
[JsonPropertyName("id")] | ||
public int Id { get; set; } | ||
|
||
[JsonPropertyName("description")] | ||
public string Description { get; set; } | ||
|
||
[JsonPropertyName("ref")] | ||
public string Ref { get; set; } | ||
|
||
[JsonPropertyName("cron")] | ||
public string Cron { get; set; } | ||
|
||
[JsonPropertyName("next_run_at")] | ||
public DateTime NextRunAt { get; set; } | ||
|
||
[JsonPropertyName("active")] | ||
public bool Active { get; set; } | ||
|
||
[JsonPropertyName("created_at")] | ||
public DateTime CreatedAt { get; set; } | ||
|
||
[JsonPropertyName("updated_at")] | ||
public DateTime UpdatedAt { get; set; } | ||
|
||
[JsonPropertyName("owner")] | ||
public User Owner { get; set; } | ||
|
||
[JsonPropertyName("variables")] | ||
public IEnumerable<PipelineVariable> Variables { get; set; } | ||
} |