Files
deb-python-pyvmomi/docs/vim/host/Ruleset/Rule.rst
Shawn Hartsock 15f7be9a52 pyVmomi reStructured Text Documentation
This external documentation for pyVmomi was generated using Googly Docs
(aka Google Standard Documentation) which renders very cleanly in
GitHub. Internal documentation for a class should be done in Sphinx
format because tools like pyCharm and Eclipse can use that documentation
as a hint for code completion.

Note: External docs as Googly Docs, internal docs as Sphinx.

Closes bug#15
2014-06-17 14:07:42 -04:00

1.1 KiB

vim.host.Ruleset.Rule

This data object type describes a port (or range of ports), identified by port number(s), direction and protocol. It is used as a convenient way for users to express what ports they want to permit through the firewall.

extends

vmodl.DynamicData

Attributes:

port (int):

The port number.

endPort (int, optional):

For a port range, the ending port number.

direction (vim.host.Ruleset.Rule.Direction):

The port direction.

portType (vim.host.Ruleset.Rule.PortType, optional):

The port type.

protocol (str):

The port protocol. Valid values are defined by the HostFirewallRuleProtocol enumeration.