/// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (SeccompProfile != null) { SeccompProfile.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (SeccompProfile != null) { SeccompProfile.Validate(); } if (Sysctls != null) { foreach (var element in Sysctls) { if (element != null) { element.Validate(); } } } }