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.23/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)
#