def __init__(self, egress=None, ingress=None, pod_selector=None, policy_types=None):
self._egress = None<EOL>self._ingress = None<EOL>self._pod_selector = None<EOL>self._policy_types = None<EOL>self.discriminator = None<EOL>if egress is not None:<EOL><INDENT>self.egress = egress<EOL><DEDENT>if ingress is not None:<EOL><INDENT>self.ingress = ingress<EOL><DEDENT>self.pod_selector = pod_selector<EOL>if policy_types is not None:<EOL><INDENT>self.policy_types = policy_types<EOL><DEDENT>
V1NetworkPolicySpec - a model defined in Swagger