05.08.2013 Views

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Package prlsdkapi Class VmBaseDev<br />

disconnect(self )<br />

Disconnect the device. This operation can be performed on a running virtual<br />

machine. This is an asyncronous method.<br />

Return Value<br />

A Job object.<br />

create image(self, allow recreate=False, non interactive mode=False)<br />

Create a virtual device image on the host. This is an asynchronous method.<br />

Parameters<br />

allow recreate: Specifies whether the existing image<br />

should be replaced. True - replace the<br />

image; False - abort the operation if image<br />

exists.<br />

non interactive mode: Specifies whether interactive mode should<br />

be used. True - use interactive mode; False<br />

- non-interactive mode.<br />

Return Value<br />

A Job object.<br />

remove(self )<br />

Remove this object from the virtual machine device list. The method only<br />

removes the object from memory. It does not delete the device from the<br />

existing virtual machine configuration.<br />

set default stack index(self )<br />

Generate and automatically assign a stack index to the storage device. A<br />

corresponding device interface (IDE or SCSI) has to be set in advance. This<br />

method applies only to VmHddDev and VmOpticalDev.<br />

Inherited from prlsdkapi.prlsdk.OwnerRefAsync(Section 2.10)<br />

init (), new ()<br />

Inherited from prlsdkapi.prlsdk.BaseAsync(Section 2.5)<br />

cmp (), repr (), cancel(), wait()<br />

Inherited from object<br />

delattr (), getattribute (), hash (), reduce (), reduce ex (), setattr (),<br />

str ()<br />

61

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!