final case class NetworkPolicySpec(podSelector: LabelSelector, egress: Option[Seq[NetworkPolicyEgressRule]] = None, ingress: Option[Seq[NetworkPolicyIngressRule]] = None, policyTypes: Option[Seq[String]] = None) extends Product with Serializable
NetworkPolicySpec provides the specification of a NetworkPolicy
- Source
- NetworkPolicySpec.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NetworkPolicySpec
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new NetworkPolicySpec(podSelector: LabelSelector, egress: Option[Seq[NetworkPolicyEgressRule]] = None, ingress: Option[Seq[NetworkPolicyIngressRule]] = None, policyTypes: Option[Seq[String]] = None)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addEgress(newValues: NetworkPolicyEgressRule*): NetworkPolicySpec
Appends new values to egress
-
def
addIngress(newValues: NetworkPolicyIngressRule*): NetworkPolicySpec
Appends new values to ingress
-
def
addPolicyTypes(newValues: String*): NetworkPolicySpec
Appends new values to policyTypes
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
- val egress: Option[Seq[NetworkPolicyEgressRule]]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val ingress: Option[Seq[NetworkPolicyIngressRule]]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
mapEgress(f: (Seq[NetworkPolicyEgressRule]) ⇒ Seq[NetworkPolicyEgressRule]): NetworkPolicySpec
if egress has a value, transforms to the result of function
-
def
mapIngress(f: (Seq[NetworkPolicyIngressRule]) ⇒ Seq[NetworkPolicyIngressRule]): NetworkPolicySpec
if ingress has a value, transforms to the result of function
-
def
mapPodSelector(f: (LabelSelector) ⇒ LabelSelector): NetworkPolicySpec
transforms podSelector to result of function
-
def
mapPolicyTypes(f: (Seq[String]) ⇒ Seq[String]): NetworkPolicySpec
if policyTypes has a value, transforms to the result of function
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val podSelector: LabelSelector
- val policyTypes: Option[Seq[String]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
withEgress(value: Seq[NetworkPolicyEgressRule]): NetworkPolicySpec
Returns a new data with egress set to new value
-
def
withIngress(value: Seq[NetworkPolicyIngressRule]): NetworkPolicySpec
Returns a new data with ingress set to new value
-
def
withPodSelector(value: LabelSelector): NetworkPolicySpec
Returns a new data with podSelector set to new value
-
def
withPolicyTypes(value: Seq[String]): NetworkPolicySpec
Returns a new data with policyTypes set to new value