mirror of
https://github.com/actions/runner.git
synced 2025-12-10 12:21:58 +00:00
* Support downloading/publishing artifacts from Pipelines endpoint * Remove `Path` from everywhere * Remove unused JobId argument * PR feedback * More PR feedback
47 lines
944 B
C#
47 lines
944 B
C#
using System.Runtime.Serialization;
|
|
using GitHub.Actions.Pipelines.WebApi.Contracts;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace GitHub.Actions.Pipelines.WebApi
|
|
{
|
|
[DataContract]
|
|
[KnownType(typeof(ActionsStorageArtifact))]
|
|
[JsonConverter(typeof(ArtifactJsonConverter))]
|
|
public class Artifact
|
|
{
|
|
public Artifact(ArtifactType type)
|
|
{
|
|
Type = type;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The type of the artifact.
|
|
/// </summary>
|
|
[DataMember]
|
|
public ArtifactType Type
|
|
{
|
|
get;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The name of the artifact.
|
|
/// </summary>
|
|
[DataMember]
|
|
public string Name
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Self-referential url
|
|
/// </summary>
|
|
[DataMember]
|
|
public string Url
|
|
{
|
|
get;
|
|
set;
|
|
}
|
|
}
|
|
}
|