class K8S::Api::Extensions::V1beta1::NetworkPolicyIngressRule
- K8S::Api::Extensions::V1beta1::NetworkPolicyIngressRule
- Reference
- Object
Overview
DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by [networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.](networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.)
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.13/api/extensions/v1beta1/network_policy_ingress_rule.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, from : Array(Api::Extensions::V1beta1::NetworkPolicyPeer)? = nil, ports : Array(Api::Extensions::V1beta1::NetworkPolicyPort)? = nil)
Instance Method Summary
- #from : Array(Api::Extensions::V1beta1::NetworkPolicyPeer)?
- #from=(from : Array(Api::Extensions::V1beta1::NetworkPolicyPeer)?)
- #ports : Array(Api::Extensions::V1beta1::NetworkPolicyPort)?
- #ports=(ports : Array(Api::Extensions::V1beta1::NetworkPolicyPort)?)
Constructor Detail
def self.new(*, from : Array(Api::Extensions::V1beta1::NetworkPolicyPeer)? = nil, ports : Array(Api::Extensions::V1beta1::NetworkPolicyPort)? = nil)
#