05.08.2013 Views

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

[PDF] Parallels Python API Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Package prlsdkapi Class SrvConfig<br />

1.17.1 Methods<br />

get devices count(self, device type)<br />

Determine the total number of devices of the specified type installed in the<br />

host machine.<br />

Parameters<br />

device type: Device type. See consts.PDE xxx for the available<br />

types.<br />

get device(self, device type, index)<br />

Return an object containing information about a device specified by device<br />

type.<br />

Parameters<br />

device type: The type of the device to return the information for.<br />

See consts.PDE xxx for the available types.<br />

index: The index identifying the device instance (beginning<br />

with 0). To determine the number of the devices of<br />

the specified type available in the host machine, use<br />

SrvConfig.get devices count.<br />

Return Value<br />

An instance of a class corresponding to the specified device type.<br />

You can search this documentation for available device classes based<br />

on SrvCfgDev, etc.<br />

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

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

Inherited from object<br />

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

str ()<br />

1.17.2 Properties<br />

Name Description<br />

ram size The amount of memory (RAM) available on the<br />

host, in megabytes.<br />

cpu model The model of CPU on the host.<br />

cpu count The number of CPUs on the host.<br />

cpu speed The host CPU speed, in megahertz.<br />

cpu mode The CPU mode (32 bit or 64 bit).<br />

28<br />

continued on next page

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

Saved successfully!

Ooh no, something went wrong!