GoVirt.Collection¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
w/co |
Name of the XML element for the collection |
||
r/w/co |
relative href for the collection |
||
r/w/co |
Type of resources held by this collection |
||
w/co |
Name of the XML element for the resources stored in that collection |
||
r/w |
Hash table containing the resources contained in this collection |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GoVirt.Collection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- fetch(proxy)¶
- Parameters:
proxy (
GoVirt.Proxy) – aGoVirt.Proxy- Raises:
- Return type:
- fetch_async(proxy, cancellable, callback, *user_data)¶
- Parameters:
proxy (
GoVirt.Proxy) – aGoVirt.Proxycancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) – completion callback
- fetch_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – async method result- Raises:
- Returns:
- Return type:
- get_resources()¶
- Return type:
- lookup_resource(name)¶
- Parameters:
name (
str) – name of the resource to lookup- Returns:
a
GoVirt.Resourcewhose name is name orNone- Return type:
Looks up a resource in self whose name is name. If it cannot be found,
Noneis returned. This method does not initiate any network activity, the remote collection content must have been fetched withGoVirt.Collection.fetch() orGoVirt.Collection.fetch_async() before calling this function.
Property Details¶
- GoVirt.Collection.props.collection_xml_name¶
- Name:
collection-xml-name- Type:
- Default Value:
- Flags:
Name of the XML element for the collection
- GoVirt.Collection.props.href¶
- Name:
href- Type:
- Default Value:
- Flags:
relative href for the collection
- GoVirt.Collection.props.resource_type¶
- Name:
resource-type- Type:
- Default Value:
<GType OvirtResource>- Flags:
Type of resources held by this collection
- GoVirt.Collection.props.resource_xml_name¶
- Name:
resource-xml-name- Type:
- Default Value:
- Flags:
Name of the XML element for the resources stored in that collection
- GoVirt.Collection.props.resources¶
- Name:
resources- Type:
- Default Value:
- Flags:
Hash table containing the resources contained in this collection