<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-cluster-scale-in-ignore-vm-capabilities-client-module"></span><h2>com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client module<aclass="headerlink"href="#module-com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client"title="Permalink to this headline">¶</a></h2>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">CreateSpec</span></code> class contains information used to create a new policy
to ignore virtual machine capabilities when scaling-in a cluster, 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>. When considering
scaling-in a cluster, policies that have been created with one of the
listed <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_capabilities</span></code> are ignored for virtual machines
that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_tag</span></code> in VMware Cloud on
AWS. Usage beyond VMware Cloud on AWS is not supported. <strong>Warning:</strong> This
class is available as Technology Preview. These are early access APIs
provided to test, automate and provide feedback on the feature. Since this
can change based on feedback, VMware does not guarantee backwards
compatibility and recommends against using them in production environments.
Some Technology Preview APIs might only be applicable to specific
environments.</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>) – When considering scaling-in a cluster, policies that have been
created with one of the listed <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_capabilities</span></code>
are ignored for virtual machines that have this tag. <strong>Warning:</strong>
This attribute is available as Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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>vm_capabilities</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">set</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – When considering scaling-in a cluster, policies that have been
created with one of these capabilities are ignored for virtual
machines that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">CreateSpec.vm_tag</span></code>.
This <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">set</span></code> must contain at least one item. Currently, the
<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 Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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
<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 Technology
Preview. These are early access APIs provided to test, automate and
provide feedback on the feature. Since this can change based on
feedback, VMware does not guarantee backwards compatibility and
recommends against using them in production environments. Some
Technology Preview APIs might only be applicable to specific
environments.</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 Technology Preview. These are early access APIs provided to
test, automate and provide feedback on the feature. Since this can
change based on feedback, VMware does not guarantee backwards
compatibility and recommends against using them in production
environments. Some Technology Preview APIs might only be applicable
<emclass="property">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client.CreateSpec.capability"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Info</span></code> class contains information about a policy to ignore virtual
machine capabilities when scaling-in a cluster, 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>. When considering
scaling-in a cluster, policies that have been created with one of the
listed <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_capabilities</span></code> are ignored for virtual machines that
have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_tag</span></code> in VMware Cloud on AWS. Usage
beyond VMware Cloud on AWS is not supported. <strong>Warning:</strong> This class is
available as Technology Preview. These are early access APIs provided to
test, automate and provide feedback on the feature. Since this can change
based on feedback, VMware does not guarantee backwards compatibility and
recommends against using them in production environments. Some Technology
Preview APIs might only be applicable to specific environments.</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>) – When considering scaling-in a cluster, policies that have been
created with one of the listed <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_capabilities</span></code> are
ignored for virtual machines that have this tag. <strong>Warning:</strong> This
attribute is available as Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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>vm_capabilities</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">set</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – When considering scaling-in a cluster, policies that have been
created with one of these capabilities are ignored for virtual
machines that have the tag indicated by <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Info.vm_tag</span></code>.
<strong>Warning:</strong> This attribute is available as Technology Preview.
These are early access APIs provided to test, automate and provide
feedback on the feature. Since this can change based on feedback,
VMware does not guarantee backwards compatibility and recommends
against using them in production environments. Some Technology
Preview APIs might only be applicable to specific environments.
When clients pass a value of this class as a parameter, the
attribute must contain identifiers for the resource type:
<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
Technology Preview. These are early access APIs provided to test,
automate and provide feedback on the feature. Since this can change
based on feedback, VMware does not guarantee backwards
compatibility and recommends against using them in production
environments. Some Technology Preview APIs might only be applicable
to specific environments.</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 Technology Preview. These are early access APIs provided to
test, automate and provide feedback on the feature. Since this can
change based on feedback, VMware does not guarantee backwards
compatibility and recommends against using them in production
environments. Some Technology Preview APIs might only be applicable
to specific environments.</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 Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_client.Info.capability"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.compute.policies.capabilities.cluster_scale_in_ignore_vm_capabilities_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.cluster_scale_in_ignore_vm_capabilities_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<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">capability='com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion'</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>
<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
<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 Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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
<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
<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
<emclass="property">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.CreateSpec.capability"title="Permalink to this definition">¶</a></dt>
<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 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
<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
<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
<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">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.disable_drs_vmotion_client.Info.capability"title="Permalink to this definition">¶</a></dt>
<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>
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> in VMware
Cloud on AWS. Usage beyond VMware Cloud on AWS is not supported.
<strong>Warning:</strong> This class is available as Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the feature.
Since this can change based on feedback, VMware does not guarantee
backwards compatibility and recommends against using them in production
environments. Some Technology Preview APIs might only be applicable to
<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
<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>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 Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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
<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
<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
<emclass="property">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.CreateSpec.capability"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> in VMware Cloud on
AWS. Usage beyond VMware Cloud on AWS is not supported. <strong>Warning:</strong> This
class is available as Technology Preview. These are early access APIs
provided to test, automate and provide feedback on the feature. Since this
can change based on feedback, VMware does not guarantee backwards
compatibility and recommends against using them in production environments.
Some Technology Preview APIs might only be applicable to specific
<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
<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
<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
<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">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_affinity_client.Info.capability"title="Permalink to this definition">¶</a></dt>
<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>
<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
<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
<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 Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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
<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
<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
<emclass="property">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.CreateSpec.capability"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 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> in VMware Cloud
on AWS. Usage beyond VMware Cloud on AWS is not supported. <strong>Warning:</strong>
This class is available as Technology Preview. These are early access APIs
provided to test, automate and provide feedback on the feature. Since this
can change based on feedback, VMware does not guarantee backwards
compatibility and recommends against using them in production environments.
Some Technology Preview APIs might only be applicable to specific
<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
<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
<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
<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
<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">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_host_anti_affinity_client.Info.capability"title="Permalink to this definition">¶</a></dt>
<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">capability='com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity'</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
<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.
<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 Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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
<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
<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
<emclass="property">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.CreateSpec.capability"title="Permalink to this definition">¶</a></dt>
<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
<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.
<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
<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
<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">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_affinity_client.Info.capability"title="Permalink to this definition">¶</a></dt>
<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">capability='com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity'</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
<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.
<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 Technology Preview. These are early
access APIs provided to test, automate and provide feedback on the
feature. Since this can change based on feedback, VMware does not
guarantee backwards compatibility and recommends against using them
in production environments. Some Technology Preview APIs might only
be applicable to specific environments.
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
<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
<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
<emclass="property">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.CreateSpec.capability"title="Permalink to this definition">¶</a></dt>
<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
<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.
<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
<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
<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">property </em><codeclass="sig-name descname">capability</code><aclass="headerlink"href="#com.vmware.vcenter.compute.policies.capabilities.vm_vm_anti_affinity_client.Info.capability"title="Permalink to this definition">¶</a></dt>
<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>.