def __init__(self, ports=None, to=None):
self._ports = None<EOL>self._to = None<EOL>self.discriminator = None<EOL>if ports is not None:<EOL><INDENT>self.ports = ports<EOL><DEDENT>if to is not None:<EOL><INDENT>self.to = to<EOL><DEDENT>
V1beta1NetworkPolicyEgressRule - a model defined in Swagger