class documentation
class QmpMessage(object):
QEMU Messaging Protocol (QMP) message.
| Static Method | |
Build a QmpMessage from a JSON encoded string. |
| Method | __delitem__ |
Delete the specified element from the QmpMessage. |
| Method | __eq__ |
Undocumented |
| Method | __getitem__ |
Get the value of the required field if present, or None. |
| Method | __init__ |
Creates a new QMP message based on the passed data. |
| Method | __len__ |
Return the number of fields stored in this QmpMessage. |
| Method | __setitem__ |
Set the value of the required field_name to field_value. |
| Method | to |
Undocumented |
| Instance Variable | data |
Undocumented |
Build a QmpMessage from a JSON encoded string.
| Parameters | |
| json | JSON string representing the message |
| Returns | |
QmpMessage | a QmpMessage built from json_string |
Get the value of the required field if present, or None.
Overrides the [] operator to provide access to the message data, returning None if the required item is not in the message
| Returns | |
| the value of the field_name field, or None if field_name is not contained in the message |