NetworkPolicyPort

case class NetworkPolicyPort(port: Optional[IntOrString], protocol: Optional[String])

NetworkPolicyPort describes a port to allow traffic on

NetworkPolicyPort describes a port to allow traffic on

Value Params
protocol

The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

Gets port.

Gets port.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

def getProtocol: IO[K8sFailure, String]

The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.

The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.

If the field is not present, fails with com.coralogix.zio.k8s.client.UndefinedField.

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product