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

attach to lost task(self, task uuid)<br />

The method allows to obtain a Job object attached to a running task after<br />

loosing a connection with the <strong>Parallels</strong> Service and reconnecting to it again.<br />

This is an asynchronous method.<br />

Parameters<br />

task uuid: The global task ID. The list of task IDs can be obtained<br />

from the LoginResponse object returned by the login<br />

operation.<br />

Return Value<br />

A Job object attached to the specified task.<br />

get unique fs entry name(self, path, fn prefix=’’, fn suffix=’’,<br />

index delim=’’)<br />

Automatically generates a unique name for a new directory. This is an<br />

asynchronous method.<br />

Parameters<br />

path: A full path to the target location (directory).<br />

fn prefix: Specifies a prefix to use in the directory name. Pass<br />

an empty string to use the default prefix ’tmpfile’.<br />

The name will be generated by adding a number to<br />

the prefix (e.g. tmpfile1, tmpfile2, etc.)<br />

fn suffix: Specifies a suffix to use in the directory name.<br />

index delim: A character(s) that will be inserted between the<br />

prefix and the index (e.g. tmpfile 1, tmpfile 2, etc).<br />

Return Value<br />

A Result object containing the name.<br />

get user info(self, user id)<br />

Return a UsrInfo class containing the information about the specified user.<br />

Parameters<br />

user id: The global ID of the user to get the information for.<br />

Return Value<br />

A UsrInfo object containing the user information.<br />

Inherited from prlsdkapi.prlsdk.BaseServer(Section 2.6)<br />

init (), new (), login(), login local(), logoff(), reg event handler(), shutdown(),<br />

unreg event handler()<br />

Inherited from prlsdkapi.prlsdk.Base(Section 2.4)<br />

21

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

Saved successfully!

Ooh no, something went wrong!