models.erasure_coding_info module

class models.erasure_coding_info.ErasureCodingInfo(algorithm=None, erasure_coding_enabled=None, inline_erasure_coding=None, num_coded_stripes=None, num_data_stripes=None)[source]

Bases: object

Implementation of the ‘ErasureCodingInfo’ model.

Specifies information for erasure coding.

Attributes:
algorithm (AlgorithmEnum): Algorthm used for erasure coding.

REED_SOLOMON indicates the algorithm used for erasure coding. LRC indicates the algorithm used for erasure coding.

erasure_coding_enabled (bool): Specifies whether Erasure coding is

enabled on the Storage Domain (View Box).

inline_erasure_coding (bool): Specifies if erasure coding should occur

inline (as the data is being written). This field is only relevant if erasure coding is enabled.

num_coded_stripes (int): The number of coded stripes. num_data_stripes (int): The number of stripes containing data.

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.