/// <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();
     }
 }
 /// <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();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Source != null)
     {
         Source.Validate();
     }
     if (OsDiskImage != null)
     {
         OsDiskImage.Validate();
     }
     if (DataDiskImages != null)
     {
         foreach (var element in DataDiskImages)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
 }