Interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
V1beta1Extensions.NetworkPolicyIngressRule, V1beta1Extensions.NetworkPolicyIngressRule.Builder
Enclosing class:
V1beta1Extensions

public static interface V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getPortsList

       List of ports which should be made accessible on the pods selected for this rule.
       Each item in this list is combined using a logical OR.
       If this field is empty or missing, this rule matches all ports (traffic not restricted by port).
       If this field is present and contains at least one item, then this rule allows traffic
       only if the traffic matches at least one port in the list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
    • getPorts

       List of ports which should be made accessible on the pods selected for this rule.
       Each item in this list is combined using a logical OR.
       If this field is empty or missing, this rule matches all ports (traffic not restricted by port).
       If this field is present and contains at least one item, then this rule allows traffic
       only if the traffic matches at least one port in the list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
    • getPortsCount

      int getPortsCount()
       List of ports which should be made accessible on the pods selected for this rule.
       Each item in this list is combined using a logical OR.
       If this field is empty or missing, this rule matches all ports (traffic not restricted by port).
       If this field is present and contains at least one item, then this rule allows traffic
       only if the traffic matches at least one port in the list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
    • getPortsOrBuilderList

      List<? extends V1beta1Extensions.NetworkPolicyPortOrBuilder> getPortsOrBuilderList()
       List of ports which should be made accessible on the pods selected for this rule.
       Each item in this list is combined using a logical OR.
       If this field is empty or missing, this rule matches all ports (traffic not restricted by port).
       If this field is present and contains at least one item, then this rule allows traffic
       only if the traffic matches at least one port in the list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
    • getPortsOrBuilder

      V1beta1Extensions.NetworkPolicyPortOrBuilder getPortsOrBuilder(int index)
       List of ports which should be made accessible on the pods selected for this rule.
       Each item in this list is combined using a logical OR.
       If this field is empty or missing, this rule matches all ports (traffic not restricted by port).
       If this field is present and contains at least one item, then this rule allows traffic
       only if the traffic matches at least one port in the list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPort ports = 1;
    • getFromList

       List of sources which should be able to access the pods selected for this rule.
       Items in this list are combined using a logical OR operation.
       If this field is empty or missing, this rule matches all sources (traffic not restricted by source).
       If this field is present and contains at least one item, this rule allows traffic only if the
       traffic matches at least one item in the from list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
    • getFrom

       List of sources which should be able to access the pods selected for this rule.
       Items in this list are combined using a logical OR operation.
       If this field is empty or missing, this rule matches all sources (traffic not restricted by source).
       If this field is present and contains at least one item, this rule allows traffic only if the
       traffic matches at least one item in the from list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
    • getFromCount

      int getFromCount()
       List of sources which should be able to access the pods selected for this rule.
       Items in this list are combined using a logical OR operation.
       If this field is empty or missing, this rule matches all sources (traffic not restricted by source).
       If this field is present and contains at least one item, this rule allows traffic only if the
       traffic matches at least one item in the from list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
    • getFromOrBuilderList

      List<? extends V1beta1Extensions.NetworkPolicyPeerOrBuilder> getFromOrBuilderList()
       List of sources which should be able to access the pods selected for this rule.
       Items in this list are combined using a logical OR operation.
       If this field is empty or missing, this rule matches all sources (traffic not restricted by source).
       If this field is present and contains at least one item, this rule allows traffic only if the
       traffic matches at least one item in the from list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;
    • getFromOrBuilder

      V1beta1Extensions.NetworkPolicyPeerOrBuilder getFromOrBuilder(int index)
       List of sources which should be able to access the pods selected for this rule.
       Items in this list are combined using a logical OR operation.
       If this field is empty or missing, this rule matches all sources (traffic not restricted by source).
       If this field is present and contains at least one item, this rule allows traffic only if the
       traffic matches at least one item in the from list.
       +optional
       
      repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyPeer from = 2;