Show / Hide Table of Contents

Class V1IPBlock

IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.

Inheritance
object
V1IPBlock
Implements
IEquatable<V1IPBlock>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1IPBlock : IEquatable<V1IPBlock>

Constructors

View Source

V1IPBlock()

Declaration
public V1IPBlock()
View Source

V1IPBlock(V1IPBlock)

Declaration
protected V1IPBlock(V1IPBlock original)
Parameters
Type Name Description
V1IPBlock original

Properties

View Source

Cidr

cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"

Declaration
[JsonPropertyName("cidr")]
public string Cidr { get; set; }
Property Value
Type Description
string
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

Except

except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range

Declaration
[JsonPropertyName("except")]
public IList<string> Except { get; set; }
Property Value
Type Description
IList<string>

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1IPBlock?)

Declaration
public virtual bool Equals(V1IPBlock? other)
Parameters
Type Name Description
V1IPBlock other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1IPBlock?, V1IPBlock?)

Declaration
public static bool operator ==(V1IPBlock? left, V1IPBlock? right)
Parameters
Type Name Description
V1IPBlock left
V1IPBlock right
Returns
Type Description
bool
View Source

operator !=(V1IPBlock?, V1IPBlock?)

Declaration
public static bool operator !=(V1IPBlock? left, V1IPBlock? right)
Parameters
Type Name Description
V1IPBlock left
V1IPBlock right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX