/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (PolicySettings != null)
     {
         PolicySettings.Validate();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the WebApplicationFirewallPolicy1
 /// class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="policySettings">Describes  policySettings for
 /// policy</param>
 /// <param name="customRules">Describes custom rules inside the
 /// policy</param>
 /// <param name="managedRules">Describes managed rules inside the
 /// policy</param>
 /// <param name="provisioningState">Provisioning state of the
 /// WebApplicationFirewallPolicy.</param>
 /// <param name="resourceState">Resource status of the policy.</param>
 /// <param name="etag">Gets a unique read-only string that changes
 /// whenever the resource is updated.</param>
 public WebApplicationFirewallPolicy1(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), PolicySettings policySettings = default(PolicySettings), CustomRules customRules = default(CustomRules), ManagedRuleSets managedRules = default(ManagedRuleSets), string provisioningState = default(string), string resourceState = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     PolicySettings    = policySettings;
     CustomRules       = customRules;
     ManagedRules      = managedRules;
     ProvisioningState = provisioningState;
     ResourceState     = resourceState;
     Etag = etag;
     CustomInit();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the WebApplicationFirewallPolicy
 /// class.
 /// </summary>
 /// <param name="id">Resource ID.</param>
 /// <param name="name">Resource name.</param>
 /// <param name="type">Resource type.</param>
 /// <param name="location">Resource location.</param>
 /// <param name="tags">Resource tags.</param>
 /// <param name="policySettings">Describes settings for the
 /// policy.</param>
 /// <param name="customRules">Describes custom rules inside the
 /// policy.</param>
 /// <param name="managedRules">Describes managed rules inside the
 /// policy.</param>
 /// <param name="frontendEndpointLinks">Describes Frontend Endpoints
 /// associated with this Web Application Firewall policy.</param>
 /// <param name="provisioningState">Provisioning state of the
 /// policy.</param>
 /// <param name="resourceState">Resource status of the policy.</param>
 /// <param name="etag">Gets a unique read-only string that changes
 /// whenever the resource is updated.</param>
 public WebApplicationFirewallPolicy(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), PolicySettings policySettings = default(PolicySettings), CustomRuleList customRules = default(CustomRuleList), ManagedRuleSetList managedRules = default(ManagedRuleSetList), IList <FrontendEndpointLink> frontendEndpointLinks = default(IList <FrontendEndpointLink>), string provisioningState = default(string), string resourceState = default(string), string etag = default(string))
     : base(id, name, type, location, tags)
 {
     PolicySettings        = policySettings;
     CustomRules           = customRules;
     ManagedRules          = managedRules;
     FrontendEndpointLinks = frontendEndpointLinks;
     ProvisioningState     = provisioningState;
     ResourceState         = resourceState;
     Etag = etag;
     CustomInit();
 }