|
| 1 | +using System; |
| 2 | +using System.ComponentModel; |
| 3 | +using System.Text.Json.Serialization; |
| 4 | +using NGitLab.Impl.Json; |
| 5 | + |
| 6 | +namespace NGitLab.Models |
| 7 | +{ |
| 8 | + public class Package |
| 9 | + { |
| 10 | + [EditorBrowsable(EditorBrowsableState.Never)] |
| 11 | + [JsonIgnore] |
| 12 | + public int Id; |
| 13 | + |
| 14 | + [JsonPropertyName("package_id")] |
| 15 | + public int PackageId; |
| 16 | + |
| 17 | + [JsonPropertyName("created_at")] |
| 18 | + [JsonConverter(typeof(DateOnlyConverter))] |
| 19 | + public DateTime CreatedAt; |
| 20 | + |
| 21 | + [JsonPropertyName("updated_at")] |
| 22 | + [JsonConverter(typeof(DateOnlyConverter))] |
| 23 | + public DateTime? UpdatedAt; |
| 24 | + |
| 25 | + [JsonPropertyName("size")] |
| 26 | + public int Size; |
| 27 | + |
| 28 | + [JsonPropertyName("file_store")] |
| 29 | + public int FileStore; |
| 30 | + |
| 31 | + [JsonPropertyName("file_md5")] |
| 32 | + public string FileMD5; |
| 33 | + |
| 34 | + [JsonPropertyName("file_sha1")] |
| 35 | + public string FileSHA1; |
| 36 | + |
| 37 | + [JsonPropertyName("file_sha256")] |
| 38 | + public string FileSHA256; |
| 39 | + |
| 40 | + [JsonPropertyName("file_name")] |
| 41 | + public string FileName; |
| 42 | + |
| 43 | + [JsonPropertyName("verification_retry_at")] |
| 44 | + [JsonConverter(typeof(DateOnlyConverter))] |
| 45 | + public DateTime? VerificationRetryAt; |
| 46 | + |
| 47 | + [JsonPropertyName("verified_at")] |
| 48 | + [JsonConverter(typeof(DateOnlyConverter))] |
| 49 | + public DateTime? VerifiedAt; |
| 50 | + |
| 51 | + [JsonPropertyName("verification_failure")] |
| 52 | + public string VerificationFailure; |
| 53 | + |
| 54 | + [JsonPropertyName("verification_retry_count")] |
| 55 | + public string VerificationRetryCount; |
| 56 | + |
| 57 | + [JsonPropertyName("verification_checksum")] |
| 58 | + public string VerificationChecksum; |
| 59 | + |
| 60 | + [JsonPropertyName("verification_state")] |
| 61 | + public int VerificationState; |
| 62 | + |
| 63 | + [JsonPropertyName("verification_started_at")] |
| 64 | + [JsonConverter(typeof(DateOnlyConverter))] |
| 65 | + public DateTime? VerificationStartedAt; |
| 66 | + |
| 67 | + [JsonPropertyName("new_file_path")] |
| 68 | + public string NewFilePath; |
| 69 | + |
| 70 | + [JsonPropertyName("status")] |
| 71 | + public string Status; |
| 72 | + |
| 73 | + [JsonPropertyName("file")] |
| 74 | + public PackageFile File; |
| 75 | + } |
| 76 | +} |
0 commit comments