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

V1IPBlock()

Declaration
public V1IPBlock()

V1IPBlock(V1IPBlock)

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

Properties

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

EqualityContract

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

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

Equals(object?)

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

Equals(V1IPBlock?)

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

GetHashCode()

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

PrintMembers(StringBuilder)

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

ToString()

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

Operators

operator ==(V1IPBlock?, V1IPBlock?)

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

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>
In this article
Back to top Generated by DocFX