models_v2.file_size_policy module

class models_v2.file_size_policy.FileSizePolicy(condition=None, n_bytes=None)[source]

Bases: object

Implementation of the ‘FileSizePolicy’ model.

Specifies the file’s selection rule by file size eg. 1. select files greather than 10 Bytes. 2. select files less than 20 TiB. 3. select files greather than 5 MiB. type: object

Attributes:
condition (ConditionEnum): Specifies condition for the file

selection.

n_bytes (long|int): Specifies the number of 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.