<spanid="com-vmware-vapi-metadata-privilege-package"></span><h1>com.vmware.vapi.metadata.privilege package<aclass="headerlink"href="#module-com.vmware.vapi.metadata.privilege"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="com-vmware-vapi-metadata-privilege-service-client-module"></span><h2>com.vmware.vapi.metadata.privilege.service_client module<aclass="headerlink"href="#module-com.vmware.vapi.metadata.privilege.service_client"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege.service_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Operation</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege.service_client.Operation"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Operation</span></code> class provides methods to retrieve privilege information
of an operation element.</p>
<p>An operation element is said to contain privilege information if there are
any privileges assigned to the operation element or if one of the parameter
elements contained in it has privileges assigned in privilege definition
file.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>config</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">vmware.vapi.bindings.stub.StubConfiguration</span></code>) – Configuration to be used for creating the stub.</p>
<codeclass="sig-name descname"><spanclass="pre">RESOURCE_TYPE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'com.vmware.vapi.operation'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege.service_client.Operation.RESOURCE_TYPE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">service_id</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">operation_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege.service_client.Operation.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves the privilege information about an operation element
corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">operation_id</span></code> contained in the service element
corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">service_id</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>service_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the service element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">service_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege.service_client.Operation.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the operation elements contained in the
service element corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">service_id</span></code> that have privilege
information.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>service_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the service element.
The parameter must be an identifier for the resource type:
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege.service_client.</span></code><codeclass="sig-name descname"><spanclass="pre">StubFactory</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">stub_config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege.service_client.StubFactory"title="Permalink to this definition">¶</a></dt>