<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-disable-drs-vmotion-client-module"></span><h2>com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client module<aclass="headerlink"href="#module-com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.</code><codeclass="sig-name descname">CreateSpec</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">description=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.CreateSpec"title="Permalink to this definition">¶</a></dt>
This class is available as technical preview. It may be changed in a future
release.</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>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 not be migrated away from the
host on which they are powered on, except when the host is put into
maintenance mode or failed over. <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><p><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.</p></li>
<li><p><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.</p></li>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.</code><codeclass="sig-name descname">Info</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">description=None</em>, <emclass="sig-param">capability=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.Info"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Info</span></code> class contains information about a DisableDrsVmotion policy,
see <aclass="reference internal"href="com.vmware.vcenter.html#com.vmware.vcenter.compute_client.Policies.get"title="com.vmware.vcenter.compute_client.Policies.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.compute_client.Policies.get()</span></code></a>. <strong>Warning:</strong>
This class is available as technical preview. It may be changed in a future
release.</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>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 not be migrated away from the
host on which they are powered on, except when the host is put into
maintenance mode or failed over. <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><p><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.</p></li>
<li><p><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.</p></li>
<li><p><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="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.</code><codeclass="sig-name descname">StubFactory</code><spanclass="sig-paren">(</span><emclass="sig-param">stub_config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<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="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.</code><codeclass="sig-name descname">CreateSpec</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">host_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">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
<li><p><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><p><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
<li><p><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
preview. It may be changed in a future release.</p></li>
<li><p><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.</p></li>
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
<li><p><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><p><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
<li><p><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.</p></li>
<li><p><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.</p></li>
<li><p><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>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.</code><codeclass="sig-name descname">StubFactory</code><spanclass="sig-paren">(</span><emclass="sig-param">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>
<spanid="com-vmware-vcenter-compute-policies-capabilities-vm-host-anti-affinity-client-module"></span><h2>com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client module<aclass="headerlink"href="#module-com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.</code><codeclass="sig-name descname">CreateSpec</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">host_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">description=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_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
anti-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="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>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 anti-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><p><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 anti-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><p><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.</p></li>
<li><p><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.</p></li>
that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_tag</span></code> will be anti-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="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>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 anti-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><p><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 anti-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><p><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.</p></li>
<li><p><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.</p></li>
<li><p><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="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.</code><codeclass="sig-name descname">StubFactory</code><spanclass="sig-paren">(</span><emclass="sig-param">stub_config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<spanid="com-vmware-vcenter-compute-policies-capabilities-vm-vm-affinity-client-module"></span><h2>com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client module<aclass="headerlink"href="#module-com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.</code><codeclass="sig-name descname">CreateSpec</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">description=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.CreateSpec"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">CreateSpec</span></code> class contains information used to create a new VM-VM
affinity policy, see
<aclass="reference internal"href="com.vmware.vcenter.html#com.vmware.vcenter.compute_client.Policies.create"title="com.vmware.vcenter.compute_client.Policies.create"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.compute_client.Policies.create()</span></code></a>. All virtual
machines that share the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_tag</span></code> will be
affined to each other. <strong>Warning:</strong> This class is available as technical
preview. It may be changed in a future release.</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>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 affined to each other.
<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><p><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.</p></li>
<li><p><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.</p></li>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.</code><codeclass="sig-name descname">Info</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">description=None</em>, <emclass="sig-param">capability=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.Info"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Info</span></code> class contains information about a VM-VM affinity policy, see
<aclass="reference internal"href="com.vmware.vcenter.html#com.vmware.vcenter.compute_client.Policies.get"title="com.vmware.vcenter.compute_client.Policies.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.compute_client.Policies.get()</span></code></a>. All virtual
machines that share the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_tag</span></code> are affined to
each other. <strong>Warning:</strong> This class is available as technical preview. It
may be changed in a future release.</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>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 affined to each other.
<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><p><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.</p></li>
<li><p><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.</p></li>
<li><p><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="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.</code><codeclass="sig-name descname">StubFactory</code><spanclass="sig-paren">(</span><emclass="sig-param">stub_config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<spanid="com-vmware-vcenter-compute-policies-capabilities-vm-vm-anti-affinity-client-module"></span><h2>com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client module<aclass="headerlink"href="#module-com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.</code><codeclass="sig-name descname">CreateSpec</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">description=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.CreateSpec"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">CreateSpec</span></code> class contains information used to create a new VM-VM
anti-affinity policy, see
<aclass="reference internal"href="com.vmware.vcenter.html#com.vmware.vcenter.compute_client.Policies.create"title="com.vmware.vcenter.compute_client.Policies.create"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.compute_client.Policies.create()</span></code></a>. All virtual
machines that share the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_tag</span></code> will be
anti-affine to each other. <strong>Warning:</strong> This class is available as
technical preview. It may be changed in a future release.</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>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 anti-affine to each other.
<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><p><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.</p></li>
<li><p><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.</p></li>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.</code><codeclass="sig-name descname">Info</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_tag=None</em>, <emclass="sig-param">name=None</em>, <emclass="sig-param">description=None</em>, <emclass="sig-param">capability=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.Info"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Info</span></code> class contains information about a VM-VM anti-affinity policy,
see <aclass="reference internal"href="com.vmware.vcenter.html#com.vmware.vcenter.compute_client.Policies.get"title="com.vmware.vcenter.compute_client.Policies.get"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.compute_client.Policies.get()</span></code></a>. All virtual
machines that share the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_tag</span></code> are
anti-affine to each other. <strong>Warning:</strong> This class is available as
technical preview. It may be changed in a future release.</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>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 are anti-affine to each other.
<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><p><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.</p></li>
<li><p><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.</p></li>
<li><p><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="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.</code><codeclass="sig-name descname">StubFactory</code><spanclass="sig-paren">(</span><emclass="sig-param">stub_config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_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>.