Class IPBlock

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<IPBlockBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class IPBlock
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<IPBlockBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    IPBlock describes a particular CIDR (Ex. "192.168.1.0/24","2001:db8::/64") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.
    See Also:
    Serialized Form
    • Constructor Detail

      • IPBlock

        public IPBlock()
        No args constructor for use in serialization
    • Method Detail

      • getCidr

        public String getCidr()
        cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
      • setCidr

        public void setCidr​(String cidr)
        cidr is a string representing the IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64"
      • getExcept

        public List<String> getExcept()
        except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range
      • setExcept

        public void setExcept​(List<String> except)
        except is a slice of CIDRs that should not be included within an IPBlock Valid examples are "192.168.1.0/24" or "2001:db8::/64" Except values will be rejected if they are outside the cidr range
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)