Class ResourcePattern
Represents a pattern that is used by ACLs to match zero or more resources.
Inherited Members
Namespace: Confluent.Kafka.Admin
Assembly: Confluent.Kafka.dll
Syntax
public class ResourcePattern
Properties
Name
The resource name, which depends on the resource type. For ResourceBroker the resource name is the broker id.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
ResourcePatternType
The resource pattern, which controls how the pattern will match resource names.
Declaration
public ResourcePatternType ResourcePatternType { get; set; }
Property Value
Type | Description |
---|---|
ResourcePatternType |
Type
The resource type.
Declaration
public ResourceType Type { get; set; }
Property Value
Type | Description |
---|---|
ResourceType |
Methods
Clone()
A clone of the ResourcePattern object
Declaration
public ResourcePattern Clone()
Returns
Type | Description |
---|---|
ResourcePattern |
Equals(object)
Tests whether this instance is equal to the specified object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to test. |
Returns
Type | Description |
---|---|
bool | true if it is of the same type and the property values are equal. false otherwise. |
Overrides
GetHashCode()
Returns a hash code for this value.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | An integer that specifies a hash value for this value. |
Overrides
ToFilter()
Create a filter which matches only this ResourcePattern.
Declaration
public ResourcePatternFilter ToFilter()
Returns
Type | Description |
---|---|
ResourcePatternFilter |
ToString()
Returns a JSON representation of this ResourcePattern object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A JSON representation of this ResourcePattern object. |
Overrides
Operators
operator ==(ResourcePattern, ResourcePattern)
Tests whether ResourcePattern instance a is equal to ResourcePattern instance b.
Declaration
public static bool operator ==(ResourcePattern a, ResourcePattern b)
Parameters
Type | Name | Description |
---|---|---|
ResourcePattern | a | The first ResourcePattern instance to compare. |
ResourcePattern | b | The second ResourcePattern instance to compare. |
Returns
Type | Description |
---|---|
bool | true if ResourcePattern instances a and b are equal. false otherwise. |
operator !=(ResourcePattern, ResourcePattern)
Tests whether ResourcePattern instance a is not equal to ResourcePattern instance b.
Declaration
public static bool operator !=(ResourcePattern a, ResourcePattern b)
Parameters
Type | Name | Description |
---|---|---|
ResourcePattern | a | The first ResourcePattern instance to compare. |
ResourcePattern | b | The second ResourcePattern instance to compare. |
Returns
Type | Description |
---|---|
bool | true if ResourcePattern instances a and b are not equal. false otherwise. |