watcher.common.rpc module

watcher.common.rpc module

service None

Bases: oslo_messaging.serializer.Serializer

RequestContextSerializer.deserialize_context(context)[source]

Deserialize a dictionary into a request context.

Parameters:ctxt – Request context dictionary
Returns:Deserialized form of entity
RequestContextSerializer.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

RequestContextSerializer.serialize_context(context)[source]

Serialize a request context into a dictionary.

Parameters:ctxt – Request context
Returns:Serialized form of context
RequestContextSerializer.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.