<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="sig-prename descclassname">com.vmware.vcenter.vm.storage.policy_client.</code><codeclass="sig-name descname">Compliance</code><spanclass="sig-paren">(</span><emclass="sig-param">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="sig-name descname">CheckSpec</code><spanclass="sig-paren">(</span><emclass="sig-param">vm_home=None</em>, <emclass="sig-param">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="sig-name descname">Info</code><spanclass="sig-paren">(</span><emclass="sig-param">overall_compliance=None</em>, <emclass="sig-param">vm_home=None</em>, <emclass="sig-param">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="sig-name descname">Status</code><spanclass="sig-paren">(</span><emclass="sig-param">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="sig-name 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="sig-name 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>
<codeclass="sig-name 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>
<codeclass="sig-name 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>
<codeclass="sig-name 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>
<emclass="property">class </em><codeclass="sig-name descname">VmComplianceInfo</code><spanclass="sig-paren">(</span><emclass="sig-param">status=None</em>, <emclass="sig-param">check_time=None</em>, <emclass="sig-param">policy=None</em>, <emclass="sig-param">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="sig-name descname">check</code><spanclass="sig-paren">(</span><emclass="sig-param">vm</em>, <emclass="sig-param">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="sig-name descname">get</code><spanclass="sig-paren">(</span><emclass="sig-param">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>
<emclass="property">class </em><codeclass="sig-prename descclassname">com.vmware.vcenter.vm.storage.policy_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.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>.