1
0
mirror of https://github.com/vmware/vsphere-automation-sdk-python.git synced 2024-11-23 01:49:59 -05:00
vsphere-automation-sdk-python/vsphere/6.5/vmware.vapi.stdlib.client.html

321 lines
21 KiB
HTML
Raw Normal View History

2018-08-07 19:42:25 -04:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>client Package &mdash; vSphere Automation SDK for Python 6.5.0 documentation</title>
<link rel="stylesheet" href="_static/vapitheme.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: '',
VERSION: '6.5.0',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="top" title="vSphere Automation SDK for Python 6.5.0 documentation" href="index.html" />
<link rel="up" title="stdlib Package" href="vmware.vapi.stdlib.html" />
<link rel="prev" title="stdlib Package" href="vmware.vapi.stdlib.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="vmware.vapi.stdlib.html" title="stdlib Package"
accesskey="P">previous</a> |</li>
<li><a href="index.html">vSphere Automation SDK for Python 6.5.0 documentation</a> &raquo;</li>
<li><a href="vmware.html" >vmware Package</a> &raquo;</li>
<li><a href="vmware.vapi.html" >vapi Package</a> &raquo;</li>
<li><a href="vmware.vapi.stdlib.html" accesskey="U">stdlib Package</a> &raquo;</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<div class="section" id="client-package">
<h1>client Package<a class="headerlink" href="#client-package" title="Permalink to this headline"></a></h1>
<div class="section" id="id1">
<h2><tt class="xref py py-mod docutils literal"><span class="pre">client</span></tt> Package<a class="headerlink" href="#id1" title="Permalink to this headline"></a></h2>
<span class="target" id="module-vmware.vapi.stdlib.client"></span></div>
<div class="section" id="module-vmware.vapi.stdlib.client.factories">
<span id="factories-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">factories</span></tt> Module<a class="headerlink" href="#module-vmware.vapi.stdlib.client.factories" title="Permalink to this headline"></a></h2>
<p>StubConfiguration factory</p>
<dl class="class">
<dt id="vmware.vapi.stdlib.client.factories.StubConfigurationFactory">
<em class="property">class </em><tt class="descclassname">vmware.vapi.stdlib.client.factories.</tt><tt class="descname">StubConfigurationFactory</tt><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/factories.html#StubConfigurationFactory"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.factories.StubConfigurationFactory" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<p>Factory class for creating stub configuration objects</p>
<dl class="staticmethod">
<dt id="vmware.vapi.stdlib.client.factories.StubConfigurationFactory.new_configuration">
<em class="property">static </em><tt class="descname">new_configuration</tt><big>(</big><em>connector</em>, <em>*errorTypes</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/factories.html#StubConfigurationFactory.new_configuration"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.factories.StubConfigurationFactory.new_configuration" title="Permalink to this definition"></a></dt>
<dd><p>Return a stub configuration using the specified connection, with no
registered errors.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>connector</strong> (<a class="reference internal" href="vmware.vapi.protocol.client.html#vmware.vapi.protocol.client.connector.Connector" title="vmware.vapi.protocol.client.connector.Connector"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.protocol.client.connector.Connector</span></tt></a>) &#8211; Connection to be used to talk to the remote
ApiProvider</li>
<li><strong>error_types</strong> (<tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> of <a class="reference internal" href="vmware.vapi.bindings.html#vmware.vapi.bindings.type.ErrorType" title="vmware.vapi.bindings.type.ErrorType"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.bindings.type.ErrorType</span></tt></a>) &#8211; error types to be registered in the configuration</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="staticmethod">
<dt id="vmware.vapi.stdlib.client.factories.StubConfigurationFactory.new_runtime_configuration">
<em class="property">static </em><tt class="descname">new_runtime_configuration</tt><big>(</big><em>connector</em>, <em>*errorTypes</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/factories.html#StubConfigurationFactory.new_runtime_configuration"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.factories.StubConfigurationFactory.new_runtime_configuration" title="Permalink to this definition"></a></dt>
<dd><p>Return a stub configuration using the specified connection, with the
errors reported by the vAPI runtime registered.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>connector</strong> (<a class="reference internal" href="vmware.vapi.protocol.client.html#vmware.vapi.protocol.client.connector.Connector" title="vmware.vapi.protocol.client.connector.Connector"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.protocol.client.connector.Connector</span></tt></a>) &#8211; Connection to be used to talk to the remote
ApiProvider</li>
<li><strong>error_types</strong> (<tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> of <a class="reference internal" href="vmware.vapi.bindings.html#vmware.vapi.bindings.type.ErrorType" title="vmware.vapi.bindings.type.ErrorType"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.bindings.type.ErrorType</span></tt></a>) &#8211; additional error types to be registered in the
configuration</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
<dl class="staticmethod">
<dt id="vmware.vapi.stdlib.client.factories.StubConfigurationFactory.new_std_configuration">
<em class="property">static </em><tt class="descname">new_std_configuration</tt><big>(</big><em>connector</em>, <em>*errorTypes</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/factories.html#StubConfigurationFactory.new_std_configuration"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.factories.StubConfigurationFactory.new_std_configuration" title="Permalink to this definition"></a></dt>
<dd><p>Return a stub configuration using the specified connection, with all the
standard errors registered.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>connector</strong> (<a class="reference internal" href="vmware.vapi.protocol.client.html#vmware.vapi.protocol.client.connector.Connector" title="vmware.vapi.protocol.client.connector.Connector"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.protocol.client.connector.Connector</span></tt></a>) &#8211; Connection to be used to talk to the remote
ApiProvider</li>
<li><strong>error_types</strong> (<tt class="xref py py-class docutils literal"><span class="pre">list</span></tt> of <a class="reference internal" href="vmware.vapi.bindings.html#vmware.vapi.bindings.type.ErrorType" title="vmware.vapi.bindings.type.ErrorType"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.bindings.type.ErrorType</span></tt></a>) &#8211; additional error types to be registered in the
configuration</li>
</ul>
</td>
</tr>
</tbody>
</table>
</dd></dl>
</dd></dl>
</div>
<div class="section" id="module-vmware.vapi.stdlib.client.introspection">
<span id="introspection-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">introspection</span></tt> Module<a class="headerlink" href="#module-vmware.vapi.stdlib.client.introspection" title="Permalink to this headline"></a></h2>
<p>Introspection services</p>
<dl class="class">
<dt id="vmware.vapi.stdlib.client.introspection.IntrospectableApiProvider">
<em class="property">class </em><tt class="descclassname">vmware.vapi.stdlib.client.introspection.</tt><tt class="descname">IntrospectableApiProvider</tt><big>(</big><em>connector</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/introspection.html#IntrospectableApiProvider"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.introspection.IntrospectableApiProvider" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<p>Helper class for invoking the &#8216;get&#8217; operation in the service
&#8216;com.vmware.vapi.std.introspection.Operation&#8217;</p>
<p>Initialize IntrospectableApiProvider</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>Connector</strong> &#8211; Protocol connector to use for operation invocations</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="vmware.vapi.stdlib.client.introspection.IntrospectableApiProvider.get_method">
<tt class="descname">get_method</tt><big>(</big><em>service_id</em>, <em>operation_id</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/introspection.html#IntrospectableApiProvider.get_method"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.introspection.IntrospectableApiProvider.get_method" title="Permalink to this definition"></a></dt>
<dd><p>Get method definition for the specified operation</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first simple">
<li><strong>service_id</strong> (<tt class="xref py py-class docutils literal"><span class="pre">str</span></tt>) &#8211; Service identifier</li>
<li><strong>operation_id</strong> (<tt class="xref py py-class docutils literal"><span class="pre">str</span></tt>) &#8211; Operation identifier</li>
</ul>
</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><p class="first"><a class="reference internal" href="vmware.vapi.html#vmware.vapi.core.MethodDefinition" title="vmware.vapi.core.MethodDefinition"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.core.MethodDefinition</span></tt></a></p>
</td>
</tr>
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body"><p class="first last">Method definition of the specified operation</p>
</td>
</tr>
</tbody>
</table>
</dd></dl>
</dd></dl>
<dl class="function">
<dt id="vmware.vapi.stdlib.client.introspection.make_introspection_error_def">
<tt class="descclassname">vmware.vapi.stdlib.client.introspection.</tt><tt class="descname">make_introspection_error_def</tt><big>(</big><em>error_name</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/introspection.html#make_introspection_error_def"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.introspection.make_introspection_error_def" title="Permalink to this definition"></a></dt>
<dd><p>Create an instance of
<a class="reference internal" href="com.vmware.vapi.std.html#com.vmware.vapi.std.introspection_client.Operation.DataDefinition" title="com.vmware.vapi.std.introspection_client.Operation.DataDefinition"><tt class="xref py py-class docutils literal"><span class="pre">com.vmware.vapi.std.introspection_client.Operation.DataDefinition</span></tt></a> that
represents the standard error specified</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>error_name</strong> (<tt class="xref py py-class docutils literal"><span class="pre">str</span></tt>) &#8211; Fully qualified error name of one of the vAPI standard errors</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><a class="reference internal" href="com.vmware.vapi.std.html#com.vmware.vapi.std.introspection_client.Operation.DataDefinition" title="com.vmware.vapi.std.introspection_client.Operation.DataDefinition"><tt class="xref py py-class docutils literal"><span class="pre">com.vmware.vapi.std.introspection_client.Operation.DataDefinition</span></tt></a></td>
</tr>
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Error definition instance for the given error name</td>
</tr>
</tbody>
</table>
</dd></dl>
</div>
<div class="section" id="module-vmware.vapi.stdlib.client.l10n">
<span id="l10n-module"></span><h2><tt class="xref py py-mod docutils literal"><span class="pre">l10n</span></tt> Module<a class="headerlink" href="#module-vmware.vapi.stdlib.client.l10n" title="Permalink to this headline"></a></h2>
<p>Helper classes for client side localization.</p>
<dl class="class">
<dt id="vmware.vapi.stdlib.client.l10n.MessageLocalizer">
<em class="property">class </em><tt class="descclassname">vmware.vapi.stdlib.client.l10n.</tt><tt class="descname">MessageLocalizer</tt><big>(</big><em>bundle</em>, <em>formatter=&lt;class 'vmware.vapi.l10n.formatter.StringFormatter'&gt;</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/l10n.html#MessageLocalizer"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.l10n.MessageLocalizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">object</span></tt></p>
<p>Helper class to localize vAPI LocalizableMessages.</p>
<p>Before initializating the MessageLocalizer, locale
has to be explicitly set if the user wants a locale
other than English (U.S.).</p>
<p>Typically, at the start of the application, the following
two lines are required to set the locale.</p>
<p>import locale
locale.setlocale(locale.LC_ALL,&lt;locale_type&gt;)</p>
<p>If the locale_type is empty string, locale is set to user&#8217;s
default setting (typically specified in the LANG environment
variable). Otherwise, the specified locale type has to be
installed in the system.</p>
<p>Initialize MessageLocalizer</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
<li><strong>bundle</strong> (<a class="reference internal" href="vmware.vapi.html#vmware.vapi.message.MessageBundle" title="vmware.vapi.message.MessageBundle"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.message.MessageBundle</span></tt></a>) &#8211; Message bundle to retrieve the templates for the
messages</li>
<li><strong>formatter</strong> (<a class="reference internal" href="vmware.vapi.html#vmware.vapi.message.MessageFormatter" title="vmware.vapi.message.MessageFormatter"><tt class="xref py py-class docutils literal"><span class="pre">vmware.vapi.message.MessageFormatter</span></tt></a>) &#8211; Message formatter to format the messages</li>
</ul>
</td>
</tr>
</tbody>
</table>
<dl class="method">
<dt id="vmware.vapi.stdlib.client.l10n.MessageLocalizer.localize">
<tt class="descname">localize</tt><big>(</big><em>msg</em><big>)</big><a class="reference internal" href="_modules/vmware/vapi/stdlib/client/l10n.html#MessageLocalizer.localize"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#vmware.vapi.stdlib.client.l10n.MessageLocalizer.localize" title="Permalink to this definition"></a></dt>
<dd><p>Localize a given LocalizableMessage.</p>
<table class="docutils field-list" frame="void" rules="none">
<col class="field-name" />
<col class="field-body" />
<tbody valign="top">
<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><strong>msg</strong> (<a class="reference internal" href="com.vmware.vapi.html#com.vmware.vapi.std_client.LocalizableMessage" title="com.vmware.vapi.std_client.LocalizableMessage"><tt class="xref py py-class docutils literal"><span class="pre">com.vmware.vapi.std_client.LocalizableMessage</span></tt></a>) &#8211; LocalizableMessage</td>
</tr>
<tr class="field-even field"><th class="field-name">Return type:</th><td class="field-body"><tt class="xref py py-class docutils literal"><span class="pre">str</span></tt></td>
</tr>
<tr class="field-odd field"><th class="field-name">Returns:</th><td class="field-body">Localized string</td>
</tr>
</tbody>
</table>
</dd></dl>
</dd></dl>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">client Package</a><ul>
<li><a class="reference internal" href="#id1"><tt class="docutils literal"><span class="pre">client</span></tt> Package</a></li>
<li><a class="reference internal" href="#module-vmware.vapi.stdlib.client.factories"><tt class="docutils literal"><span class="pre">factories</span></tt> Module</a></li>
<li><a class="reference internal" href="#module-vmware.vapi.stdlib.client.introspection"><tt class="docutils literal"><span class="pre">introspection</span></tt> Module</a></li>
<li><a class="reference internal" href="#module-vmware.vapi.stdlib.client.l10n"><tt class="docutils literal"><span class="pre">l10n</span></tt> Module</a></li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="vmware.vapi.stdlib.html"
title="previous chapter">stdlib Package</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/vmware.vapi.stdlib.client.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="vmware.vapi.stdlib.html" title="stdlib Package"
>previous</a> |</li>
<li><a href="index.html">vSphere Automation SDK for Python 6.5.0 documentation</a> &raquo;</li>
<li><a href="vmware.html" >vmware Package</a> &raquo;</li>
<li><a href="vmware.vapi.html" >vapi Package</a> &raquo;</li>
<li><a href="vmware.vapi.stdlib.html" >stdlib Package</a> &raquo;</li>
</ul>
</div>
<div class="footer">
&copy; Copyright 2014, VMware, Inc..
Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.3.
</div>
</body>
</html>