<spanid="vmware-vapi-lib-package"></span><h1>vmware.vapi.lib package<aclass="headerlink"href="#module-vmware.vapi.lib"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="submodules">
<h2>Submodules<aclass="headerlink"href="#submodules"title="Permalink to this headline">¶</a></h2>
<spanid="vmware-vapi-lib-connect-module"></span><h2>vmware.vapi.lib.connect module<aclass="headerlink"href="#module-vmware.vapi.lib.connect"title="Permalink to this headline">¶</a></h2>
<codeclass="descclassname">vmware.vapi.lib.connect.</code><codeclass="descname">check_file_exists</code><spanclass="sig-paren">(</span><em>filename</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.lib.connect.check_file_exists"title="Permalink to this definition">¶</a></dt>
<codeclass="descclassname">vmware.vapi.lib.connect.</code><codeclass="descname">get_connector</code><spanclass="sig-paren">(</span><em>rpc_provider_name</em>, <em>msg_protocol</em>, <em>ssl_context=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.lib.connect.get_connector"title="Permalink to this definition">¶</a></dt>
<dd><p>Create a connection to the vAPI Provider using the specified arguments</p>
<li><strong>rpc_provider_name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The RPC provider to be used for the connection.
Valid values are ‘http’, ‘https’ and ‘requests’</li>
<li><strong>msg_protocol</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The message protocol to be used for the connection.
Valid values are ‘json’.</li>
<li><strong>ssl_context</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">OpenSSL.SSL.Context</span></code>) – SSL context to use for SSL connections</li>
<li><strong>kwargs</strong>– Additional arguments for the RPC provider</li>
<codeclass="descclassname">vmware.vapi.lib.connect.</code><codeclass="descname">get_requests_connector</code><spanclass="sig-paren">(</span><em>session</em>, <em>msg_protocol='json'</em>, <em>url=None</em>, <em>timeout=None</em>, <em>pool_size=8</em>, <em>provider_filter_chain=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.lib.connect.get_requests_connector"title="Permalink to this definition">¶</a></dt>
<dd><p>Create a connection that uses ‘requests’ library for http(s) connections to
<li><strong>msg_protocol</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Message protocol to be used for the connection. Valid
values are ‘json’.</li>
<li><strong>url</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – HTTP(S) URL to be used</li>
<li><strong>pool_size</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">int</span></code>) – Connection pool size to be used</li>
<li><strong>provider_filter_chain</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">vmware.vapi.provider.filter.ApiProviderFilter</span></code>) – List of API filters in order they are to be
<codeclass="descclassname">vmware.vapi.lib.connect.</code><codeclass="descname">get_requests_hok_connector</code><spanclass="sig-paren">(</span><em>session</em>, <em>msg_protocol='json'</em>, <em>url=None</em>, <em>timeout=None</em>, <em>pool_size=8</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.lib.connect.get_requests_hok_connector"title="Permalink to this definition">¶</a></dt>
<dd><p>Create a connection that uses SAML Hok based authentication using ‘requests’
<li><strong>msg_protocol</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Message protocol to be used for the connection. Valid
values are ‘json’.</li>
<li><strong>url</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – HTTP(S) URL to be used</li>
<li><strong>pool_size</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">int</span></code>) – Connection pool size to be used</li>
<codeclass="descclassname">vmware.vapi.lib.connect.</code><codeclass="descname">get_saml_hok_connector</code><spanclass="sig-paren">(</span><em>rpc_provider_name</em>, <em>msg_protocol='json'</em>, <em>ssl_context=None</em>, <em>**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.lib.connect.get_saml_hok_connector"title="Permalink to this definition">¶</a></dt>
<dd><p>Create a connection that uses SAML Hok based authentication
<li><strong>rpc_provider_name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The RPC provider to be used for the connection.
Valid values are ‘http’, ‘https’ or ‘requests’</li>
<li><strong>msg_protocol</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The message protocol to be used for the connection.
Valid values are ‘json’.</li>
<li><strong>ssl_context</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">OpenSSL.SSL.Context</span></code>) – SSL context to use for SSL connections</li>
<li><strong>kwargs</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> and <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">object</span></code>) – Additional arguments for the RPC provider</li>
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>.