class K8S::Api::Networking::V1::NetworkPolicyPort

Overview

NetworkPolicyPort describes a port to allow traffic on

Included Modules

Defined in:

versions/v1.18/api/networking/v1/network_policy_port.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
def self.new(*, port : Int32 | String | Nil = nil, protocol : String? = nil) #

[View source]

Instance Method Detail

def port : Int32 | String | Nil #

[View source]
def port=(port : Int32 | String | Nil) #

[View source]
def protocol : String? #

[View source]
def protocol=(protocol : String?) #

[View source]