<spanid="com-vmware-vcenter-compute-policies-capabilities-package"></span><h1>com.vmware.vcenter.compute.policies.capabilities package<aclass="headerlink"href="#module-com.vmware.vcenter.compute.policies.capabilities"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="submodules">
<h2>Submodules<aclass="headerlink"href="#submodules"title="Permalink to this headline">¶</a></h2>
<spanid="com-vmware-vcenter-compute-policies-capabilities-vm-host-affinity-client-module"></span><h2>com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client module<aclass="headerlink"href="#module-com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.</code><codeclass="descname">CreateSpec</code><spanclass="sig-paren">(</span><em>vm_tag=None</em>, <em>host_tag=None</em>, <em>name=None</em>, <em>description=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.CreateSpec"title="Permalink to this definition">¶</a></dt>
that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_tag</span></code> will be affine to
hosts that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.host_tag</span></code>.
<strong>Warning:</strong> This class is available as technical preview. It may be
changed in a future release.</p>
<divclass="admonition tip">
<pclass="first admonition-title">Tip</p>
<pclass="last">The arguments are used to initialize data attributes with the same
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
<li><strong>vm_tag</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of a tag that can be associated with a virtual machine.
Virtual machines with this tag will be affine to the hosts
indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.host_tag</span></code>. <strong>Warning:</strong> This
attribute is available as technical preview. It may be changed in a
future release.
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.cis.tagging.Tag:VirtualMachine</span></code>. When methods return
a value of this class as a return value, the attribute will be an
<li><strong>host_tag</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of a tag that can be associated with a host. Virtual
machines indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_tag</span></code> will be affine to
hosts with this tag. <strong>Warning:</strong> This attribute is available as
technical preview. It may be changed in a future release.
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.cis.tagging.Tag:HostSystem</span></code>. When methods return a
value of this class as a return value, the attribute will be an
<li><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the policy. The name needs to be unique within this vCenter
server. <strong>Warning:</strong> This attribute is available as technical
preview. It may be changed in a future release.</li>
<li><strong>description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Description of the policy. <strong>Warning:</strong> This attribute is available
as technical preview. It may be changed in a future release.</li>
<emclass="property">class </em><codeclass="descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.</code><codeclass="descname">Info</code><spanclass="sig-paren">(</span><em>vm_tag=None</em>, <em>host_tag=None</em>, <em>name=None</em>, <em>description=None</em>, <em>capability=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.Info"title="Permalink to this definition">¶</a></dt>
that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_tag</span></code> will be affine to hosts
that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.host_tag</span></code>. <strong>Warning:</strong> This
class is available as technical preview. It may be changed in a future
release.</p>
<divclass="admonition tip">
<pclass="first admonition-title">Tip</p>
<pclass="last">The arguments are used to initialize data attributes with the same
<trclass="field-odd field"><thclass="field-name">Parameters:</th><tdclass="field-body"><ulclass="first last simple">
<li><strong>vm_tag</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of a tag that can be associated with a virtual machine.
Virtual machines with this tag will be affine to the hosts
indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.host_tag</span></code>. <strong>Warning:</strong> This attribute is
available as technical preview. It may be changed in a future
release.
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.cis.tagging.Tag:VirtualMachine</span></code>. When methods return
a value of this class as a return value, the attribute will be an
<li><strong>host_tag</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of a tag that can be associated with a host. Virtual
machines indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_tag</span></code> will be affine to hosts
with this tag. <strong>Warning:</strong> This attribute is available as
technical preview. It may be changed in a future release.
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.cis.tagging.Tag:HostSystem</span></code>. When methods return a
value of this class as a return value, the attribute will be an
<li><strong>name</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Name of the policy. <strong>Warning:</strong> This attribute is available as
technical preview. It may be changed in a future release.</li>
<li><strong>description</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Description of the policy. <strong>Warning:</strong> This attribute is available
as technical preview. It may be changed in a future release.</li>
<li><strong>capability</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the capability this policy is based on. <strong>Warning:</strong>
This attribute is available as technical preview. It may be changed
in a future release.
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.vcenter.compute.policies.Capability</span></code>. When methods
return a value of this class as a return value, the attribute will
<emclass="property">class </em><codeclass="descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.</code><codeclass="descname">StubFactory</code><spanclass="sig-paren">(</span><em>stub_config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.StubFactory"title="Permalink to this definition">¶</a></dt>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.