public static final class V1beta1Extensions.NetworkPolicySpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder> implements V1beta1Extensions.NetworkPolicySpecOrBuilder
DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec.Protobuf type
k8s.io.api.extensions.v1beta1.NetworkPolicySpec| Modifier and Type | Method and Description |
|---|---|
V1beta1Extensions.NetworkPolicySpec.Builder |
addAllEgress(Iterable<? extends V1beta1Extensions.NetworkPolicyEgressRule> values)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addAllIngress(Iterable<? extends V1beta1Extensions.NetworkPolicyIngressRule> values)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addAllPolicyTypes(Iterable<String> values)
List of rule types that the NetworkPolicy relates to.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addEgress(int index,
V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addEgress(int index,
V1beta1Extensions.NetworkPolicyEgressRule value)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addEgress(V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addEgress(V1beta1Extensions.NetworkPolicyEgressRule value)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addEgressBuilder()
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
addEgressBuilder(int index)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addIngress(int index,
V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addIngress(int index,
V1beta1Extensions.NetworkPolicyIngressRule value)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addIngress(V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addIngress(V1beta1Extensions.NetworkPolicyIngressRule value)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addIngressBuilder()
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
addIngressBuilder(int index)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addPolicyTypes(String value)
List of rule types that the NetworkPolicy relates to.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addPolicyTypesBytes(com.google.protobuf.ByteString value)
List of rule types that the NetworkPolicy relates to.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicySpec |
build() |
V1beta1Extensions.NetworkPolicySpec |
buildPartial() |
V1beta1Extensions.NetworkPolicySpec.Builder |
clear() |
V1beta1Extensions.NetworkPolicySpec.Builder |
clearEgress()
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1beta1Extensions.NetworkPolicySpec.Builder |
clearIngress()
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1beta1Extensions.NetworkPolicySpec.Builder |
clearPodSelector()
Selects the pods to which this NetworkPolicy object applies.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
clearPolicyTypes()
List of rule types that the NetworkPolicy relates to.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
clone() |
V1beta1Extensions.NetworkPolicySpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
V1beta1Extensions.NetworkPolicyEgressRule |
getEgress(int index)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyEgressRule.Builder |
getEgressBuilder(int index)
List of egress rules to be applied to the selected pods.
|
List<V1beta1Extensions.NetworkPolicyEgressRule.Builder> |
getEgressBuilderList()
List of egress rules to be applied to the selected pods.
|
int |
getEgressCount()
List of egress rules to be applied to the selected pods.
|
List<V1beta1Extensions.NetworkPolicyEgressRule> |
getEgressList()
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyEgressRuleOrBuilder |
getEgressOrBuilder(int index)
List of egress rules to be applied to the selected pods.
|
List<? extends V1beta1Extensions.NetworkPolicyEgressRuleOrBuilder> |
getEgressOrBuilderList()
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyIngressRule |
getIngress(int index)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyIngressRule.Builder |
getIngressBuilder(int index)
List of ingress rules to be applied to the selected pods.
|
List<V1beta1Extensions.NetworkPolicyIngressRule.Builder> |
getIngressBuilderList()
List of ingress rules to be applied to the selected pods.
|
int |
getIngressCount()
List of ingress rules to be applied to the selected pods.
|
List<V1beta1Extensions.NetworkPolicyIngressRule> |
getIngressList()
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder |
getIngressOrBuilder(int index)
List of ingress rules to be applied to the selected pods.
|
List<? extends V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder> |
getIngressOrBuilderList()
List of ingress rules to be applied to the selected pods.
|
Meta.LabelSelector |
getPodSelector()
Selects the pods to which this NetworkPolicy object applies.
|
Meta.LabelSelector.Builder |
getPodSelectorBuilder()
Selects the pods to which this NetworkPolicy object applies.
|
Meta.LabelSelectorOrBuilder |
getPodSelectorOrBuilder()
Selects the pods to which this NetworkPolicy object applies.
|
String |
getPolicyTypes(int index)
List of rule types that the NetworkPolicy relates to.
|
com.google.protobuf.ByteString |
getPolicyTypesBytes(int index)
List of rule types that the NetworkPolicy relates to.
|
int |
getPolicyTypesCount()
List of rule types that the NetworkPolicy relates to.
|
com.google.protobuf.ProtocolStringList |
getPolicyTypesList()
List of rule types that the NetworkPolicy relates to.
|
boolean |
hasPodSelector()
Selects the pods to which this NetworkPolicy object applies.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1beta1Extensions.NetworkPolicySpec.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1beta1Extensions.NetworkPolicySpec.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1beta1Extensions.NetworkPolicySpec.Builder |
mergeFrom(V1beta1Extensions.NetworkPolicySpec other) |
V1beta1Extensions.NetworkPolicySpec.Builder |
mergePodSelector(Meta.LabelSelector value)
Selects the pods to which this NetworkPolicy object applies.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1beta1Extensions.NetworkPolicySpec.Builder |
removeEgress(int index)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
removeIngress(int index)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setEgress(int index,
V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setEgress(int index,
V1beta1Extensions.NetworkPolicyEgressRule value)
List of egress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1beta1Extensions.NetworkPolicySpec.Builder |
setIngress(int index,
V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setIngress(int index,
V1beta1Extensions.NetworkPolicyIngressRule value)
List of ingress rules to be applied to the selected pods.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setPodSelector(Meta.LabelSelector.Builder builderForValue)
Selects the pods to which this NetworkPolicy object applies.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setPodSelector(Meta.LabelSelector value)
Selects the pods to which this NetworkPolicy object applies.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setPolicyTypes(int index,
String value)
List of rule types that the NetworkPolicy relates to.
|
V1beta1Extensions.NetworkPolicySpec.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1beta1Extensions.NetworkPolicySpec.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic V1beta1Extensions.NetworkPolicySpec build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.NetworkPolicySpec buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic V1beta1Extensions.NetworkPolicySpec.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder mergeFrom(V1beta1Extensions.NetworkPolicySpec other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public V1beta1Extensions.NetworkPolicySpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>IOExceptionpublic boolean hasPodSelector()
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;hasPodSelector in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic Meta.LabelSelector getPodSelector()
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;getPodSelector in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicySpec.Builder setPodSelector(Meta.LabelSelector value)
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;public V1beta1Extensions.NetworkPolicySpec.Builder setPodSelector(Meta.LabelSelector.Builder builderForValue)
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;public V1beta1Extensions.NetworkPolicySpec.Builder mergePodSelector(Meta.LabelSelector value)
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;public V1beta1Extensions.NetworkPolicySpec.Builder clearPodSelector()
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;public Meta.LabelSelector.Builder getPodSelectorBuilder()
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;public Meta.LabelSelectorOrBuilder getPodSelectorOrBuilder()
Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector podSelector = 1;getPodSelectorOrBuilder in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic List<V1beta1Extensions.NetworkPolicyIngressRule> getIngressList()
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;getIngressList in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic int getIngressCount()
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;getIngressCount in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicyIngressRule getIngress(int index)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;getIngress in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicySpec.Builder setIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule value)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder setIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(V1beta1Extensions.NetworkPolicyIngressRule value)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule value)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder addIngress(int index, V1beta1Extensions.NetworkPolicyIngressRule.Builder builderForValue)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder addAllIngress(Iterable<? extends V1beta1Extensions.NetworkPolicyIngressRule> values)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder clearIngress()
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicySpec.Builder removeIngress(int index)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder getIngressBuilder(int index)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder getIngressOrBuilder(int index)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;getIngressOrBuilder in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic List<? extends V1beta1Extensions.NetworkPolicyIngressRuleOrBuilder> getIngressOrBuilderList()
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;getIngressOrBuilderList in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicyIngressRule.Builder addIngressBuilder()
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public V1beta1Extensions.NetworkPolicyIngressRule.Builder addIngressBuilder(int index)
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public List<V1beta1Extensions.NetworkPolicyIngressRule.Builder> getIngressBuilderList()
List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyIngressRule ingress = 2;public List<V1beta1Extensions.NetworkPolicyEgressRule> getEgressList()
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;getEgressList in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic int getEgressCount()
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;getEgressCount in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicyEgressRule getEgress(int index)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;getEgress in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicySpec.Builder setEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule value)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder setEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(V1beta1Extensions.NetworkPolicyEgressRule value)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule value)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder addEgress(int index, V1beta1Extensions.NetworkPolicyEgressRule.Builder builderForValue)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder addAllEgress(Iterable<? extends V1beta1Extensions.NetworkPolicyEgressRule> values)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder clearEgress()
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicySpec.Builder removeEgress(int index)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicyEgressRule.Builder getEgressBuilder(int index)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicyEgressRuleOrBuilder getEgressOrBuilder(int index)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;getEgressOrBuilder in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic List<? extends V1beta1Extensions.NetworkPolicyEgressRuleOrBuilder> getEgressOrBuilderList()
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;getEgressOrBuilderList in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicyEgressRule.Builder addEgressBuilder()
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public V1beta1Extensions.NetworkPolicyEgressRule.Builder addEgressBuilder(int index)
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public List<V1beta1Extensions.NetworkPolicyEgressRule.Builder> getEgressBuilderList()
List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 +optional
repeated .k8s.io.api.extensions.v1beta1.NetworkPolicyEgressRule egress = 3;public com.google.protobuf.ProtocolStringList getPolicyTypesList()
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;getPolicyTypesList in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic int getPolicyTypesCount()
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;getPolicyTypesCount in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic String getPolicyTypes(int index)
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;getPolicyTypes in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic com.google.protobuf.ByteString getPolicyTypesBytes(int index)
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;getPolicyTypesBytes in interface V1beta1Extensions.NetworkPolicySpecOrBuilderpublic V1beta1Extensions.NetworkPolicySpec.Builder setPolicyTypes(int index, String value)
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;public V1beta1Extensions.NetworkPolicySpec.Builder addPolicyTypes(String value)
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;public V1beta1Extensions.NetworkPolicySpec.Builder addAllPolicyTypes(Iterable<String> values)
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;public V1beta1Extensions.NetworkPolicySpec.Builder clearPolicyTypes()
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;public V1beta1Extensions.NetworkPolicySpec.Builder addPolicyTypesBytes(com.google.protobuf.ByteString value)
List of rule types that the NetworkPolicy relates to. Valid options are ["Ingress"], ["Egress"], or ["Ingress", "Egress"]. If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ "Egress" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include "Egress" (since such a policy would not include an Egress section and would otherwise default to just [ "Ingress" ]). This field is beta-level in 1.8 +optional
repeated string policyTypes = 4;public final V1beta1Extensions.NetworkPolicySpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>public final V1beta1Extensions.NetworkPolicySpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Extensions.NetworkPolicySpec.Builder>Copyright © 2023. All rights reserved.