Files
deb-python-pyvmomi/docs/vim/option/OptionManager.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

100 lines
2.8 KiB
ReStructuredText

.. _str: https://docs.python.org/2/library/stdtypes.html
.. _vim.Task: ../../vim/Task.rst
.. _vim.option.OptionDef: ../../vim/option/OptionDef.rst
.. _vim.fault.InvalidName: ../../vim/fault/InvalidName.rst
.. _vim.option.OptionValue: ../../vim/option/OptionValue.rst
.. _vmodl.fault.InvalidArgument: ../../vmodl/fault/InvalidArgument.rst
vim.option.OptionManager
========================
This managed object type is used for managing key/value pair options.
* You can define options on the fly, in a logical tree using a dot notation for keys. For example, "Ethernet.Connection" describes the Connection option as child of the Ethernet option.
* You can use the queryMethod to retrieve a single property or a subset of properties based on the dot notation path.
*
Attributes
----------
supportedOption (`vim.option.OptionDef`_):
A list of supported key/value pair options including their type information.
setting (`vim.option.OptionValue`_):
A list of the current settings for the key/value pair options.
Methods
-------
QueryOptions(name):
Returns a specific node or nodes in the option hierarchy.This method might require any of the following privileges depending on where the property fits in the inventory tree.
* System.View on the root folder, if this is used to read settings in the
* client
* subtree.
* System.Read on the root folder, if this is used to read all settings or any settings beside those in the
* client
* subtree.
* System.Read on the host, if this is used to read the advanced options for a host configuration.
*
Privilege:
System.View
Args:
name (`str`_, optional):
Returns:
`vim.option.OptionValue`_:
The option with the given name. If the name ends with a dot, all options for that subtree are returned.
Raises:
`vim.fault.InvalidName`_:
if no option or subtree exists with the given name.
UpdateOptions(changedValue):
Updates one or more properties. These properties are changed atomically: either all are applied or none are.A nested option setting can be named using a dot notation; for example, system.cacheSize.This method might require any of the following privileges depending on where the property fits in the inventory tree.
* Global.Settings on the root folder, if this is used to modify the settings in the service node.
* Host.Config.AdvancedConfig on the host, if this is used to set the advanced options in the host configuration.
*
Privilege:
dynamic
Args:
changedValue (`vim.option.OptionValue`_):
Returns:
None
Raises:
`vim.fault.InvalidName`_:
if one or more OptionValue objects refers to a non-existent option.
`vmodl.fault.InvalidArgument`_:
if one or more OptionValue contains an invalid value.