This Page

The quantum.api.v2.attributes Module

quantum.api.v2.attributes.convert_kvp_list_to_dict(kvp_list)

Convert a list of ‘key=value’ strings to a dict.

Raises :q_exc.InvalidInput if any of the strings are malformed (e.g. do not contain a key) or if any of the keys appear more than once.
quantum.api.v2.attributes.convert_kvp_str_to_list(data)

Convert a value of the form ‘key=value’ to [‘key’, ‘value’].

Raises :q_exc.InvalidInput if any of the strings are malformed (e.g. do not contain a key).
quantum.api.v2.attributes.convert_none_to_empty_dict(value)
quantum.api.v2.attributes.convert_none_to_empty_list(value)
quantum.api.v2.attributes.convert_to_boolean(data)
quantum.api.v2.attributes.convert_to_int(data)
quantum.api.v2.attributes.convert_to_list(data)
quantum.api.v2.attributes.get_attr_metadata()
quantum.api.v2.attributes.is_attr_set(attribute)