Class Ruleset
- Namespace
- Cloudflare.NET.Security.Rulesets.Models
- Assembly
- Cloudflare.NET.dll
Represents a Cloudflare Ruleset.
public record Ruleset : IEquatable<Ruleset>
- Inheritance
-
Ruleset
- Implements
- Inherited Members
Constructors
Ruleset(string, string, string, string, DateTime, string?, string?, IReadOnlyList<Rule>?)
Represents a Cloudflare Ruleset.
public Ruleset(string Id, string Name, string Kind, string Version, DateTime LastUpdated, string? Description = null, string? Phase = null, IReadOnlyList<Rule>? Rules = null)
Parameters
IdstringThe unique identifier of the ruleset.
NamestringThe name of the ruleset.
KindstringThe kind of ruleset (e.g., "root", "zone").
VersionstringThe version of the ruleset.
LastUpdatedDateTimeWhen the ruleset was last updated.
DescriptionstringAn optional description of the ruleset.
PhasestringThe phase the ruleset belongs to.
RulesIReadOnlyList<Rule>The list of rules within the ruleset.
Properties
Description
An optional description of the ruleset.
[JsonPropertyName("description")]
public string? Description { get; init; }
Property Value
Id
The unique identifier of the ruleset.
[JsonPropertyName("id")]
public string Id { get; init; }
Property Value
Kind
The kind of ruleset (e.g., "root", "zone").
[JsonPropertyName("kind")]
public string Kind { get; init; }
Property Value
LastUpdated
When the ruleset was last updated.
[JsonPropertyName("last_updated")]
public DateTime LastUpdated { get; init; }
Property Value
Name
The name of the ruleset.
[JsonPropertyName("name")]
public string Name { get; init; }
Property Value
Phase
The phase the ruleset belongs to.
[JsonPropertyName("phase")]
public string? Phase { get; init; }
Property Value
Rules
The list of rules within the ruleset.
[JsonPropertyName("rules")]
public IReadOnlyList<Rule>? Rules { get; init; }
Property Value
Version
The version of the ruleset.
[JsonPropertyName("version")]
public string Version { get; init; }