PolicySettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines contents of a web application firewall global configuration
[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.PolicySettingsTypeConverter))]
public class PolicySettings : Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IPolicySettings
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.PolicySettingsTypeConverter))>]
type PolicySettings = class
interface IPolicySettings
interface IJsonSerializable
Public Class PolicySettings
Implements IPolicySettings
- Inheritance
-
PolicySettings
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| PolicySettings() |
Creates an new PolicySettings instance. |
Properties
| Name | Description |
|---|---|
| DefaultCustomBlockResponseBody |
If the action type is block, customer can override the response body. The body must be specified in base64 encoding. |
| DefaultCustomBlockResponseStatusCode |
If the action type is block, this field defines the default customer overridable http response status code. |
| DefaultRedirectUrl |
If action type is redirect, this field represents the default redirect URL for the client. |
| EnabledState |
describes if the policy is in enabled state or disabled state |
| Mode |
Describes if it is in detection mode or prevention mode at policy level. |
Methods
| Name | Description |
|---|---|
| DeserializeFromDictionary(IDictionary) |
Deserializes a IDictionary into an instance of PolicySettings. |
| DeserializeFromPSObject(PSObject) |
Deserializes a PSObject into an instance of PolicySettings. |
| FromJson(JsonNode) |
Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IPolicySettings. |
| FromJsonString(String) |
Creates a new instance of PolicySettings, deserializing the content from a json string. |
| ToJson(JsonObject, SerializationMode) |
Serializes this instance of PolicySettings into a JsonNode. |
| ToJsonString() |
Serializes this instance to a json string. |
| ToString() | |