Skip to content

Commit a4ced6c

Browse files
authored
Make properties init-only (#437)
1 parent 98631a2 commit a4ced6c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Cake.AzureDevOps/Pipelines/AzureDevOpsArtifactResource.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ public class AzureDevOpsArtifactResource
1212
/// <summary>
1313
/// Gets the data of the resource.
1414
/// </summary>
15-
public string Data { get; internal set; }
15+
public string Data { get; init; }
1616

1717
/// <summary>
1818
/// Gets the download url of the resource.
1919
/// </summary>
20-
public string DownloadUrl { get; internal set; }
20+
public string DownloadUrl { get; init; }
2121

2222
/// <summary>
2323
/// Gets the type of the resource.
2424
/// </summary>
25-
public AzurePipelinesArtifactType Type { get; internal set; }
25+
public AzurePipelinesArtifactType Type { get; init; }
2626

2727
/// <summary>
2828
/// Gets the full http link to the resource.
2929
/// </summary>
30-
public string Url { get; internal set; }
30+
public string Url { get; init; }
3131

3232
/// <summary>
3333
/// Gets the properties for the resource.
3434
/// </summary>
35-
public Dictionary<string, string> Properties { get; internal set; }
35+
public Dictionary<string, string> Properties { get; init; }
3636
}
3737
}

0 commit comments

Comments
 (0)