public VirtualMachineImage(string name, string location, string id, IDictionary <string, string> tags, PurchasePlan plan, OSDiskImage osDiskImage, IList <DataDiskImage> dataDiskImages, AutomaticOSUpgradeProperties automaticOSUpgradeProperties)
     : base(name, location, id, tags)
 {
     Plan           = plan;
     OsDiskImage    = osDiskImage;
     DataDiskImages = dataDiskImages;
     AutomaticOSUpgradeProperties = automaticOSUpgradeProperties;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the VirtualMachineImage class.
 /// </summary>
 /// <param name="name">The name of the resource.</param>
 /// <param name="location">The supported Azure location of the
 /// resource.</param>
 /// <param name="id">Resource Id</param>
 /// <param name="tags">Specifies the tags that are assigned to the
 /// virtual machine. For more information about using tags, see [Using
 /// tags to organize your Azure
 /// resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).</param>
 /// <param name="hyperVGeneration">Possible values include: 'V1',
 /// 'V2'</param>
 public VirtualMachineImage(string name, string location, string id = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), PurchasePlan plan = default(PurchasePlan), OSDiskImage osDiskImage = default(OSDiskImage), IList <DataDiskImage> dataDiskImages = default(IList <DataDiskImage>), AutomaticOSUpgradeProperties automaticOSUpgradeProperties = default(AutomaticOSUpgradeProperties), string hyperVGeneration = default(string))
     : base(name, location, id, tags)
 {
     Plan           = plan;
     OsDiskImage    = osDiskImage;
     DataDiskImages = dataDiskImages;
     AutomaticOSUpgradeProperties = automaticOSUpgradeProperties;
     HyperVGeneration             = hyperVGeneration;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the VirtualMachineImage class.
 /// </summary>
 /// <param name="name">The name of the resource.</param>
 /// <param name="location">The supported Azure location of the
 /// resource.</param>
 /// <param name="id">Resource Id</param>
 /// <param name="tags">Specifies the tags that are assigned to the
 /// virtual machine. For more information about using tags, see [Using
 /// tags to organize your Azure
 /// resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).</param>
 /// <param name="hyperVGeneration">Possible values include: 'V1',
 /// 'V2'</param>
 /// <param name="disallowed">Specifies disallowed configuration for the
 /// VirtualMachine created from the image</param>
 public VirtualMachineImage(string name, string location, string id, IDictionary <string, string> tags, PurchasePlan plan, OSDiskImage osDiskImage, IList <DataDiskImage> dataDiskImages, AutomaticOSUpgradeProperties automaticOSUpgradeProperties, string hyperVGeneration, DisallowedConfiguration disallowed)
     : base(name, location, id, tags)
 {
     Plan           = plan;
     OsDiskImage    = osDiskImage;
     DataDiskImages = dataDiskImages;
     AutomaticOSUpgradeProperties = automaticOSUpgradeProperties;
     HyperVGeneration             = hyperVGeneration;
     Disallowed = disallowed;
     CustomInit();
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the VirtualMachineImage class.
 /// </summary>
 /// <param name="name">The name of the resource.</param>
 /// <param name="location">The supported Azure location of the
 /// resource.</param>
 /// <param name="id">Resource Id</param>
 /// <param name="tags">Specifies the tags that are assigned to the
 /// virtual machine. For more information about using tags, see [Using
 /// tags to organize your Azure
 /// resources](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-using-tags.md).</param>
 /// <param name="extendedLocation">The extended location of the Virtual
 /// Machine.</param>
 /// <param name="hyperVGeneration">Possible values include: 'V1',
 /// 'V2'</param>
 /// <param name="disallowed">Specifies disallowed configuration for the
 /// VirtualMachine created from the image</param>
 public VirtualMachineImage(string name, string location, string id = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), ExtendedLocation extendedLocation = default(ExtendedLocation), PurchasePlan plan = default(PurchasePlan), OSDiskImage osDiskImage = default(OSDiskImage), IList <DataDiskImage> dataDiskImages = default(IList <DataDiskImage>), AutomaticOSUpgradeProperties automaticOSUpgradeProperties = default(AutomaticOSUpgradeProperties), string hyperVGeneration = default(string), DisallowedConfiguration disallowed = default(DisallowedConfiguration), IList <VirtualMachineImageFeature> features = default(IList <VirtualMachineImageFeature>))
     : base(name, location, id, tags, extendedLocation)
 {
     Plan           = plan;
     OsDiskImage    = osDiskImage;
     DataDiskImages = dataDiskImages;
     AutomaticOSUpgradeProperties = automaticOSUpgradeProperties;
     HyperVGeneration             = hyperVGeneration;
     Disallowed = disallowed;
     Features   = features;
     CustomInit();
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (Plan != null)
     {
         Plan.Validate();
     }
     if (OsDiskImage != null)
     {
         OsDiskImage.Validate();
     }
     if (AutomaticOSUpgradeProperties != null)
     {
         AutomaticOSUpgradeProperties.Validate();
     }
 }