Interface V1Networking.NetworkPolicyIngressRuleOrBuilder

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

public static interface V1Networking.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.networking.v1.NetworkPolicyPort ports = 1;
    • getPorts

      V1Networking.NetworkPolicyPort getPorts(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.networking.v1.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.networking.v1.NetworkPolicyPort ports = 1;
    • getPortsOrBuilderList

      List<? extends V1Networking.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.networking.v1.NetworkPolicyPort ports = 1;
    • getPortsOrBuilder

      V1Networking.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.networking.v1.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.networking.v1.NetworkPolicyPeer from = 2;
    • getFrom

      V1Networking.NetworkPolicyPeer getFrom(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.networking.v1.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.networking.v1.NetworkPolicyPeer from = 2;
    • getFromOrBuilderList

      List<? extends V1Networking.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.networking.v1.NetworkPolicyPeer from = 2;
    • getFromOrBuilder

      V1Networking.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.networking.v1.NetworkPolicyPeer from = 2;