| | 1 | | // <auto-generated> |
| | 2 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 3 | | // Licensed under the MIT License. See License.txt in the project root for |
| | 4 | | // license information. |
| | 5 | | // |
| | 6 | | // Code generated by Microsoft (R) AutoRest Code Generator. |
| | 7 | | // Changes may cause incorrect behavior and will be lost if the code is |
| | 8 | | // regenerated. |
| | 9 | | // </auto-generated> |
| | 10 | |
|
| | 11 | | namespace Microsoft.Azure.ContainerRegistry.Models |
| | 12 | | { |
| | 13 | | using Newtonsoft.Json; |
| | 14 | | using System.Collections; |
| | 15 | | using System.Collections.Generic; |
| | 16 | | using System.Linq; |
| | 17 | |
|
| | 18 | | /// <summary> |
| | 19 | | /// Returns the requested manifest file |
| | 20 | | /// </summary> |
| | 21 | | public partial class ManifestWrapper : Manifest |
| | 22 | | { |
| | 23 | | /// <summary> |
| | 24 | | /// Initializes a new instance of the ManifestWrapper class. |
| | 25 | | /// </summary> |
| 12 | 26 | | public ManifestWrapper() |
| | 27 | | { |
| | 28 | | CustomInit(); |
| 12 | 29 | | } |
| | 30 | |
|
| | 31 | | /// <summary> |
| | 32 | | /// Initializes a new instance of the ManifestWrapper class. |
| | 33 | | /// </summary> |
| | 34 | | /// <param name="schemaVersion">Schema version</param> |
| | 35 | | /// <param name="mediaType">Media type for this Manifest</param> |
| | 36 | | /// <param name="manifests">(ManifestList, OCIIndex) List of V2 image |
| | 37 | | /// layer information</param> |
| | 38 | | /// <param name="config">(V2, OCI) Image config descriptor</param> |
| | 39 | | /// <param name="layers">(V2, OCI) List of V2 image layer |
| | 40 | | /// information</param> |
| | 41 | | /// <param name="annotations">(OCI, OCIIndex) Additional |
| | 42 | | /// metadata</param> |
| | 43 | | /// <param name="architecture">(V1) CPU architecture</param> |
| | 44 | | /// <param name="name">(V1) Image name</param> |
| | 45 | | /// <param name="tag">(V1) Image tag</param> |
| | 46 | | /// <param name="fsLayers">(V1) List of layer information</param> |
| | 47 | | /// <param name="history">(V1) Image history</param> |
| | 48 | | /// <param name="signatures">(V1) Image signature</param> |
| | 49 | | public ManifestWrapper(int? schemaVersion = default(int?), string mediaType = default(string), IList<ManifestLis |
| 0 | 50 | | : base(schemaVersion) |
| | 51 | | { |
| 0 | 52 | | MediaType = mediaType; |
| 0 | 53 | | Manifests = manifests; |
| 0 | 54 | | Config = config; |
| 0 | 55 | | Layers = layers; |
| 0 | 56 | | Annotations = annotations; |
| 0 | 57 | | Architecture = architecture; |
| 0 | 58 | | Name = name; |
| 0 | 59 | | Tag = tag; |
| 0 | 60 | | FsLayers = fsLayers; |
| 0 | 61 | | History = history; |
| 0 | 62 | | Signatures = signatures; |
| | 63 | | CustomInit(); |
| 0 | 64 | | } |
| | 65 | |
|
| | 66 | | /// <summary> |
| | 67 | | /// An initialization method that performs custom operations like setting defaults |
| | 68 | | /// </summary> |
| | 69 | | partial void CustomInit(); |
| | 70 | |
|
| | 71 | | /// <summary> |
| | 72 | | /// Gets or sets media type for this Manifest |
| | 73 | | /// </summary> |
| | 74 | | [JsonProperty(PropertyName = "mediaType")] |
| 14 | 75 | | public string MediaType { get; set; } |
| | 76 | |
|
| | 77 | | /// <summary> |
| | 78 | | /// Gets or sets (ManifestList, OCIIndex) List of V2 image layer |
| | 79 | | /// information |
| | 80 | | /// </summary> |
| | 81 | | [JsonProperty(PropertyName = "manifests")] |
| 12 | 82 | | public IList<ManifestListAttributes> Manifests { get; set; } |
| | 83 | |
|
| | 84 | | /// <summary> |
| | 85 | | /// Gets or sets (V2, OCI) Image config descriptor |
| | 86 | | /// </summary> |
| | 87 | | [JsonProperty(PropertyName = "config")] |
| 18 | 88 | | public Descriptor Config { get; set; } |
| | 89 | |
|
| | 90 | | /// <summary> |
| | 91 | | /// Gets or sets (V2, OCI) List of V2 image layer information |
| | 92 | | /// </summary> |
| | 93 | | [JsonProperty(PropertyName = "layers")] |
| 18 | 94 | | public IList<Descriptor> Layers { get; set; } |
| | 95 | |
|
| | 96 | | /// <summary> |
| | 97 | | /// Gets or sets (OCI, OCIIndex) Additional metadata |
| | 98 | | /// </summary> |
| | 99 | | [JsonProperty(PropertyName = "annotations")] |
| 8 | 100 | | public Annotations Annotations { get; set; } |
| | 101 | |
|
| | 102 | | /// <summary> |
| | 103 | | /// Gets or sets (V1) CPU architecture |
| | 104 | | /// </summary> |
| | 105 | | [JsonProperty(PropertyName = "architecture")] |
| 4 | 106 | | public string Architecture { get; set; } |
| | 107 | |
|
| | 108 | | /// <summary> |
| | 109 | | /// Gets or sets (V1) Image name |
| | 110 | | /// </summary> |
| | 111 | | [JsonProperty(PropertyName = "name")] |
| 4 | 112 | | public string Name { get; set; } |
| | 113 | |
|
| | 114 | | /// <summary> |
| | 115 | | /// Gets or sets (V1) Image tag |
| | 116 | | /// </summary> |
| | 117 | | [JsonProperty(PropertyName = "tag")] |
| 4 | 118 | | public string Tag { get; set; } |
| | 119 | |
|
| | 120 | | /// <summary> |
| | 121 | | /// Gets or sets (V1) List of layer information |
| | 122 | | /// </summary> |
| | 123 | | [JsonProperty(PropertyName = "fsLayers")] |
| 6 | 124 | | public IList<FsLayer> FsLayers { get; set; } |
| | 125 | |
|
| | 126 | | /// <summary> |
| | 127 | | /// Gets or sets (V1) Image history |
| | 128 | | /// </summary> |
| | 129 | | [JsonProperty(PropertyName = "history")] |
| 6 | 130 | | public IList<History> History { get; set; } |
| | 131 | |
|
| | 132 | | /// <summary> |
| | 133 | | /// Gets or sets (V1) Image signature |
| | 134 | | /// </summary> |
| | 135 | | [JsonProperty(PropertyName = "signatures")] |
| 6 | 136 | | public IList<ImageSignature> Signatures { get; set; } |
| | 137 | |
|
| | 138 | | } |
| | 139 | | } |