DeprecationModel#

class DeprecationModel(deprecated_version=None, deprecated_date=None, deprecated_by=None, deprecated_reason=None, *args, **kwargs)[source]#

Bases: object

An abstract representation of an object which has the deprecated information.

Parameters:
property deprecated_by#

Represents the deprecation name of the attribute.

Type:

str

property deprecated_date#

Deprecated after the date.

Type:

str

property deprecated_reason#

Represents the reason for the deprecation.

Type:

str

property deprecated_version#

Deprecated after the version.

Type:

str

to_dict()[source]#

Returns the model properties as a dictionary

to_str()[source]#

Returns the string representation of the model