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 Vm<br />

begin edit(self )<br />

Timestamp the beginning of the virtual machine editing operation. This<br />

method must be called before making any modifications to the virtual machine<br />

configuration. When the desired configuration properties are set, call<br />

Vm.commit to commit the changes to the <strong>Parallels</strong> Service. The two functions<br />

are used to detect collisions with other clients trying to modify the same<br />

virtual machine at the same time.<br />

This is an asynchronous method.<br />

Return Value<br />

A Job object.<br />

commit(self )<br />

Commit the virtual machine configuration changes to the <strong>Parallels</strong> Service.<br />

This is an asynchronous method.<br />

Return Value<br />

A Job object.<br />

refresh config(self )<br />

update config(self )<br />

This method is obsolete and is left for backward compatibility only.<br />

create device(self, device type)<br />

Create and return a new virtual device object based on the specified device<br />

type. Each virtual machine device type has a corresponding class in the<br />

<strong>Parallels</strong> Service <strong>Python</strong> <strong>API</strong>. You can search this documentation for available<br />

virtual device classes using the following rule: a class name begins with ’Vm’<br />

followed by the device type description followed by ’Dev’. For example:<br />

VmHddDev, VmNetDev, VmSoundDev, etc.<br />

Parameters<br />

device type: Device type. Based on the type specified here, an<br />

instance of the corresponding class will be created.<br />

See consts.PDE xxx for available options.<br />

Return Value<br />

An instance of the requested class.<br />

43

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

Saved successfully!

Ooh no, something went wrong!