models.cluster_config_proto_qo_s_mapping module

class models.cluster_config_proto_qo_s_mapping.ClusterConfigProtoQoSMapping(principal_id=None, qos_context=None)[source]

Bases: object

Implementation of the ‘ClusterConfigProto_QoSMapping’ model.

If a new enum value is added to either QoSMapping.Type or QoSPrincipal.Priority in a future version, direct upgrades must be disallowed from a pre-2.5 version to that version (without upgrading to 2.5 first). Contact nexus team for getting an appropriate restriction into the upgrade compatibility list.

Attributes:
principal_id (long|int): Principal id of the QoS principal to which

qos_context maps to.

qos_context (ClusterConfigProtoQoSMappingQoSContext): QoSContext

captures the properties that are relevant for QoS in a request. If a new field is added to QoSContext, cluster_config.h should be changed to enhance the hasher (QoSContextHash) and comparator (QoSContextEqual) for QoSContext.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary

Args:

dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.

Returns:

object: An instance of this structure class.