Class UaRule
- Namespace
- Cloudflare.NET.Security.Firewall.Models
- Assembly
- Cloudflare.NET.dll
Represents a User-Agent blocking rule returned by the Cloudflare API.
public record UaRule : IEquatable<UaRule>
- Inheritance
-
UaRule
- Implements
- Inherited Members
Constructors
UaRule(string, UaRuleMode, UaRuleConfiguration, bool, string?)
Represents a User-Agent blocking rule returned by the Cloudflare API.
public UaRule(string Id, UaRuleMode Mode, UaRuleConfiguration Configuration, bool Paused, string? Description)
Parameters
IdstringModeUaRuleModeConfigurationUaRuleConfigurationPausedboolDescriptionstring
Properties
Configuration
[JsonPropertyName("configuration")]
public UaRuleConfiguration Configuration { get; init; }
Property Value
Description
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
Id
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Mode
[JsonPropertyName("mode")]
public UaRuleMode Mode { get; init; }
Property Value
Paused
[JsonPropertyName("paused")]
public bool Paused { get; init; }