PortRange¶
-
class
oci.network_firewall.models.
PortRange
(**kwargs)¶ Bases:
object
A Port Range which can be used for the running service. It uses port information.
Methods
__init__
(**kwargs)Initializes a new PortRange object with values from keyword arguments. Attributes
maximum_port
Gets the maximum_port of this PortRange. minimum_port
[Required] Gets the minimum_port of this PortRange. -
__init__
(**kwargs)¶ Initializes a new PortRange object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - minimum_port (int) – The value to assign to the minimum_port property of this PortRange.
- maximum_port (int) – The value to assign to the maximum_port property of this PortRange.
-
maximum_port
¶ Gets the maximum_port of this PortRange. The maximum port in the range (inclusive), which may be absent for a single-port range.
Returns: The maximum_port of this PortRange. Return type: int
-
minimum_port
¶ [Required] Gets the minimum_port of this PortRange. The minimum port in the range (inclusive), or the sole port of a single-port range.
Returns: The minimum_port of this PortRange. Return type: int
-