/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (UpgradePolicy != null)
     {
         UpgradePolicy.Validate();
     }
     if (MinimumNodes < 0)
     {
         throw new ValidationException(ValidationRules.InclusiveMinimum, "MinimumNodes", 0);
     }
     if (MaximumNodes < 0)
     {
         throw new ValidationException(ValidationRules.InclusiveMinimum, "MaximumNodes", 0);
     }
     if (ManagedIdentities != null)
     {
         foreach (var element in ManagedIdentities)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (UpgradePolicy != null)
     {
         UpgradePolicy.Validate();
     }
     if (MinimumNodes < 0)
     {
         throw new ValidationException(ValidationRules.InclusiveMinimum, "MinimumNodes", 0);
     }
     if (MaximumNodes < 0)
     {
         throw new ValidationException(ValidationRules.InclusiveMinimum, "MaximumNodes", 0);
     }
 }
Esempio n. 3
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (UpgradePolicy != null)
     {
         UpgradePolicy.Validate();
     }
     if (ManagedIdentities != null)
     {
         foreach (var element in ManagedIdentities)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
 }