Class Rule
Assembly: Confluent.SchemaRegistry.dll
Syntax
[DataContract]
public class Rule : IEquatable<Rule>
Constructors
Rule(string, RuleKind, RuleMode, string, ISet<string>, IDictionary<string, string>)
Declaration
public Rule(string name, RuleKind kind, RuleMode mode, string type, ISet<string> tags, IDictionary<string, string> parameters)
Parameters
Rule(string, RuleKind, RuleMode, string, ISet<string>, IDictionary<string, string>, string, string, string, bool)
Declaration
public Rule(string name, RuleKind kind, RuleMode mode, string type, ISet<string> tags, IDictionary<string, string> parameters, string expr, string onSuccess, string onFailure, bool disabled)
Parameters
Properties
Disabled
Declaration
[DataMember(Name = "disabled")]
public bool Disabled { get; set; }
Property Value
Doc
Declaration
[DataMember(Name = "doc")]
public string Doc { get; set; }
Property Value
Expr
Declaration
[DataMember(Name = "expr")]
public string Expr { get; set; }
Property Value
Kind
Declaration
[DataMember(Name = "kind")]
public RuleKind Kind { get; set; }
Property Value
Mode
Declaration
[DataMember(Name = "mode")]
public RuleMode Mode { get; set; }
Property Value
Name
Declaration
[DataMember(Name = "name")]
public string Name { get; set; }
Property Value
OnFailure
Declaration
[DataMember(Name = "onFailure")]
public string OnFailure { get; set; }
Property Value
OnSuccess
Declaration
[DataMember(Name = "onSuccess")]
public string OnSuccess { get; set; }
Property Value
Params
Declaration
[DataMember(Name = "params")]
public IDictionary<string, string> Params { get; set; }
Property Value
Declaration
[DataMember(Name = "tags")]
public ISet<string> Tags { get; set; }
Property Value
Type
Declaration
[DataMember(Name = "type")]
public string Type { get; set; }
Property Value
Methods
Equals(Rule)
Indicates whether the current object is equal to another object of the same type.
Declaration
public bool Equals(Rule other)
Parameters
Type |
Name |
Description |
Rule |
other |
An object to compare with this object.
|
Returns
Type |
Description |
bool |
true if the current object is equal to the other parameter; otherwise, false.
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
object |
obj |
The object to compare with the current object.
|
Returns
Type |
Description |
bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
int |
A hash code for the current object.
|
Overrides
Implements