Table of Contents

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

Id string

The unique identifier of the ruleset.

Name string

The name of the ruleset.

Kind string

The kind of ruleset (e.g., "root", "zone").

Version string

The version of the ruleset.

LastUpdated DateTime

When the ruleset was last updated.

Description string

An optional description of the ruleset.

Phase string

The phase the ruleset belongs to.

Rules IReadOnlyList<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

string

Id

The unique identifier of the ruleset.

[JsonPropertyName("id")]
public string Id { get; init; }

Property Value

string

Kind

The kind of ruleset (e.g., "root", "zone").

[JsonPropertyName("kind")]
public string Kind { get; init; }

Property Value

string

LastUpdated

When the ruleset was last updated.

[JsonPropertyName("last_updated")]
public DateTime LastUpdated { get; init; }

Property Value

DateTime

Name

The name of the ruleset.

[JsonPropertyName("name")]
public string Name { get; init; }

Property Value

string

Phase

The phase the ruleset belongs to.

[JsonPropertyName("phase")]
public string? Phase { get; init; }

Property Value

string

Rules

The list of rules within the ruleset.

[JsonPropertyName("rules")]
public IReadOnlyList<Rule>? Rules { get; init; }

Property Value

IReadOnlyList<Rule>

Version

The version of the ruleset.

[JsonPropertyName("version")]
public string Version { get; init; }

Property Value

string