class K8S::Api::Networking::V1::NetworkPolicyPort
- K8S::Api::Networking::V1::NetworkPolicyPort
 - Reference
 - Object
 
Overview
NetworkPolicyPort describes a port to allow traffic on
Included Modules
- JSON::Serializable
 - JSON::Serializable::Unmapped
 - YAML::Serializable
 - YAML::Serializable::Unmapped
 
Defined in:
versions/v1.18/api/networking/v1/network_policy_port.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
 - .new(pull : JSON::PullParser)
 - .new(*, port : Int32 | String | Nil = nil, protocol : String? = nil)
 
Instance Method Summary
- #port : Int32 | String | Nil
 - #port=(port : Int32 | String | Nil)
 - #protocol : String?
 - #protocol=(protocol : String?)