UdpOptions

class oci.core.models.UdpOptions(**kwargs)

Bases: object

Optional object to specify ports for a UDP rule. If you specify UDP as the protocol but omit this object, then all ports are allowed.

__init__(**kwargs)

Initializes a new UdpOptions object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • destination_port_range (PortRange) -- The value to assign to the destination_port_range property of this UdpOptions.
  • source_port_range (PortRange) -- The value to assign to the source_port_range property of this UdpOptions.
destination_port_range

Gets the destination_port_range of this UdpOptions. An inclusive range of allowed destination ports. Use the same number for the min and max to indicate a single port. Defaults to all ports if not specified.

Returns:The destination_port_range of this UdpOptions.
Return type:PortRange
source_port_range

Gets the source_port_range of this UdpOptions. An inclusive range of allowed source ports. Use the same number for the min and max to indicate a single port. Defaults to all ports if not specified.

Returns:The source_port_range of this UdpOptions.
Return type:PortRange