File: OptionManager.rst

package info (click to toggle)
python-pyvmomi 6.7.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 14,980 kB
  • sloc: python: 9,206; xml: 77; makefile: 9
file content (99 lines) | stat: -rw-r--r-- 2,895 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
.. _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.