GoVirt.Resource¶
- Subclasses:
GoVirt.Api,GoVirt.Cdrom,GoVirt.Cluster,GoVirt.DataCenter,GoVirt.Disk,GoVirt.Host,GoVirt.StorageDomain,GoVirt.Vm,GoVirt.VmPool
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w |
Resource Description |
||
r/w |
Resource GUID |
||
r/w |
Resource Href |
||
r/w |
Resource Name |
||
w/co |
XML data to fill this resource with |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
Class Details¶
- class GoVirt.Resource(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- delete(proxy)¶
- Parameters:
proxy (
GoVirt.Proxy) – anGoVirt.Proxy.- Raises:
- Returns:
Trueif the call was successful,Falseotherwise.Sends an HTTP DELETE request to self.
The calling thread is blocked until this request is processed, see
GoVirt.Resource.delete_async() for the asynchronous version of this method.- Return type:
- delete_async(proxy, cancellable, callback, *user_data)¶
- Parameters:
proxy (
GoVirt.Proxy) – anGoVirt.Proxy.cancellable (
Gio.CancellableorNone) – aGio.CancellableorNone.callback (
Gio.AsyncReadyCallbackorNone) – aGio.AsyncReadyCallbackto call when the call completes, orNoneif you don’t care about the result of the method invocation.
Asynchronously send an HTTP DELETE request to self.
When the call is complete, callback will be invoked. You can then call
GoVirt.Resource.delete_finish() to get the result of the call.
- delete_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) – aGio.AsyncResult.- Raises:
- Returns:
Trueif the call was successful,Falseotherwise.Finishes an asynchronous HTTP DELETE request on self.
- Return type:
- refresh(proxy)¶
- Parameters:
proxy (
GoVirt.Proxy) –- Raises:
- Return type:
- refresh_async(proxy, cancellable, callback, *user_data)¶
- Parameters:
proxy (
GoVirt.Proxy) –cancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) –
- refresh_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) –- Raises:
- Return type:
- update(proxy)¶
- Parameters:
proxy (
GoVirt.Proxy) –- Raises:
- Return type:
- update_async(proxy, cancellable, callback, *user_data)¶
- Parameters:
proxy (
GoVirt.Proxy) –cancellable (
Gio.CancellableorNone) –callback (
Gio.AsyncReadyCallbackorNone) –
- update_finish(result)¶
- Parameters:
result (
Gio.AsyncResult) –- Raises:
- Return type:
- do_init_from_xml(node) virtual¶
- Parameters:
node (
Rest.XmlNode) –- Return type:
Property Details¶
- GoVirt.Resource.props.description¶
-
Resource Description
- GoVirt.Resource.props.guid¶
-
Resource GUID
- GoVirt.Resource.props.href¶
-
Resource Href
- GoVirt.Resource.props.name¶
-
Resource Name
- GoVirt.Resource.props.xml_node¶
- Name:
xml-node- Type:
- Default Value:
- Flags:
XML data to fill this resource with