/// <summary>
 /// Initializes a new instance of the PolicySettings class.
 /// </summary>
 /// <param name="state">Describes if the policy is in enabled state or
 /// disabled state. Possible values include: 'Disabled',
 /// 'Enabled'</param>
 /// <param name="mode">Describes if it is in detection mode or
 /// prevention mode at policy level. Possible values include:
 /// 'Prevention', 'Detection'</param>
 /// <param name="requestBodyCheck">Whether to allow WAF to check
 /// request Body.</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>
 public PolicySettings(WebApplicationFirewallEnabledState state = default(WebApplicationFirewallEnabledState), WebApplicationFirewallMode mode = default(WebApplicationFirewallMode), bool?requestBodyCheck = default(bool?), int?maxRequestBodySizeInKb = default(int?), int?fileUploadLimitInMb = default(int?))
 {
     State                  = state;
     Mode                   = mode;
     RequestBodyCheck       = requestBodyCheck;
     MaxRequestBodySizeInKb = maxRequestBodySizeInKb;
     FileUploadLimitInMb    = fileUploadLimitInMb;
     CustomInit();
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the PolicySettings class.
 /// </summary>
 /// <param name="enabledState">Describes if the policy is in enabled
 /// state or disabled state. Possible values include: 'Disabled',
 /// 'Enabled'</param>
 /// <param name="mode">Describes if it is in detection mode or
 /// prevention mode at policy level. Possible values include:
 /// 'Prevention', 'Detection'</param>
 public PolicySettings(WebApplicationFirewallEnabledState enabledState = default(WebApplicationFirewallEnabledState), WebApplicationFirewallMode mode = default(WebApplicationFirewallMode))
 {
     EnabledState = enabledState;
     Mode         = mode;
     CustomInit();
 }