GoVirt.Collection

g GObject.Object GObject.Object GoVirt.Collection GoVirt.Collection GObject.Object->GoVirt.Collection

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

fetch (proxy)

fetch_async (proxy, cancellable, callback, *user_data)

fetch_finish (result)

get_resources ()

lookup_resource (name)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

collection-xml-name

str

w/co

Name of the XML element for the collection

href

str

r/w/co

relative href for the collection

resource-type

GObject.GType

r/w/co

Type of resources held by this collection

resource-xml-name

str

w/co

Name of the XML element for the resources stored in that collection

resources

GLib.HashTable

r/w

Hash table containing the resources contained in this collection

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

Class Details

class GoVirt.Collection(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GoVirt.CollectionClass

fetch(proxy)
Parameters:

proxy (GoVirt.Proxy) – a GoVirt.Proxy

Raises:

GLib.Error

Return type:

bool

fetch_async(proxy, cancellable, callback, *user_data)
Parameters:
fetch_finish(result)
Parameters:

result (Gio.AsyncResult) – async method result

Raises:

GLib.Error

Returns:

True if successful, False otherwise, with error set.

Return type:

bool

get_resources()
Return type:

{str: GoVirt.Resource}

lookup_resource(name)
Parameters:

name (str) – name of the resource to lookup

Returns:

a GoVirt.Resource whose name is name or None

Return type:

GoVirt.Resource

Looks up a resource in self whose name is name. If it cannot be found, None is returned. This method does not initiate any network activity, the remote collection content must have been fetched with GoVirt.Collection.fetch() or GoVirt.Collection.fetch_async() before calling this function.

Property Details

GoVirt.Collection.props.collection_xml_name
Name:

collection-xml-name

Type:

str

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

Name of the XML element for the collection

GoVirt.Collection.props.href
Name:

href

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

relative href for the collection

GoVirt.Collection.props.resource_type
Name:

resource-type

Type:

GObject.GType

Default Value:

<GType OvirtResource>

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Type of resources held by this collection

GoVirt.Collection.props.resource_xml_name
Name:

resource-xml-name

Type:

str

Default Value:

None

Flags:

WRITABLE, CONSTRUCT_ONLY

Name of the XML element for the resources stored in that collection

GoVirt.Collection.props.resources
Name:

resources

Type:

GLib.HashTable

Default Value:

None

Flags:

READABLE, WRITABLE

Hash table containing the resources contained in this collection