-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
OciDescriptor.cs
47 lines (41 loc) · 1.78 KB
/
OciDescriptor.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
using Azure.Core;
namespace Azure.Containers.ContainerRegistry
{
/// <summary> Docker V2 image layer descriptor including config and layers. </summary>
public partial class OciDescriptor
{
/// <summary> Initializes a new instance of <see cref="OciDescriptor"/>. </summary>
public OciDescriptor()
{
Urls = new ChangeTrackingList<Uri>();
}
/// <summary> Initializes a new instance of <see cref="OciDescriptor"/>. </summary>
/// <param name="mediaType"> Layer media type. </param>
/// <param name="sizeInBytes"> Layer size. </param>
/// <param name="digest"> Layer digest. </param>
/// <param name="urls"> Specifies a list of URIs from which this object may be downloaded. </param>
/// <param name="annotations"> Additional information provided through arbitrary metadata. </param>
internal OciDescriptor(string mediaType, long? sizeInBytes, string digest, IList<Uri> urls, OciAnnotations annotations)
{
MediaType = mediaType;
SizeInBytes = sizeInBytes;
Digest = digest;
Urls = urls;
Annotations = annotations;
}
/// <summary> Layer media type. </summary>
public string MediaType { get; set; }
/// <summary> Layer size. </summary>
public long? SizeInBytes { get; set; }
/// <summary> Layer digest. </summary>
public string Digest { get; set; }
/// <summary> Additional information provided through arbitrary metadata. </summary>
public OciAnnotations Annotations { get; set; }
}
}