The watcher.common.rpc Module

The watcher.common.rpc Module

class watcher.common.rpc.RequestContextSerializer(base)[source]

Bases: oslo_messaging.serializer.Serializer

deserialize_context(context)[source]

Deserialize a dictionary into a request context.

Parameters:ctxt – Request context dictionary
Returns:Deserialized form of entity
deserialize_entity(context, entity)[source]

Deserialize something from primitive form.

Parameters:
  • ctxt – Request context, in deserialized form
  • entity – Primitive to be deserialized
Returns:

Deserialized form of entity

serialize_context(context)[source]

Serialize a request context into a dictionary.

Parameters:ctxt – Request context
Returns:Serialized form of context
serialize_entity(context, entity)[source]

Serialize something to primitive form.

Parameters:
  • ctxt – Request context, in deserialized form
  • entity – Entity to be serialized
Returns:

Serialized form of entity

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.