models.size_info module

class models.size_info.SizeInfo(computation_method=None, size_bytes=None)[source]

Bases: object

Implementation of the ‘SizeInfo’ model.

Message to capture the size information of an object or its snapshot. The calculation method can vary depending on the adapter and based on the evolving needs. E.g. This information can be used for billing calculations in DMaaS.

Attributes:

computation_method (int): The computation method used for “size_bytes”. size_bytes (long|int): Size in bytes.

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.