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
- YAML::Serializable
Defined in:
versions/v1.21/api/networking/v1/network_policy_port.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, end_port : Int32? = nil, port : Int32 | String | Nil = nil, protocol : String? = nil)
Instance Method Summary
- #end_port : Int32?
- #end_port=(end_port : Int32?)
- #port : Int32 | String | Nil
- #port=(port : Int32 | String | Nil)
- #protocol : String?
- #protocol=(protocol : String?)
Constructor Detail
def self.new(*, end_port : Int32? = nil, port : Int32 | String | Nil = nil, protocol : String? = nil)
#