2
2
using System . Diagnostics ;
3
3
using System . Globalization ;
4
4
5
- [ DebuggerDisplay ( "{DebuggerDisplay,nq}" ) ]
6
- public class Artifact
5
+ namespace Octokit
7
6
{
8
- public Artifact ( )
7
+ [ DebuggerDisplay ( "{DebuggerDisplay,nq}" ) ]
8
+ public class Artifact
9
9
{
10
+ public Artifact ( )
11
+ {
12
+ }
13
+
14
+ public Artifact ( long id , string nodeId , string name , int sizeInBytes , string url , string archiveDownloadUrl , bool expired , DateTime createdAt , DateTime expiresAt , DateTime updatedAt , ArtifactWorkflowRun workflowRun )
15
+ {
16
+ Id = id ;
17
+ NodeId = nodeId ;
18
+ Name = name ;
19
+ SizeInBytes = sizeInBytes ;
20
+ Url = url ;
21
+ ArchiveDownloadUrl = archiveDownloadUrl ;
22
+ Expired = expired ;
23
+ CreatedAt = createdAt ;
24
+ ExpiresAt = expiresAt ;
25
+ UpdatedAt = updatedAt ;
26
+ WorkflowRun = workflowRun ;
27
+ }
28
+
29
+ /// <summary>
30
+ /// The artifact Id
31
+ /// </summary>
32
+ public long Id { get ; private set ; }
33
+
34
+ /// <summary>
35
+ /// The artifact node Id
36
+ /// </summary>
37
+ public string NodeId { get ; private set ; }
38
+
39
+ /// <summary>
40
+ /// The name of the artifact
41
+ /// </summary>
42
+ public string Name { get ; private set ; }
43
+
44
+ /// <summary>
45
+ /// The size of the artifact in bytes
46
+ /// </summary>
47
+ public int SizeInBytes { get ; private set ; }
48
+
49
+ /// <summary>
50
+ /// The url for retrieving the artifact information
51
+ /// </summary>
52
+ public string Url { get ; private set ; }
53
+
54
+ /// <summary>
55
+ /// The url for downloading the artifact contents
56
+ /// </summary>
57
+ public string ArchiveDownloadUrl { get ; private set ; }
58
+
59
+ /// <summary>
60
+ /// True if the artifact has expired
61
+ /// </summary>
62
+ public bool Expired { get ; private set ; }
63
+
64
+ /// <summary>
65
+ /// The date and time when the artifact was created
66
+ /// </summary>
67
+ public DateTime CreatedAt { get ; private set ; }
68
+
69
+ /// <summary>
70
+ /// The date and time when the artifact expires
71
+ /// </summary>
72
+ public DateTime ExpiresAt { get ; private set ; }
73
+
74
+ /// <summary>
75
+ /// The date and time when the artifact was last updated
76
+ /// </summary>
77
+ public DateTime UpdatedAt { get ; private set ; }
78
+
79
+ /// <summary>
80
+ /// The workflow from where the artifact was created
81
+ /// </summary>
82
+ public ArtifactWorkflowRun WorkflowRun { get ; private set ; }
83
+
84
+ internal string DebuggerDisplay => string . Format ( CultureInfo . InvariantCulture , "Id: {0}" , Id ) ;
10
85
}
11
-
12
- public Artifact ( long id , string nodeId , string name , int sizeInBytes , string url , string archiveDownloadUrl , bool expired , DateTime createdAt , DateTime expiresAt , DateTime updatedAt , ArtifactWorkflowRun workflowRun )
13
- {
14
- Id = id ;
15
- NodeId = nodeId ;
16
- Name = name ;
17
- SizeInBytes = sizeInBytes ;
18
- Url = url ;
19
- ArchiveDownloadUrl = archiveDownloadUrl ;
20
- Expired = expired ;
21
- CreatedAt = createdAt ;
22
- ExpiresAt = expiresAt ;
23
- UpdatedAt = updatedAt ;
24
- WorkflowRun = workflowRun ;
25
- }
26
-
27
- /// <summary>
28
- /// The artifact Id
29
- /// </summary>
30
- public long Id { get ; private set ; }
31
-
32
- /// <summary>
33
- /// The artifact node Id
34
- /// </summary>
35
- public string NodeId { get ; private set ; }
36
-
37
- /// <summary>
38
- /// The name of the artifact
39
- /// </summary>
40
- public string Name { get ; private set ; }
41
-
42
- /// <summary>
43
- /// The size of the artifact in bytes
44
- /// </summary>
45
- public int SizeInBytes { get ; private set ; }
46
-
47
- /// <summary>
48
- /// The url for retrieving the artifact information
49
- /// </summary>
50
- public string Url { get ; private set ; }
51
-
52
- /// <summary>
53
- /// The url for downloading the artifact contents
54
- /// </summary>
55
- public string ArchiveDownloadUrl { get ; private set ; }
56
-
57
- /// <summary>
58
- /// True if the artifact has expired
59
- /// </summary>
60
- public bool Expired { get ; private set ; }
61
-
62
- /// <summary>
63
- /// The date and time when the artifact was created
64
- /// </summary>
65
- public DateTime CreatedAt { get ; private set ; }
66
-
67
- /// <summary>
68
- /// The date and time when the artifact expires
69
- /// </summary>
70
- public DateTime ExpiresAt { get ; private set ; }
71
-
72
- /// <summary>
73
- /// The date and time when the artifact was last updated
74
- /// </summary>
75
- public DateTime UpdatedAt { get ; private set ; }
76
-
77
- /// <summary>
78
- /// The workflow from where the artifact was created
79
- /// </summary>
80
- public ArtifactWorkflowRun WorkflowRun { get ; private set ; }
81
-
82
- internal string DebuggerDisplay => string . Format ( CultureInfo . InvariantCulture , "Id: {0}" , Id ) ;
83
86
}
0 commit comments