
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
35 lines
1.1 KiB
ReStructuredText
35 lines
1.1 KiB
ReStructuredText
.. _int: https://docs.python.org/2/library/stdtypes.html
|
|
|
|
.. _str: https://docs.python.org/2/library/stdtypes.html
|
|
|
|
.. _vmodl.DynamicData: ../../../vmodl/DynamicData.rst
|
|
|
|
.. _HostFirewallRuleProtocol: ../../../vim/host/Ruleset/Rule/Protocol.rst
|
|
|
|
.. _vim.host.Ruleset.Rule.PortType: ../../../vim/host/Ruleset/Rule/PortType.rst
|
|
|
|
.. _vim.host.Ruleset.Rule.Direction: ../../../vim/host/Ruleset/Rule/Direction.rst
|
|
|
|
|
|
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.
|