<spanid="vmware-vapi-security-client-package"></span><h1>vmware.vapi.security.client package<aclass="headerlink"href="#module-vmware.vapi.security.client"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-security-client-security-context-filter-module"></span><h2>vmware.vapi.security.client.security_context_filter module<aclass="headerlink"href="#module-vmware.vapi.security.client.security_context_filter"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">vmware.vapi.security.client.security_context_filter.</code><codeclass="descname">LegacySecurityContextFilter</code><spanclass="sig-paren">(</span><em>next_provider=None</em>, <em>security_context=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.LegacySecurityContextFilter"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
<li><strong>next_provider</strong> (<aclass="reference internal"href="vmware.vapi.html#vmware.vapi.core.ApiProvider"title="vmware.vapi.core.ApiProvider"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">vmware.vapi.core.ApiProvider</span></code></a>) – API Provider to invoke the requests</li>
<codeclass="descname">get_max_retries</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.LegacySecurityContextFilter.get_max_retries"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_security_context</code><spanclass="sig-paren">(</span><em>on_error</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.LegacySecurityContextFilter.get_security_context"title="Permalink to this definition">¶</a></dt>
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>on_error</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">bool</span></code>) – Whether this method is called after getting an error</td>
<codeclass="descname">set_security_context</code><spanclass="sig-paren">(</span><em>security_context</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.LegacySecurityContextFilter.set_security_context"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">should_retry</code><spanclass="sig-paren">(</span><em>error_value</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.LegacySecurityContextFilter.should_retry"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns whether the request should be retried or not based on the error.</p>
<emclass="property">class </em><codeclass="descclassname">vmware.vapi.security.client.security_context_filter.</code><codeclass="descname">SecurityContextFilter</code><spanclass="sig-paren">(</span><em>next_provider=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.SecurityContextFilter"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_max_retries</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.SecurityContextFilter.get_max_retries"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">get_security_context</code><spanclass="sig-paren">(</span><em>on_error</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.SecurityContextFilter.get_security_context"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieve security context. If this method is called after an error
occured and the request needs to be retried, then a new security context
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><strong>on_error</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">bool</span></code>) – Whether this method is called after getting an error</td>
<codeclass="descname">invoke</code><spanclass="sig-paren">(</span><em>service_id</em>, <em>operation_id</em>, <em>input_value</em>, <em>ctx</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.SecurityContextFilter.invoke"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">should_retry</code><spanclass="sig-paren">(</span><em>error_value</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#vmware.vapi.security.client.security_context_filter.SecurityContextFilter.should_retry"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns whether the request should be retried or not based on the error.</p>
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>.