| | | 1 | | |
| | | 2 | | namespace Microsoft.Azure.ContainerRegistry.Models |
| | | 3 | | { |
| | | 4 | | public partial class V2Manifest : Manifest |
| | | 5 | | { |
| | | 6 | | /// <summary> |
| | | 7 | | /// Provides a method to convert ManifestWrapper to V2Manifest |
| | | 8 | | /// </summary> |
| | | 9 | | public static explicit operator V2Manifest(ManifestWrapper v) |
| | | 10 | | { |
| | | 11 | | var manifest = new V2Manifest |
| | | 12 | | { |
| | | 13 | | Layers = v.Layers, |
| | | 14 | | SchemaVersion = v.SchemaVersion, |
| | | 15 | | Config = v.Config, |
| | | 16 | | MediaType = v.MediaType |
| | | 17 | | }; |
| | | 18 | | return manifest; |
| | | 19 | | } |
| | | 20 | | } |
| | | 21 | | |
| | | 22 | | public partial class V1Manifest : Manifest |
| | | 23 | | { |
| | | 24 | | /// <summary> |
| | | 25 | | /// Provides a method to convert ManifestWrapper to V1Manifest |
| | | 26 | | /// </summary> |
| | | 27 | | public static explicit operator V1Manifest(ManifestWrapper v) |
| | | 28 | | { |
| | | 29 | | var manifest = new V1Manifest |
| | | 30 | | { |
| | | 31 | | Architecture = v.Architecture, |
| | | 32 | | FsLayers = v.FsLayers, |
| | | 33 | | History = v.History, |
| | | 34 | | Name = v.Name, |
| | | 35 | | Signatures = v.Signatures, |
| | | 36 | | Tag = v.Tag, |
| | | 37 | | SchemaVersion = v.SchemaVersion |
| | | 38 | | }; |
| | | 39 | | return manifest; |
| | | 40 | | } |
| | | 41 | | } |
| | | 42 | | |
| | | 43 | | public partial class ManifestList : Manifest |
| | | 44 | | { |
| | | 45 | | /// <summary> |
| | | 46 | | /// Provides a method to convert ManifestWrapper to ManifestList |
| | | 47 | | /// </summary> |
| | | 48 | | public static explicit operator ManifestList(ManifestWrapper v) |
| | | 49 | | { |
| | 2 | 50 | | var manifest = new ManifestList |
| | 2 | 51 | | { |
| | 2 | 52 | | Manifests = v.Manifests, |
| | 2 | 53 | | SchemaVersion = v.SchemaVersion, |
| | 2 | 54 | | MediaType = v.MediaType |
| | 2 | 55 | | }; |
| | 2 | 56 | | return manifest; |
| | | 57 | | } |
| | | 58 | | } |
| | | 59 | | |
| | | 60 | | public partial class OCIIndex : Manifest |
| | | 61 | | { |
| | | 62 | | /// <summary> |
| | | 63 | | /// Provides a method to convert ManifestWrapper to OCIIndex |
| | | 64 | | /// </summary> |
| | | 65 | | public static explicit operator OCIIndex(ManifestWrapper v) |
| | | 66 | | { |
| | | 67 | | var manifest = new OCIIndex |
| | | 68 | | { |
| | | 69 | | Manifests = v.Manifests, |
| | | 70 | | SchemaVersion = v.SchemaVersion, |
| | | 71 | | Annotations = v.Annotations |
| | | 72 | | }; |
| | | 73 | | return manifest; |
| | | 74 | | } |
| | | 75 | | } |
| | | 76 | | |
| | | 77 | | public partial class OCIManifest : Manifest |
| | | 78 | | { |
| | | 79 | | /// <summary> |
| | | 80 | | /// Provides a method to convert ManifestWrapper to OCIManifest |
| | | 81 | | /// </summary> |
| | | 82 | | public static explicit operator OCIManifest(ManifestWrapper v) |
| | | 83 | | { |
| | | 84 | | var manifest = new OCIManifest |
| | | 85 | | { |
| | | 86 | | Layers = v.Layers, |
| | | 87 | | SchemaVersion = v.SchemaVersion, |
| | | 88 | | Config = v.Config, |
| | | 89 | | Annotations = v.Annotations |
| | | 90 | | }; |
| | | 91 | | return manifest; |
| | | 92 | | } |
| | | 93 | | } |
| | | 94 | | } |