<spanid="com-vmware-vcenter-vm-hardware-package"></span><h1>com.vmware.vcenter.vm.hardware package<aclass="headerlink"href="#module-com.vmware.vcenter.vm.hardware"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-hardware-adapter-client-module"></span><h2>com.vmware.vcenter.vm.hardware.adapter_client module<aclass="headerlink"href="#module-com.vmware.vcenter.vm.hardware.adapter_client"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vcenter.vm.hardware.adapter_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Sata</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Sata</span></code> class provides methods for configuring the virtual SATA
adapters of a virtual machine.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</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"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">CreateSpec</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">bus</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">pci_slot_number</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.CreateSpec"title="Permalink to this definition">¶</a></dt>
If None, a guest-specific default value will be used.</p></li>
<li><p><strong>bus</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – SATA bus number.
If None, the server will choose an available bus number; if none is
available, the request will fail.</p></li>
<li><p><strong>pci_slot_number</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Address of the SATA adapter on the PCI bus.
If None, the server will choose an available address when the
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Info</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">label</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">bus</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">pci_slot_number</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.Info"title="Permalink to this definition">¶</a></dt>
<li><p><strong>bus</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code>) – SATA bus number.</p></li>
<li><p><strong>pci_slot_number</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Address of the SATA adapter on the PCI bus.
May be None if the virtual machine has never been powered on since
<codeclass="sig-name descname"><spanclass="pre">RESOURCE_TYPE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'com.vmware.vcenter.vm.hardware.SataAdapter'</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.RESOURCE_TYPE"title="Permalink to this definition">¶</a></dt>
<dd><p>Resource type for the virtual SATA adapter device.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Summary</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">adapter</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.Summary"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Sata.Summary</span></code> class contains commonly used information about a
Virtual SATA adapter.</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"><p><strong>adapter</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Identifier of the virtual SATA adapter.
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.vm.hardware.SataAdapter</span></code>. When methods return
a value of this class as a return value, the attribute will be an
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.Type"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Sata.Type</span></code> class defines the valid emulation types for a virtual
SATA adapter.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
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
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">AHCI</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='AHCI')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.Type.AHCI"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">create</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">spec</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.create"title="Permalink to this definition">¶</a></dt>
<dd><p>Adds a virtual SATA adapter to the virtual machine.</p>
<li><p><strong>spec</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.CreateSpec"title="com.vmware.vcenter.vm.hardware.adapter_client.Sata.CreateSpec"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Sata.CreateSpec</span></code></a>) – Specification for the new virtual SATA adapter.</p></li>
<codeclass="sig-name descname"><spanclass="pre">delete</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">adapter</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.delete"title="Permalink to this definition">¶</a></dt>
<dd><p>Removes a virtual SATA adapter from the virtual machine.</p>
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">adapter</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns information about a virtual SATA adapter.</p>
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Sata.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns commonly used information about the virtual SATA adapters
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vcenter.vm.hardware.adapter_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Scsi</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Scsi</span></code> class provides methods for configuring the virtual SCSI
adapters of a virtual machine.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</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"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">CreateSpec</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">bus</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">pci_slot_number</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">sharing</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.CreateSpec"title="Permalink to this definition">¶</a></dt>
If None, a guest-specific default value will be used.</p></li>
<li><p><strong>bus</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – SCSI bus number.
If None, the server will choose an available bus number; if none is
available, the request will fail.</p></li>
<li><p><strong>pci_slot_number</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Address of the SCSI adapter on the PCI bus. If the PCI address is
invalid, the server will change it when the VM is started or as the
device is hot added.
If None, the server will choose an available address when the
virtual machine is powered on.</p></li>
<li><p><strong>sharing</strong> (<aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing"title="com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Scsi.Sharing</span></code></a> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Bus sharing mode.
If None, the adapter will default to <aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing.NONE"title="com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing.NONE"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Scsi.Sharing.NONE</span></code></a>.</p></li>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Info</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">label</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">scsi</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">pci_slot_number</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">sharing</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Info"title="Permalink to this definition">¶</a></dt>
<li><p><strong>scsi</strong> (<aclass="reference internal"href="com.vmware.vcenter.vm.html#com.vmware.vcenter.vm.hardware_client.ScsiAddressInfo"title="com.vmware.vcenter.vm.hardware_client.ScsiAddressInfo"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.vm.hardware_client.ScsiAddressInfo</span></code></a>) – Address of the SCSI adapter on the SCSI bus.</p></li>
<li><p><strong>pci_slot_number</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">long</span></code> or <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>) – Address of the SCSI adapter on the PCI bus. If the PCI address is
invalid, the server will change it when the VM is started or as the
device is hot added.
May be None if the virtual machine has never been powered on since
<codeclass="sig-name descname"><spanclass="pre">RESOURCE_TYPE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">'com.vmware.vcenter.vm.hardware.ScsiAdapter'</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.RESOURCE_TYPE"title="Permalink to this definition">¶</a></dt>
<dd><p>Resource type for the virtual SCSI adapter device.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Sharing</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Scsi.Sharing</span></code> class defines the valid bus sharing modes for a
virtual SCSI adapter.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
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
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Sharing</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">NONE</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Sharing(string='NONE')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing.NONE"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">PHYSICAL</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Sharing(string='PHYSICAL')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing.PHYSICAL"title="Permalink to this definition">¶</a></dt>
<dd><p>The virtual SCSI bus is shared between two or more virtual machines
<codeclass="sig-name descname"><spanclass="pre">VIRTUAL</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Sharing(string='VIRTUAL')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Sharing.VIRTUAL"title="Permalink to this definition">¶</a></dt>
<dd><p>The virtual SCSI bus is shared between two or more virtual machines. In
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Summary</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">adapter</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Summary"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Type"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Scsi.Type</span></code> class defines the valid emulation types for a virtual
SCSI adapter.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
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
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">BUSLOGIC</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='BUSLOGIC')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Type.BUSLOGIC"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">LSILOGIC</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='LSILOGIC')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Type.LSILOGIC"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">LSILOGICSAS</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='LSILOGICSAS')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Type.LSILOGICSAS"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">PVSCSI</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='PVSCSI')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.Type.PVSCSI"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">UpdateSpec</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sharing</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.UpdateSpec"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">create</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">spec</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.create"title="Permalink to this definition">¶</a></dt>
<dd><p>Adds a virtual SCSI adapter to the virtual machine.</p>
<codeclass="sig-name descname"><spanclass="pre">delete</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">adapter</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.delete"title="Permalink to this definition">¶</a></dt>
<dd><p>Removes a virtual SCSI adapter from the virtual machine.</p>
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">adapter</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns information about a virtual SCSI adapter.</p>
<codeclass="sig-name descname"><spanclass="pre">list</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.list"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns commonly used information about the virtual SCSI adapters
<codeclass="sig-name descname"><spanclass="pre">update</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">adapter</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">spec</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.Scsi.update"title="Permalink to this definition">¶</a></dt>
<dd><p>Updates the configuration of a virtual SCSI adapter.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vcenter.vm.hardware.adapter_client.</span></code><codeclass="sig-name descname"><spanclass="pre">StubFactory</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">stub_config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.adapter_client.StubFactory"title="Permalink to this definition">¶</a></dt>
<spanid="com-vmware-vcenter-vm-hardware-boot-client-module"></span><h2>com.vmware.vcenter.vm.hardware.boot_client module<aclass="headerlink"href="#module-com.vmware.vcenter.vm.hardware.boot_client"title="Permalink to this headline">¶</a></h2>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.vm.hardware.boot_client</span></code> module provides classes for
managing the virtual devices used to boot a virtual machine.</p>
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vcenter.vm.hardware.boot_client.</span></code><codeclass="sig-name descname"><spanclass="pre">Device</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Device</span></code> class provides methods for configuring the device order used
when booting a virtual machine.</p>
<p>The boot order may be specified using a mixture of device classes and
device instances, chosen from among the following:</p>
<ulclass="simple">
<li><p><aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.CDROM"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Type.CDROM"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Type.CDROM</span></code></a>: Boot from a virtual CD-ROM drive; the device
instance(s) will be chosen by the BIOS subsystem.</p></li>
<li><p><aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.FLOPPY"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Type.FLOPPY"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Type.FLOPPY</span></code></a>: Boot from a virtual floppy drive; the device
instance(s) will be chosen by the BIOS subsystem.</p></li>
<li><p><aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.DISK"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Type.DISK"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Type.DISK</span></code></a>: Boot from a virtual disk device; the device
instance is specified explicitly in <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Entry.disks</span></code> list, and
multiple instances may be specified in the list.</p></li>
<li><p><aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Type.ETHERNET</span></code></a>: Boot from a virtual Ethernet adapter; the
device instance is specified explicitly as <codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Entry.nic</span></code>, and
multiple adapters may be specified in the boot order list.</p></li>
</ul>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</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"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Entry</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">nic</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">disks</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Entry"title="Permalink to this definition">¶</a></dt>
<li><p><strong>nic</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Virtual Ethernet device. Ethernet device to use as boot device for
this entry.
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.vm.hardware.Ethernet</span></code>. When methods return a
value of this class as a return value, the attribute will be an
This attribute is optional and it is only relevant when the value
of <codeclass="docutils literal notranslate"><spanclass="pre">type</span></code> is <aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Type.ETHERNET</span></code></a>.</p></li>
<li><p><strong>disks</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – Virtual disk device. List of virtual disks in boot order.
When clients pass a value of this class as a parameter, the
attribute must contain identifiers for the resource type:
<codeclass="docutils literal notranslate"><spanclass="pre">com.vmware.vcenter.vm.hardware.Disk</span></code>. When methods return a
value of this class as a return value, the attribute will contain
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">EntryCreateSpec</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">type</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.EntryCreateSpec"title="Permalink to this definition">¶</a></dt>
<p>The class <codeclass="docutils literal notranslate"><spanclass="pre">Device.EntryCreateSpec</span></code> specifies a list of bootable virtual
device classes. When a VM is being created and a <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> of
<codeclass="docutils literal notranslate"><spanclass="pre">Device.EntryCreateSpec</span></code> is specified, the boot order of the specific
device instances are not specified in this class. The boot order of the
specific device instance will be the order in which the Ethernet and Disk
devices appear in the <codeclass="docutils literal notranslate"><spanclass="pre">nics</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">disks</span></code> respectively.</p>
<divclass="admonition tip">
<pclass="admonition-title">Tip</p>
<p>The arguments are used to initialize data attributes with the same
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-name descname"><spanclass="pre">Type</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">string</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type"title="Permalink to this definition">¶</a></dt>
<p>The <codeclass="docutils literal notranslate"><spanclass="pre">Device.Type</span></code> class defines the valid device types that may be used
as bootable devices.</p>
<divclass="admonition note">
<pclass="admonition-title">Note</p>
<p>This class represents an enumerated type in the interface language
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
type description page</span></a>.</p>
</div>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>string</strong> (<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">str</span></code>) – String value for the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Type</span></code> instance.</p>
<codeclass="sig-name descname"><spanclass="pre">CDROM</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='CDROM')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.CDROM"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">DISK</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='DISK')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.DISK"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">ETHERNET</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='ETHERNET')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">FLOPPY</span></code><emclass="property"><spanclass="pre">=</span><spanclass="pre">Type(string='FLOPPY')</span></em><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.FLOPPY"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname"><spanclass="pre">get</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.get"title="Permalink to this definition">¶</a></dt>
<dd><p>Returns an ordered list of boot devices for the virtual machine. If the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> is empty, the virtual machine uses a default boot
<codeclass="sig-name descname"><spanclass="pre">set</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">vm</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">devices</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.set"title="Permalink to this definition">¶</a></dt>
<dd><p>Sets the virtual devices that will be used to boot the virtual machine.
The virtual machine will check the devices in order, attempting to boot
from each, until the virtual machine boots successfully. If the
<codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code> is empty, the virtual machine will use a default boot
sequence. There should be no more than one instance of
<aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Entry"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Entry"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">Device.Entry</span></code></a> for a given device type except
<aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Type.ETHERNET</span></code></a> in the <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">list</span></code>.</p>
if a any of the CDROM, DISK, ETHERNET, FLOPPY values appears in
more than one <codeclass="docutils literal notranslate"><spanclass="pre">Device.Entry</span></code> with the exception of
<aclass="reference internal"href="#com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"title="com.vmware.vcenter.vm.hardware.boot_client.Device.Type.ETHERNET"><codeclass="xref py py-attr docutils literal notranslate"><spanclass="pre">Device.Type.ETHERNET</span></code></a>, which may appear multiple times if
the virtual machine has been configured with multiple Ethernet
<emclass="property"><spanclass="pre">class</span></em><codeclass="sig-prename descclassname"><spanclass="pre">com.vmware.vcenter.vm.hardware.boot_client.</span></code><codeclass="sig-name descname"><spanclass="pre">StubFactory</span></code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">stub_config</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#com.vmware.vcenter.vm.hardware.boot_client.StubFactory"title="Permalink to this definition">¶</a></dt>