class documentation

class QmpMessage(object):

View In Hierarchy

QEMU Messaging Protocol (QMP) message.

Static Method BuildFromJsonString 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_bytes Undocumented
Instance Variable data Undocumented
@staticmethod
def BuildFromJsonString(json_string):

Build a QmpMessage from a JSON encoded string.

Parameters
json_string:strJSON string representing the message
Returns
QmpMessagea QmpMessage built from json_string
def __delitem__(self, key):

Delete the specified element from the QmpMessage.

def __eq__(self, other):

Undocumented

def __getitem__(self, field_name):

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
def __init__(self, data):

Creates a new QMP message based on the passed data.

def __len__(self):

Return the number of fields stored in this QmpMessage.

def __setitem__(self, field_name, field_value):

Set the value of the required field_name to field_value.

def to_bytes(self):

Undocumented

data =

Undocumented