class documentation

QEMU Messaging Protocol (QMP) message.

Static Method build_from_json_string Build a QmpMessage from a JSON encoded string.
Method __delitem__ Undocumented
Method __eq__ Undocumented
Method __getitem__ Get the value of the required field if present, or None.
Method __init__ Undocumented
Method __len__ Return the number of fields stored in this QmpMessage.
Method __setitem__ Undocumented
Method to_bytes Undocumented
Method to_json_string Undocumented
Instance Variable data Undocumented
@staticmethod
def build_from_json_string(json_string: str) -> QmpMessage:

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):

Undocumented

def __eq__(self, other: QmpMessage) -> bool:

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: dict):

Undocumented

def __len__(self):

Return the number of fields stored in this QmpMessage.

def __setitem__(self, field_name, field_value):

Undocumented

def to_bytes(self) -> bytes:

Undocumented

def to_json_string(self) -> str:

Undocumented

data =

Undocumented