<spanid="com-vmware-vcenter-vm-storage-package"></span><h1>com.vmware.vcenter.vm.storage package<aclass="headerlink"href="#module-com.vmware.vcenter.vm.storage"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-vm-storage-policy-client-module"></span><h2>com.vmware.vcenter.vm.storage.policy_client module<aclass="headerlink"href="#module-com.vmware.vcenter.vm.storage.policy_client"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="descclassname">com.vmware.vcenter.vm.storage.policy_client.</code><codeclass="descname">Compliance</code><spanclass="sig-paren">(</span><em>config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance"title="Permalink to this definition">¶</a></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">class </em><codeclass="descname">CheckSpec</code><spanclass="sig-paren">(</span><em>vm_home=None</em>, <em>disks=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"title="Permalink to this definition">¶</a></dt>
<li><p><strong>vm_home</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">bool</span></code>) – Invoke compliance check on the virtual machine home directory if
set to true. This attribute was added in vSphere API 6.7.</p></li>
<li><p><strong>disks</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> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Identifiers of the virtual machine’s virtual disks for which
<emclass="property">class </em><codeclass="descname">Info</code><spanclass="sig-paren">(</span><em>overall_compliance=None</em>, <em>vm_home=None</em>, <em>disks=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"title="Permalink to this definition">¶</a></dt>
<li><p><strong>overall_compliance</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Status</span></code></a>) – The overall compliance status of the virtual machine and all it’s
entities. This attribute was added in vSphere API 6.7.</p></li>
<li><p><strong>vm_home</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.VmComplianceInfo</span></code></a> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – The storage policy compliance information
<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.VmComplianceInfo</span></code></a> for the virtual machine’s home
<emclass="property">class </em><codeclass="descname">Status</code><spanclass="sig-paren">(</span><em>string</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"title="Permalink to this definition">¶</a></dt>
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="descname">COMPLIANT</code><emclass="property"> = Status(string='COMPLIANT')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.COMPLIANT"title="Permalink to this definition">¶</a></dt>
<codeclass="descname">NON_COMPLIANT</code><emclass="property"> = Status(string='NON_COMPLIANT')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.NON_COMPLIANT"title="Permalink to this definition">¶</a></dt>
<dd><p>Entity is out of compliance. This class attribute was added in vSphere API
<codeclass="descname">NOT_APPLICABLE</code><emclass="property"> = Status(string='NOT_APPLICABLE')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.NOT_APPLICABLE"title="Permalink to this definition">¶</a></dt>
<dd><p>Compliance computation is not applicable for this entity because it does
not have any storage requirements that apply to the datastore on which it
<codeclass="descname">OUT_OF_DATE</code><emclass="property"> = Status(string='OUT_OF_DATE')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.OUT_OF_DATE"title="Permalink to this definition">¶</a></dt>
<dd><p>The Compliance status becomes out-of-date when the profile associated with
the entity is edited but not applied. The compliance status remains
out-of-date until the edited policy is applied to the entity. This class
<codeclass="descname">UNKNOWN_COMPLIANCE</code><emclass="property"> = Status(string='UNKNOWN_COMPLIANCE')</em><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status.UNKNOWN_COMPLIANCE"title="Permalink to this definition">¶</a></dt>
<dd><p>Compliance status of the entity is not known. This class attribute was
<emclass="property">class </em><codeclass="descname">VmComplianceInfo</code><spanclass="sig-paren">(</span><em>status=None</em>, <em>check_time=None</em>, <em>policy=None</em>, <em>failure_cause=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.VmComplianceInfo"title="Permalink to this definition">¶</a></dt>
<li><p><strong>status</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Status"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Status</span></code></a>) – Status of the compliance operation. This attribute was added in
vSphere API 6.7.</p></li>
<li><p><strong>check_time</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">datetime.datetime</span></code>) – Date and time of the most recent compliance check. This attribute
was added in vSphere API 6.7.</p></li>
<li><p><strong>policy</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Identifier of the storage policy associated with the virtual
machine. This attribute was added in vSphere API 6.7.
<li><p><strong>failure_cause</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <aclass="reference internal"href="com.vmware.vapi.html#com.vmware.vapi.std_client.LocalizableMessage"title="com.vmware.vapi.std_client.LocalizableMessage"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">com.vmware.vapi.std_client.LocalizableMessage</span></code></a>) – The exception that caused the compliance check to fail. There can
<codeclass="descname">check</code><spanclass="sig-paren">(</span><em>vm</em>, <em>check_spec=None</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.check"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the storage policy Compliance <aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Info</span></code></a> of a
virtual machine after explicitly re-computing compliance check. This
check is to be invoked. The storage compliance Info
<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.Info"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.Info</span></code></a> is returned.
If None, the behavior is equivalent to a
<aclass="reference internal"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"title="com.vmware.vcenter.vm.storage.policy_client.Compliance.CheckSpec"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Compliance.CheckSpec</span></code></a> with CheckSpec#vmHome set to true and
CheckSpec#disks populated with all disks attached to the virtual
<codeclass="descname">get</code><spanclass="sig-paren">(</span><em>vm</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_client.Compliance.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the cached storage policy compliance information of a virtual
<emclass="property">class </em><codeclass="descclassname">com.vmware.vcenter.vm.storage.policy_client.</code><codeclass="descname">StubFactory</code><spanclass="sig-paren">(</span><em>stub_config</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.storage.policy_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>.