/// <summary>
 /// Initializes a new instance of the
 /// ApplicationGatewayWebApplicationFirewallConfiguration class.
 /// </summary>
 /// <param name="enabled">Whether the web application firewall is
 /// enabled or not.</param>
 /// <param name="firewallMode">Web application firewall mode. Possible
 /// values include: 'Detection', 'Prevention'</param>
 /// <param name="ruleSetType">The type of the web application firewall
 /// rule set. Possible values are: 'OWASP'.</param>
 /// <param name="ruleSetVersion">The version of the rule set
 /// type.</param>
 /// <param name="disabledRuleGroups">The disabled rule groups.</param>
 /// <param name="requestBodyCheck">Whether allow WAF to check request
 /// Body.</param>
 /// <param name="maxRequestBodySize">Maxium request body size for
 /// WAF.</param>
 public ApplicationGatewayWebApplicationFirewallConfiguration(bool enabled, ApplicationGatewayFirewallMode firewallMode, string ruleSetType, string ruleSetVersion, IList<ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups = default(IList<ApplicationGatewayFirewallDisabledRuleGroup>), bool? requestBodyCheck = default(bool?), int? maxRequestBodySize = default(int?))
 {
     Enabled = enabled;
     FirewallMode = firewallMode;
     RuleSetType = ruleSetType;
     RuleSetVersion = ruleSetVersion;
     DisabledRuleGroups = disabledRuleGroups;
     RequestBodyCheck = requestBodyCheck;
     MaxRequestBodySize = maxRequestBodySize;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the
 /// ApplicationGatewayWebApplicationFirewallConfiguration class.
 /// </summary>
 /// <param name="enabled">Whether the web application firewall is
 /// enabled or not.</param>
 /// <param name="firewallMode">Web application firewall mode. Possible
 /// values include: 'Detection', 'Prevention'</param>
 /// <param name="ruleSetType">The type of the web application firewall
 /// rule set. Possible values are: 'OWASP'.</param>
 /// <param name="ruleSetVersion">The version of the rule set
 /// type.</param>
 /// <param name="disabledRuleGroups">The disabled rule groups.</param>
 /// <param name="requestBodyCheck">Whether allow WAF to check request
 /// Body.</param>
 /// <param name="maxRequestBodySize">Maximum request body size for
 /// WAF.</param>
 /// <param name="maxRequestBodySizeInKb">Maximum request body size in
 /// Kb for WAF.</param>
 /// <param name="fileUploadLimitInMb">Maximum file upload size in Mb
 /// for WAF.</param>
 /// <param name="exclusions">The exclusion list.</param>
 public ApplicationGatewayWebApplicationFirewallConfiguration(bool enabled, ApplicationGatewayFirewallMode firewallMode, string ruleSetType, string ruleSetVersion, IList <ApplicationGatewayFirewallDisabledRuleGroup> disabledRuleGroups = default(IList <ApplicationGatewayFirewallDisabledRuleGroup>), bool?requestBodyCheck = default(bool?), int?maxRequestBodySize = default(int?), int?maxRequestBodySizeInKb = default(int?), int?fileUploadLimitInMb = default(int?), IList <ApplicationGatewayFirewallExclusion> exclusions = default(IList <ApplicationGatewayFirewallExclusion>))
 {
     Enabled                = enabled;
     FirewallMode           = firewallMode;
     RuleSetType            = ruleSetType;
     RuleSetVersion         = ruleSetVersion;
     DisabledRuleGroups     = disabledRuleGroups;
     RequestBodyCheck       = requestBodyCheck;
     MaxRequestBodySize     = maxRequestBodySize;
     MaxRequestBodySizeInKb = maxRequestBodySizeInKb;
     FileUploadLimitInMb    = fileUploadLimitInMb;
     Exclusions             = exclusions;
     CustomInit();
 }