<spanid="vmware-vapi-package"></span><h1>vmware.vapi package<aclass="headerlink"href="#module-vmware.vapi"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="subpackages">
<h2>Subpackages<aclass="headerlink"href="#subpackages"title="Permalink to this headline">¶</a></h2>
<h2>Submodules<aclass="headerlink"href="#submodules"title="Permalink to this headline">¶</a></h2>
</div>
<divclass="section"id="module-vmware.vapi.core">
<spanid="vmware-vapi-core-module"></span><h2>vmware.vapi.core module<aclass="headerlink"href="#module-vmware.vapi.core"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">ApiInterface</code><aclass="headerlink"href="#vmware.vapi.core.ApiInterface"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_definition</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ApiInterface.get_definition"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_identifier</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ApiInterface.get_identifier"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_method_definition</code><spanclass="sig-paren">(</span><emclass="sig-param">method_id</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ApiInterface.get_method_definition"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">invoke</code><spanclass="sig-paren">(</span><emclass="sig-param">ctx</em>, <emclass="sig-param">method_id</em>, <emclass="sig-param">input_value</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ApiInterface.invoke"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">ApiProvider</code><aclass="headerlink"href="#vmware.vapi.core.ApiProvider"title="Permalink to this definition">¶</a></dt>
<emclass="property">abstract </em><codeclass="sig-name descname">invoke</code><spanclass="sig-paren">(</span><emclass="sig-param">service_id</em>, <emclass="sig-param">operation_id</em>, <emclass="sig-param">input_value</em>, <emclass="sig-param">ctx</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ApiProvider.invoke"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">ApplicationContext</code><spanclass="sig-paren">(</span><emclass="sig-param">*args</em>, <emclass="sig-param">**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ApplicationContext"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">CustomDict</code><aclass="headerlink"href="#vmware.vapi.core.CustomDict"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">setdefault</code><spanclass="sig-paren">(</span><emclass="sig-param">k</em><spanclass="optional">[</span>, <emclass="sig-param">d</em><spanclass="optional">]</span><spanclass="sig-paren">)</span>→ D.get(k,d), also set D[k]=d if k not in D<aclass="headerlink"href="#vmware.vapi.core.CustomDict.setdefault"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">update</code><spanclass="sig-paren">(</span><spanclass="optional">[</span><emclass="sig-param">E</em>, <spanclass="optional">]</span><emclass="sig-param">**F</em><spanclass="sig-paren">)</span>→ None. Update D from dict/iterable E and F.<aclass="headerlink"href="#vmware.vapi.core.CustomDict.update"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">ExecutionContext</code><spanclass="sig-paren">(</span><emclass="sig-param">application_context=None</em>, <emclass="sig-param">security_context=None</em>, <emclass="sig-param">runtime_data=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ExecutionContext"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">InterfaceDefinition</code><spanclass="sig-paren">(</span><emclass="sig-param">id_</em>, <emclass="sig-param">method_ids</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.InterfaceDefinition"title="Permalink to this definition">¶</a></dt>
<li><p><strong>id</strong> (<aclass="reference internal"href="#vmware.vapi.core.InterfaceIdentifier"title="vmware.vapi.core.InterfaceIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">InterfaceIdentifier</span></code></a>) – InterfaceIdentifier of this interface</p></li>
<li><p><strong>method_ids</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#vmware.vapi.core.MethodIdentifier"title="vmware.vapi.core.MethodIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MethodIdentifier</span></code></a>) – List of method identifiers of the methods exposed by
<codeclass="sig-name descname">get_identifier</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.InterfaceDefinition.get_identifier"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_method_identifiers</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.InterfaceDefinition.get_method_identifiers"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">InterfaceIdentifier</code><spanclass="sig-paren">(</span><emclass="sig-param">iface</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.InterfaceIdentifier"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_name</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.InterfaceIdentifier.get_name"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">MethodDefinition</code><spanclass="sig-paren">(</span><emclass="sig-param">id_</em>, <emclass="sig-param">input_</em>, <emclass="sig-param">output</em>, <emclass="sig-param">errors</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodDefinition"title="Permalink to this definition">¶</a></dt>
<li><p><strong>id</strong> (<aclass="reference internal"href="#vmware.vapi.core.MethodIdentifier"title="vmware.vapi.core.MethodIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MethodIdentifier</span></code></a>) – MethodIdentifier of this method</p></li>
<li><p><strong>input</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">vmware.vapi.data.definition.StructDefinition</span></code>) – Struct definition corresponding to the method’s input
parameters</p></li>
<li><p><strong>output</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">vmware.vapi.data.definition.DataDefinition</span></code>) – Data definition of the method’s output</p></li>
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">vmware.vapi.data.definition.ErrorDefinition</span></code>) – Error definitions describing the errors that this method
<codeclass="sig-name descname">get_error_definition</code><spanclass="sig-paren">(</span><emclass="sig-param">error_name</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodDefinition.get_error_definition"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>error_name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the error definition to return</p>
<codeclass="sig-name descname">get_error_definitions</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodDefinition.get_error_definitions"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_identifier</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodDefinition.get_identifier"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_input_definition</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodDefinition.get_input_definition"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_output_definition</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodDefinition.get_output_definition"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">MethodIdentifier</code><spanclass="sig-paren">(</span><emclass="sig-param">iface</em>, <emclass="sig-param">method</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodIdentifier"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_interface_identifier</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodIdentifier.get_interface_identifier"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_name</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodIdentifier.get_name"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">MethodResult</code><spanclass="sig-paren">(</span><emclass="sig-param">output=None</em>, <emclass="sig-param">error=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodResult"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">error</code><aclass="headerlink"href="#vmware.vapi.core.MethodResult.error"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">output</code><aclass="headerlink"href="#vmware.vapi.core.MethodResult.output"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">success</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.MethodResult.success"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">ProviderDefinition</code><spanclass="sig-paren">(</span><emclass="sig-param">name</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ProviderDefinition"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the provider</p>
<codeclass="sig-name descname">get_identifier</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.ProviderDefinition.get_identifier"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">RuntimeData</code><spanclass="sig-paren">(</span><emclass="sig-param">*args</em>, <emclass="sig-param">**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.RuntimeData"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.core.</code><codeclass="sig-name descname">SecurityContext</code><spanclass="sig-paren">(</span><emclass="sig-param">*args</em>, <emclass="sig-param">**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.core.SecurityContext"title="Permalink to this definition">¶</a></dt>
<spanid="vmware-vapi-exception-module"></span><h2>vmware.vapi.exception module<aclass="headerlink"href="#module-vmware.vapi.exception"title="Permalink to this headline">¶</a></h2>
<emclass="property">exception </em><codeclass="sig-prename descclassname">vmware.vapi.exception.</code><codeclass="sig-name descname">CoreException</code><spanclass="sig-paren">(</span><emclass="sig-param">message</em>, <emclass="sig-param">cause=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.exception.CoreException"title="Permalink to this definition">¶</a></dt>
<ddclass="field-odd"><p><aclass="reference internal"href="#vmware.vapi.exception.CoreException.messages"title="vmware.vapi.exception.CoreException.messages"><strong>messages</strong></a>– Generator of error messages describing why the Exception
<emclass="property">property </em><codeclass="sig-name descname">messages</code><aclass="headerlink"href="#vmware.vapi.exception.CoreException.messages"title="Permalink to this definition">¶</a></dt>
<spanid="vmware-vapi-message-module"></span><h2>vmware.vapi.message module<aclass="headerlink"href="#module-vmware.vapi.message"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.message.</code><codeclass="sig-name descname">Message</code><spanclass="sig-paren">(</span><emclass="sig-param">id_</em>, <emclass="sig-param">def_msg</em>, <emclass="sig-param">*args</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.message.Message"title="Permalink to this definition">¶</a></dt>
<li><p><strong>def_msg</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">string</span></code>) – An english language default</p></li>
<li><p><strong>args</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">string</span></code>) – The arguments to be used for the messsage</p></li>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.message.</code><codeclass="sig-name descname">MessageBundle</code><spanclass="sig-paren">(</span><emclass="sig-param">messages</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.message.MessageBundle"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get</code><spanclass="sig-paren">(</span><emclass="sig-param">msg_id</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.message.MessageBundle.get"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.message.</code><codeclass="sig-name descname">MessageFactory</code><spanclass="sig-paren">(</span><emclass="sig-param">msg_bundle</em>, <emclass="sig-param">formatter</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.message.MessageFactory"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_message</code><spanclass="sig-paren">(</span><emclass="sig-param">id_</em>, <emclass="sig-param">*args</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.message.MessageFactory.get_message"title="Permalink to this definition">¶</a></dt>
<li><p><strong>id</strong> (<em>string</em>) – The unique message identifier</p></li>
<li><p><strong>args</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">object</span></code>) – The arguments to be used for constructing this message</p></li>
<emclass="property">class </em><codeclass="sig-prename descclassname">vmware.vapi.message.</code><codeclass="sig-name descname">MessageFormatter</code><aclass="headerlink"href="#vmware.vapi.message.MessageFormatter"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">format_msg</code><spanclass="sig-paren">(</span><emclass="sig-param">msg</em>, <emclass="sig-param">args</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.message.MessageFormatter.format_msg"title="Permalink to this definition">¶</a></dt>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.