|  |  | 1 |  | // Copyright (c) Microsoft Corporation. All rights reserved. | 
|  |  | 2 |  | // Licensed under the MIT License. | 
|  |  | 3 |  |  | 
|  |  | 4 |  | // <auto-generated/> | 
|  |  | 5 |  |  | 
|  |  | 6 |  | #nullable disable | 
|  |  | 7 |  |  | 
|  |  | 8 |  | using System; | 
|  |  | 9 |  |  | 
|  |  | 10 |  | namespace Azure.ResourceManager.Compute.Models | 
|  |  | 11 |  | { | 
|  |  | 12 |  |     /// <summary> The source image from which the Image Version is going to be created. </summary> | 
|  |  | 13 |  |     internal partial class GalleryArtifactSource | 
|  |  | 14 |  |     { | 
|  |  | 15 |  |         /// <summary> Initializes a new instance of GalleryArtifactSource. </summary> | 
|  |  | 16 |  |         /// <param name="managedImage"> The managed artifact. </param> | 
|  | 0 | 17 |  |         internal GalleryArtifactSource(ManagedArtifact managedImage) | 
|  |  | 18 |  |         { | 
|  | 0 | 19 |  |             if (managedImage == null) | 
|  |  | 20 |  |             { | 
|  | 0 | 21 |  |                 throw new ArgumentNullException(nameof(managedImage)); | 
|  |  | 22 |  |             } | 
|  |  | 23 |  |  | 
|  | 0 | 24 |  |             ManagedImage = managedImage; | 
|  | 0 | 25 |  |         } | 
|  |  | 26 |  |  | 
|  |  | 27 |  |         /// <summary> The managed artifact. </summary> | 
|  | 0 | 28 |  |         public ManagedArtifact ManagedImage { get; } | 
|  |  | 29 |  |     } | 
|  |  | 30 |  | } |