NetworkPolicyPeer class

NetworkPolicyPeer describes a peer to allow traffic to/from. Only certain combinations of fields are allowed.

Constructors

NetworkPolicyPeer({IPBlock? ipBlock, LabelSelector? namespaceSelector, LabelSelector? podSelector})
Default constructor.
const
NetworkPolicyPeer.fromJson(Map<String, dynamic> json)
Creates a NetworkPolicyPeer from JSON data.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
ipBlock IPBlock?
ipBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.
final
namespaceSelector LabelSelector?
namespaceSelector selects namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces.
final
podSelector LabelSelector?
podSelector is a label selector which selects pods. This field follows standard label selector semantics; if present but empty, it selects all pods.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a NetworkPolicyPeer instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited