<spanid="com-vmware-vapi-metadata-package"></span><h1>com.vmware.vapi.metadata package<aclass="headerlink"href="#module-com.vmware.vapi.metadata"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="subpackages">
<h2>Subpackages<aclass="headerlink"href="#subpackages"title="Permalink to this headline">¶</a></h2>
<spanid="com-vmware-vapi-metadata-authentication-client-module"></span><h2>com.vmware.vapi.metadata.authentication_client module<aclass="headerlink"href="#module-com.vmware.vapi.metadata.authentication_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.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">AuthenticationInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">scheme_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">session_manager</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">scheme</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo"title="Permalink to this definition">¶</a></dt>
<li><p><strong>scheme_type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo.SchemeType"title="com.vmware.vapi.metadata.authentication_client.AuthenticationInfo.SchemeType"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AuthenticationInfo.SchemeType</span></code></a>) – The type of the authentication scheme.</p></li>
<li><p><strong>session_manager</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – In a session aware authentication scheme, a session manager is
required that supports <codeclass="docutils literal notranslate"><spanclass="pre">create</span></code>, <codeclass="docutils literal notranslate"><spanclass="pre">delete</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">keepAlive</span></code>
methods. The fully qualified class name of the session manager is
provided in <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">AuthenticationInfo.session_manager</span></code> attribute.
This class is responsible for handling sessions.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">schemeType</span></code> is
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">SchemeType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo.SchemeType"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">AuthenticationInfo.SchemeType</span></code> class provides class attributes for
the set of valid authentication scheme types.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">SchemeType</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">SESSIONLESS</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">SchemeType(string='SESSIONLESS')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo.SchemeType.SESSIONLESS"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates that the scheme is a session less authentication scheme, the user
is authenticated on every method. There is no explicit session
<codeclass="sig-name descname"><spanclass="pre">SESSION_AWARE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">SchemeType(string='SESSION_AWARE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo.SchemeType.SESSION_AWARE"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates that the scheme is a session aware authentication scheme. It
requires an explicit login before executing a method and logout when a
session terminates. A class might choose to have a session aware scheme if
it wants to associate some state corresponding to the user until the user
logs out or if it wants to mitigate the cost of authenticating the user on
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Component</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.authentication_client.Component"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Component</span></code> class provides methods to retrieve authentication
information of a component element.</p>
<p>A component element is said to contain authentication information if any
one of package elements contained in it has authentication information.</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.component'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Component.RESOURCE_TYPE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">fingerprint</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">component_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Component.fingerprint"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves the fingerprint computed from the authentication metadata of
the component element corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">component_id</span></code>.</p>
<p>The fingerprint provides clients an efficient way to check if the
metadata for a particular component has been modified on the server.
The client can do this by comparing the result of this operation with
the fingerprint returned in the result of <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Component.get"title="com.vmware.vapi.metadata.authentication_client.Component.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.get()</span></code></a>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>component_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the component element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">component_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Component.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves authentication information about the component element
corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">component_id</span></code>.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.ComponentData"title="com.vmware.vapi.metadata.authentication_client.ComponentData"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ComponentData</span></code></a> contains the authentication information
about the component element and it’s fingerprint. It contains
information about all the package elements that belong to this
component element.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>component_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the component element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Component.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the component elements that have
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ComponentData</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">info</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">fingerprint</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.ComponentData"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ComponentData</span></code> class contains the authentication information of the
component along with its fingerprint.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>info</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.ComponentInfo"title="com.vmware.vapi.metadata.authentication_client.ComponentInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ComponentInfo</span></code></a>) – Authentication information of the component. This includes
information about all the modules in the component.</p></li>
<li><p><strong>fingerprint</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) –<p>Fingerprint of the metadata of the component.</p>
<p>Authentication information could change when there is an
infrastructure update. Since the data present in
<codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ComponentData.info</span></code> could be quite large, <codeclass="docutils literal notranslate"><spanclass="pre">fingerprint</span></code>
provides a convenient way to check if the data for a particular
component is updated.</p>
<p>You should store the fingerprint associated with a component. After
an update, by invoking the <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Component.fingerprint"title="com.vmware.vapi.metadata.authentication_client.Component.fingerprint"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.fingerprint()</span></code></a> method,
you can retrieve the new fingerprint for the component. If the new
fingerprint and the previously stored fingerprint do not match,
clients can then use the <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Component.get"title="com.vmware.vapi.metadata.authentication_client.Component.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.get()</span></code></a> to retrieve the new
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ComponentInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">packages</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.ComponentInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ComponentInfo</span></code> class contains authentication information of a
component element.</p>
<p>For an explanation of authentication information contained within component
elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Component"title="com.vmware.vapi.metadata.authentication_client.Component"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Component</span></code></a>.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>packages</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.PackageInfo"title="com.vmware.vapi.metadata.authentication_client.PackageInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PackageInfo</span></code></a>) –<p>Authentication information of all the package elements. The key in
the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier of the package element and the
value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the authentication information for
the package element.</p>
<p>For an explanation of authentication information containment within
package elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Package"title="com.vmware.vapi.metadata.authentication_client.Package"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Package</span></code></a>.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.package</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">OperationInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">schemes</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.OperationInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">OperationInfo</span></code> class contains authentication information of an
operation element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>schemes</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo"title="com.vmware.vapi.metadata.authentication_client.AuthenticationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AuthenticationInfo</span></code></a>) – List of authentication schemes used by an operation element. The
authentication scheme specified on the service element
corresponding to this operation element is ignored.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Package</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.authentication_client.Package"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Package</span></code> class provides methods to retrieve authentication
information of a package element.</p>
<p>A package element is said to contain authentication information if there is
a default authentication assigned to all service elements contained in the
package element or if one of the service element contained in this package
element has authentication information.</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.package'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Package.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">package_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Package.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves authentication information about the package element
corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">package_id</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>package_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the package element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Package.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the package elements that have
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">PackageInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">schemes</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">services</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.PackageInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">PackageInfo</span></code> class contains authentication information of a package
element.</p>
<p>For an explanation of authentication information contained within package
elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Package"title="com.vmware.vapi.metadata.authentication_client.Package"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Package</span></code></a>.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>schemes</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo"title="com.vmware.vapi.metadata.authentication_client.AuthenticationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AuthenticationInfo</span></code></a>) – List of authentication schemes to be used for all the operation
elements contained in this package element. If a particular service
or operation element has no explicit authentications defined in the
authentication defintion file, these authentication schemes are
used for authenticating the user.</p></li>
<li><p><strong>services</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.ServiceInfo"title="com.vmware.vapi.metadata.authentication_client.ServiceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ServiceInfo</span></code></a>) –<p>Information about all service elements contained in this package
element that contain authentication information. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier of the service element and the
value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the authentication information for
the service element.</p>
<p>For an explanation of authentication information containment within
service elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Service"title="com.vmware.vapi.metadata.authentication_client.Service"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Service</span></code></a>.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.service</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Service</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.authentication_client.Service"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Service</span></code> class provides methods to retrieve authentication
information of a service element.</p>
<p>A service element is said to contain authentication information if there is
a default authentication assigned to all operation elements contained in a
service element or if one of the operation elements contained in this
service element has authentication information.</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.service'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Service.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><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Service.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves authentication information about 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"><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><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.Service.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the service elements that have
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ServiceInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">schemes</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">operations</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.authentication_client.ServiceInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ServiceInfo</span></code> class contains authentication information of a service
element.</p>
<p>For an explanation of authentication information contained within service
elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.Service"title="com.vmware.vapi.metadata.authentication_client.Service"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Service</span></code></a>.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>schemes</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.AuthenticationInfo"title="com.vmware.vapi.metadata.authentication_client.AuthenticationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AuthenticationInfo</span></code></a>) – List of authentication schemes to be used for all the operation
elements contained in this service element. The authentication
scheme specified on the package element corresponding to this
service element is ignored.</p></li>
<li><p><strong>operations</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.authentication_client.OperationInfo"title="com.vmware.vapi.metadata.authentication_client.OperationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">OperationInfo</span></code></a>) –<p>Information about all operation elements contained in this service
element that contain authentication information. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier of the operation element and the
value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the authentication information for
the operation element.</p>
<p>For an explanation of containment of authentication information
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.authentication_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.authentication_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<spanid="com-vmware-vapi-metadata-cli-client-module"></span><h2>com.vmware.vapi.metadata.cli_client module<aclass="headerlink"href="#module-com.vmware.vapi.metadata.cli_client"title="Permalink to this headline">¶</a></h2>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.metadata.cli_client</span></code> module provides classes that expose
all the information required to display namespace or command help, execute a
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.cli_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Command</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.cli_client.Command"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Command</span></code> class provides methods to get information about command
line interface (CLI) commands.</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>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">FormatterType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Command.FormatterType</span></code> class defines supported CLI output formatter
types. See <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Command.Info.formatter</span></code>.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">FormatterType</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">CSV</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">FormatterType(string='CSV')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType.CSV"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">HTML</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">FormatterType(string='HTML')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType.HTML"title="Permalink to this definition">¶</a></dt>
<dd><p>Displays command output in HTML format.</p>
<codeclass="sig-name descname"><spanclass="pre">JSON</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">FormatterType(string='JSON')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType.JSON"title="Permalink to this definition">¶</a></dt>
<dd><p>Displays command output in JSON format.</p>
<codeclass="sig-name descname"><spanclass="pre">SIMPLE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">FormatterType(string='SIMPLE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType.SIMPLE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">TABLE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">FormatterType(string='TABLE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType.TABLE"title="Permalink to this definition">¶</a></dt>
<dd><p>Displays command output in table format.</p>
<codeclass="sig-name descname"><spanclass="pre">XML</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">FormatterType(string='XML')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType.XML"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">GenericType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.GenericType"title="Permalink to this definition">¶</a></dt>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">GenericType</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">LIST</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='LIST')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.GenericType.LIST"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">LIST_OPTIONAL</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='LIST_OPTIONAL')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.GenericType.LIST_OPTIONAL"title="Permalink to this definition">¶</a></dt>
<dd><p>Input parameter is a list of optionals. This class attribute was added in
<codeclass="sig-name descname"><spanclass="pre">NONE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='NONE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.GenericType.NONE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">OPTIONAL</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='OPTIONAL')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.GenericType.OPTIONAL"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">OPTIONAL_LIST</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='OPTIONAL_LIST')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.GenericType.OPTIONAL_LIST"title="Permalink to this definition">¶</a></dt>
<dd><p>Input parameter is an optional of type list. This class attribute was added
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Identity</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">path</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.Identity"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Command.Identity</span></code> class uniquely identifies a command in the CLI
commands tree.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>path</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The dot-separated path of the namespace containing the command in
the CLI command tree.</p></li>
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the command.</p></li>
<li><p><strong>description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The text description displayed to the user in help output.</p></li>
<li><p><strong>service_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The service identifier that contains the operations for this CLI
command.
When clients pass a value of this class as a parameter, the
attribute must be an identifier for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.service</span></code>. When methods return a value of this
class as a return value, the attribute will be an identifier for
the resource type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.service</span></code>.</p></li>
<li><p><strong>operation_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The operation identifier corresponding to this CLI command.
When clients pass a value of this class as a parameter, the
attribute must be an identifier for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.operation</span></code>. When methods return a value of this
class as a return value, the attribute will be an identifier for
the resource type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.operation</span></code>.</p></li>
<li><p><strong>options</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Command.OptionInfo"title="com.vmware.vapi.metadata.cli_client.Command.OptionInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Command.OptionInfo</span></code></a>) – The input for this command.</p></li>
<li><p><strong>formatter</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Command.FormatterType"title="com.vmware.vapi.metadata.cli_client.Command.FormatterType"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Command.FormatterType</span></code></a> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – The formatter to use when displaying the output of this command.
If not present, client can choose a default output formatter.</p></li>
<li><p><strong>output_field_list</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Command.OutputInfo"title="com.vmware.vapi.metadata.cli_client.Command.OutputInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Command.OutputInfo</span></code></a>) – List of output structure name and output field info.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">OptionInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">long_option</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">short_option</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">field_name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">description</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">generic</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.OptionInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Command.OptionInfo</span></code> class describes information about a specific
input option of a command.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>long_option</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The long option name of the parameter as used by the user.</p></li>
<li><p><strong>short_option</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – The single character value option name.
If not present, there’s no single character option for the
parameter.</p></li>
<li><p><strong>field_name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The fully qualified name of the option referred to by the operation
element in <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Command.Info.operation_id</span></code>.</p></li>
<li><p><strong>description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The description of the option to be displayed to the user when they
request usage information for a CLI command.</p></li>
<li><p><strong>type</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The type of option. This is used to display information about what
kind of data is expected (string, number, boolean, etc.) for the
option when they request usage information for a CLI command. For
class this stores the fully qualified class id.</p></li>
<li><p><strong>generic</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Command.GenericType"title="com.vmware.vapi.metadata.cli_client.Command.GenericType"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Command.GenericType</span></code></a>) – This is used to tell the user whether the option is required or
optional, or whether they can specify the option multiple times.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">OutputFieldInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">field_name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">display_name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.OutputFieldInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Command.OutputFieldInfo</span></code> class describes the name used by the CLI to
display a single attribute of a class element in the interface definition
language.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>field_name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the attribute.</p></li>
<li><p><strong>display_name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name used by the CLI to display the attribute.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">OutputInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">structure_id</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">output_fields</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.OutputInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Command.OutputInfo</span></code> class describes the names used by the CLI to
display the attributes of a class element in the interface definition
language as well as the order in which the attributes will be displayed.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>structure_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the class.
When clients pass a value of this class as a parameter, the
attribute must be an identifier for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>. When methods return a value of this
class as a return value, the attribute will be an identifier for
the resource type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>.</p></li>
<li><p><strong>output_fields</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Command.OutputFieldInfo"title="com.vmware.vapi.metadata.cli_client.Command.OutputFieldInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Command.OutputFieldInfo</span></code></a>) – The order in which the attributes of the class will be displayed by
the CLI as well as the names used to display the attributes.</p></li>
<codeclass="sig-name descname"><spanclass="pre">fingerprint</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.fingerprint"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the aggregate fingerprint of all the command metadata from all
the metadata sources.</p>
<p>The fingerprint provides clients an efficient way to check if the
metadata for commands has been modified on the server.</p>
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">identity</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves information about a command including information about how
to execute that command.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>identity</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Command.Identity"title="com.vmware.vapi.metadata.cli_client.Command.Identity"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Command.Identity</span></code></a>) – Identifier of the command for which to retreive information.</p>
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">path</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Command.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers of all commands, or commands in a specific
namespace.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>path</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – The dot-separated path of the namespace for which command
identifiers should be returned.
If None identifiers of all commands registered with the
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.cli_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Namespace</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.cli_client.Namespace"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Namespace</span></code> class provides methods to get information about command
line interface (CLI) namespaces.</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>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Identity</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">path</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Namespace.Identity"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Namespace.Identity</span></code> class uniquely identifies a namespace in the CLI
namespace tree.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>path</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The dot-separated path of the namespace containing the namespace in
the CLI node tree. For top-level namespace this will be empty.</p></li>
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The name displayed to the user for this namespace.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Info</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">identity</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">description</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">children</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Namespace.Info"title="Permalink to this definition">¶</a></dt>
<li><p><strong>description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The text description displayed to the user in help output.</p></li>
<li><p><strong>children</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Namespace.Identity"title="com.vmware.vapi.metadata.cli_client.Namespace.Identity"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Namespace.Identity</span></code></a>) – The children of this namespace in the tree of CLI namespaces.</p></li>
<codeclass="sig-name descname"><spanclass="pre">fingerprint</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Namespace.fingerprint"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the aggregate fingerprint of all the namespace metadata from
all the metadata sources.</p>
<p>The fingerprint provides clients an efficient way to check if the
metadata for namespaces has been modified on the server.</p>
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">identity</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Namespace.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retreives information about a namespace including information about
children of that namespace.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>identity</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.cli_client.Namespace.Identity"title="com.vmware.vapi.metadata.cli_client.Namespace.Identity"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Namespace.Identity</span></code></a>) – Identifier of the namespace for which to retreive information.</p>
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.cli_client.Namespace.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers of all namespaces registered with the
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.cli_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.cli_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<spanid="com-vmware-vapi-metadata-metamodel-client-module"></span><h2>com.vmware.vapi.metadata.metamodel_client module<aclass="headerlink"href="#module-com.vmware.vapi.metadata.metamodel_client"title="Permalink to this headline">¶</a></h2>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client</span></code> module provides classes that
expose all the information present in the interface definition language (IDL)
specification.</p>
<p>Metamodel metadata is organized into an hierarchy of elements. The main
elements are:</p>
<ulclass="simple">
<li><p>Enumeration: An enumeration element that has a list of enumeration value
elements.</p></li>
<li><p>Constant: A constant element has a name and a value.</p></li>
<li><p>Structure: A structure element can have field elements, constant elements and
enumeration elements.</p></li>
<li><p>Operation: An operation has a list of parameter elements, result element and
error elements.</p></li>
<li><p>Service: A service is a collection of operation elements, structure elements,
enumerated elements and constant elements.</p></li>
<li><p>Package: A package is a collection of service elements, structure elements
and enumeration elements.</p></li>
<li><p>Component: A component is a collection of package elements.</p></li>
</ul>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client</span></code> module has classes that
enables two styles of client applications:</p>
<ulclass="simple">
<li><p>A client can retrieve the exact pieces of information it requires using the
various granularities the API supports (that is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Component"title="com.vmware.vapi.metadata.metamodel_client.Component"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Component</span></code></a>,
and <aclass="reference internal"href="com.vmware.vapi.metadata.metamodel.html#com.vmware.vapi.metadata.metamodel.service_client.Operation"title="com.vmware.vapi.metadata.metamodel.service_client.Operation"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">com.vmware.vapi.metadata.metamodel.service_client.Operation</span></code></a>). In
this case, it doesn’t cache any information locally and always invokes methods
to get the metamodel information it requires.</p></li>
<li><p>A client can retrieve all the metamodel information in fewer method
invocations using the <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Component"title="com.vmware.vapi.metadata.metamodel_client.Component"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Component</span></code></a> class and cache the output locally. It
can then poll on the fingerprint information exposed by the <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Component"title="com.vmware.vapi.metadata.metamodel_client.Component"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Component</span></code></a>
class to monitor changes in API definition.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Component</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.metamodel_client.Component"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Component</span></code> class providers methods to retrieve metamodel information
of a component element.</p>
<p>A component defines a set of functionality that is deployed together and
versioned together. For example, all the classes that belong to VMware
Content Library are part of a single component. A component element
describes a component. A component element contains one or more package
elements.</p>
<blockquote>
<div><p>The methods for package elements are provided by class <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Package"title="com.vmware.vapi.metadata.metamodel_client.Package"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Package</span></code></a>.</p>
</div></blockquote>
<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.component'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Component.RESOURCE_TYPE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">fingerprint</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">component_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Component.fingerprint"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves the fingerprint computed from the metamodel metadata of the
component element corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">component_id</span></code>.</p>
<p>The fingerprint provides clients an efficient way to check if the
metadata for a particular component element has been modified on the
server. The client can do this by comparing the result of this
operation with the fingerprint returned in the result of
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">component_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Component.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves metamodel information about the component element
corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">component_id</span></code>.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ComponentData"title="com.vmware.vapi.metadata.metamodel_client.ComponentData"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ComponentData</span></code></a> contains the metamodel information about the
component and it’s fingerprint. It contains information about all the
package elements that are contained in this component element.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>component_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the component element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Component.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the component elements that are registered
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ComponentData</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">info</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">fingerprint</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ComponentData"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ComponentData</span></code> class contains the metamodel metadata information of
a component element along with its fingerprint.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>info</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ComponentInfo"title="com.vmware.vapi.metadata.metamodel_client.ComponentInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ComponentInfo</span></code></a>) –<p>Metamodel information of the component element. This includes
information about all the package elements contained in this
component element.</p>
<p>The metamodel information about a component could be quite large if
there are a lot of package elements contained in this component.</p>
</p></li>
<li><p><strong>fingerprint</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) –<p>Fingerprint of the metamodel metadata of the component component.</p>
<p>Metamodel information could change when there is an infrastructure
update and new functionality is added to an existing component.</p>
<p>Since the data present in <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ComponentData.info</span></code> could be quite
large, <codeclass="docutils literal notranslate"><spanclass="pre">fingerprint</span></code> provides a convenient way to check if the
data for a particular component is updated.</p>
<p>You should store the fingerprint associated with a component. After
an update, by invoking the <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Component.fingerprint"title="com.vmware.vapi.metadata.metamodel_client.Component.fingerprint"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.fingerprint()</span></code></a> method,
you can retrieve the new fingerprint for the component. If the new
fingerprint and the previously stored fingerprint do not match,
clients can use the <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Component.get"title="com.vmware.vapi.metadata.metamodel_client.Component.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.get()</span></code></a> to retrieve the new
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ComponentInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">packages</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">metadata</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">documentation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ComponentInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ComponentInfo</span></code> class contains metamodel metadata information about a
component element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Dot separated name of the component element. The segments in the
name reflect the organization of the APIs. The format of each
segment is lower case with underscores. Each underscore represents
a word boundary. If there are acronyms in the word, the
capitalization is preserved. This format makes it easy to translate
the segment into a different naming convention.</p></li>
<li><p><strong>packages</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PackageInfo"title="com.vmware.vapi.metadata.metamodel_client.PackageInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PackageInfo</span></code></a>) – Metamodel metadata information of all the package elements
contained in the component element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is
the identifier of the package element and the value in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the metamodel information of the package element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.package</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata for the component element. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value is
the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for a component. It can contain HTML
markup and documentation tags (similar to Javadoc tags). The first
sentence of the package documentation is a complete sentence that
identifies the component by name and summarizes the purpose of the
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ConstantInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">documentation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ConstantInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ConstantInfo</span></code> class contains metamodel information of the constant
elements.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="com.vmware.vapi.metadata.metamodel_client.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code></a>) – Type of the constant element.</p></li>
<li><p><strong>value</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue"title="com.vmware.vapi.metadata.metamodel_client.ConstantValue"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ConstantValue</span></code></a>) – Value of the constant element.</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for the constant element. It can
contain HTML markup and documentation tags (similar to Javadoc
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ConstantValue</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">category</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">primitive_value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">list_value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ConstantValue</span></code> class contains the metamodel information of the
constant element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>category</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category"title="com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ConstantValue.Category</span></code></a>) – Category of the type of constant value.</p></li>
<li><p><strong>primitive_value</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue"title="com.vmware.vapi.metadata.metamodel_client.PrimitiveValue"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PrimitiveValue</span></code></a>) – Primitive value of the constant element.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">category</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category.PRIMITIVE"title="com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category.PRIMITIVE"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ConstantValue.Category.PRIMITIVE</span></code></a>.</p></li>
<li><p><strong>list_value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue"title="com.vmware.vapi.metadata.metamodel_client.PrimitiveValue"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PrimitiveValue</span></code></a>) – List value of the constant element.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">category</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category.LIST"title="com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category.LIST"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ConstantValue.Category.LIST</span></code></a>.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Category</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ConstantValue.Category</span></code> class defines class attributes for the valid
kinds of values.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Category</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">LIST</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Category(string='LIST')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category.LIST"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the type of constant value is a list.</p>
<codeclass="sig-name descname"><spanclass="pre">PRIMITIVE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Category(string='PRIMITIVE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ConstantValue.Category.PRIMITIVE"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the type of constant value is primitive.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ElementMap</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">elements</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ElementMap</span></code> class contains the metadata elements.</p>
<p>One of the sources for metadata is the annotations present in the interface
definition language. When an annotation is represented in the
<codeclass="docutils literal notranslate"><spanclass="pre">ElementMap</span></code>, <codeclass="docutils literal notranslate"><spanclass="pre">ElementMap</span></code> describes the data specified in the
arguments for the annotation.</p>
<p>For example, in <codeclass="docutils literal notranslate"><spanclass="pre">\\@UnionCase(tag="tag",</span><spanclass="pre">value="SELECT")</span></code>, ElementMap
describes the keyword arguments tag and value.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>elements</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue"title="com.vmware.vapi.metadata.metamodel_client.ElementValue"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementValue</span></code></a>) – Metamodel information of the metadata elements. The key parameter
of the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier for the element and the
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ElementValue</span></code> class describes the value of the metadata element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type"title="com.vmware.vapi.metadata.metamodel_client.ElementValue.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementValue.Type</span></code></a>) – Type of the value.</p></li>
<li><p><strong>long_value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code>) – Long value of the metadata element.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.LONG"title="com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.LONG"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ElementValue.Type.LONG</span></code></a>.</p></li>
<li><p><strong>string_value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value of the metadata element.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRING"title="com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRING"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ElementValue.Type.STRING</span></code></a>.</p></li>
<li><p><strong>list_value</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">str</span></code>) – List of strings value of the metadata element.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRING_LIST"title="com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRING_LIST"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ElementValue.Type.STRING_LIST</span></code></a>.</p></li>
<li><p><strong>structure_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the structure element.
When clients pass a value of this class as a parameter, the
attribute must be an identifier for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>. When methods return a value of this
class as a return value, the attribute will be an identifier for
the resource type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRUCTURE_REFERENCE"title="com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRUCTURE_REFERENCE"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ElementValue.Type.STRUCTURE_REFERENCE</span></code></a>.</p></li>
<li><p><strong>structure_ids</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">str</span></code>) – List of identifiers of the structure elements.
When clients pass a value of this class as a parameter, the
attribute must contain identifiers for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>. When methods return a value of this
class as a return value, the attribute will contain identifiers for
the resource type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRUCTURE_REFERENCE_LIST"title="com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRUCTURE_REFERENCE_LIST"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ElementValue.Type.STRUCTURE_REFERENCE_LIST</span></code></a>.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ElementValue.Type</span></code> class defines the valid types for values in
metadata elements.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="com.vmware.vapi.metadata.metamodel_client.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code></a> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">LONG</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='LONG')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.LONG"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the type of the value is a long (64 bit signed integer).</p>
<codeclass="sig-name descname"><spanclass="pre">STRING</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='STRING')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRING"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the type of the value is a string (a variable length sequence of
<codeclass="sig-name descname"><spanclass="pre">STRING_LIST</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='STRING_LIST')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRING_LIST"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the type of the value is a list of strings.</p>
<codeclass="sig-name descname"><spanclass="pre">STRUCTURE_REFERENCE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='STRUCTURE_REFERENCE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRUCTURE_REFERENCE"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the type of the value is an identifier for a structure element.</p>
<codeclass="sig-name descname"><spanclass="pre">STRUCTURE_REFERENCE_LIST</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='STRUCTURE_REFERENCE_LIST')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ElementValue.Type.STRUCTURE_REFERENCE_LIST"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the type of the value is a list of identifiers for a structure
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Enumeration</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.metamodel_client.Enumeration"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Enumeration</span></code> class provides methods to retrieve metamodel
information about an enumeration element in the interface definition
language.</p>
<blockquote>
<div><p>The <codeclass="docutils literal notranslate"><spanclass="pre">Enumeration</span></code> has a list of enumeration value elements.</p>
</div></blockquote>
<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.enumeration'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Enumeration.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">enumeration_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Enumeration.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves information about the enumeration element corresponding to
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"title="com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnumerationInfo</span></code></a> contains the metamodel information about
the enumeration value element contained in the enumeration element.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>enumeration_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the enumeration element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Enumeration.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the enumeration elements that are contained
in all the package elements, service elements and structure elements.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">EnumerationInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">values</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">metadata</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">documentation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">EnumerationInfo</span></code> class contains the metamodel information of an
enumeration element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Dot separated name of the enumeration element. The segments in the
name reflect the organization of the APIs. The format of each
segment is lower case with underscores. Each underscore represents
a word boundary. If there are acronyms in the word, the
capitalization is preserved. This format makes it easy to translate
the segment into a different naming convention.</p></li>
<li><p><strong>values</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.EnumerationValueInfo"title="com.vmware.vapi.metadata.metamodel_client.EnumerationValueInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnumerationValueInfo</span></code></a>) – Metamodel information of all the enumeration value elements
contained in this enumeration element. The order of the enumeration
value elements in the list is same as the order in which they are
defined in the interface definition file.</p></li>
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata elements for an enumeration element. The key in
the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value
is the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) –<p>English language documentation for an enumeration element. It can
contain HTML markup and Javadoc tags. The first sentence of the
enumeration documentation is a complete sentence that identifies
the enumeration by name and summarizes the purpose of the
enumeration. The documentation describes the context in which the
enumeration is used.</p>
<p>The documentation also contains references to the context in which
the enumeration is used. But if the enumeration is used in many
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">EnumerationValueInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">metadata</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">documentation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.EnumerationValueInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">EnumerationValueInfo</span></code> class describes the class attribute in the
class.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Value in the enumerated type. All the characters in the string are
capitalized.</p></li>
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Additional metadata for enumeration value in the enumerated type.
The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element
and the value is the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for an enumeration value. It can
contain HTML markup and documentation tags (similar to Javadoc
tags). The first statement will be a noun or verb phrase that
describes the purpose of the enumeration value.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ErrorInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">structure_id</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">documentation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.ErrorInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ErrorInfo</span></code> class contains the metadata information about the error
elements contained in an operation element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>structure_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier for the structure element corresponding to the error
that is being reported by the operation.
When clients pass a value of this class as a parameter, the
attribute must be an identifier for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>. When methods return a value of this
class as a return value, the attribute will be an identifier for
the resource type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>.</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – The English language documentation for the service element. It can
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">FieldInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">name</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">metadata</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">documentation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.FieldInfo"title="Permalink to this definition">¶</a></dt>
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the field element in a canonical format. The format is
lower case with underscores. Each underscore represents a word
boundary. If there are acronyms in the word, the capitalization is
preserved. This format makes it easy to translate the segment into
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata elements for the field element. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value is
the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for the service element. It can
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">GenericInstantiation</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">generic_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">element_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">map_key_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">map_value_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">GenericInstantiation</span></code> class describes the type information of a
typed element when the type is an instantiation of one of the generic types
provided by the infrastructure.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>generic_type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType"title="com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">GenericInstantiation.GenericType</span></code></a>) – The generic type that is being instantiated.</p></li>
<li><p><strong>element_type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="com.vmware.vapi.metadata.metamodel_client.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code></a>) – Type of the element parameter if the generic type instantiation is
a <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.LIST"title="com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.LIST"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">GenericInstantiation.GenericType.LIST</span></code></a>,
<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.OPTIONAL"title="com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.OPTIONAL"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">GenericInstantiation.GenericType.OPTIONAL</span></code></a> or
<li><p><strong>map_key_type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="com.vmware.vapi.metadata.metamodel_client.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code></a>) – Type of the key parameter of the map generic type instantiation.
The map generic type has a key parameter and value parameter. The
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">genericType</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.MAP"title="com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.MAP"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">GenericInstantiation.GenericType.MAP</span></code></a>.</p></li>
<li><p><strong>map_value_type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="com.vmware.vapi.metadata.metamodel_client.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code></a>) – Type of the value parameter of the map generic type instantiation.
The map generic type has a key parameter and value parameter. The
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">GenericType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">GenericInstantiation.GenericType</span></code> class provides class attributes
for each of the generic types provided by the infrastructure.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">GenericType</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">LIST</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='LIST')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.LIST"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">MAP</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='MAP')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.MAP"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">OPTIONAL</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='OPTIONAL')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.OPTIONAL"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the generic type is an optional.</p>
<codeclass="sig-name descname"><spanclass="pre">SET</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">GenericType(string='SET')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation.GenericType.SET"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">MetadataIdentifier</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.metamodel_client.MetadataIdentifier"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code> class provides string constants that can be used
as identifiers for the metadata elements.</p>
<p>Most of the types in <aclass="reference internal"href="#module-com.vmware.vapi.metadata.metamodel_client"title="com.vmware.vapi.metadata.metamodel_client"><codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client</span></code></a>
package has a metadata field whose type is <codeclass="docutils literal notranslate"><spanclass="pre">Map<String,</span><spanclass="pre">ElementMap></span></code>.
<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains the identifiers used in the keys of
the above Map type.</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">CANONICAL_NAME</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'CanonicalName'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.CANONICAL_NAME"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the CanonicalName metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">COMPONENT</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Component'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.COMPONENT"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Component metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">CREATE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Create'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.CREATE"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Create metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">CRUD</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Crud'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.CRUD"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Crud metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">HAS_FIELDS_OF</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'HasFieldsOf'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.HAS_FIELDS_OF"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the HasFieldsOf metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">INCLUDABLE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Includable'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.INCLUDABLE"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Includable metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">INCLUDE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Include'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.INCLUDE"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Include metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">IS_ONE_OF</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'IsOneOf'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.IS_ONE_OF"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the IsOneOf metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">MODEL</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Model'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.MODEL"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Model metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">READ</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Read'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.READ"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Read metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">RESOURCE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Resource'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.RESOURCE"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Resource metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">UNION_CASE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'UnionCase'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.UNION_CASE"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the UnionCase metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">UNION_TAG</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'UnionTag'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.UNION_TAG"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the UnionTag metadata.</p>
<codeclass="sig-name descname"><spanclass="pre">UPDATE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'Update'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier.UPDATE"title="Permalink to this definition">¶</a></dt>
<dd><p>Identifier representing the Update metadata.</p>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">OperationInfo</span></code> class contains metamodel information of an operation
element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the operation element in a canonical format. The format is
lower case with underscores. Each underscore represents a word
boundary. If there are acronyms in the word, the capitalization is
preserved. This format makes it easy to translate the segment into
a different naming convention.</p></li>
<li><p><strong>params</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.FieldInfo"title="com.vmware.vapi.metadata.metamodel_client.FieldInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">FieldInfo</span></code></a>) – Metamodel information for the parameter elements. The order of the
parameters elements in the list is same as the order of the
parameters declared in the interface definition file.</p></li>
<li><p><strong>output</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.OperationResultInfo"title="com.vmware.vapi.metadata.metamodel_client.OperationResultInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">OperationResultInfo</span></code></a>) – Metamodel type for the output element.</p></li>
<li><p><strong>errors</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ErrorInfo"title="com.vmware.vapi.metadata.metamodel_client.ErrorInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ErrorInfo</span></code></a>) – List of error elements that might be reported by the operation
element. If the operation reports the same error for more than one
reason, the list contains the error element associated with the
error more than once with different documentation elements.</p></li>
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata elements for the operation element. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value is
the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for the service element. It can
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">OperationResultInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">metadata</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">documentation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.OperationResultInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">OperationResultInfo</span></code> class contains the metamodel information of an
operation result element.</p>
<p>An operation accepts a list of parameters and returns a result or an error.
The <codeclass="docutils literal notranslate"><spanclass="pre">OperationResultInfo</span></code> describes the result element of an operation.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="com.vmware.vapi.metadata.metamodel_client.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code></a>) – Type information of the operation result element.</p></li>
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata elements for the service element. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value is
the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for the operation result element. It
can contain HTML markup and Javadoc tags.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Package</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.metamodel_client.Package"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Package</span></code> class provides methods to retrieve metamodel information
about a package element in the interface definition language.</p>
<p>A package is a logical grouping of services, structures and enumerations. A
package element describes the package. It contains the service elements,
structure elements and enumeration elements that are grouped together.</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.package'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Package.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">package_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Package.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves information about the package element corresponding to
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Package.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the packages elements that are contained in
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">PackageInfo</span></code> class contains the metamodel information of all the
service elements, structure elements and enumeration elements contained in
the package element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Dot separated name of the package element. The segments in the name
reflect the organization of the APIs. The format of each segment is
lower case with underscores. Each underscore represents a word
boundary. If there are acronyms in the word, the capitalization is
preserved. This format makes it easy to translate the segment into
a different naming convention.</p></li>
<li><p><strong>structures</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.StructureInfo"title="com.vmware.vapi.metadata.metamodel_client.StructureInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">StructureInfo</span></code></a>) –<p>Metamodel information of all the structure elements contained in
the package element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier
of the structure element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the
metamodel information for the structure element.</p>
<p>This does not include the structure elements contained in the
service elements that are contained in this package element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>enumerations</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"title="com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnumerationInfo</span></code></a>) –<p>Metamodel information of all the enumeration elements contained in
the package element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier
of the enumeration element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is
the metamodel information for the enumeration element.</p>
<p>This does not include the enumeration elements that are contained
in the service elements of this package element or structure
elements of this package element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.enumeration</span></code>. When methods return a value
of this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>services</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ServiceInfo"title="com.vmware.vapi.metadata.metamodel_client.ServiceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ServiceInfo</span></code></a>) – Metamodel information of all the service elements contained in the
package element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier of
the service element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the
metamodel information for the service element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.service</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata elements for the package element. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value is
the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) –<p>English language documentation for a package. It can contain HTML
markup and Javadoc tags. The first sentence of the package
documentation is a complete sentence that identifies the package by
name and summarizes the purpose of the package.</p>
<p>The primary purpose of a package documentation is to provide
high-level context that will provide a framework in which the users
can put the detail about the package contents.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">PrimitiveValue</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">boolean_value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">double_value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">long_value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">string_value</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">PrimitiveValue</span></code> class contains value of the constant element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type"title="com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PrimitiveValue.Type</span></code></a>) – Type of the constant value.</p></li>
<li><p><strong>boolean_value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">bool</span></code>) – Boolean value of the constant.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.BOOLEAN"title="com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.BOOLEAN"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">PrimitiveValue.Type.BOOLEAN</span></code></a>.</p></li>
<li><p><strong>double_value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">float</span></code>) – Double value of the constant.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.DOUBLE"title="com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.DOUBLE"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">PrimitiveValue.Type.DOUBLE</span></code></a>.</p></li>
<li><p><strong>long_value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code>) – Long value of the constant.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.LONG"title="com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.LONG"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">PrimitiveValue.Type.LONG</span></code></a>.</p></li>
<li><p><strong>string_value</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value of the constant.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.STRING"title="com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.STRING"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">PrimitiveValue.Type.STRING</span></code></a>.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">PrimitiveValue.Type</span></code> class defines the valid types for values in
constant elements.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="com.vmware.vapi.metadata.metamodel_client.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code></a> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">BOOLEAN</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='BOOLEAN')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.BOOLEAN"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the value is a boolean (true or false).</p>
<codeclass="sig-name descname"><spanclass="pre">DOUBLE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='DOUBLE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.DOUBLE"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the value is a double (64 bit floating number).</p>
<codeclass="sig-name descname"><spanclass="pre">LONG</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='LONG')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.LONG"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the value is a long (64 bit signed integer).</p>
<codeclass="sig-name descname"><spanclass="pre">STRING</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='STRING')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.PrimitiveValue.Type.STRING"title="Permalink to this definition">¶</a></dt>
<dd><p>Indicates the value is a string (a variable length sequence of characters).
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Resource</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.metamodel_client.Resource"title="Permalink to this definition">¶</a></dt>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Resource"title="com.vmware.vapi.metadata.metamodel_client.Resource"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Resource</span></code></a> class provides methods to retrieve information about
resource types.</p>
<p>A service is a logical grouping of operations that operate on an entity.
Each entity is identifier by a namespace (or resource type) and an unique
identifier.</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.resource'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Resource.RESOURCE_TYPE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Resource.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the set of resource types present across all the service
elements contained in all the package elements.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Service</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.metamodel_client.Service"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Service</span></code> class provides methods to retrieve metamodel information
about a service element in the interface definition language.</p>
<p>A service is a logical grouping of operations that operate on some entity.
A service element describes a service. It contains operation elements that
describe the operations grouped in the service. It also contains structure
elements and enumeration elements corresponding to the structures and
enumerations defined in the service.</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.service'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Service.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><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Service.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves information about the service element corresponding to
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ServiceInfo"title="com.vmware.vapi.metadata.metamodel_client.ServiceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ServiceInfo</span></code></a> contains the metamodel information for the
operation elements, structure elements and enumeration elements
contained in the service element.</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:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Service.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the service elements that are currently
registered with the infrastructure.</p>
<p>The list of service elements is an aggregate list of all the service
elements contained in all the package elements.</p>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ServiceInfo</span></code> class contains the metamodel information of all the
operation elements, structure elements and enumeration elements containted
in a service element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Dot separated name of the service element. The segments in the name
reflect the organization of the APIs. The format of each segment is
lower case with underscores. Each underscore represents a word
boundary. If there are acronyms in the word, the capitalization is
preserved. This format makes it easy to translate the segment into
a different naming convention.</p></li>
<li><p><strong>operations</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.OperationInfo"title="com.vmware.vapi.metadata.metamodel_client.OperationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">OperationInfo</span></code></a>) – Metamodel information of all the operation elements contained in
the service element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier
of the operation element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the
metamodel information for the operation element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.operation</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>structures</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.StructureInfo"title="com.vmware.vapi.metadata.metamodel_client.StructureInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">StructureInfo</span></code></a>) – Metamodel information of all the structure elements contained in
the service element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier
of the structure element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the
metamodel information for the structure element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>enumerations</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"title="com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnumerationInfo</span></code></a>) – Metamodel information of all the enumeration elements contained in
the service element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier
of the enumeration element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is
the metamodel information for the enumeration element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.enumeration</span></code>. When methods return a value
of this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>constants</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ConstantInfo"title="com.vmware.vapi.metadata.metamodel_client.ConstantInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ConstantInfo</span></code></a>) – Metamodel information of all the constant elements contained in the
service element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the
constant element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the
metamodel information for the contant element.</p></li>
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata elements for the service element. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value is
the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for the service element. It can
contain HTML markup and Javadoc tags. The first sentence of the
service documentation is a complete sentence that identifies the
service by name and summarizes the purpose of the service. The
remaining part of the documentation provides a summary of how to
use the operations defined in the service.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Structure</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.metamodel_client.Structure"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Structure</span></code> class providers methods to retrieve metamodel information
about a structure element in the interface definition language.</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.structure'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Structure.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">structure_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Structure.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves information about the structure element corresponding to
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.StructureInfo"title="com.vmware.vapi.metadata.metamodel_client.StructureInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">StructureInfo</span></code></a> contains the metamodel information about the
structure element. It contains information about all the field elements
and enumeration elements contained in this structure element.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>structure_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the structure element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Structure.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the structure elements that are contained
in all the package elements and service elements.</p>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">StructureInfo</span></code> class contains the metamodel information of all the
field elements, constant elements and enumeration elements contained in the
structure element.</p>
<p>In the interface definition language, API designers have the ability to
include all the fields from one structure to another structure. This is
done by using an annotation <codeclass="docutils literal notranslate"><spanclass="pre">\\@Include</span></code> on the structure in which we
want to add the fields. If this annotation is present, the list of fields
in the <codeclass="docutils literal notranslate"><spanclass="pre">StructureInfo</span></code> will also contain the fields that are being
included. The annotation information is also retained in the
<codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">StructureInfo.metadata</span></code> element as well.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Dot separated name of the structure element. The segments in the
name reflect the organization of the APIs. The format of each
segment is lower case with underscores. Each underscore represents
a word boundary. If there are acronyms in the word, the
capitalization is preserved. This format makes it easy to translate
the segment into a different naming convention.</p></li>
<li><p><strong>type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.StructureInfo.Type"title="com.vmware.vapi.metadata.metamodel_client.StructureInfo.Type"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">StructureInfo.Type</span></code></a>) – Type of the structure.</p></li>
<li><p><strong>enumerations</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"title="com.vmware.vapi.metadata.metamodel_client.EnumerationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">EnumerationInfo</span></code></a>) – Metamodel information of all the enumeration elements contained in
the structure element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the
identifier of the enumeration element and the value is the
metamodel information of the enumeration element.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.enumeration</span></code>. When methods return a value
of this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will be an identifier for the resource type:
<li><p><strong>constants</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ConstantInfo"title="com.vmware.vapi.metadata.metamodel_client.ConstantInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ConstantInfo</span></code></a>) – Metamodel information of all the constant elements contained in the
structure element. The key in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the
constant element and the value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the
metamodel information for the constant element.</p></li>
<li><p><strong>fields</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.FieldInfo"title="com.vmware.vapi.metadata.metamodel_client.FieldInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">FieldInfo</span></code></a>) – Metamodel information of all the field elements. The order of the
field elements in the list matches the order in which the fields
are defined in the service.</p></li>
<li><p><strong>metadata</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.ElementMap"title="com.vmware.vapi.metadata.metamodel_client.ElementMap"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ElementMap</span></code></a>) –<p>Generic metadata elements for the structure element. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the name of the metadata element and the value is
the data associated with that metadata element.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"title="com.vmware.vapi.metadata.metamodel_client.MetadataIdentifier"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">MetadataIdentifier</span></code></a> contains possible string values for
keys in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code>.</p>
</p></li>
<li><p><strong>documentation</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – English language documentation for a structure element. It can
contain HTML markup and Javadoc tags. The first sentence of the
structure documentation is a complete sentence that identifies the
structure by name and summarizes the purpose of the structure.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.StructureInfo.Type"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">StructureInfo.Type</span></code> class defines the kind of this structure
element. In the interface definition language, structure element and error
element have similar characteristics. The difference is that only error
elements can be used to describe the exceptions of an operation element.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
<codeclass="sig-name descname"><spanclass="pre">ERROR</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='ERROR')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.StructureInfo.Type.ERROR"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">STRUCTURE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='STRUCTURE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.StructureInfo.Type.STRUCTURE"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_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.metamodel_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">category</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">builtin_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">user_defined_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">generic_instantiation</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Type</span></code> class describes the type information of a typed element in the
interface definiton language. The following elements in the metamodel are
typed:</p>
<ulclass="simple">
<li><p>Field element in a structure element. See <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">StructureInfo.fields</span></code></p></li>
<li><p>Parameter element in an operation element. See
<li><p>Result element in an operation element. See <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">OperationInfo.output</span></code></p></li>
</ul>
<blockquote>
<div><p>The type could be one of the three following categories:</p>
</div></blockquote>
<ulclass="simple">
<li><p>Built-in types: These are types present in the interface definition
language type system. They are provided by the infrastructure.</p></li>
<li><p>User defined named type: API designers can create custom types and use
them for the typed elements. These types have a unique identifier.</p></li>
<li><p>Generic type instantiation: The language infrastructure also provides
generic types such as list, map, set and so on. An instantiation of one of
these generic types could also be used for the typed elements.</p></li>
</ul>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>category</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category"title="com.vmware.vapi.metadata.metamodel_client.Type.Category"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type.Category</span></code></a>) – Category of this type.</p></li>
<li><p><strong>builtin_type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType"title="com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type.BuiltinType</span></code></a>) – Category of the built-in type.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">category</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category.BUILTIN"title="com.vmware.vapi.metadata.metamodel_client.Type.Category.BUILTIN"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Type.Category.BUILTIN</span></code></a>.</p></li>
<li><p><strong>user_defined_type</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.UserDefinedType"title="com.vmware.vapi.metadata.metamodel_client.UserDefinedType"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">UserDefinedType</span></code></a>) – Identifier and type of the user defined type.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">category</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category.USER_DEFINED"title="com.vmware.vapi.metadata.metamodel_client.Type.Category.USER_DEFINED"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Type.Category.USER_DEFINED</span></code></a>.</p></li>
<li><p><strong>generic_instantiation</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.GenericInstantiation"title="com.vmware.vapi.metadata.metamodel_client.GenericInstantiation"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">GenericInstantiation</span></code></a>) – Instantiation of one of the generic types available in the
interface definition language.
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">category</span></code> is <aclass="reference internal"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category.GENERIC"title="com.vmware.vapi.metadata.metamodel_client.Type.Category.GENERIC"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Type.Category.GENERIC</span></code></a>.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">BuiltinType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Type.BuiltinType</span></code> class provides class attribute for each of the
built-in types present in the interface definition language type system.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">BuiltinType</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">ANY_ERROR</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='ANY_ERROR')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.ANY_ERROR"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is an arbitrary exception type. This is used if the value
of a typed element can be one of any user defined named type which is an
<codeclass="sig-name descname"><spanclass="pre">BINARY</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='BINARY')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.BINARY"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a binary. The value is a variable-length sequence of
<codeclass="sig-name descname"><spanclass="pre">BOOLEAN</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='BOOLEAN')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.BOOLEAN"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a boolean. The value is true or false.</p>
<codeclass="sig-name descname"><spanclass="pre">DATE_TIME</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='DATE_TIME')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.DATE_TIME"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a datetime. The value should be in the UTC timezone
<codeclass="sig-name descname"><spanclass="pre">DOUBLE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='DOUBLE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.DOUBLE"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a double. The value is a 64 bit floating point number.</p>
<codeclass="sig-name descname"><spanclass="pre">DYNAMIC_STRUCTURE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='DYNAMIC_STRUCTURE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.DYNAMIC_STRUCTURE"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a dynamic structure. This is used if the value of a
typed element can be one of any user defined named type.</p>
<codeclass="sig-name descname"><spanclass="pre">ID</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='ID')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.ID"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is an ID. The value represents an identifier for a
<codeclass="sig-name descname"><spanclass="pre">LONG</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='LONG')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.LONG"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a long. The value is a 64 bit signed integer.</p>
<codeclass="sig-name descname"><spanclass="pre">OPAQUE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='OPAQUE')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.OPAQUE"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is an opaque. This is used if the value of a typed
element could be of any type and the actual type will be known only during
the execution of the API. This is mostly used in infrastructure classes.</p>
<codeclass="sig-name descname"><spanclass="pre">SECRET</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='SECRET')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.SECRET"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a secret. The value is a variable-length sequence of
zero or more unicode characters. The value contains sensitive data that
<codeclass="sig-name descname"><spanclass="pre">STRING</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='STRING')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.STRING"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a string. The value is a variable-length sequence of
<codeclass="sig-name descname"><spanclass="pre">URI</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='URI')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.URI"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is an URI. The value follows the IRI specification in RFC
<codeclass="sig-name descname"><spanclass="pre">VOID</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">BuiltinType(string='VOID')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.BuiltinType.VOID"title="Permalink to this definition">¶</a></dt>
<dd><p>The built-in type is a void. The value is None.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Category</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Type.Category</span></code> class provides class attribute for each category of
the type.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
definition. The class contains class attributes which represent the
values in the current version of the enumerated type. Newer versions of
the enumerated type may contain new values. To use new values of the
enumerated type in communication with a server that supports the newer
version of the API, you instantiate this class. See <aclass="reference internal"href="enumeration.html#enumeration-description"><spanclass="std std-ref">enumerated
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Category</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">BUILTIN</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Category(string='BUILTIN')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category.BUILTIN"title="Permalink to this definition">¶</a></dt>
<dd><p>The type is one of the built-in types specified in
<codeclass="sig-name descname"><spanclass="pre">GENERIC</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Category(string='GENERIC')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category.GENERIC"title="Permalink to this definition">¶</a></dt>
<dd><p>The type is an instantiation of one of the generic types.</p>
<codeclass="sig-name descname"><spanclass="pre">USER_DEFINED</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Category(string='USER_DEFINED')</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.Type.Category.USER_DEFINED"title="Permalink to this definition">¶</a></dt>
<dd><p>The type is one of the user defined named types.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.metamodel_client.</span></code><codeclass="sig-name descname"><spanclass="pre">UserDefinedType</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">resource_type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">resource_id</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.metamodel_client.UserDefinedType"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">UserDefinedType</span></code> class contains the metamodel type information of a
typed element whose type is a user defined named type.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>resource_type</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Category of the user defined named type. The named type could be a
structure element or an enumeration element.
When clients pass a value of this class as a parameter, the
attribute must be one of <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code> or
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.enumeration</span></code>. When methods return a value of
this class as a return value, the attribute will be one of
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.enumeration</span></code>.</p></li>
<li><p><strong>resource_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the user defined named type.
When clients pass a value of this class as a parameter, the
attribute must be an identifier for one of these resource types:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.enumeration</span></code>.
When methods return a value of this class as a return value, the
attribute will be an identifier for one of these resource types:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.structure</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.enumeration</span></code>.</p></li>
<spanid="com-vmware-vapi-metadata-privilege-client-module"></span><h2>com.vmware.vapi.metadata.privilege_client module<aclass="headerlink"href="#module-com.vmware.vapi.metadata.privilege_client"title="Permalink to this headline">¶</a></h2>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.metadata.privilege_client</span></code> module provides classes that
expose privilege information for operation elements across all the service
elements.</p>
<p>An entity has a unique identifier and a resource type. An entity can either be
present in one of the parameter elements or if a parameter is a structure
element, it could also be present in one of the field elements.</p>
<p>Privileges can be assigned to either operation elements or entities used in the
operation element. A list of privileges can also be applied on a package
element. This list of privileges would be used as a default for all the
operation elements and the entities that do not have any defined privileges.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Component</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_client.Component"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Component</span></code> class provides methods to retrieve privilege information
of a component element.</p>
<p>A component element is said to contain privilege information if any one of
package elements in it contains privilege information.</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.component'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Component.RESOURCE_TYPE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">fingerprint</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">component_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Component.fingerprint"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves the fingerprint computed from the privilege metadata of the
component element corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">component_id</span></code>.</p>
<p>The fingerprint provides clients an efficient way to check if the
metadata for a particular component has been modified on the server.
The client can do this by comparing the result of this operation with
the fingerprint returned in the result of <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Component.get"title="com.vmware.vapi.metadata.privilege_client.Component.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.get()</span></code></a>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>component_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the component element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">component_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Component.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves privilege information about the component element
corresponding to <codeclass="docutils literal notranslate"><spanclass="pre">component_id</span></code>.</p>
<p>The <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.ComponentData"title="com.vmware.vapi.metadata.privilege_client.ComponentData"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ComponentData</span></code></a> contains the privilege information about the
component element and its fingerprint. It contains information about
all the package elements that belong to this component element.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>component_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the component element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Component.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the component elements that have privilege
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ComponentData</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">info</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">fingerprint</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.ComponentData"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ComponentData</span></code> class contains the privilege information of the
component along with its fingerprint.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>info</strong> (<aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.ComponentInfo"title="com.vmware.vapi.metadata.privilege_client.ComponentInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ComponentInfo</span></code></a>) – Privilege information of the component. This includes information
about all the modules in the component.</p></li>
<li><p><strong>fingerprint</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) –<p>Fingerprint of the metadata of the component.</p>
<p>Privilege information could change when there is an infrastructure
update. Since the data present in <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">ComponentData.info</span></code> could
be quite large, <codeclass="docutils literal notranslate"><spanclass="pre">fingerprint</span></code> provides a convenient way to check
if the data for a particular component is updated.</p>
<p>You should store the fingerprint associated with a component. After
an update, by invoking the <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Component.fingerprint"title="com.vmware.vapi.metadata.privilege_client.Component.fingerprint"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.fingerprint()</span></code></a> method,
you can retrieve the new fingerprint for the component. If the new
fingerprint and the previously stored fingerprint do not match,
clients can then use the <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Component.get"title="com.vmware.vapi.metadata.privilege_client.Component.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">Component.get()</span></code></a> to retrieve the new
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ComponentInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">packages</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.ComponentInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ComponentInfo</span></code> class contains the privilege information of a
component element.</p>
<p>For an explanation of privilege information contained within component
elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Component"title="com.vmware.vapi.metadata.privilege_client.Component"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Component</span></code></a>.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>packages</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.PackageInfo"title="com.vmware.vapi.metadata.privilege_client.PackageInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PackageInfo</span></code></a>) –<p>Privilege information of all the package elements. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier of the package element and the
value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the privilege information for the
package element.</p>
<p>For an explanation of privilege information containment within
package elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Package"title="com.vmware.vapi.metadata.privilege_client.Package"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Package</span></code></a>.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.package</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will 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_client.</span></code><codeclass="sig-name descname"><spanclass="pre">OperationInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">privileges</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">privilege_info</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.OperationInfo"title="Permalink to this definition">¶</a></dt>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>privileges</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">str</span></code>) – List of all privileges assigned to the operation element.</p></li>
<li><p><strong>privilege_info</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.PrivilegeInfo"title="com.vmware.vapi.metadata.privilege_client.PrivilegeInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PrivilegeInfo</span></code></a>) – Privilege information of all the parameter elements of the
operation element. For an explanation of containment of privilege
information within parameter elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.PrivilegeInfo"title="com.vmware.vapi.metadata.privilege_client.PrivilegeInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">PrivilegeInfo</span></code></a>.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Package</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_client.Package"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Package</span></code> class provides methods to retrieve privilege information of
a package element.</p>
<p>A package element is said to contain privilege information if there is a
default privilege assigned to all service elements contained in the package
element or if one of the operation elements contained in one of the service
elements in this package element has privilege information.</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.package'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Package.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">package_id</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Package.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves privilege information about the package element corresponding
to <codeclass="docutils literal notranslate"><spanclass="pre">package_id</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>package_id</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the package element.
The parameter must be an identifier for the resource type:
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Package.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the package elements that have privilege
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_client.</span></code><codeclass="sig-name descname"><spanclass="pre">PackageInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">privileges</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">services</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.PackageInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">PackageInfo</span></code> class contains the privilege information of a package
element.</p>
<p>For an explanation of privilege information contained within package
elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Package"title="com.vmware.vapi.metadata.privilege_client.Package"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Package</span></code></a>.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>privileges</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">str</span></code>) – List of default privileges to be used for all the operations
present in this package. If a particular operation element has no
explicit privileges defined in the privilege definition file, these
privileges are used for enforcing authorization.</p></li>
<li><p><strong>services</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.ServiceInfo"title="com.vmware.vapi.metadata.privilege_client.ServiceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">ServiceInfo</span></code></a>) – Information about all service elements contained in this package
element that contain privilege information. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier of the service element and the
value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the privilege information for the
service element. For an explanation of privilege information
containment within service elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Service"title="com.vmware.vapi.metadata.privilege_client.Service"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Service</span></code></a>.
When clients pass a value of this class as a parameter, the key in
the attribute <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> must be an identifier for the resource
type: <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vapi.service</span></code>. When methods return a value of
this class as a return value, the key in the attribute
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> will 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_client.</span></code><codeclass="sig-name descname"><spanclass="pre">PrivilegeInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">property_path</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">privileges</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.PrivilegeInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">PrivilegeInfo</span></code> class contains the privilege information for a
parameter element in an operation element.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>property_path</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) –<p>The <codeclass="docutils literal notranslate"><spanclass="pre">propertyPath</span></code> points to an entity that is used in the
operation element. An entity can either be present in one of the
parameter elements or if a parameter is a structure element, it
could also be present in one of the field elements.</p>
<p>If the privilege is assigned to an entity used in the parameter,
<codeclass="docutils literal notranslate"><spanclass="pre">propertyPath</span></code> will just contain the name of the parameter field.
If the privilege is assigned to an entity in one of the field
elements of a parameter element that is a structure element, then
<codeclass="docutils literal notranslate"><spanclass="pre">propertyPath</span></code> will contain a path to the field element starting
from the parameter name.</p>
</p></li>
<li><p><strong>privileges</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">str</span></code>) – List of privileges assigned to the entity that is being referred by
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Service</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_client.Service"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Service</span></code> class provides methods to retrieve privilege information of
a service element.</p>
<p>A service element is said to contain privilege information if one of the
operation elements contained in this service element has privilege
information.</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.service'</span></em><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Service.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><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Service.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Retrieves privilege information about 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"><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><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.Service.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the identifiers for the service elements that have privilege
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_client.</span></code><codeclass="sig-name descname"><spanclass="pre">ServiceInfo</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">operations</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vapi.metadata.privilege_client.ServiceInfo"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">ServiceInfo</span></code> class contains privilege information of a service
element.</p>
<p>For an explanation of privilege information contained within service
elements, see <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.Service"title="com.vmware.vapi.metadata.privilege_client.Service"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Service</span></code></a>.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
names.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>operations</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 <aclass="reference internal"href="#com.vmware.vapi.metadata.privilege_client.OperationInfo"title="com.vmware.vapi.metadata.privilege_client.OperationInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">OperationInfo</span></code></a>) –<p>Information about all operation elements contained in this service
element that contain privilege information. The key in the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the identifier of the operation element and the
value in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dict</span></code> is the privilege information for the
operation element.</p>
<p>For an explanation of containment of privilege information within
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vapi.metadata.privilege_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_client.StubFactory"title="Permalink to this definition">¶</a></dt>